karazu 33 Posted November 9, 2013 Hello I have a MAP with around 400 monsters, but some of them stuck in some area, I want them to be replenish every 5 hours. is it possible to make a script that in every 5 hours it will do @killmonster2 in a certain map? Quote Share this post Link to post Share on other sites
0 Patskie 88 Posted November 9, 2013 Give a try - script Sample -1,{ OnMinute00: if ((gettime(3)%5)==0) atcommand "@killmonster2"; end;} 1 karazu reacted to this Quote Share this post Link to post Share on other sites
0 jaBote 438 Posted November 9, 2013 I think you should put that NPC in a map in order to use that, or call a player, or use killmonsterall... Quote Share this post Link to post Share on other sites
0 karazu 33 Posted November 9, 2013 I think you should put that NPC in a map in order to use that, or call a player, or use killmonsterall... The Problem is I cannot be online almost of the time just to @killmonster. also If I will put an NPC somebody might abuse it. Quote Share this post Link to post Share on other sites
0 karazu 33 Posted November 9, 2013 Give a try - script Sample -1,{ OnMinute00: if ((gettime(3)%5)==0) atcommand "@killmonster2"; end;} I will try this one! Quote Share this post Link to post Share on other sites
0 karazu 33 Posted November 9, 2013 Give a try - script Sample -1,{ OnMinute00: if ((gettime(3)%5)==0) atcommand "@killmonster2"; end;} Can you make it in a specific MAP only please? Quote Share this post Link to post Share on other sites
0 jaBote 438 Posted November 9, 2013 Try this: - script Map killer -1,{OnMinute00: if ((gettime(3)%5)==0) atcommand "@killmonster2 gef_fild13"; // CHANGE THE MAP NAME end;} 1 karazu reacted to this Quote Share this post Link to post Share on other sites
0 kyeme 71 Posted November 9, 2013 Try this: - script Map killer -1,{OnMinute00: if ((gettime(3)%5)==0) atcommand "@killmonster2 gef_fild13"; // CHANGE THE MAP NAME end;} The command @killmonster2 <map name> is not working.. Instead of using the command @killmonster2 <map name>, use killmonsterall instead. *killmonsterall "<map name>"{,<type>};This command will kill all monsters on a specified map name, regardless of how they were spawned or what they are without triggering any event label attached to them, unless you specify 1 for type parameter. In this case, mob death labels will be allowed totrigger when there is no player. Any other number for this parameter won't be recognized. 1 Mumbles reacted to this Quote Share this post Link to post Share on other sites
0 karazu 33 Posted November 9, 2013 thank you very much! Quote Share this post Link to post Share on other sites
0 karazu 33 Posted November 9, 2013 (edited) so I will use this one atcommand "@killmonsterall gef_fild13"; ??sorry double post. internet is lagging Edited November 9, 2013 by karazu Quote Share this post Link to post Share on other sites
0 kyeme 71 Posted November 9, 2013 so I will use this one atcommand "@killmonsterall gef_fild13"; ?? sorry double post. internet is lagging - script Map killer -1,{OnMinute00: if ((gettime(3)%5)==0) killmonsterall "gef_fild13",-1; // CHANGE THE MAP NAME end;} Try -1 or 1 not sure Quote Share this post Link to post Share on other sites
0 karazu 33 Posted November 9, 2013 ok I will try! Quote Share this post Link to post Share on other sites
0 jaBote 438 Posted November 9, 2013 Main problem that I can remember for killmonsterall is that all the items the monsters drop will be all scattered on the map, the reason why I didn't want to use that. You can solve it by using cleanmap "<map name>"; after the killmonsterall, but beware this will also clean the items other users have already dropped there. Quote Share this post Link to post Share on other sites
0 karazu 33 Posted November 9, 2013 Main problem that I can remember for killmonsterall is that all the items the monsters drop will be all scattered on the map, the reason why I didn't want to use that. You can solve it by using cleanmap "<map name>"; after the killmonsterall, but beware this will also clean the items other users have already dropped there. Yes that is also the reason why I want to use monsterskill2 so that the monster will not drop. So how to do that in one script? killmonsterall and clean map? Quote Share this post Link to post Share on other sites
0 kyeme 71 Posted November 9, 2013 Main problem that I can remember for killmonsterall is that all the items the monsters drop will be all scattered on the map, the reason why I didn't want to use that. You can solve it by using cleanmap "<map name>"; after the killmonsterall, but beware this will also clean the items other users have already dropped there. Im now using the command 'killmonsterall' in my server. But the monster doesn't drop an item. Is this intended? The documentation didn't mention that the command 'killmonsterall' will not make the monsters drop an item. Quote Share this post Link to post Share on other sites
0 jaBote 438 Posted November 9, 2013 Last time I tried the monsters used to drop loot, if they don't then the cleanmap isn't needed. @Karazu: yeah, killmonsterall on that map, then cleanmap on that same map. Quote Share this post Link to post Share on other sites
0 karazu 33 Posted November 9, 2013 I tried to use @killmonsterall in my server it says command doesn't exist? via GM character btw.. Quote Share this post Link to post Share on other sites
0 kyeme 71 Posted November 9, 2013 @killmonster/@killmonster2 is for GM command, and 'killmonsterall' is for the script command. Quote Share this post Link to post Share on other sites
0 Patskie 88 Posted November 9, 2013 killmonsterall is a command script not an atcommand script Quote Share this post Link to post Share on other sites
0 Angelmelody 221 Posted November 9, 2013 (edited) just a idea , dunno whether it's working or not - script Map killer -1,{OnMinute00: if ((gettime(3)%5)==0){ setmapflag .map$,mf_nomobloot,1; setmapflag .map$,mf_nomvploot,1; killmonsterall .map$; setmapflag .map$,mf_nomobloot,0; setmapflag .map$,mf_nomvploot,0; } end;OnInit: set .map$,"gef_fild13"; // CHANGE THE MAP NAME end;} Edited November 9, 2013 by Angelmelody Quote Share this post Link to post Share on other sites
0 karazu 33 Posted November 9, 2013 I will try this first - script Map killer -1,{OnMinute00: if ((gettime(3)%5)==0) killmonsterall "gef_fild13",-1; // CHANGE THE MAP NAME end;} and then the 2nd - script Map killer -1,{OnMinute00: if ((gettime(3)%5)==0){ setmapflag .map$,mf_nomobloot,1; setmapflag .map$,mf_nomvploot,1; killmonsterall .map$; setmapflag .map$,mf_nomobloot,0; setmapflag .map$,mf_nomvploot,0; } end;OnInit: set .map$,"gef_fild13"; // CHANGE THE MAP NAME end;} Quote Share this post Link to post Share on other sites
Hello I have a MAP with around 400 monsters, but some of them stuck in some area, I want them to be replenish every 5 hours. is it possible to make a script that in every 5 hours it will do @killmonster2 in a certain map?
Share this post
Link to post
Share on other sites