Jump to content
  • 0

clean killmonster in map


Question

Posted

how to killmonster every hour if or if no player in map   

like on branch room   will killmonster2  every 20mins or hour  if theres no player inside 

3 answers to this question

Recommended Posts

  • 0
Posted

Hello,

this should do what you want.

-	script	mob_cleaner	-1,{
	OnTimer60000:
		for(.@i = 0; .@i < getarraysize(.cleanMaps$); .@i++) 
			if(getmapunits(BL_PC, .cleanMaps$[.@i]) == 0)
				killmonsterall(.cleanMaps$[.@i]);

		setnpctimer 0;
	end;

	OnInit:
		setarray .cleanMaps$[0], "prontera", "payon";
		initnpctimer;
}

 

  • 0
Posted
23 hours ago, Winterfox said:

Hello,

this should do what you want.

-	script	mob_cleaner	-1,{
	OnTimer60000:
		for(.@i = 0; .@i < getarraysize(.cleanMaps$); .@i++) 
			if(getmapunits(BL_PC, .cleanMaps$[.@i]) == 0)
				killmonsterall(.cleanMaps$[.@i]);

		setnpctimer 0;
	end;

	OnInit:
		setarray .cleanMaps$[0], "prontera", "payon";
		initnpctimer;
}

 

ty

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.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...