Jump to content
  • 0

Question

4 answers to this question

Recommended Posts

  • 2
Posted (edited)
prontera,0,0,0	script	Clear-Monsters	444,{
	.@zeny = 10000000;
	mes "do you like to clear all the monsters in this map ?";
	mes "It will cost you " + F_InsertComma(.@zeny) + "z";
	if(select("Yes:No") == 2)
		end;
	clear;
	if(Zeny < .@zeny){
		mes "you don't have " + F_InsertComma(.@zeny) + "z";
		end;
	}
	Zeny -= .@zeny;
	killmonsterall(strnpcinfo(4));
	mes "Done!";
	end;
}

 

Edited by sader1992
  • Upvote 1
  • MVP 1
  • Like 1
  • 1
Posted
1 hour ago, Get Backers said:

Thank you so much its ok can you add if there is no monster on the map can not use clear monster.!

prontera,0,0,0	script	Clear-Monsters	444,{
	if(!getmapunits(BL_MOB,strnpcinfo(4))){
		mes "no monsters in this map!";
		end;
	}
	.@zeny = 10000000;
	mes "do you like to clear all the monsters in this map ?";
	mes "It will cost you " + F_InsertComma(.@zeny) + "z";
	if(select("Yes:No") == 2)
		end;
	clear;
	if(Zeny < .@zeny){
		mes "you don't have " + F_InsertComma(.@zeny) + "z";
		end;
	}
	Zeny -= .@zeny;
	killmonsterall(strnpcinfo(4));
	mes "Done!";
	end;
}

 

  • Upvote 1
  • Like 1

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...