Jump to content
  • 0

I need script please ! HELP!


Vince Jimenez

Question


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  68
  • Reputation:   1
  • Joined:  10/16/12
  • Last Seen:  

 
 

Hello guys,


can i request a Script every 10minutes auto command @killmonster2(WithoutDROP) on certain map?


because on my deadbranch room NPC, some of my players spamming Bloody Branch! and some of the newbie can't hunt because so many MVP's


So i request to have an script which is every 10minutes automtic @killmonster2(WithoutDROP)

my branchroom map is New_1-3, New_2-3, New_3-3, New_4-3, New_5-3



Thanks in advance

and sorry sorry for my Bad ENGLISH!

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 1

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  


OnMinute00:

OnMinute10:

OnMinute20:

OnMinute30:

OnMinute40:

OnMinute50:

for ( .@i = 1; .@i <= 5; .@i++ )

if ( !getmapusers( "New_"+.@i+"-3" ) )

killmonster "New_"+.@i+"-3","All";

end;

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  796
  • Reputation:   101
  • Joined:  05/23/12
  • Last Seen:  

I cant recommend it to send a command like this every 10 Minutes because if you haven't a good host system or too many player it can be lag a bit and sometimes the server can crash but here is a script to to this.

-	script	KillMobs	-1,{

OnInit:
	while(1){
		killmonster2 "New_1-3";
		killmonster2 "New_2-3";
		killmonster2 "New_3-3";
		killmonster2 "New_4-3";
		killmonster2 "New_5-3";
		sleep 600000;
	}
	end;
}

Best regards,

Rynbef~

Edited by Rynbef
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  283
  • Reputation:   31
  • Joined:  07/08/14
  • Last Seen:  

You will never make your server crash or lag with that script xD

But still I wouldn't recommend you to clean the maps if players are on it because it will eventually kill the monsters they just spawned.

-	script	KillMobs	-1,{

OnInit:
OnTimer600000:
	if (!getmapusers("New_1-3")) killmonster2 "New_1-3";
	if (!getmapusers("New_2-3")) killmonster2 "New_2-3";
	if (!getmapusers("New_3-3")) killmonster2 "New_3-3";
	if (!getmapusers("New_4-3")) killmonster2 "New_4-3";
	if (!getmapusers("New_5-3")) killmonster2 "New_5-3";
	initnpctimer;
	end;
}

It will clean the map every 10 minutes only if there are no players on them

 

Don't worry you won't lag at all even if there are thousands of mobs in them ^^

Link to comment
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.   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.

×
×
  • Create New...