Yomigaeru Posted June 5, 2013 Group: Members Topic Count: 23 Topics Per Day: 0.00 Content Count: 89 Reputation: 5 Joined: 12/25/11 Last Seen: January 3, 2019 Share Posted June 5, 2013 @topic for example i spawn a poring at 5@tower. how can i make it respawn 1 month after it got killed and the timer not be affected by the server going down? (countdown still working even the server is not online. is that possible?) tnx in advance. Quote Link to comment Share on other sites More sharing options...
Jaburak Posted June 5, 2013 Group: Members Topic Count: 48 Topics Per Day: 0.01 Content Count: 1125 Reputation: 236 Joined: 07/30/12 Last Seen: April 13 Share Posted June 5, 2013 OnDay0607: // this triggered on june 7th. OnDay0707: // july 7th. Quote Link to comment Share on other sites More sharing options...
Yomigaeru Posted June 6, 2013 Group: Members Topic Count: 23 Topics Per Day: 0.00 Content Count: 89 Reputation: 5 Joined: 12/25/11 Last Seen: January 3, 2019 Author Share Posted June 6, 2013 hmmm, you mean like this for example? OnDay0607: OnDay0707 monster "5@tower",0,0,"Poring",1002,1,0; ? Quote Link to comment Share on other sites More sharing options...
Jaburak Posted June 6, 2013 Group: Members Topic Count: 48 Topics Per Day: 0.01 Content Count: 1125 Reputation: 236 Joined: 07/30/12 Last Seen: April 13 Share Posted June 6, 2013 hmmm, you mean like this for example? OnDay0607: OnDay0707 monster "5@tower",0,0,"Poring",1002,1,0; ? Yes. Quote Link to comment Share on other sites More sharing options...
Yomigaeru Posted June 6, 2013 Group: Members Topic Count: 23 Topics Per Day: 0.00 Content Count: 89 Reputation: 5 Joined: 12/25/11 Last Seen: January 3, 2019 Author Share Posted June 6, 2013 but there will be no possibility that a mob will respawn 1 month after it's killed. let's say, the poring was killed july 06. since the script activates on july 07, it will respawn 1 day after it gets killed right? Quote Link to comment Share on other sites More sharing options...
Jarek Posted June 6, 2013 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 143 Reputation: 30 Joined: 12/23/11 Last Seen: March 9 Share Posted June 6, 2013 prontera,1,1,0 script MobController -1,{ OnMobDeath: initnpctimer; end; OnTimer2592000000: stopnpctimer; OnInit: monster "prontera",150,150,"Special Poring",1002,1,"MobController::OnMobDeath"; end; } Quote Link to comment Share on other sites More sharing options...
Jaburak Posted June 6, 2013 Group: Members Topic Count: 48 Topics Per Day: 0.01 Content Count: 1125 Reputation: 236 Joined: 07/30/12 Last Seen: April 13 Share Posted June 6, 2013 but there will be no possibility that a mob will respawn 1 month after it's killed. let's say, the poring was killed july 06. since the script activates on july 07, it will respawn 1 day after it gets killed right? OnDay0707: // This triggered only when the server dates reach July 7, there will be no monster respawn after that day unless you add another dates on the script. Quote Link to comment Share on other sites More sharing options...
Yomigaeru Posted June 6, 2013 Group: Members Topic Count: 23 Topics Per Day: 0.00 Content Count: 89 Reputation: 5 Joined: 12/25/11 Last Seen: January 3, 2019 Author Share Posted June 6, 2013 prontera,1,1,0 script MobController -1,{ OnMobDeath: initnpctimer; end; OnTimer2592000000: stopnpctimer; OnInit: monster "prontera",150,150,"Special Poring",1002,1,"MobController::OnMobDeath"; end; } will this timer still work even though the server is offline when for lets say 3 days? Quote Link to comment Share on other sites More sharing options...
Jarek Posted June 6, 2013 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 143 Reputation: 30 Joined: 12/23/11 Last Seen: March 9 Share Posted June 6, 2013 will this timer still work even though the server is offline when for lets say 3 days?no ofcI rewrote npc, but this npc consumes space for two global variables prontera,1,1,0 script MobController -1,{ OnMobDeath: $d = gettime(8) + 30; //day of the year + 1 month if ($d > 365) $d -= 365; $w = 1; // $w = wait for spawn, 1 or 0 end; OnClock0000: //everyday at midnight if (!$w || (gettime(8) != $d)) end; //ignore if we are not waiting for spawn or if it's a wrong day $w = 0; //go to spawning OnInit: if (!$w) monster "prontera",150,150,"Special Poring",1002,1,"MobController::OnMobDeath"; end; } Quote Link to comment Share on other sites More sharing options...
Yomigaeru Posted June 6, 2013 Group: Members Topic Count: 23 Topics Per Day: 0.00 Content Count: 89 Reputation: 5 Joined: 12/25/11 Last Seen: January 3, 2019 Author Share Posted June 6, 2013 though it's hard to test it since there is a month of gap, thanks as of now. I'll try it later. Quote Link to comment Share on other sites More sharing options...
Question
Yomigaeru
@topic
for example i spawn a poring at 5@tower.
how can i make it respawn 1 month after it got killed and the timer not be affected by the server going down? (countdown still working even the server is not online. is that possible?)
tnx in advance.
Link to comment
Share on other sites
9 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.