Jump to content
  • 0
Sign in to follow this  

Killing MOB A, everyone in the map gets item


Posted (edited)

Hi guys,

Sorry to bother again, but I've some idea that I would like to share if someone knows how to create this script.

How do we create a script like this?
If MOB A was killed by any player in Prontera, everyone in the map will be rewarded these item direct into their inventory.

-20% chance they will get 1 apple
-15% chance they will get 2 jellopy
-10% chance they will get 3 oridecon

Basically, my idea is something like when we spawn a mob in a map and if it's was killed everyone will get few item from the mob with some percentage on each item.

Thanks ^_^

Edited by cmsm94
  • Upvote 1

Share this post

Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0
-	script	sample	-1,{
		.map$ = "prontera";
		monster .map$,0,0,"--ja--",1002,1, strnpcinfo(3)+"::OnKill";
		addrid(5, 0, .map$);
		[email protected] = rand(100);
		if ([email protected] < 20) { // 20%
			getitem 512, 1;
		else if ([email protected] < 35) { // 15%
			getitem 909, 2;
		else if ([email protected] < 45) { // 10%
			getitem 985, 3;


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.

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.

Sign in to follow this  

  • Create New...

Important Information

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