Advertisement
plugandplaydev

Use Pick Up Items

Jul 12th, 2015
294
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 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. - script UseItemPick -1,{
  8. //--Start of the Script
  9. OnPCLoginEvent:
  10. attachnpctimer ""+strcharinfo(0)+"";
  11. initnpctimer;
  12. end;
  13.  
  14. OnTimer10: //Check for 10 Miliseconds
  15. for (set @i,0; @i < getarraysize(.PickUPList); set @i,@i+1){
  16. if( countitem(.PickUPList[@i]) >= 1 ){
  17. //consumeitem .PickUPList[@i]; // use the item ( only fo Usable/Healing Items ( Potions or HP/SP Pots )
  18. delitem .PickUPList[@i],1; // delete the item
  19. // NOTE : add comment line // before consumeitem, if the item is not a consumable items ( by default its disabled )
  20. }
  21. }
  22. stopnpctimer;
  23. initnpctimer;
  24. end;
  25.  
  26.  
  27. OnInit:
  28. setarray .PickUPList,501,502,503,504,505; // put the item you want to removed once they pick up or once they have it in there inventory
  29. end;
  30. }
  31.  
  32. //--End of the Script
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement