hyuna Posted March 15, 2014 Posted March 15, 2014 (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. bump Edited March 17, 2014 by hyuna Quote
Patskie Posted March 15, 2014 Posted March 15, 2014 - 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; } 1 Quote
hyuna Posted March 16, 2014 Author Posted March 16, 2014 - 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 Quote
Patskie Posted October 21, 2014 Posted October 21, 2014 is this still working? Try instead of waiting for an answer Quote
Diconfrost VaNz Posted October 22, 2014 Posted October 22, 2014 is this still working? Try instead of waiting for an answer i tried but it doesn't work on me. So, i was wondering if this still works on others. Quote
Question
hyuna
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.
bump
Edited by hyuna6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.