@killmonster2 every five hours?

karazu

New member
Messages
1,115
Points
0
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?

 
Give a try 

Code:
-	script	Sample	-1,{	OnMinute00:		if ((gettime(3)%5)==0)			atcommand "@killmonster2";		end;}
 
I think you should put that NPC in a map in order to use that, or call a player, or use killmonsterall...

 
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.

 
Try this:

Code:
-	script	Map killer	-1,{OnMinute00:	if ((gettime(3)%5)==0)	atcommand "@killmonster2 gef_fild13"; // CHANGE THE MAP NAME	end;}
 
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.

Code:
*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. 
 
Last edited by a moderator:
so I will use this one

 

atcommand "@killmonsterall gef_fild13";  
??

sorry double post. internet is lagging 

 
Last edited by a moderator:
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

 
Last edited by a moderator:
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.

 
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?

 
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.

 
Last edited by a moderator:
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.

 
I tried to use @killmonsterall in my server it says command doesn't exist? via GM character btw..

 
@killmonster/@killmonster2 is for GM command, and 'killmonsterall' is for the script command.

 
Last edited by a moderator:
killmonsterall is a command script not an atcommand script

 
Back
Top