Advertisement
adrianoswatt

Troca Rápida de Itens no Slot

Sep 25th, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  1. function onUse(cid, item, fromPosition, itemEx, toPosition)
  2.     checkSlot = getItemType(item.itemid)
  3.     getSlot = getPlayerSlotItem(cid, checkSlot)
  4.     if getSlot.uid > 0 then
  5.         if getSlot.uid ~= item.uid then
  6.             doTransformItem(getSlot.uid, item.itemid)
  7.             doTransformItem(item.uid, getSlot.itemid)
  8.         end
  9.     end
  10. return true
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement