Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onUse(cid, item, fromPosition, itemEx, toPosition)
- if isContainer(item.uid) then
- for slot = 1, getContainerSize(item.uid) do
- local container = getContainerItem(item.uid, slot).uid
- if isPokeball(container) then
- if getItemAttribute(container, "fainted") then
- doTransformItem(container, icons[getItemAttribute(container, "poke")].off)
- else
- doTransformItem(container, icons[getItemAttribute(container, "poke")].on)
- end
- end
- end
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement