Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onUse(cid, item, frompos, item2, topos)
- local ball = getPlayerSlotItem(cid, 8)
- local pb = getPlayerSlotItem(cid, 8).uid
- if getItemAttribute(pb, "memory") then
- doPlayerSendTextMessage(cid, 20, "Esse Shiny Ditto jรก possui o Ditto Memory.")
- return true
- end
- if getItemAttribute(pb, "poke") ~= "Shiny Ditto" or isPlayer(cid) then
- doPlayerSendTextMessage(cid, 20, "O Ditto Memmory pode ser usado apenas no Shiny Ditto.")
- return true
- end
- if #getCreatureSummons(cid) >= 1 then
- doPlayerSendTextMessage(cid, 20, "Volte seu Shiny Ditto para a pokeball para utilizar o Ditto Memmory.")
- return true
- end
- if doPlayerRemoveItem(cid, 18028, 1) then
- doSetItemAttribute(getPlayerSlotItem(cid, 8).uid, "memory", "have")
- doPlayerSendTextMessage(cid, 20, "Parabens, agora esse Shiny Ditto pode usar o Ditto Memmory!")
- doRemoveItem(item.uid, 1)
- else
- doPlayerSendTextMessage(cid, 20, "Por favor, mova a Ditto Memory para a sua bag para usar.")
- return true
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement