Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if isDitto(mysum) and isMonster(item2.uid) and pokes[getCreatureName(item2.uid)] then
- local m = getCreatureMaster(cid)
- local p = getPlayerSlotItem(m, 8)
- local proibidosditto = {"Celebi", "Moltres", "Zapdos", "Suicune", "Entei", "Raikou", "Suicune", "Lugia", "Mewtwo", "Mew"} -- Nunca permitir pro ditto
- local proibidosshinyditto = {"Celebi", "Moltres", "Zapdos", "Suicune", "Entei", "Raikou", "Suicune", "Lugia", "Mewtwo", "Mew"} -- Nunca permitir pro shiny ditto
- local proibidosboost = {"Shiny Dragonite", "Shiny Snorlax", "Shiny Gyarados", "Shiny Scyther"} -- Permitir se ditto for +50
- local boost = getItemAttribute(thisball.uid, "boost") or 0
- if getCreatureName(item2.uid) == "Ditto" or getCreatureName(item2.uid) == "Shiny Ditto" then
- doPlayerSendCancel(cid, "Your ".. getPokeName(mysum) .." can't transform into another ".. getCreatureName(item2.uid) ..".")
- markPos(mysum, unfix)
- return true
- end
- if isInArray(proibidosditto, getCreatureName(item2.uid)) then --Checa a lista
- doPlayerSendCancel(cid, "Your ".. getPokeName(mysum) .." can't transform into that pokemon.")
- markPos(mysum, unfix)
- return true
- end
- if isInArray(proibidosshinyditto, getCreatureName(item2.uid)) then --Checa a lista
- doPlayerSendCancel(cid, "Your ".. getPokeName(mysum) .." can't transform into that pokemon.")
- markPos(mysum, unfix)
- return true
- end
- if isInArray(proibidosboost, getCreatureName(item2.uid)) and boost < 50 then --Checa a lista
- doPlayerSendCancel(cid, "Your ".. getPokeName(mysum) .." can't transform into that pokemon.")
- markPos(mysum, unfix)
- return true
- end
- if getCreatureName(item2.uid) == getPlayerStorageValue(mysum, 1010) then
- doPlayerSendCancel(cid, "Your ".. getPokeName(mysum) .." is already transformed into that pokemon.")
- markPos(mysum, unfix)
- return true
- end
- markPos(mysum, unfix)
- setPlayerStorageValue(mysum, 1010, getCreatureName(item2.uid))
- if getCreatureName(mysum) == "Ditto" then
- doItemSetAttribute(thisball.uid, "ehditto", 1)
- elseif getCreatureName(mysum) == "Shiny Ditto" then
- doItemSetAttribute(thisball.uid, "ehshinyditto", 1)
- end
- doItemSetAttribute(thisball.uid, "poke", getCreatureName(item2.uid))
- doUpdateMoves(cid)
- doSetCreatureOutfit(mysum, getCreatureOutfit(item2.uid), -1)
- doCreatureSay(mysum, "TRANSFORM!", TALKTYPE_MONSTER)
- doFaceCreature(mysum, getThingPos(item2.uid))
- doSendMagicEffect(getThingPos(mysum), 184)
- doCreatureSetNick(mysum), getPokeName(mysum))
- doPlayerSay(cid, ""..getPokeName(mysum)..", transform into "..getArticle(name).." "..name.."!", 1)
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment