Advertisement
Skymagnum

Untitled

May 18th, 2013
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.46 KB | None | 0 0
  1. function onUse(cid, item, fromPosition, itemEx, toPosition)
  2.  
  3. local _VAL = 10 -- value of upgrade, example damage is 100 boost + 5 = damage 150
  4. local _ALLOWEDS = {} -- example {2723, 8329, 8921}
  5.  
  6.     if isInArray(_ALLOWEDS, itemEx.itemid) then
  7.         setWandExtraDmg(itemEx, _VAL)
  8.         doSendMagicEffect(fromPosition, 28)
  9.         doRemoveItem(item.uid, 1)
  10.         doSendAnimatedText(fromPosition, "+ 1", math.random(210, 250))
  11.     end
  12.  
  13.     return true
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement