Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onUse(cid, item, fromPosition, itemEx, toPosition)
- local _VAL = 10 -- value of upgrade, example damage is 100 boost + 5 = damage 150
- local _ALLOWEDS = {} -- example {2723, 8329, 8921}
- if isInArray(_ALLOWEDS, itemEx.itemid) then
- setWandExtraDmg(itemEx, _VAL)
- doSendMagicEffect(fromPosition, 28)
- doRemoveItem(item.uid, 1)
- doSendAnimatedText(fromPosition, "+ 1", math.random(210, 250))
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement