- script Finding NPC 757,{ OnInit: set .itemid,7539; set .quantity,70; end; OnWhisperGlobal: if( getgmlevel() < 80 ) end;OnClock0130:OnClock0300:OnClock0430:OnClock0600:OnClock0730:OnClock0900:OnClock1030:OnClock1200:OnClock1330:OnClock1500:OnClock1630:OnClock1800:OnClock1930:OnClock2100:OnClock2230: set .spawn,rand(1,50); set .mob,rand(1078,1085); killmonster .maps$[.s],"All"; // -- You can add or chance maps and IDs with a maximum of 127 each. setarray .maps$[0],"prontera","geffen","payon","alberta","morocc","aldebaran","izlude","comodo","umbala","yuno","hugel","rachel","veins","einbroch"; set .s,rand(getarraysize(.maps$)); monster .maps$[.s],0,0,"Plz don't kill me!",.mob,.spawn,strnpcinfo(0)+"::OnMobKilled"; // -- Message to Announce when Event start setarray .message$[0],"Total of "+.spawn+" "+getmonsterinfo(.mob,0)+" has been Spawned in map "+strtoupper(.maps$[.s]), "Find all the "+getmonsterinfo(.mob,0)+" and kill it","Every single "+getmonsterinfo(.mob,0)+" you will will gain you "+.quantity+" x "+getitemname( .itemid ), "Hurry up and go now"; for( set .i,0; .i < getarraysize( .message$ ); set .i,.i + 1 ) { announce .message$[.i],0; sleep 1000; } end;OnMobKilled: set .spawn,.spawn-1; getitem .itemid,.quantity; if( .spawn ) announce "[ "+strcharinfo(0)+" ] Killed 1 "+getmonsterinfo(.mob,0)+", Left "+.spawn+" "+getmonsterinfo(.mob,0)+"",bc_map; else announce "Event End, all the "+getmonsterinfo(.mob,0)+" has been Killed.",bc_map; OnTimer60000: killmonster ".maps$[.s]","All"; atcommand "@killmonster2"; end; }
Please check line 52 -54,
please help me to make this to have a count down of 3 minutes, 3 minutes countdown should be trigger only when 1 monster has been killed. even though all summoned monster has not been killed yet the event should be ended.
Please check line 52 -54,
please help me to make this to have a count down of 3 minutes, 3 minutes countdown should be trigger only when 1 monster has been killed. even though all summoned monster has not been killed yet the event should be ended.
I tried my best, but still no luck..
Thanks.
Share this post
Link to post
Share on other sites