Jump to content
  • 0
Sign in to follow this  
karazu

@killmonster2 every five hours?

Question

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

20 answers to this question

Recommended Posts

  • 0

 

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. 

Share this post


Link to post
Share on other sites
  • 0

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.

 

 

Share this post


Link to post
Share on other sites
  • 0

 

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? 

Share this post


Link to post
Share on other sites
  • 0

so I will use this one

 

 

atcommand "@killmonsterall gef_fild13";  

??

sorry double post. internet is lagging 

Edited by karazu

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
Share on other sites
  • 0

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.

Share this post


Link to post
Share on other sites
  • 0

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?

Share this post


Link to post
Share on other sites
  • 0

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.

Share this post


Link to post
Share on other sites
  • 0

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.

Share this post


Link to post
Share on other sites
  • 0

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 by Angelmelody

Share this post


Link to post
Share on other sites
  • 0

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;} 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.