Guest User

Untitled

a guest
May 21st, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local needPremmy = true
  2. local gainPertence = 50 -- attack speed que vai ganhar
  3.  
  4. function onUse(cid, item, fromPosition, itemEx, toPosition)
  5.  
  6. if (needPremmy == true and isPremium(cid) == true) or (needPremmy == false and isPremium(cid) == false) then
  7.     setItemAttackSpeed(itemEx.uid, getItemAttackSpeed(itemEx.uid)+gainPertence)
  8.     setItemName(itemEx.uid, getItemNameById(itemEx.itemid)..' AttackSpeed:'..gainPertence)
  9.     doRemoveItem(item.uid, 1)
  10. end
  11.  
  12. return TRUE
  13. end
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53. .
Add Comment
Please, Sign In to add comment