Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Event NPC Start Time and End Time

Junior Spellweaver
Joined
Apr 27, 2015
Messages
176
Reaction score
107
Events and some Event NPC require a Start Time and End Time, for example the XP Buff NPCs, their Start and End times are in dbo.SysKeyValue and look similar to:

Expstarttime_00 7291733
Expendtime_00 8291733

To get the values needed you can use your calculator and do the following:
(Month 1-12, Day 1-31, Hours 0-23, Seconds 0-59)
If you want the Event to start on the 8th month 5th day 6th hour and 10 seconds you would do this:
8*1000000 + 5*10000 + 6*100 + 10
Which gives us a start time of 8050610

And do the same for the end time.

Except for Gold > Dias and Dias > Gold NPCs, they only require an Hour format.
Start Time can be 0 hours to 24 hours
Any value over 24 in either start/end fields will give a start hour of 0 and end hour of 24
 
Last edited:
Newbie Spellweaver
Joined
Jan 19, 2015
Messages
90
Reaction score
17
To get the values needed you can use your calculator and do the following:
(Month 1-12, Day 1-31, Hours 0-23, Seconds 0-59)
If you want the Event to start on the 8th month 5th day 6th hour and 10 seconds you would do this:
8*1000000 + 5*10000 + 6*100 + 10
Which gives us a start time of 8050610

And do the same for the end time.
Hey Drewww,

thanx for this hint...If I edit the DB for example Expstarttime_00 8010600 and Expendtime_00 9010600 where I can find the NPCs or have to create the NPCs...?!

Greetings
Reaperman
 
Last edited:
Junior Spellweaver
Joined
Jul 9, 2014
Messages
168
Reaction score
53
I think, you would need to edit scripts.
BTW, thanks for info, didn't know it.
 
Junior Spellweaver
Joined
Apr 27, 2015
Messages
176
Reaction score
107
Event NPCs are spawned with some GM items.
/gm ? give 208958 - NPCs for Daily Quest Items
/gm ? give 207264 - Daily Presents
/gm ? give 201368 - NPCs for XP TP Debt
 
Newbie Spellweaver
Joined
Jan 19, 2015
Messages
90
Reaction score
17
Event NPCs are spawned with some GM items.
/gm ? give 208958 - NPCs for Daily Quest Items
/gm ? give 207264 - Daily Presents
/gm ? give 201368 - NPCs for XP TP Debt

Yes thats right, but after a server restart I have too respawn the npcs with these items. Give it a way that they are permanent ingame?
 
Junior Spellweaver
Joined
Apr 27, 2015
Messages
176
Reaction score
107
Oh in that case you use the GM Object Editor, with that tool you can save the NPC to the database so it reloads with the server.
Also if you are handy with SQL you can insert the data needed in to ROM_GlobalDB dbo.NPCdata
That is where all pre-saved NPC and objects are.
 
Junior Spellweaver
Joined
Jul 9, 2014
Messages
168
Reaction score
53
Sure.
Just use GM_ObjEdit addon and enable "save" flag on needed npc or just use spawn script with save flag enabled.
For ex.:


SetMode( HERE_MUST_BE_NPC_DB_ID_FOR_EX_FROM_CREATE_OBJ_FUNCTION, Hex("0xffffffff") - Def_Mode_Save);



For list of all flags you can look into Init_Role_ModeValue function(00017.lua).
 
Newbie Spellweaver
Joined
Jan 19, 2015
Messages
90
Reaction score
17
Hey Dreww and turmalin,

thx for this. I tested it with the GM_ObjEdit and it works. Thx for the hint with the spawn script!
 
Junior Spellweaver
Joined
Aug 9, 2019
Messages
170
Reaction score
26
I have a problem. If EXP, TP and Drop Npc get buff from one of them, the other two don't give buff. He tells me to come again tomorrow.

Although I set a droprate npc buff from lua codes, it gives a drop buff on my first purchase, but when I buy it again it causes magicbiskuvit
I have 2 strange problems this way. Can anyone help?
 
Back
Top