Takizuki 0 Posted July 10, 2014 (edited) Guys, can i know how to make an NPC show as soon as all Monster are killed on specific map? Edited July 10, 2014 by pxl028 Quote Share this post Link to post Share on other sites
0 Dastgir 1246 Posted July 10, 2014 IF mobs are spawn by label, i.e monster "prontera",0,0,"Poring",PORING,10,"NPCNAME::OnPoringKilled"; you can do following OnPoringKilled:if (!mobcount("prontera","NPCNAME::OnPoringKilled")){//All mobs dead, do something.} else you have to initiate a timer(as follows): OnTimer60000: //Checks Every 1 minute if (!mobcount("prontera","all")){ //Do Something, All monsters is prontera is dead. }OnInit: initnpctimer; end; Quote Share this post Link to post Share on other sites
0 Takizuki 0 Posted July 10, 2014 (edited) thanks for your reply Dastgir but sorry im noob in scripting... hmm... PrizeGiver::OnPoringKilled ?? is this correct sample? // EVENT NPC ======================================================prontera,137,167,3 script Kill Event 63,{ monster "prontera",0,0,"Poring",PORING,10,"PrizeGiver::OnPoringKilled"; OnPoringKilled: if (!mobcount("prontera","PrizeGiver::OnPoringKilled")){ //All mobs dead, do something. <-- what's this for?? }}// PRIZE GIVER NPC ======================================================location script PrizeGiver 64,{ script for item} Edited July 10, 2014 by pxl028 Quote Share this post Link to post Share on other sites
0 Dastgir 1246 Posted July 10, 2014 // EVENT NPC ======================================================prontera,137,167,3 script Kill Event 63,{ monster "prontera",0,0,"Poring",PORING,10,"Kill Event::OnPoringKilled"; OnPoringKilled: if (!mobcount("prontera","Kill Event::OnPoringKilled")){ enablenpc "PrizeGiver"; } end;}location script PrizeGiver 64,{//script for itemOnInit:disablenpc "PrizeGiver";end;} By Show the NPC, I think you mean by enabling the npc.. Sorry. I misunderstood your question. Quote Share this post Link to post Share on other sites
0 Takizuki 0 Posted July 10, 2014 (edited) thanks alot /no1 Edited July 10, 2014 by pxl028 Quote Share this post Link to post Share on other sites
Guys, can i know how to make an NPC show as soon as all Monster are killed on specific map?
Edited by pxl028Share this post
Link to post
Share on other sites