Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //============================================================//
- // This script is made by Plug and Play //
- // Contact us on Facebook http://facebook.com/plugandplayPH //
- // Website : http://plugandplay.cf //
- //============================================================//
- //=============== NOTE =============== //
- // Only for Accessory Card Only //
- //=================================== //
- - script MonsterDrop -1,{
- OnInit:
- setarray .item_drop,512,513,514,515; // Auto Receive Item
- setarray .monster_id[0],1113,1114,1115,1116; // Specific Monster
- set .item_size,getarraysize( .item_drop ); // Do not touch this
- set .monster_size, getarraysize( .monster_id ); // Do not touch this
- set .item_chance,50; // default by 50 = 50%
- set .card_equipped,4205; // default by 4205 = Mimic Card
- end;
- OnNPCKillEvent:
- if ( getequipcardid(7,0) == .card_equipped || getequipcardid(8,0) == .card_equipped ){
- if ( rand( 100 ) <= .item_chance ){
- for( .@i = 0; .@i < .monster_size; .@i++ )
- if( killedrid == .monster_id[.@i] ){
- getitem .item_drop[ rand( .item_size ) ],1;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement