Advertisement
plugandplaydev

Monster Drop

Jul 11th, 2015
435
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. //============================================================//
  2. // This script is made by Plug and Play //
  3. // Contact us on Facebook http://facebook.com/plugandplayPH //
  4. // Website : http://plugandplay.cf //
  5. //============================================================//
  6.  
  7. //=============== NOTE =============== //
  8. // Only for Accessory Card Only //
  9. //=================================== //
  10.  
  11. - script MonsterDrop -1,{
  12. OnInit:
  13. setarray .item_drop,512,513,514,515; // Auto Receive Item
  14. setarray .monster_id[0],1113,1114,1115,1116; // Specific Monster
  15. set .item_size,getarraysize( .item_drop ); // Do not touch this
  16. set .monster_size, getarraysize( .monster_id ); // Do not touch this
  17. set .item_chance,50; // default by 50 = 50%
  18. set .card_equipped,4205; // default by 4205 = Mimic Card
  19. end;
  20.  
  21. OnNPCKillEvent:
  22. if ( getequipcardid(7,0) == .card_equipped || getequipcardid(8,0) == .card_equipped ){
  23. if ( rand( 100 ) <= .item_chance ){
  24. for( .@i = 0; .@i < .monster_size; .@i++ )
  25. if( killedrid == .monster_id[.@i] ){
  26. getitem .item_drop[ rand( .item_size ) ],1;
  27. }
  28. }
  29. }
  30.  
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement