[CD3.55] event autorun ?

Play Now

Mart393

Dedicated Member
Dedicated Member
Dec 15, 2011
167
14
45
Hi again :(


I'm trying to get an event is automatically run every so often, but it still fails.


I've tried:
#IF
HOUR 22
#ACT
etc ...


What happens with that is that this code is executed only if I'm connected to that time, if I connect after the event has not been run. I do not get it.


What I want is that the event is run automatically though is not connected.


Sorry for the questions that I have and thank you very much as always!

---------- Post Merged at 11:51 PM ---------- Previous Post was at 10:47 PM ----------

Sorry, it's solved! thanks :)
 

kastaña

Dedicated Member
Dedicated Member
Jun 18, 2012
15
1
29
in 00Default.txt



[@Event]
#CALL [System\Event1.txt] @Event2

in system Event1.txt

{
[@Event2]
#ACT
TIMECALL 17 05 @startautoeve
TIMECALL 18 30 @stopautoeve


[@startautoeve]
#act
MonGenP "Map,X,Y,R" mob amount
EventMsg [Grobal] "The mighty Taurus Zuma has just been resurrected." 200

[@stopautoeve]
#act
EventMsg [Grobal] "The powerful zumataurus went to his kingdom." 200
monclear "MAP" Zumataurus


}
 
Upvote 0

idaBigA

Holley Mir 3!!
VIP
Oct 28, 2003
1,969
118
290
Stoke, UK
You can also do this via any NPC using

[@_Startup]

This runs every time the NPC is loaded (either on server start or on Reload of that NPC).

So, something like
Code:
[@_Startup]
#ACT
Goto @TimeChecker


[@TimeChecker]
#IF
Hour 17 17   ;Hour must be 17 (Can be a range i.e. 17-18).
Min   05 05  ;Minute must be 05 (Can be a range as above).
#ACT
MonGenP "Map,X,Y,R" mob amount
EventMsg [Grobal] "The mighty Taurus Zuma has just been resurrected." 200

#IF
#ACT
Delaygoto grobal 5 @TimeChecker
 
Upvote 0