Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onUse(cid, item, fromPosition, itemEx, toPosition)
- local useItem = Item(item.uid)
- local targetItem = Item(itemEx.uid)
- local player = Player(cid)
- if useItem:getId() == 21426 then
- if not targetItem:isItem() then
- return true
- end
- if bit.band(targetItem:getType():getSlotPosition(), slots[CONST_SLOT_ARMOR]) == slots[CONST_SLOT_ARMOR] then
- targetItem:setAttribute(ITEM_ATTRIBUTE_TEXT, "|hmReg:10|")
- end
- elseif useItem:getId() == 21425 then
- if not targetItem:isItem() then
- return true
- end
- print(fetchAttr(targetItem:getAttribute(ITEM_ATTRIBUTE_TEXT)))
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement