Jump to content
  • 0

R>Special MVP drops script


Question

Posted (edited)

Hello everyone...I wanna ask if its possible to add more drops to MVPs using a script.

If so I wanna ask for an easy-to-be-configured script that will contain the following things:

 

1. All MVPs (including from branches)will have chances to drop the ff:

(5%)yggberry box, 2pcs (14232)

(3%)MVP voucher, 1pc(7615)

(2%)TCG card, 1pc(7227)

(0.5%)Proof of Donation, 1pc(7179)

 

2. Broadcast to the whole server if the MVP drops one or more of those items:

"Wow! (PlayerName) has obtained (item name)[(number of item)] from (MVP Name)."

ex.

Wow! Rick has obtained yggberrybox [2] from Dracula.

/help

 

 


bump

Edited by hyuna

6 answers to this question

Recommended Posts

Posted


- script Sample -1,{

OnNPCKillEvent:

if ( getmonsterinfo( killedrid, 22 ) ) {

for ( .@i = 0; .@i < getarraysize( .items ); .@i += 3 ) {

if ( rand( 100 ) < .items[ .@i + 2 ] ) {

getitem .items[ .@i ], .items[ .@i + 1 ];

announce "Wow! " +strcharinfo( 0 )+ " has obtained " +getitemname( .items[ .@i ] )+ " [" +.items[ .@i + 1 ]+ "] from " +getmonsterinfo(killedrid, 0)+ ".",0;

}

}

}

end;

OnInit:

// <item id>,<amount>,<chance>

setarray .items[0],14232, 2, 5,

7615, 1, 3,

7227, 1, 2,

7179, 1, 1;

end;

}

  • Upvote 1
Posted
-	script	Sample	-1,{
	OnNPCKillEvent:
		if ( getmonsterinfo( killedrid, 22 ) ) {
			for ( .@i = 0; .@i < getarraysize( .items ); .@i += 3 ) {
				if ( rand( 100 ) < .items[ .@i +  2 ] ) {
					getitem .items[ .@i ], .items[ .@i + 1 ];
					announce "Wow! " +strcharinfo( 0 )+ " has obtained " +getitemname( .items[ .@i ] )+ " [" +.items[ .@i + 1 ]+ "] from " +getmonsterinfo(killedrid, 0)+ ".",0;
				}
			}
		}
	end;
	
	OnInit:
		// <item id>,<amount>,<chance>
		setarray .items[0],14232, 2, 5,
				   7615, 1, 3,
				   7227, 1, 2,
				   7179, 1, 1;
		end;
}

THX so much...ITS working like I want it to....+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...