Jump to content
  • 0

R>Special MVP drops script


hyuna

Question


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  144
  • Reputation:   4
  • Joined:  10/28/12
  • Last Seen:  

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
Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  


- 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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  144
  • Reputation:   4
  • Joined:  10/28/12
  • Last Seen:  

-	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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  974
  • Reputation:   41
  • Joined:  11/13/11
  • Last Seen:  

is this still working?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

is this still working?

Try instead of waiting for an answer :D

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  974
  • Reputation:   41
  • Joined:  11/13/11
  • Last Seen:  

 

is this still working?

Try instead of waiting for an answer :D

 

 

 

i tried but it doesn't work on me. So, i was wondering if this still works on others. /heh

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