no Movements pareçe ta tudo certo, posta a pokeballs em lib INTEIRO .
- Fórum
- OTServ
- Suporte
- Tópicos Sem Resposta
- [Encerrado] [Error] Error Iconsystem, e da Error no MoveEvents
[Encerrado] [Error] Error Iconsystem, e da Error no MoveEvents
Por josegremista, 30 de jan. de 2013 em Tópicos Sem Resposta
info
Grupo: Infante
Registrado: 25/01/12
Posts: 1.6k
Reputação: +330

info
Grupo: Visconde
Registrado: 10/09/12
Posts: 476
Reputação: +2
Char no Tibia: Esqueci

@Stylomalso ali ta a pokeballs inteira eu só fiz 1 poke pra fazer o teste, pra ver se funfava mesmo.
Eu irei colocar todos os arquivos que eu modifikei e vc ve se tem algo errado ok ?
info
Grupo: Infante
Registrado: 25/01/12
Posts: 1.6k
Reputação: +330

cara manda o arquivo da pokeballs ¬¬' n importa q tu fez 1 só só manda lol
info
Grupo: Visconde
Registrado: 10/09/12
Posts: 476
Reputação: +2
Char no Tibia: Esqueci

Aki StyloMaldoso todos as scripters e tangs dos xml :
1°Data/actions/scripts. portraiticons.lua
function onUse(cid, item, frompos, item2, topos)
local x = icons[getItemAttribute(getPlayerSlotItem(cid, 8).uid, "poke")]
local y = icons[getItemAttribute(getPlayerSlotItem(cid, 3).uid, "poke")]
if getPlayerStorageValue(cid, 8955) <= 0 then
if x and getPlayerSlotItem(cid, 8).itemid == 11826 then -- Pokeball
doTransformItem(getPlayerSlotItem(cid, 8).uid, x.on)
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "ball", "pokeball")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "morta", "no")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "icone", "yes")
elseif x and getPlayerSlotItem(cid, 8).itemid == 11828 then -- Pokeball Morta
doTransformItem(getPlayerSlotItem(cid, 8).uid, x.off)
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "ball", "pokeball")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "morta", "yes")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "icone", "yes")
elseif x and getPlayerSlotItem(cid, 8).itemid == 11827 then -- Pokeball Usada
doTransformItem(getPlayerSlotItem(cid, 8).uid, x.use)
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "ball", "pokeball")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "morta", "no")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "icone", "yes")
elseif x and getPlayerSlotItem(cid, 8).itemid == 11829 then -- Ultraball
doTransformItem(getPlayerSlotItem(cid, 8).uid, x.on)
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "ball", "ultraball")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "morta", "no")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "icone", "yes")
elseif x and getPlayerSlotItem(cid, 8).itemid == 11831 then -- Ultraball Morta
doTransformItem(getPlayerSlotItem(cid, 8).uid, x.off)
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "ball", "ultraball")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "morta", "yes")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "icone", "yes")
elseif x and getPlayerSlotItem(cid, 8).itemid == 11830 then -- Ultraball Usada
doTransformItem(getPlayerSlotItem(cid, 8).uid, x.use)
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "ball", "ultraball")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "morta", "no")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "icone", "yes")
elseif x and getPlayerSlotItem(cid, 8).itemid == 11835 then -- Superball
doTransformItem(getPlayerSlotItem(cid, 8).uid, x.on)
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "ball", "superball")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "morta", "no")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "icone", "yes")
elseif x and getPlayerSlotItem(cid, 8).itemid == 11837 then -- Superball Morta
doTransformItem(getPlayerSlotItem(cid, 8).uid, x.off)
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "ball", "superball")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "morta", "yes")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "icone", "yes")
elseif x and getPlayerSlotItem(cid, 8).itemid == 11836 then -- Superball Usada
doTransformItem(getPlayerSlotItem(cid, 8).uid, x.use)
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "ball", "superball")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "morta", "no")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "icone", "yes")
elseif x and getPlayerSlotItem(cid, 8).itemid == 1469 then -- Greatball
doTransformItem(getPlayerSlotItem(cid, 8).uid, x.on)
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "ball", "greatball")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "morta", "no")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "icone", "yes")
elseif x and getPlayerSlotItem(cid, 8).itemid == 1471 then -- Greatball Morta
doTransformItem(getPlayerSlotItem(cid, 8).uid, x.off)
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "ball", "greatball")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "morta", "yes")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "icone", "yes")
elseif x and getPlayerSlotItem(cid, 8).itemid == 1470 then -- Greatball Usada
doTransformItem(getPlayerSlotItem(cid, 8).uid, x.use)
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "ball", "greatball")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "morta", "no")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "icone", "yes")
elseif x and getPlayerSlotItem(cid, 8).itemid == 11740 then -- Shiny Greatball
doTransformItem(getPlayerSlotItem(cid, 8).uid, x.on)
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "ball", "sgreatball")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "morta", "no")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "icone", "yes")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "shiny", "yes")
elseif x and getPlayerSlotItem(cid, 8).itemid == 11742 then -- Shiny Greatball Morta
doTransformItem(getPlayerSlotItem(cid, 8).uid, x.off)
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "ball", "sgreatball")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "morta", "yes")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "icone", "yes")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "shiny", "yes")
elseif x and getPlayerSlotItem(cid, 8).itemid == 11741 then -- Shiny Greatball Usada
doTransformItem(getPlayerSlotItem(cid, 8).uid, x.use)
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "ball", "sgreatball")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "morta", "no")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "icone", "yes")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "shiny", "yes")
elseif x and getPlayerSlotItem(cid, 8).itemid == 11743 then -- Shiny Super
doTransformItem(getPlayerSlotItem(cid, 8).uid, x.on)
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "ball", "ssuperball")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "morta", "no")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "icone", "yes")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "shiny", "yes")
elseif x and getPlayerSlotItem(cid, 8).itemid == 11745 then -- Shiny Super Morta
doTransformItem(getPlayerSlotItem(cid, 8).uid, x.off)
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "ball", "ssuperball")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "morta", "yes")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "icone", "yes")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "shiny", "yes")
elseif x and getPlayerSlotItem(cid, 8).itemid == 11744 then -- Shiny Superball Usada
doTransformItem(getPlayerSlotItem(cid, 8).uid, x.use)
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "ball", "ssuperball")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "morta", "no")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "icone", "yes")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "shiny", "yes")
elseif x and getPlayerSlotItem(cid, 8).itemid == 11746 then -- Shiny Ultra
doTransformItem(getPlayerSlotItem(cid, 8).uid, x.on)
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "ball", "sultraball")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "morta", "no")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "icone", "yes")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "shiny", "yes")
elseif x and getPlayerSlotItem(cid, 8).itemid == 11748 then -- Shiny Ultra Morta
doTransformItem(getPlayerSlotItem(cid, 8).uid, x.off)
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "ball", "sultraball")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "morta", "yes")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "icone", "yes")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "shiny", "yes")
elseif x and getPlayerSlotItem(cid, 8).itemid == 11747 then -- Shiny Ultraball Usada
doTransformItem(getPlayerSlotItem(cid, 8).uid, x.use)
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "ball", "sultraball")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "morta", "no")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "icone", "yes")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "shiny", "yes")
elseif x and getPlayerSlotItem(cid, 8).itemid == 11737 then -- Shiny Poke
doTransformItem(getPlayerSlotItem(cid, 8).uid, x.on)
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "ball", "spokeball")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "morta", "no")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "icone", "yes")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "shiny", "yes")
elseif x and getPlayerSlotItem(cid, 8).itemid == 11739 then -- Shiny Poke Morta
doTransformItem(getPlayerSlotItem(cid, 8).uid, x.off)
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "ball", "spokeball")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "morta", "yes")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "icone", "yes")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "shiny", "yes")
elseif x and getPlayerSlotItem(cid, 8).itemid == 11738 then -- Shiny Pokeball Usada
doTransformItem(getPlayerSlotItem(cid, 8).uid, x.use)
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "ball", "spokeball")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "morta", "no")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "icone", "yes")
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "shiny", "yes")
end
local bp = getPlayerSlotItem(cid, CONST_SLOT_BACKPACK)
local balls = getItemsInContainerById(bp.uid, 11826) ------ Pokeball
if #balls >= 1 then
for _, ball in pairs (balls) do
local x = icons[getItemAttribute(ball, "poke")]
doTransformItem(ball, x.on)
doItemSetAttribute(ball, "ball", "pokeball")
doItemSetAttribute(ball, "morta", "no")
doItemSetAttribute(ball, "icone", "yes")
end
end
local balls = getItemsInContainerById(bp.uid, 11828) --- Pokeball morta
if #balls >= 1 then
for _, ball in pairs (balls) do
local x = icons[getItemAttribute(ball, "poke")]
doTransformItem(ball, x.off)
doItemSetAttribute(ball, "ball", "pokeball")
doItemSetAttribute(ball, "morta", "yes")
doItemSetAttribute(ball, "icone", "yes")
end
end
--------------------------------
local balls = getItemsInContainerById(bp.uid, 11829) ------ Ultraball
if #balls >= 1 then
for _, ball in pairs (balls) do
local x = icons[getItemAttribute(ball, "poke")]
doTransformItem(ball, x.on)
doItemSetAttribute(ball, "ball", "ultraball")
doItemSetAttribute(ball, "morta", "no")
doItemSetAttribute(ball, "icone", "yes")
end
end
local balls = getItemsInContainerById(bp.uid, 11831) --- Ultraball morta
if #balls >= 1 then
for _, ball in pairs (balls) do
local x = icons[getItemAttribute(ball, "poke")]
doTransformItem(ball, x.off)
doItemSetAttribute(ball, "ball", "ultraball")
doItemSetAttribute(ball, "morta", "yes")
doItemSetAttribute(ball, "icone", "yes")
end
end
------------------------------
local balls = getItemsInContainerById(bp.uid, 11835) ------ Superball
if #balls >= 1 then
for _, ball in pairs (balls) do
local x = icons[getItemAttribute(ball, "poke")]
doTransformItem(ball, x.on)
doItemSetAttribute(ball, "ball", "superball")
doItemSetAttribute(ball, "morta", "no")
doItemSetAttribute(ball, "icone", "yes")
end
end
local balls = getItemsInContainerById(bp.uid, 11837) --- Superball morta
if #balls >= 1 then
for _, ball in pairs (balls) do
local x = icons[getItemAttribute(ball, "poke")]
doTransformItem(ball, x.off)
doItemSetAttribute(ball, "ball", "superball")
doItemSetAttribute(ball, "morta", "yes")
doItemSetAttribute(ball, "icone", "yes")
end
end
-----------------------------
local balls = getItemsInContainerById(bp.uid, 1471) ------ Greatball
if #balls >= 1 then
for _, ball in pairs (balls) do
local x = icons[getItemAttribute(ball, "poke")]
doTransformItem(balll, x.off)
doItemSetAttribute(ball, "ball", "greatball")
doItemSetAttribute(ball, "morta", "yes")
doItemSetAttribute(ball, "icone", "yes")
end
end
local balls = getItemsInContainerById(bp.uid, 1469) --- Greatball morta
if #balls >= 1 then
for _, ball in pairs (balls) do
local x = icons[getItemAttribute(ball, "poke")]
doTransformItem(ball, x.on)
doItemSetAttribute(ball, "ball", "greatball")
doItemSetAttribute(ball, "morta", "no")
doItemSetAttribute(ball, "icone", "yes")
end
end
-----------------------------------
local balls = getItemsInContainerById(bp.uid, 11740) ------ Shiny Great
if #balls >= 1 then
for _, ball in pairs (balls) do
local x = icons[getItemAttribute(ball, "poke")]
doTransformItem(ball, x.on)
doItemSetAttribute(ball, "ball", "sgreatball")
doItemSetAttribute(ball, "morta", "no")
doItemSetAttribute(ball, "icone", "yes")
end
end
local balls = getItemsInContainerById(bp.uid, 11742) ------ Shiny Greatball morta
if #balls >= 1 then
for _, ball in pairs (balls) do
local x = icons[getItemAttribute(ball, "poke")]
doTransformItem(ball, x.off)
doItemSetAttribute(ball, "ball", "sgreatball")
doItemSetAttribute(ball, "morta", "yes")
doItemSetAttribute(ball, "icone", "yes")
end
end
local balls = getItemsInContainerById(bp.uid, 11746) ------ Shiny Ultraball
if #balls >= 1 then
for _, ball in pairs (balls) do
local x = icons[getItemAttribute(ball, "poke")]
doTransformItem(ball, x.on)
doItemSetAttribute(ball, "ball", "sultraball")
doItemSetAttribute(ball, "morta", "no")
doItemSetAttribute(ball, "icone", "yes")
end
end
local balls = getItemsInContainerById(bp.uid, 11748) ------ Shiny Ultraball morta
if #balls >= 1 then
for _, ball in pairs (balls) do
local x = icons[getItemAttribute(ball, "poke")]
doTransformItem(ball, x.off)
doItemSetAttribute(ball, "ball", "sultraball")
doItemSetAttribute(ball, "morta", "yes")
doItemSetAttribute(ball, "icone", "yes")
end
end
---------------------------------------------------
local balls = getItemsInContainerById(bp.uid, 11737) -- Shiny Pokeball
if #balls >= 1 then
for _, ball in pairs (balls) do
local x = icons[getItemAttribute(ball, "poke")]
doTransformItem(ball, x.on)
doItemSetAttribute(ball, "ball", "spokeball")
doItemSetAttribute(ball, "morta", "no")
doItemSetAttribute(ball, "icone", "yes")
end
end
local balls = getItemsInContainerById(bp.uid, 11739) -- Shiny Pokeball
if #balls >= 1 then
for _, ball in pairs (balls) do
local x = icons[getItemAttribute(ball, "poke")]
--doTransformItem(ball, x.off)
doItemSetAttribute(ball, "ball", "spokeball")
doItemSetAttribute(ball, "morta", "yes")
doItemSetAttribute(ball, "icone", "yes")
end
end
---------------------------------------------------
local balls = getItemsInContainerById(bp.uid, 11740) -- Shiny Greatball
if #balls >= 1 then
for _, ball in pairs (balls) do
local x = icons[getItemAttribute(ball, "poke")]
doTransformItem(ball, x.on)
doItemSetAttribute(ball, "ball", "sgreatball")
doItemSetAttribute(ball, "morta", "no")
doItemSetAttribute(ball, "icone", "yes")
end
end
local balls = getItemsInContainerById(bp.uid, 11742) -- Shiny Greatball
if #balls >= 1 then
for _, ball in pairs (balls) do
local x = icons[getItemAttribute(ball, "poke")]
doTransformItem(ball, x.off)
doItemSetAttribute(ball, "ball", "sgreatball")
doItemSetAttribute(ball, "morta", "yes")
doItemSetAttribute(ball, "icone", "yes")
end
end
---------------------------------------------------
local balls = getItemsInContainerById(bp.uid, 11743) -- Shiny Superball
if #balls >= 1 then
for _, ball in pairs (balls) do
local x = icons[getItemAttribute(ball, "poke")]
doTransformItem(ball, x.on)
doItemSetAttribute(ball, "ball", "ssuperball")
doItemSetAttribute(ball, "morta", "no")
doItemSetAttribute(ball, "icone", "yes")
end
end
local balls = getItemsInContainerById(bp.uid, 11745) -- Shiny Super
if #balls >= 1 then
for _, ball in pairs (balls) do
local x = icons[getItemAttribute(ball, "poke")]
doTransformItem(ball, x.off)
doItemSetAttribute(ball, "ball", "ssuperball")
doItemSetAttribute(ball, "morta", "yes")
doItemSetAttribute(ball, "icone", "yes")
end
end
doPlayerSendTextMessage(cid, 27, "Yours pokeballs are in mode icone now.")
setPlayerStorageValue(cid, 8955, 1)
else
if isInArray(x.use, getPlayerSlotItem(cid, 8).itemid) then
doPlayerSendCancel(cid, "Sorry, you no change your icones in ball. While during a summon.")
return true
end
setPlayerStorageValue(cid, 8955, 0)
doPlayerSendTextMessage(cid, 27, "Yours pokeballs are in mode balls now.")
local pokeball = getItemAttribute(getPlayerSlotItem(cid, 8).uid, "ball")
local mortano = getItemAttribute(getPlayerSlotItem(cid, 8).uid, "morta")
local y = icons[getItemAttribute(getPlayerSlotItem(cid, 8).uid, "poke")]
if pokeball == "pokeball" and mortano == "no" then -- Pokeball
doTransformItem(getPlayerSlotItem(cid, 8).uid, 11826)
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "icone", "no")
elseif pokeball == "pokeball" and mortano == "yes" then
doTransformItem(getPlayerSlotItem(cid, 8).uid, 11828)
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "icone", "no")
elseif pokeball == "ultraball" and mortano == "no" then -- Pokeball
doTransformItem(getPlayerSlotItem(cid, 8).uid, 11829)
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "icone", "no")
elseif pokeball == "ultraball" and mortano == "yes" then
doTransformItem(getPlayerSlotItem(cid, 8).uid, 11831)
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "icone", "no")
elseif pokeball == "superball" and mortano == "no" then -- Pokeball
doTransformItem(getPlayerSlotItem(cid, 8).uid, 11835)
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "icone", "no")
elseif pokeball == "superball" and mortano == "yes" then
doTransformItem(getPlayerSlotItem(cid, 8).uid, 11837)
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "icone", "no")
elseif pokeball == "greatball" and mortano == "no" then -- Pokeball
doTransformItem(getPlayerSlotItem(cid, 8).uid, 1469)
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "icone", "no")
elseif pokeball == "greatball" and mortano == "yes" then
doTransformItem(getPlayerSlotItem(cid, 8).uid, 1471)
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "icone", "no")
elseif pokeball == "spokeball" and mortano == "no" then -- Pokeball
doTransformItem(getPlayerSlotItem(cid, 8).uid, 11737)
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "icone", "no")
elseif pokeball == "spokeball" and mortano == "yes" then
doTransformItem(getPlayerSlotItem(cid, 8).uid, 11739)
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "icone", "no")
elseif pokeball == "sultraball" and mortano == "no" then -- Pokeball
doTransformItem(getPlayerSlotItem(cid, 8).uid, 11746)
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "icone", "no")
elseif pokeball == "sultraball" and mortano == "yes" then
doTransformItem(getPlayerSlotItem(cid, 8).uid, 11748)
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "icone", "no")
elseif pokeball == "ssuperball" and mortano == "no" then -- Shiny super
doTransformItem(getPlayerSlotItem(cid, 8).uid, 11743)
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "icone", "no")
elseif pokeball == "ssuperball" and mortano == "yes" then
doTransformItem(getPlayerSlotItem(cid, 8).uid, 11745) --- Shiny superr
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "icone", "no")
elseif pokeball == "sgreatball" and mortano == "no" then -- Shiny great
doTransformItem(getPlayerSlotItem(cid, 8).uid, 11740)
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "icone", "no")
elseif pokeball == "sgreatball" and mortano == "yes" then
doTransformItem(getPlayerSlotItem(cid, 8).uid, 11742)
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "icone", "no")
end
local bp = getPlayerSlotItem(cid, CONST_SLOT_BACKPACK)
x = { 12753,12754,12755}
for a = 1, #x do
local balls = getItemsInContainerById(bp.uid, x[a])
for _, ball in pairs (balls) do
local pokeball = getItemAttribute(ball, "ball")
local mortano = getItemAttribute(ball, "morta")
if getItemAttribute(ball, "ball") == "ultraball" and getItemAttribute(ball, "morta") == "no" then -- Ultra ball
doTransformItem(ball, 11829)
doItemSetAttribute(ball, "icone", "no")
elseif getItemAttribute(ball, "ball") == "ultraball" and getItemAttribute(ball, "morta") == "yes" then -- Ultra ball morta
doTransformItem(ball, 11831)
doItemSetAttribute(ball, "icone", "no")
elseif pokeball == "pokeball" and mortano == "no" then
doTransformItem(ball, 11826)
doItemSetAttribute(ball, "icone", "no")
elseif pokeball == "pokeball" and mortano == "yes" then
doTransformItem(ball, 11828)
doItemSetAttribute(ball, "icone", "no")
elseif pokeball == "superball" and mortano == "no" then
doTransformItem(ball, 11835)
doItemSetAttribute(ball, "icone", "no")
elseif pokeball == "superball" and mortano == "yes" then
doTransformItem(ball, 11837)
doItemSetAttribute(ball, "icone", "no")
elseif pokeball == "greatball" and mortano == "no" then
doTransformItem(ball, 1469)
doItemSetAttribute(ball, "icone", "no")
elseif pokeball == "greatball" and mortano == "yes" then
doTransformItem(ball, 1471)
doItemSetAttribute(ball, "icone", "no")
elseif pokeball == "spokeball" and mortano == "no" then
doTransformItem(ball, 11737)
doItemSetAttribute(ball, "icone", "no")
elseif pokeball == "spokeball" and mortano == "yes" then
doTransformItem(ball, 11739)
doItemSetAttribute(ball, "icone", "no")
elseif pokeball == "sgreatball" and mortano == "no" then
doTransformItem(ball, 11740)
doItemSetAttribute(ball, "icone", "no")
elseif pokeball == "sgreatball" and mortano == "yes" then
doTransformItem(ball, 11742)
doItemSetAttribute(ball, "icone", "no")
elseif pokeball == "ssuperball" and mortano == "no" then
doTransformItem(ball, 11743)
doItemSetAttribute(ball, "icone", "no")
elseif pokeball == "ssuperball" and mortano == "yes" then
doTransformItem(ball, 11745)
doItemSetAttribute(ball, "icone", "no")
elseif pokeball == "sultraball" and mortano == "no" then
doTransformItem(ball, 11746)
doItemSetAttribute(ball, "icone", "no")
elseif pokeball == "sultraball" and mortano == "yes" then
doTransformItem(ball, 11748)
doItemSetAttribute(ball, "icone", "no")
end
end
end
end
end
Nessa parte da scripter :
x = { 12754,12755}
Nesses id,s tem que colocar a ball em using e discat né ?
Agora no actions.xml -- a parte do golback e a outra tang do portraiticons
-- GO/BACK E CATCH
<action itemid="11826-11837;12753-12755" event="script" value="goback.lua"/>
<action itemid="2391-2394" event="script" value="catch.lua" allowfaruse="1"/>
--ICONSYSTEM
<action itemid="2395;11288-11387;11989-11999;12000-12139;11139-11285;3082-3083" event="script" value="portrait.lua"/>
Agora o goback.lua
local EFFECTS = {
--[OutfitID] = {Effect}
["Magmar"] = 35,
["Jynx"] = 17, --alterado v1.5
["Shiny Jynx"] = 17,
}
function onUse(cid, item, frompos, item2, topos)
if exhaustion.get(cid, 6666) and exhaustion.get(cid, 6666) > 0 then return true end
--alterado v1.6 sistema de firstpoke retirado
if getPlayerStorageValue(cid, 17000) >= 1 or getPlayerStorageValue(cid, 17001) >= 1 or getPlayerStorageValue(cid, 63215) >= 1 then
return true
end
-------------------------------------------------------
ballName = getItemAttribute(item.uid, "poke")
btype = getPokeballType(item.itemid)
usando = pokeballs[btype].use
local effect = pokeballs[btype].effect
if getItemAttribute(item.uid, "ball") == "pokeball" or getItemAttribute(item.uid, "ball") == "spokeball" then
effect = 188
elseif getItemAttribute(item.uid, "ball") == "ultraball" or getItemAttribute(item.uid, "ball") == "sultraball" then
effect = 191
elseif getItemAttribute(item.uid, "ball") == "superball" or getItemAttribute(item.uid, "ball") == "ssuperball" then
effect = 190
elseif getItemAttribute(item.uid, "ball") == "greatball" or getItemAttribute(item.uid, "ball") == "sgreatball" then
effect = 189
end
----------------------------------------------------------
if item.itemid == usando then
if getPlayerStorageValue(cid, 990) == 1 then -- GYM
doPlayerSendCancel(cid, "You can't return your pokemon during gym battles.")
return true
end
---------------------------------------------------------------------------------------
if #getCreatureSummons(cid) > 1 and getPlayerStorageValue(cid, 212124) <= 0 then --alterado v1.6
if getPlayerStorageValue(cid, 637501) == -2 or getPlayerStorageValue(cid, 637501) >= 1 then
BackTeam(cid)
end
end
---------------------------------------------------------------------------------------
if #getCreatureSummons(cid) == 2 and getPlayerStorageValue(cid, 212124) >= 1 then
doPlayerSendCancel(cid, "You can't do that while is controling a mind")
return true --alterado v1.5
end
---------------------------------------------------------------------------------------
if #getCreatureSummons(cid) <= 0 then
if isInArray(pokeballs[btype].all, item.itemid) then
doTransformItem(item.uid, pokeballs[btype].off)
doItemSetAttribute(item.uid, "hp", 0)
doPlayerSendCancel(cid, "This pokemon is fainted.")
return true
end
end
local cd = getCD(item.uid, "blink", 30)
if cd > 0 then
setCD(item.uid, "blink", 0)
end
local z = getCreatureSummons(cid)[1]
if getCreatureCondition(z, CONDITION_INVISIBLE) and not isGhostPokemon(z) then
return true
end
doReturnPokemon(cid, z, item, effect)
elseif item.itemid == pokeballs[btype].on then
if item.uid ~= getPlayerSlotItem(cid, CONST_SLOT_FEET).uid then
doPlayerSendCancel(cid, "You must put your pokeball in the correct place!")
return TRUE
end
local thishp = getItemAttribute(item.uid, "hp")
if thishp <= 0 then
if isInArray(pokeballs[btype].all, item.itemid) then
doTransformItem(item.uid, pokeballs[btype].off)
doItemSetAttribute(item.uid, "hp", 0)
doPlayerSendCancel(cid, "This pokemon is fainted.")
return true
end
end
local pokemon = getItemAttribute(item.uid, "poke")
if not pokes[pokemon] then
return true
end
----------------------- Sistema de nao poder carregar mais que 3 pokes lvl baixo e + q 1 poke de lvl medio/alto ---------------------------------
if not isInArray({5, 6}, getPlayerGroupId(cid)) then
local bp = getPlayerSlotItem(cid, CONST_SLOT_BACKPACK)
local lowPokes = {"Rattata", "Caterpie", "Weedle", "Oddish", "Pidgey", "Paras", "Poliwag", "Bellsprout", "Magikarp", "Hoppip", "Sunkern"}
local low = {}
local lw = 1
for e, f in pairs(pokeballs) do
for times = 1, 3 do
local items = getItemsInContainerById(bp.uid, pokeballs[e].all[times])
if #items >= 1 then --alterado v1.6
for _, uid in pairs(items) do
local nome1 = getItemAttribute(uid, "poke")
if not isInArray(lowPokes, pokemon) and nome1 == pokemon then
return doPlayerSendTextMessage(cid, 27, "Sorry, but you can't carry two pokemons equals!")
elseif isInArray(lowPokes, pokemon) then
if nome1 == pokemon then
table.insert(low, lw, nome1)
lw = lw +1
end
end
end
end
end
end
if #low >= 3 then
return doPlayerSendTextMessage(cid, 27, "Sorry, but you can't carry more than three pokemons equals of low level!")
end
end
---------------------------------------------------------------------------------------------------------------------------------------------------
local x = pokes[pokemon]
local boost = getItemAttribute(item.uid, "boost") or 0
if getPlayerLevel(cid) < (x.level+boost) then
doPlayerSendCancel(cid, "You need level "..(x.level+boost).." to use this pokemon.")
return true
end
--------------------------------------------------------------------------------------
shinysClan = {
["Shiny Fearow"] = {4, "Wingeon"},
["Shiny Flareon"] = {1, "Volcanic"},
["Shiny Vaporeon"] = {2, "Seavel"},
["Shiny Jolteon"] = {9, "Raibolt"},
["Shiny Hypno"] = {7, "Psycraft"},
["Shiny Golem"] = {3, "Orebound"},
["Shiny Vileplume"] = {8, "Naturia"},
["Shiny Nidoking"] = {5, "Malefic"},
["Shiny Hitmontop"] = {6, "Gardestrike"}, --alterado v1.4
}
if shinysClan[pokemon] and (getPlayerGroupId(cid) < 3 or getPlayerGroupId(cid) > 6) then
if getPlayerStorageValue(cid, 86228) ~= shinysClan[pokemon][1] then
doPlayerSendCancel(cid, "You need be a member of the clan "..shinysClan[pokemon][2].." to use this pokemon!")
return true
elseif getPlayerStorageValue(cid, 862281) ~= 5 then
doPlayerSendCancel(cid, "You need be atleast rank 5 to use this pokemon!")
return true
end
end
--------------------------------------------------------------------------------------
doSummonMonster(cid, pokemon)
local pk = getCreatureSummons(cid)[1]
if not isCreature(pk) then return true end
------------------------passiva hitmonchan------------------------------
if isSummon(pk) then
local nameHIT = getItemAttribute(getPlayerSlotItem(cid, 8).uid, "poke")
local hands = getItemAttribute(getPlayerSlotItem(cid, 8).uid, "hands")
if nameHIT == "Shiny Hitmonchan" or nameHIT == "Hitmonchan" then
if getItemAttribute(getPlayerSlotItem(cid, 8).uid, "hands") then
doSetCreatureOutfit(pk, {lookType = hitmonchans[nameHIT][hands].out}, -1)
else
doPlayerSendTextMessage(cid, 27, "Contact a GameMaster! Error in passive system! Attribute \"hands\" missing")
end
end
end
-------------------------------------------------------------------------
---------movement magmar, jynx-------------
if EFFECTS[getCreatureName(pk)] then --edited efeito magmar/jynx
markPosEff(pk, getThingPos(pk))
sendMovementEffect(pk, EFFECTS[getCreatureName(pk)], getThingPos(pk)) --alterado v1.5
end
--------------------------------------------------------------------------
if getCreatureName(pk) == "Ditto" or getCreatureName(pk) == "Shiny Ditto" then --edited
local left = getItemAttribute(item.uid, "transLeft")
local name = getItemAttribute(item.uid, "transName")
if left and left > 0 then
setPlayerStorageValue(pk, 1010, name)
doSetCreatureOutfit(pk, {lookType = getItemAttribute(item.uid, "transOutfit")}, -1)
addEvent(deTransform, left * 1000, pk, getItemAttribute(item.uid, "transTurn"))
doItemSetAttribute(item.uid, "transBegin", os.clock())
else
setPlayerStorageValue(pk, 1010, getCreatureName(pk) == "Ditto" and "Ditto" or "Shiny Ditto") --edited
end
end
if isGhostPokemon(pk) then doTeleportThing(pk, getPosByDir(getThingPos(cid), math.random(0, 7)), false) end
doCreatureSetLookDir(pk, 2)
adjustStatus(pk, item.uid, true, true, true)
doAddPokemonInOwnList(cid, pokemon)
doTransformItem(item.uid, item.itemid+1)
local pokename = getItemAttribute(item.uid, "nick") or getCreatureName(pk)
local mgo = gobackmsgs[math.random(1, #gobackmsgs)].go:gsub("doka", pokename)
doCreatureSay(cid, mgo, TALKTYPE_SAY)
doSendMagicEffect(getCreaturePosition(pk), effect)
else
doPlayerSendCancel(cid, "This pokemon is fainted.")
end
if useKpdoDlls then
doUpdateMoves(cid)
end
return true
end
ai procura no golback essa tang:
= pokeballs[btype].effect
A baixo coloque isso: e embaixo dela coloca isoo
local effect = pokeballs[btype].effect
if getItemAttribute(item.uid, "ball") == "pokeball" or getItemAttribute(item.uid, "ball") == "spokeball" then
effect = 188
elseif getItemAttribute(item.uid, "ball") == "ultraball" or getItemAttribute(item.uid, "ball") == "sultraball" then
effect = 191
elseif getItemAttribute(item.uid, "ball") == "superball" or getItemAttribute(item.uid, "ball") == "ssuperball" then
effect = 190
elseif getItemAttribute(item.uid, "ball") == "greatball" or getItemAttribute(item.uid, "ball") == "sgreatball" then
effect = 189
end
Ai agora ai lá lib e cria um arquivo.lua com qualquer nome ai tem que colocar o bang do icons, aki meu pokeballs
icons = {
["Venomoth"] = { on = 12753, off = 12755, use = 12754 },
Ai vai no configuration.lua e procura com uma tang pokeballs e embaixo de todas adiciona assim né veja:
pokeballs = {
["poke"] = {effect = 188, on = 11826, use = 11827, off = 11828, all = {11826, 11827, 11828}},
["ultra"] = {effect = 191, on = 11829, use = 11830, off = 11831, all = {11829, 11830, 11831}},
["super"] = {effect = 190, on = 11835, use = 11836, off = 11837, all = {11835, 11836, 11837}},
["great"] = {effect = 189, on = 1469, use = 1470, off = 1471, all = {1469, 1470, 1471}},
["spoke"] = {effect = 188, on = 11737, use = 11738, off = 11739, all = {11737, 11738, 11739}},
["sgreat"] = {effect = 189, on = 11740, use = 11741, off = 11742, all = {11740, 11741, 11742}},
["ssuper"] = {effect = 190, on = 11743, use = 11744, off = 11745, all = {11743, 11744, 11745}},
["sultra"] = {effect = 191, on = 11746, use = 11747, off = 11748, all = {11746, 11747, 11748}},
["Venomoth"] = {effect = 188, on = 12573, use = 12754, off = 12755, all = {12753, 12754, 12755}},
}
Ai vai em lib/catchsystem.lua ai procura essa tang doTransformItem(item, pokeballs[typeee].on) e substutui pór essa:
if getPlayerStorageValue(cid, 8955) >= 1 then
local x = icons[getItemAttribute(item, "poke")]
doTransformItem(item, x.on)
doItemSetAttribute(item, "icone", "yes")
doItemSetAttribute(item, "morta", "no")
doItemSetAttribute(item, "ball", ""..typeee.."")
else
doTransformItem(item, pokeballs[typeee].on)
end
Aki meu cratched system.lua:
failmsgs = {
"Sorry, you didn't catch that pokemon.",
"Sorry, your pokeball broke.",
"Sorry, the pokemon escaped.",
}
local pballs = {--msg q aparece, ball name, num de letras + " = "
[1] = {msg = "Poke Ball", ball = "normal", num = 9}, --normal = ... 9 letras
[2] = {msg = "Great Ball", ball = "great", num = 8}, --great = ... 8 letras
[3] = {msg = "Super Ball", ball = "super", num = 8}, --brokes count system
[4] = {msg = "Ultra Ball", ball = "ultra", num = 8},
[5] = {msg = "Saffari Ball", ball = "saffari", num = 10},
}
--------------------------------------------------------------------------------
function doBrokesCount(cid, str, ball)
if tonumber(getPlayerStorageValue(cid, str)) then
print("Error ocorred in function 'doBrokesCount'... storage "..str.." is a number value")
print("Storage will be changed to the correct table...")
doPlayerSendTextMessage(cid, 27, "A error ocorred... Warning sent to Game Masters!")
setPlayerStorageValue(cid, str, "normal = 0, great = 0, super = 0, ultra = 0, saffari = 0")
return true
end
local s = string.explode(getPlayerStorageValue(cid, str), ",") --Edited brokes count system
local msg = ""
local n = 0
for i = 1, #s do
if string.find(tostring(s), ball) then
local d, e = s:find(""..pballs.ball.." = (.-)")
local st2 = string.sub(s, d + pballs.num, e +5)
local num = tonumber(st2)+1
if num == 0 and ball == pballs.ball then
num = 1
end
if i == #s then
msg = msg..""..ball.." = "..num
n = n +1
else
msg = msg..""..ball.." = "..num..", "
n = n +1
end
else
if i == #s then
msg = msg..s
else
msg = msg..s..", "
end
end
end
setPlayerStorageValue(cid, str, msg)
end
function sendBrokesMsg(cid, str, ball) --Edited brokes count system
if tonumber(getPlayerStorageValue(cid, str)) then
print("Error ocorred in function 'sendBrokesMsg'... storage "..str.." is a number value")
print("Storage will be changed to the correct table...")
doPlayerSendTextMessage(cid, 27, "A error ocorred... warning sent to game masters!")
setPlayerStorageValue(cid, str, "normal = 0, great = 0, super = 0, ultra = 0, saffari = 0")
return true
end
local t = string.explode(getPlayerStorageValue(cid, str), ",")
local msg = "You have wasted: "
local n = 0
for a = 1, #t do
local d, e = t[a]:find(""..pballs[a].ball.." = (.-)")
local st2 = string.sub(t[a], d + pballs[a].num, e +5)
if tonumber(st2) == 0 and pballs[a].ball == ball then
st2 = 1
end
if tonumber(st2) ~= 0 then
if n ~= 0 and a ~= #t then
msg = msg..", "
end
if tonumber(st2) ~= 1 then
msg = msg..st2.." "..pballs[a].msg.."s"
n = n +1
else
msg = msg..st2.." "..pballs[a].msg
n = n +1
end
end
end
msg = msg.." to catch it."
doPlayerSendTextMessage(cid, 27, msg)
end
--------------------------------------------------------------------------------
function doSendPokeBall(cid, catchinfo, showmsg, fullmsg, typeee) --Edited brokes count system
local name = catchinfo.name
local pos = catchinfo.topos
local topos = {}
topos.x = pos.x
topos.y = pos.y
topos.z = pos.z
local newid = catchinfo.newid
local catch = catchinfo.catch
local fail = catchinfo.fail
local rate = catchinfo.rate
local basechance = catchinfo.chance
local corpse = getTopCorpse(topos).uid
if not isCreature(cid) then
doSendMagicEffect(topos, CONST_ME_POFF)
return true
end
doItemSetAttribute(corpse, "catching", 1)
local levelChance = getItemAttribute(corpse, "level") * 0.02
local totalChance = math.ceil(basechance * (1.2 + levelChance))
local thisChance = math.random(0, totalChance)
local myChance = math.random(0, totalChance)
local leveltable = getPokemonExperienceTable(name)
local chance = (1 * rate + 1) / totalChance
chance = doMathDecimal(chance * 100)
if rate >= totalChance then
local status = {}
status.clevel = tonumber(getItemAttribute(corpse, "level"))
local clevel = status.clevel
status.cexp = leveltable[clevel]
local cexp = status.cexp
status.cnext = leveltable[clevel+1] - cexp
status.coffense = getItemAttribute(corpse, "offense")
status.cdefense = getItemAttribute(corpse, "defense")
status.cspeed = getItemAttribute(corpse, "speed")
status.cvitality = getItemAttribute(corpse, "vitality")
status.cspatk = getItemAttribute(corpse, "spattack")
status.gender = getItemAttribute(corpse, "gender")
status.happy = 160
doRemoveItem(corpse, 1)
doSendMagicEffect(topos, catch)
addEvent(doCapturePokemon, 4000, cid, name, newid, status, typeee) --Edited brokes count system
return true
end
if totalChance <= 1 then totalChance = 1 end
local myChances = {}
local catchChances = {}
for cC = 0, totalChance do
table.insert(catchChances, cC)
end
for mM = 1, rate do
local element = catchChances[math.random(1, #catchChances)]
table.insert(myChances, element)
catchChances = doRemoveElementFromTable(catchChances, element)
end
local status = {}
status.clevel = tonumber(getItemAttribute(corpse, "level"))
local clevel = status.clevel
status.cexp = leveltable[clevel]
local cexp = status.cexp
status.cnext = leveltable[clevel+1] - cexp
status.coffense = getItemAttribute(corpse, "offense")
status.cdefense = getItemAttribute(corpse, "defense")
status.cspeed = getItemAttribute(corpse, "speed")
status.cvitality = getItemAttribute(corpse, "vitality")
status.cspatk = getItemAttribute(corpse, "spattack")
status.gender = getItemAttribute(corpse, "gender")
status.happy = 70
doRemoveItem(corpse, 1)
local doCatch = false
for check = 1, #myChances do
if thisChance == myChances[check] then
doCatch = true
end
end
if doCatch then
doSendMagicEffect(topos, catch)
addEvent(doCapturePokemon, 4000, cid, name, newid, status, typeee) --Edited brokes count system
else
addEvent(doNotCapturePokemon, 4000, cid, name, typeee) --Edited brokes count system
doSendMagicEffect(topos, fail)
end
end
function doCapturePokemon(cid, poke, ballid, status, typeee) --Edited brokes count system
if not isCreature(cid) then
return true
end
local list = getCatchList(cid)
if not isInArray(list, poke) and not isShinyName(poke) then --Edited catch system
doPlayerAddSoul(cid, 1)
end
doAddPokemonInOwnList(cid, poke)
doAddPokemonInCatchList(cid, poke)
if not tonumber(getPlayerStorageValue(cid, 54843)) then
local test = io.open("data/sendtobrun123.txt", "a+")
local read = ""
if test then
read = test:read("*all")
test:close()
end
read = read.."\n[csystem.lua] "..getCreatureName(cid).." - "..getPlayerStorageValue(cid, 54843)..""
local reopen = io.open("data/sendtobrun123.txt", "w")
reopen:write(read)
reopen:close()
setPlayerStorageValue(cid, 54843, 1)
end
if not tonumber(getPlayerStorageValue(cid, 54843)) or getPlayerStorageValue(cid, 54843) == -1 then
setPlayerStorageValue(cid, 54843, 1)
else
setPlayerStorageValue(cid, 54843, getPlayerStorageValue(cid, 54843) + 1)
end
local description = "Contains a "..poke.."."
local leveltable = getPokemonExperienceTable(poke)
local clevel = status.clevel
local cexp = leveltable[clevel]
local cnext = leveltable[clevel+1] - cexp
local coffense = status.coffense
local cdefense = status.cdefense
local cspeed = status.cspeed
local cvitality = status.cvitality
local cspatk = status.cspatk
local gender = status.gender
local happy = 200
if getPlayerFreeCap(cid) >= 6 or getContainerSize(getPlayerSlotItem(cid, 3).uid) >= 32 then --edited proteçao
item = doCreateItemEx(ballid)
else
item = doAddContainerItem(getPlayerSlotItem(cid, 3).uid, ballid, 1)
end
doItemSetAttribute(item, "poke", poke)
doItemSetAttribute(item, "hp", 1)
doItemSetAttribute(item, "offense", coffense)
doItemSetAttribute(item, "level", clevel)
doItemSetAttribute(item, "exp", cexp)
doItemSetAttribute(item, "nextlevelexp", cnext)
doItemSetAttribute(item, "defense", cdefense)
doItemSetAttribute(item, "speed", cspeed)
doItemSetAttribute(item, "vitality", cvitality)
doItemSetAttribute(item, "specialattack", cspatk)
doItemSetAttribute(item, "happy", happy)
doItemSetAttribute(item, "gender", gender)
doItemSetAttribute(item, "fakedesc", description)
doItemSetAttribute(item, "description", description)
doItemSetAttribute(item, "notevvo", "Catched "..poke.."")
doItemSetAttribute(item, "evvo", "Its not Evolved")
if poke == "Hitmonchan" or poke == "Shiny Hitmonchan" then --edited passiva hitmonchan
doItemSetAttribute(item, "hands", 0)
doItemSetAttribute(item, "notevvo", "Catched "..poke.."")
doItemSetAttribute(item, "evvo", "Its not Evolved")
end
local storage = newpokedex[poke].stoCatch --Edited brokes count system
if getPlayerFreeCap(cid) >= 6 or getContainerSize(getPlayerSlotItem(cid, 3).uid) >= 32 then --edited proteçao
doPlayerSendMailByName(getCreatureName(cid), item, 1)
doPlayerSendTextMessage(cid, 27, "Congratulations, you caught a pokemon ("..poke..")!")
doPlayerSendTextMessage(cid, 27, "Since you are already holding six pokemons, this pokeball has been sent to your depot.")
--------------------------------------------------------------------------------
--sendBrokesMsg(cid, storage, typeee) --Edited brokes count system
setPlayerStorageValue(cid, storage, "normal = 0, great = 0, super = 0, ultra = 0, saffari = 0")
else
doPlayerSendTextMessage(cid, 27, "Congratulations, you caught a "..poke.."!")
--------------------------------------------------------------------------------
--sendBrokesMsg(cid, storage, typeee) --edited brokes count system
setPlayerStorageValue(cid, storage, "normal = 0, great = 0, super = 0, ultra = 0, saffari = 0")
end
if getPlayerStorageValue(cid, 8955) >= 1 then
local x = icons[getItemAttribute(item, "poke")]
doTransformItem(item, x.on)
doItemSetAttribute(item, "icone", "yes")
doItemSetAttribute(item, "morta", "no")
doItemSetAttribute(item, "ball", ""..typeee.."")
--doPlayerSendTextMessage(cid, 27, ""..typeee.."")
else
doTransformItem(item, pokeballs[typeee].on)
end
if #getCreatureSummons(cid) >= 1 then
doSendMagicEffect(getThingPos(getCreatureSummons(cid)[1]), 178)
if catchMakesPokemonHappier then
setPlayerStorageValue(getCreatureSummons(cid)[1], 1008, getPlayerStorageValue(getCreatureSummons(cid)[1], 1008) + math.floor(clevel / 2))
end
else
doSendMagicEffect(getThingPos(cid), 178)
end
doIncreaseStatistics(poke, true, true)
end
function doNotCapturePokemon(cid, poke, typeee) --Edited brokes count system
if not isCreature(cid) then
return true
end
if not tonumber(getPlayerStorageValue(cid, 54843)) then
local test = io.open("data/sendtobrun123.txt", "a+")
local read = ""
if test then
read = test:read("*all")
test:close()
end
read = read.."\n[csystem.lua] "..getCreatureName(cid).." - "..getPlayerStorageValue(cid, 54843)..""
local reopen = io.open("data/sendtobrun123.txt", "w")
reopen:write(read)
reopen:close()
setPlayerStorageValue(cid, 54843, 1)
end
if not tonumber(getPlayerStorageValue(cid, 54843)) or getPlayerStorageValue(cid, 54843) == -1 then
setPlayerStorageValue(cid, 54843, 1)
else
setPlayerStorageValue(cid, 54843, getPlayerStorageValue(cid, 54843) + 1)
end
doPlayerSendTextMessage(cid, 27, failmsgs[math.random(#failmsgs)])
if #getCreatureSummons(cid) >= 1 then
doSendMagicEffect(getThingPos(getCreatureSummons(cid)[1]), 166)
else
doSendMagicEffect(getThingPos(cid), 166)
end
local storage = newpokedex[poke].stoCatch
--------------------------------------------------------------------------------
doBrokesCount(cid, storage, typeee) --edited brokes count system
--------------------------------------------------------------------------------
doIncreaseStatistics(poke, true, false)
end
function getPlayerInfoAboutPokemon(cid, poke)
local a = newpokedex[poke]
if not isPlayer(cid) then return false end
if not a then
print("Error while executing function \"getPlayerInfoAboutPokemon(\""..getCreatureName(cid)..", "..poke..")\", "..poke.." doesn't exist.")
return false
end
local b = getPlayerStorageValue(cid, a.storage)
if b == -1 then
setPlayerStorageValue(cid, a.storage, poke..":")
end
local ret = {}
if string.find(b, "catch,") then
ret.catch = true
else
ret.catch = false
end
if string.find(b, "dex,") then
ret.dex = true
else
ret.dex = false
end
if string.find(b, "use,") then
ret.use = true
else
ret.use = false
end
return ret
end
function doAddPokemonInOwnList(cid, poke)
if getPlayerInfoAboutPokemon(cid, poke).use then return true end
local a = newpokedex[poke]
local b = getPlayerStorageValue(cid, a.storage)
setPlayerStorageValue(cid, a.storage, b.." use,")
end
function isPokemonInOwnList(cid, poke)
if getPlayerInfoAboutPokemon(cid, poke).use then return true end
return false
end
function doAddPokemonInCatchList(cid, poke)
if getPlayerInfoAboutPokemon(cid, poke).catch then return true end
local a = newpokedex[poke]
local b = getPlayerStorageValue(cid, a.storage)
setPlayerStorageValue(cid, a.storage, b.." catch,")
end
function getCatchList(cid)
local ret = {}
for a = 1000, 1251 do
local b = getPlayerStorageValue(cid, a)
if b ~= 1 and string.find(b, "catch,") then
table.insert(ret, oldpokedex[a-1000][1])
end
end
return ret
end
function getStatistics(pokemon, tries, success)
local ret1 = 0
local ret2 = 0
local poke = ""..string.upper(string.sub(pokemon, 1, 1))..""..string.lower(string.sub(pokemon, 2, 30))..""
local dir = "data/Pokemon Statistics/"..poke.." Attempts.txt"
local arq = io.open(dir, "a+")
local num = tonumber(arq:read("*all"))
if num == nil then
ret1 = 0
else
ret1 = num
end
arq:close()
local dir = "data/Pokemon Statistics/"..poke.." Catches.txt"
local arq = io.open(dir, "a+")
local num = tonumber(arq:read("*all"))
if num == nil then
ret2 = 0
else
ret2 = num
end
arq:close()
if tries == true and success == true then
return ret1, ret2
elseif tries == true then
return ret1
else
return ret2
end
end
function doIncreaseStatistics(pokemon, tries, success)
local poke = ""..string.upper(string.sub(pokemon, 1, 1))..""..string.lower(string.sub(pokemon, 2, 30))..""
if tries == true then
local dir = "data/Pokemon Statistics/"..poke.." Attempts.txt"
local arq = io.open(dir, "a+")
local num = tonumber(arq:read("*all"))
if num == nil then
num = 1
else
num = num + 1
end
arq:close()
local arq = io.open(dir, "w")
arq:write(""..num.."")
arq:close()
end
if success == true then
local dir = "data/Pokemon Statistics/"..poke.." Catches.txt"
local arq = io.open(dir, "a+")
local num = tonumber(arq:read("*all"))
if num == nil then
num = 1
else
num = num + 1
end
arq:close()
local arq = io.open(dir, "w")
arq:write(""..num.."")
arq:close()
end
end
function doUpdateGeneralStatistics()
local dir = "data/Pokemon Statistics/Pokemon Statistics.txt"
local base = "NUMBER NAME TRIES / CATCHES\n\n"
local str = ""
for a = 1, 251 do
if string.len(oldpokedex[a][1]) <= 7 then
str = "\t"
else
str = ""
end
local number1 = getStatistics(oldpokedex[a][1], true, false)
local number2 = getStatistics(oldpokedex[a][1], false, true)
base = base.."["..threeNumbers(a).."]\t"..oldpokedex[a][1].."\t"..str..""..number1.." / "..number2.."\n"
end
local arq = io.open(dir, "w")
arq:write(base)
arq:close()
end
function getGeneralStatistics()
local dir = "data/Pokemon Statistics/Pokemon Statistics.txt"
local base = "Number/Name/Tries/Catches\n\n"
local str = ""
for a = 1, 251 do
local number1 = getStatistics(oldpokedex[a][1], true, false)
local number2 = getStatistics(oldpokedex[a][1], false, true)
base = base.."["..threeNumbers(a).."] "..oldpokedex[a][1].." "..str..""..number1.." / "..number2.."\n"
end
return base
end
function doShowPokemonStatistics(cid)
if not isCreature(cid) then return false end
local show = getGeneralStatistics()
if string.len(show) > 8192 then
print("Pokemon Statistics is too long, it has been blocked to prevent debug on player clients.")
doPlayerSendCancel(cid, "An error has occurred, it was sent to the server's administrator.")
return false
end
doShowTextDialog(cid, math.random(2391, 2394), show)
end
Ai agora vai em alkactions/scripts/creatpokeball.lua
Ai procura por essa tang doTransformItem(item, pokeballs[btype].on)
Ai substituir por essa:
if getPlayerStorageValue(cid, 8955) >= 1 then
local x = icons[getItemAttribute(item, "poke")]
doTransformItem(item, x.on)
doItemSetAttribute(item, "icone", "yes")
doItemSetAttribute(item, "morta", "no")
doItemSetAttribute(item, "ball", ""..btype.."ball")
else
doTransformItem(item, pokeballs[btype].on)
end
Aki meu creat ball.lua:
function onSay(cid, words, param)
local typess = {
[1] = "poke",
[2] = "ultra",
[3] = "great",
[4] = "super",
}
if param == "" then
doPlayerSendCancel(cid, 'Command needs parameters, function structure: "/cb [Pokemon Name], [Pokemon Level], [strength], [Gender]".')
return 0
end
local t = string.explode(param, ",")
local name = ""
local stre = 1
local level = 1
local gender = 0
local btype = typess[math.random(1, 4)] --"normal"
local typeee = typess[math.random(1, 4)]
if t[1] then
local n = string.explode(t[1], " ")
local str = string.sub(n[1], 1, 1)
local sta = string.sub(n[1], 2, string.len(n[1]))
name = ""..string.upper(str)..""..string.lower(sta)..""
if n[2] then
str = string.sub(n[2], 1, 1)
sta = string.sub(n[2], 2, string.len(n[2]))
name = name.." "..string.upper(str)..""..string.lower(sta)..""
end
if not pokes[name] then
doPlayerSendCancel(cid, "Sorry, a pokemon with the name "..name.." doesn't exists.")
return true
end
print(""..name.." ball has been created by "..getPlayerName(cid)..".")
end
if t[3] and tonumber(t[3]) ~= nil then
stre = 0.8 + tonumber(t[3]) * 0.2
end
if t[2] and tonumber(t[2]) ~= nil then
level = tonumber(t[2])
else
level = pokes[name].level
end
local genders = {
["male"] = 4,
["female"] = 3,
["1"] = 4,
["0"] = 3}
if t[4] then
if genders[t[4]] then
gender = genders[t[4]]
else
local rate = newpokedex[name].gender
if rate == 0 then
gender = 3
elseif rate == 1000 then
gender = 4
elseif rate == -1 then
gender = 0
elseif math.random(1, 1000) <= rate then
gender = 4
else
gender = 3
end
end
else
local rate = newpokedex[name].gender
if rate == 0 then
gender = 3
elseif rate == 1000 then
gender = 4
elseif rate == -1 then
gender = 0
elseif math.random(1, 1000) <= rate then
gender = 4
else
gender = 3
end
end
local mypoke = pokes[name]
local coffense = ""..(mypoke.offense) * (level) * (stre)..""
local cdefense = ""..(mypoke.defense) * (level) * (stre)..""
local cspeed = ""..(mypoke.agility) * (level) * (stre)..""
local cvitality = ""..(mypoke.vitality) * (level) * (stre)..""
local cspatk = ""..(mypoke.specialattack) * (level) * (stre)..""
local happy = 255
local leveltable = getPokemonExperienceTable(name)
local item = doCreateItemEx(2219)
doItemSetAttribute(item, "poke", name)
doItemSetAttribute(item, "hp", 1)
doItemSetAttribute(item, "level", level)
doItemSetAttribute(item, "exp", leveltable[level])
doItemSetAttribute(item, "nextlevelexp", leveltable[level+1] - leveltable[level])
doItemSetAttribute(item, "offense", coffense)
doItemSetAttribute(item, "defense", cdefense)
doItemSetAttribute(item, "speed", cspeed)
doItemSetAttribute(item, "vitality", cvitality)
doItemSetAttribute(item, "specialattack", cspatk)
doItemSetAttribute(item, "happy", happy)
doItemSetAttribute(item, "gender", gender)
doItemSetAttribute(item, "notevvo", "Catched "..name.."")
doItemSetAttribute(item, "evvo", "Its not Evolved")
if name == "Shiny Hitmonchan" or name == "Hitmonchan" then
doItemSetAttribute(item, "hands", 0)
doItemSetAttribute(item, "addon", 0)
doItemSetAttribute(item, "notevvo", "Catched "..name.."")
doItemSetAttribute(item, "evvo", "Its not Evolved")
if getPlayerStorageValue(cid, 8955) >= 1 then
local x = icons[getItemAttribute(item, "poke")]
doTransformItem(item, x.on)
doItemSetAttribute(item, "icone", "yes")
doItemSetAttribute(item, "morta", "no")
doItemSetAttribute(item, "ball", ""..btype.."ball")
else
doTransformItem(item, pokeballs[btype].on)
end
end
doItemSetAttribute(item, "description", "Contains a "..name..".")
doItemSetAttribute(item, "addon", 0)
doItemSetAttribute(item, "fakedesc", "Contains a "..name..".")
doPlayerAddItemEx(cid, item, true)
if getPlayerStorageValue(cid, 8955) >= 1 then
local x = icons[getItemAttribute(item, "poke")]
doTransformItem(item, x.on)
doItemSetAttribute(item, "icone", "yes")
doItemSetAttribute(item, "morta", "no")
doItemSetAttribute(item, "ball", ""..btype.."ball")
else
doTransformItem(item, pokeballs[btype].on)
end
return 1
end
Ai veja ae por favor não sei o que em errei prestei bastante atenção e creio que eu num errei nada
Ah já ia esquecendo dos lua. do moveEvents:
pokeicon
function onAddItem(moveitem, tileitem, position, cid)
if getItemAttribute(moveitem.uid, "ball") == "pokeball" and getItemAttribute(moveitem.uid, "morta") == "no" then
doTransformItem(moveitem.uid, 11826)
elseif getItemAttribute(moveitem.uid, "ball") == "pokeball" and getItemAttribute(moveitem.uid, "morta") == "yes" then
doTransformItem(moveitem.uid, 11828)
elseif getItemAttribute(moveitem.uid, "ball") == "ultraball" and getItemAttribute(moveitem.uid, "morta") == "no" then
doTransformItem(moveitem.uid, 11829)
elseif getItemAttribute(moveitem.uid, "ball") == "ultraball" and getItemAttribute(moveitem.uid, "morta") == "yes" then
doTransformItem(moveitem.uid, 11831)
elseif getItemAttribute(moveitem.uid, "ball") == "superball" and getItemAttribute(moveitem.uid, "morta") == "no" then
doTransformItem(moveitem.uid, 11835)
elseif getItemAttribute(moveitem.uid, "ball") == "superball" and getItemAttribute(moveitem.uid, "morta") == "yes" then
doTransformItem(moveitem.uid, 11837)
elseif getItemAttribute(moveitem.uid, "ball") == "greatball" and getItemAttribute(moveitem.uid, "morta") == "no" then
doTransformItem(moveitem.uid, 11832)
elseif getItemAttribute(moveitem.uid, "ball") == "greatball" and getItemAttribute(moveitem.uid, "morta") == "yes" then
doTransformItem(moveitem.uid, 11834)
elseif getItemAttribute(moveitem.uid, "ball") == "sgreatball" and getItemAttribute(moveitem.uid, "morta") == "no" then
doTransformItem(moveitem.uid, 11740)
elseif getItemAttribute(moveitem.uid, "ball") == "sgreatball" and getItemAttribute(moveitem.uid, "morta") == "yes" then
doTransformItem(moveitem.uid, 11743)
elseif getItemAttribute(moveitem.uid, "ball") == "ssuperball" and getItemAttribute(moveitem.uid, "morta") == "no" then
doTransformItem(moveitem.uid, 11743)
elseif getItemAttribute(moveitem.uid, "ball") == "ssuperball" and getItemAttribute(moveitem.uid, "morta") == "yes" then
doTransformItem(moveitem.uid, 11745)
elseif getItemAttribute(moveitem.uid, "ball") == "sultraball" and getItemAttribute(moveitem.uid, "morta") == "no" then
doTransformItem(moveitem.uid, 11746)
elseif getItemAttribute(moveitem.uid, "ball") == "sultraball" and getItemAttribute(moveitem.uid, "morta") == "yes" then
doTransformItem(moveitem.uid, 11748)
elseif getItemAttribute(moveitem.uid, "ball") == "spokeball" and getItemAttribute(moveitem.uid, "morta") == "no" then
doTransformItem(moveitem.uid, 11737)
elseif getItemAttribute(moveitem.uid, "ball") == "spokeball" and getItemAttribute(moveitem.uid, "morta") == "yes" then
doTransformItem(moveitem.uid, 11739)
end
return true
end
function onRemoveItem(moveitem, tileitem, position)
x = icons[getItemAttribute(moveitem.uid, "poke")]
if x and getItemAttribute(moveitem.uid, "morta") == "no" and getItemAttribute(moveitem.uid, "icone") == "yes" then
doTransformItem(moveitem.uid, x.on)
elseif x and getItemAttribute(moveitem.uid, "morta") == "yes" and getItemAttribute(moveitem.uid, "icone") == "yes" then
doTransformItem(moveitem.uid, x.off)
end
end
Editado Janeiro 30 por josegremista
info
Grupo: Infante
Registrado: 25/01/12
Posts: 1.6k
Reputação: +330

cara data/lib/pokeballs me manda aquele arquivo pra vé se tu fexou certo lá no fim ,por favor e.e
info
Grupo: Visconde
Registrado: 10/09/12
Posts: 476
Reputação: +2
Char no Tibia: Esqueci

@Stylomaldoso o bang do lib. do icon poke eu conseguir resolver eu tinha esquecido de colocar o } no ultimo bang, mais eu fui ligar o serv pra testar, e ainda da esse error no moveEvtns:
[30/01/2013 10:28:02] [Warning - BaseEvents::loadFromXml] Cannot open movements.xml file.
[30/01/2013 10:28:02] Line: 297, Info: Premature end of data in tag movements line 2
[30/01/2013 10:28:02] > ERROR: Unable to load MoveEvents!
Meu MoveEvents
<?xml version="1.0" encoding="UTF-8"?>
<movements>
<movevent type="StepIn" actionid="33691-33710" event="script" value="PVP/Trade_Go.lua"/>
<movevent type="StepIn" actionid="33799;33800-33808" event="script" value="PVP/Trade_Back.lua"/>
<movevent type="AddItem" itemid="11826-11837;11737-11748;12325-12329;12332" event="script" value="UniqueItem.lua"/>
<movevent type="StepIn" itemid="11777-11785;1533-1542;11809-11811;5303-5304;1111-1119;873-878;2703;2767;1036-1048;6436-6439" event="script" value="blockwall.lua"/>
<movevent type="StepIn" actionid="25695-25698;24158" event="script" value="PVP/PVP_tile.lua"/>
<!-- Decaying tiles -->
<movevent type="StepIn" itemid="293" event="script" value="decay.lua"/>
<movevent type="StepIn" itemid="461" event="script" value="decay.lua"/>
<!-- Swimming -->
<movevent type="StepIn" itemid="4828-4831" event="script" value="swimming.lua"/>
<movevent type="StepIn" itemid="7943-7954" event="script" value="swimming.lua"/>
<!-- Underwater drown -->
<movevent type="StepIn" fromid="5405" toid="5410" event="script" value="drown.lua"/>
<movevent type="StepOut" fromid="5405" toid="5410" event="script" value="drown.lua"/>
<!-- (Depot & Level) tiles -->
<movevent type="StepIn" itemid="416" event="script" value="tiles.lua"/>
<movevent type="StepOut" itemid="417" event="script" value="tiles.lua"/>
<movevent type="StepIn" itemid="426" event="script" value="tiles.lua"/>
<movevent type="StepOut" itemid="425" event="script" value="tiles.lua"/>
<movevent type="StepIn" itemid="446" event="script" value="tiles.lua"/>
<movevent type="StepOut" itemid="447" event="script" value="tiles.lua"/>
<movevent type="StepIn" itemid="3216" event="script" value="tiles.lua"/>
<movevent type="StepOut" itemid="3217" event="script" value="tiles.lua"/>
<movevent type="StepIn" itemid="3202" event="script" value="tiles.lua"/>
<movevent type="StepOut" itemid="3215" event="script" value="tiles.lua"/>
<movevent type="StepIn" itemid="11059" event="script" value="tiles.lua"/>
<movevent type="StepOut" itemid="11060" event="script" value="tiles.lua"/>
<!-- <movevent type="StepIn" itemid="8714" event="script" value="tiles.lua"/> -->
<!-- Traps -->
<movevent type="StepIn" itemid="1510" event="script" value="trap.lua"/>
<movevent type="StepOut" itemid="1511" event="script" value="trap.lua"/>
<movevent type="StepIn" itemid="1512" event="script" value="trap.lua"/>
<movevent type="StepOut" itemid="1513" event="script" value="trap.lua"/>
<movevent type="StepIn" itemid="2579" event="script" value="trap.lua"/>
<movevent type="RemoveItem" itemid="2579" event="script" value="trap.lua"/>
<!-- Citizen teleport -->
<movevent type="StepIn" itemid="1387" event="script" value="citizen.lua"/>
<!-- Walkback when walking on quest chest -->
<movevent type="StepIn" itemid="1738" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="1740" event="script" value="walkback.lua"/>
<movevent type="StepIn" fromid="1746" toid="1749" event="script" value="walkback.lua"/>
<!-- (Level & quest) doors -->
<movevent type="StepOut" itemid="1228" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="1230" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="1246" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="1248" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="1260" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="1262" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="3541" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="3550" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="5104" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="5113" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="5122" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="5131" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="5293" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="5295" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="1224" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="1226" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="1242" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="1244" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="1256" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="1258" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="3543" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="3552" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="5106" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="5115" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="5124" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="5133" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="5289" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="5291" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="5746" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="5749" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="6203" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="6205" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="6207" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="6209" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="6260" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="6262" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="6264" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="6266" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="6897" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="6899" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="6906" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="6908" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="7039" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="7041" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="7048" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="7050" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="8552" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="8554" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="8556" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="8558" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="9176" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="9178" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="9180" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="9182" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="9278" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="9280" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="9282" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="9284" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="10279" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="10281" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="10283" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="10285" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="10474" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="10476" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="10483" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="10485" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="10780" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="10782" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="10789" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="10791" event="script" value="closingdoor.lua"/>
<movevent type="StepIn" itemid="1228" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="1230" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="1246" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="1248" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="1260" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="1262" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="3541" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="3550" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="5104" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="5113" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="5122" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="5131" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="5293" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="5295" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="1224" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="1226" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="1242" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="1244" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="1256" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="1258" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="3543" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="3552" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="5106" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="5115" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="5124" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="5133" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="5289" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="5291" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="5746" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="5749" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="6203" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="6205" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="6207" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="6209" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="6260" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="6262" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="6264" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="6266" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="6897" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="6899" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="6906" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="6908" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="7039" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="7041" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="7048" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="7050" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="8552" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="8554" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="8556" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="8558" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="9176" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="9178" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="9180" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="9182" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="9278" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="9280" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="9282" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="9284" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="10279" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="10281" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="10283" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="10285" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="10474" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="10476" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="10483" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="10485" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="10780" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="10782" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="10789" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="10791" event="script" value="walkback.lua"/>
<!-- Snow footprint tiles -->
<movevent type="StepIn" itemid="670" event="script" value="snow.lua"/>
<movevent type="StepIn" itemid="6594" event="script" value="snow.lua"/>
<!-- Create bread movements -->
<movevent type="AddItem" tileitem="1" itemid="1786" event="script" value="dough.lua"/>
<movevent type="AddItem" tileitem="1" itemid="1788" event="script" value="dough.lua"/>
<movevent type="AddItem" tileitem="1" itemid="1790" event="script" value="dough.lua"/>
<movevent type="AddItem" tileitem="1" itemid="1792" event="script" value="dough.lua"/>
<!-- Campfires -->
<movevent type="StepIn" itemid="1423" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="1423" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="1424" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="1424" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="1425" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="1425" event="function" value="onAddField"/>
<!-- Fields -->
<movevent type="StepIn" itemid="1487" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="1487" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="1488" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="1488" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="1489" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="1489" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="1490" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="1490" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="1491" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="1491" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="1492" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="1492" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="1493" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="1493" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="1494" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="1494" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="1495" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="1495" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="1496" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="1496" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="1497" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="1497" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="1498" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="1498" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="1499" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="1499" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="1500" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="1500" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="1501" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="1501" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="1502" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="1502" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="1503" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="1503" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="1504" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="1504" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="1505" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="1505" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="1506" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="1506" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="1507" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="1507" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="1508" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="1508" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="7359" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="7359" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="7360" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="7360" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="7465-7473" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="7465-7473" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="11095" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="11095" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="11096" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="11096" event="function" value="onAddField"/>
<!-- Other -->
<movevent type="Equip" itemid="11826-11837;11737-11748;12753-12755" slot="feet" event="script" value="portrait.lua"/>
<movevent type="DeEquip" itemid="11826-11837;11737-11748;12753-12755" slot="feet" event="script" value="portrait.lua"/>
<movevent type="AddItem" itemid="12753-12755" event="script" value="pokeicon.lua">
<movevent type="RemoveItem" itemid="12753-12755" event="script" value="pokeicon.lua">
<movevent type="StepIn" actionid="9015" event="script" value="roupa.lua"/>
<movevent type="AddItem" tileitem="0" itemid="2160" event="script" value="fut.lua"/>
<movevent type="StepIn" itemid="4820-4824;11756" event="script" value="surf.lua"/>
<movevent type="StepOut" itemid="4820-4824;11756" event="script" value="surf.lua"/>
<!-- <movevent type="StepIn" itemid="4632-4663;6627-6694" event="script" value="surfcancel.lua"/> -->
<movevent type="StepIn" itemid="460;11675-11677" event="script" value="fly.lua"/>
<movevent type="StepOut" itemid="460;11675-11677" event="script" value="fly.lua"/>
<movevent type="StepIn" itemid="919" event="script" value="ghostwalk.lua"/>
<movevent type="StepOut" itemid="8260" event="script" value="ghostwalk.lua"/>
<movevent type="StepOut" itemid="11439;11440" event="script" value="mimicwall.lua"/>
<movevent type="StepIn" itemid="11440" event="script" value="mimicwall.lua"/>
<movevent type="StepOut" itemid="11749-11751" event="script" value="under deep sea.lua"/>
</movements>
info
Grupo: Infante
Registrado: 25/01/12
Posts: 1.6k
Reputação: +330

@Edit achei o erro creio eu
<?xml version="1.0" encoding="UTF-8"?> <movements> <movevent type="StepIn" actionid="33691-33710" event="script" value="PVP/Trade_Go.lua"/> <movevent type="StepIn" actionid="33799;33800-33808" event="script" value="PVP/Trade_Back.lua"/> <movevent type="AddItem" itemid="11826-11837;11737-11748;12325-12329;12332" event="script" value="UniqueItem.lua"/> <movevent type="StepIn" itemid="11777-11785;1533-1542;11809-11811;5303-5304;1111-1119;873-878;2703;2767;1036-1048;6436-6439" event="script" value="blockwall.lua"/> <movevent type="StepIn" actionid="25695-25698;24158" event="script" value="PVP/PVP_tile.lua"/> <!-- Decaying tiles --> <movevent type="StepIn" itemid="293" event="script" value="decay.lua"/> <movevent type="StepIn" itemid="461" event="script" value="decay.lua"/> <!-- Swimming --> <movevent type="StepIn" itemid="4828-4831" event="script" value="swimming.lua"/> <movevent type="StepIn" itemid="7943-7954" event="script" value="swimming.lua"/> <!-- Underwater drown --> <movevent type="StepIn" fromid="5405" toid="5410" event="script" value="drown.lua"/> <movevent type="StepOut" fromid="5405" toid="5410" event="script" value="drown.lua"/> <!-- (Depot & Level) tiles --> <movevent type="StepIn" itemid="416" event="script" value="tiles.lua"/> <movevent type="StepOut" itemid="417" event="script" value="tiles.lua"/> <movevent type="StepIn" itemid="426" event="script" value="tiles.lua"/> <movevent type="StepOut" itemid="425" event="script" value="tiles.lua"/> <movevent type="StepIn" itemid="446" event="script" value="tiles.lua"/> <movevent type="StepOut" itemid="447" event="script" value="tiles.lua"/> <movevent type="StepIn" itemid="3216" event="script" value="tiles.lua"/> <movevent type="StepOut" itemid="3217" event="script" value="tiles.lua"/> <movevent type="StepIn" itemid="3202" event="script" value="tiles.lua"/> <movevent type="StepOut" itemid="3215" event="script" value="tiles.lua"/> <movevent type="StepIn" itemid="11059" event="script" value="tiles.lua"/> <movevent type="StepOut" itemid="11060" event="script" value="tiles.lua"/> <!-- <movevent type="StepIn" itemid="8714" event="script" value="tiles.lua"/> --> <!-- Traps --> <movevent type="StepIn" itemid="1510" event="script" value="trap.lua"/> <movevent type="StepOut" itemid="1511" event="script" value="trap.lua"/> <movevent type="StepIn" itemid="1512" event="script" value="trap.lua"/> <movevent type="StepOut" itemid="1513" event="script" value="trap.lua"/> <movevent type="StepIn" itemid="2579" event="script" value="trap.lua"/> <movevent type="RemoveItem" itemid="2579" event="script" value="trap.lua"/> <!-- Citizen teleport --> <movevent type="StepIn" itemid="1387" event="script" value="citizen.lua"/> <!-- Walkback when walking on quest chest --> <movevent type="StepIn" itemid="1738" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="1740" event="script" value="walkback.lua"/> <movevent type="StepIn" fromid="1746" toid="1749" event="script" value="walkback.lua"/> <!-- (Level & quest) doors --> <movevent type="StepOut" itemid="1228" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="1230" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="1246" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="1248" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="1260" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="1262" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="3541" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="3550" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="5104" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="5113" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="5122" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="5131" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="5293" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="5295" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="1224" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="1226" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="1242" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="1244" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="1256" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="1258" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="3543" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="3552" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="5106" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="5115" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="5124" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="5133" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="5289" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="5291" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="5746" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="5749" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="6203" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="6205" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="6207" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="6209" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="6260" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="6262" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="6264" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="6266" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="6897" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="6899" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="6906" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="6908" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="7039" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="7041" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="7048" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="7050" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="8552" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="8554" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="8556" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="8558" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="9176" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="9178" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="9180" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="9182" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="9278" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="9280" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="9282" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="9284" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="10279" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="10281" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="10283" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="10285" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="10474" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="10476" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="10483" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="10485" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="10780" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="10782" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="10789" event="script" value="closingdoor.lua"/> <movevent type="StepOut" itemid="10791" event="script" value="closingdoor.lua"/> <movevent type="StepIn" itemid="1228" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="1230" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="1246" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="1248" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="1260" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="1262" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="3541" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="3550" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="5104" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="5113" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="5122" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="5131" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="5293" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="5295" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="1224" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="1226" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="1242" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="1244" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="1256" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="1258" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="3543" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="3552" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="5106" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="5115" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="5124" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="5133" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="5289" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="5291" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="5746" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="5749" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="6203" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="6205" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="6207" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="6209" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="6260" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="6262" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="6264" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="6266" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="6897" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="6899" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="6906" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="6908" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="7039" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="7041" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="7048" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="7050" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="8552" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="8554" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="8556" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="8558" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="9176" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="9178" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="9180" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="9182" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="9278" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="9280" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="9282" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="9284" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="10279" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="10281" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="10283" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="10285" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="10474" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="10476" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="10483" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="10485" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="10780" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="10782" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="10789" event="script" value="walkback.lua"/> <movevent type="StepIn" itemid="10791" event="script" value="walkback.lua"/> <!-- Snow footprint tiles --> <movevent type="StepIn" itemid="670" event="script" value="snow.lua"/> <movevent type="StepIn" itemid="6594" event="script" value="snow.lua"/> <!-- Create bread movements --> <movevent type="AddItem" tileitem="1" itemid="1786" event="script" value="dough.lua"/> <movevent type="AddItem" tileitem="1" itemid="1788" event="script" value="dough.lua"/> <movevent type="AddItem" tileitem="1" itemid="1790" event="script" value="dough.lua"/> <movevent type="AddItem" tileitem="1" itemid="1792" event="script" value="dough.lua"/> <!-- Campfires --> <movevent type="StepIn" itemid="1423" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1423" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1424" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1424" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1425" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1425" event="function" value="onAddField"/> <!-- Fields --> <movevent type="StepIn" itemid="1487" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1487" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1488" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1488" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1489" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1489" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1490" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1490" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1491" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1491" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1492" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1492" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1493" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1493" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1494" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1494" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1495" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1495" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1496" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1496" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1497" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1497" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1498" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1498" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1499" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1499" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1500" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1500" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1501" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1501" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1502" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1502" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1503" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1503" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1504" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1504" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1505" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1505" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1506" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1506" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1507" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1507" event="function" value="onAddField"/> <movevent type="StepIn" itemid="1508" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="1508" event="function" value="onAddField"/> <movevent type="StepIn" itemid="7359" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="7359" event="function" value="onAddField"/> <movevent type="StepIn" itemid="7360" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="7360" event="function" value="onAddField"/> <movevent type="StepIn" itemid="7465-7473" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="7465-7473" event="function" value="onAddField"/> <movevent type="StepIn" itemid="11095" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="11095" event="function" value="onAddField"/> <movevent type="StepIn" itemid="11096" event="function" value="onStepInField"/> <movevent type="AddItem" itemid="11096" event="function" value="onAddField"/> <!-- Other --> <movevent type="Equip" itemid="11826-11837;11737-11748;12753-12755" slot="feet" event="script" value="portrait.lua"/> <movevent type="DeEquip" itemid="11826-11837;11737-11748;12753-12755" slot="feet" event="script" value="portrait.lua"/> <movevent type="AddItem" itemid="12753-12755" event="script" value="pokeicon.lua"/> <movevent type="RemoveItem" itemid="12753-12755" event="script" value="pokeicon.lua"/> <movevent type="StepIn" actionid="9015" event="script" value="roupa.lua"/> <movevent type="AddItem" tileitem="0" itemid="2160" event="script" value="fut.lua"/> <movevent type="StepIn" itemid="4820-4824;11756" event="script" value="surf.lua"/> <movevent type="StepOut" itemid="4820-4824;11756" event="script" value="surf.lua"/> <!-- <movevent type="StepIn" itemid="4632-4663;6627-6694" event="script" value="surfcancel.lua"/> --> <movevent type="StepIn" itemid="460;11675-11677" event="script" value="fly.lua"/> <movevent type="StepOut" itemid="460;11675-11677" event="script" value="fly.lua"/> <movevent type="StepIn" itemid="919" event="script" value="ghostwalk.lua"/> <movevent type="StepOut" itemid="8260" event="script" value="ghostwalk.lua"/> <movevent type="StepOut" itemid="11439;11440" event="script" value="mimicwall.lua"/> <movevent type="StepIn" itemid="11440" event="script" value="mimicwall.lua"/> <movevent type="StepOut" itemid="11749-11751" event="script" value="under deep sea.lua"/> </movements>
acho q o erro tava aq.
<movevent type="AddItem" itemid="12753-12755" event="script" value="pokeicon.lua"> <movevent type="RemoveItem" itemid="12753-12755" event="script" value="pokeicon.lua">
o certo seria....
<movevent type="AddItem" itemid="12753-12755" event="script" value="pokeicon.lua"/> <movevent type="RemoveItem" itemid="12753-12755" event="script" value="pokeicon.lua"/>
Editado Janeiro 30 por StyloMaldoso
info
Grupo: Visconde
Registrado: 10/09/12
Posts: 476
Reputação: +2
Char no Tibia: Esqueci

@Stylomaldoso irei testar aki se funfar eu edito o posto dizendo que funfo
@Edited cara funfo só tem uns problemas
Eu deixo o poke com icone e tal ai fiz uns teste, ai eu chamei ele pra ball de volta, ai quando eu tentei chamar ele pra fora novamente não vai, eu usando o coowndl bar, lá tem o portaits dele ai eu cliko e ele volta pra fora da balll ai eu cliko novamente e ele volta pra dentro da bal, mais eu usando a barra que vai, ahh e uma outra dúvida tipo porque só com a ultra ball que aparece o icone ? e não com a pokeball, great e super eu uso o /cb venomoth, e só vem ball quando é ultra, tipo se fosse vim outro tipo deball tipo de pokeball num vem, só vem ultra, eu tenho que fazer
["Venomoth"] = {effect = 188, on = 12573, use = 12754, off = 12755, all = {12753, 12754, 12755}},
No effect é o que exatamente o tipo da ball se é ultra ?
Tipo eu teria que criar outro venomoths tipo assim, :
pokeball:
["Venomoth"] = {effect = 191, on = 12573, use = 12754, off = 12755, all = {12753, 12754, 12755}},
["Venomoth"] = {effect = 190, on = 12573, use = 12754, off = 12755, all = {12753, 12754, 12755}},
["Venomoth"] = {effect = 189, on = 12573, use = 12754, off = 12755, all = {12753, 12754, 12755}},
Tipo assim: na ordem que fikaria
pokeballs = {
["poke"] = {effect = 188, on = 11826, use = 11827, off = 11828, all = {11826, 11827, 11828}},
["ultra"] = {effect = 191, on = 11829, use = 11830, off = 11831, all = {11829, 11830, 11831}},
["super"] = {effect = 190, on = 11835, use = 11836, off = 11837, all = {11835, 11836, 11837}},
["great"] = {effect = 189, on = 1469, use = 1470, off = 1471, all = {1469, 1470, 1471}},
["spoke"] = {effect = 188, on = 11737, use = 11738, off = 11739, all = {11737, 11738, 11739}},
["sgreat"] = {effect = 189, on = 11740, use = 11741, off = 11742, all = {11740, 11741, 11742}},
["ssuper"] = {effect = 190, on = 11743, use = 11744, off = 11745, all = {11743, 11744, 11745}},
["sultra"] = {effect = 191, on = 11746, use = 11747, off = 11748, all = {11746, 11747, 11748}},
["Venomoth"] = {effect = 188, on = 12573, use = 12754, off = 12755, all = {12753, 12754, 12755}},
["Venomoth"] = {effect = 191, on = 12573, use = 12754, off = 12755, all = {12753, 12754, 12755}},
["Venomoth"] = {effect = 190, on = 12573, use = 12754, off = 12755, all = {12753, 12754, 12755}},
["Venomoth"] = {effect = 189, on = 12573, use = 12754, off = 12755, all = {12753, 12754, 12755}},
}
ou não precisa ser assim ?
Veja as prints:
Editado Janeiro 30 por josegremista
info
Grupo: Infante
Registrado: 25/01/12
Posts: 1.6k
Reputação: +330

cara ai tu configuro errado, veja certo, como dito no topico vc tava com 2 erros ja ajudei, intão configure certo q n ta certo isso ae n
em pokeballs o certo seria assim ..
["Venomoth"] = {effect = 191, on = 12573, use = 12754, off = 12755, all = {12753, 12754, 12755}},
exemplo..
pokeballs = {
["poke"] = {effect = 188, on = 11826, use = 11827, off = 11828, all = {11826, 11827, 11828}},
["ultra"] = {effect = 191, on = 11829, use = 11830, off = 11831, all = {11829, 11830, 11831}},
["super"] = {effect = 190, on = 11835, use = 11836, off = 11837, all = {11835, 11836, 11837}},
["great"] = {effect = 189, on = 1469, use = 1470, off = 1471, all = {1469, 1470, 1471}},
["spoke"] = {effect = 188, on = 11737, use = 11738, off = 11739, all = {11737, 11738, 11739}},
["sgreat"] = {effect = 189, on = 11740, use = 11741, off = 11742, all = {11740, 11741, 11742}},
["ssuper"] = {effect = 190, on = 11743, use = 11744, off = 11745, all = {11743, 11744, 11745}},
["sultra"] = {effect = 191, on = 11746, use = 11747, off = 11748, all = {11746, 11747, 11748}},
["Venomoth"] = {effect = 188, on = 12573, use = 12754, off = 12755, all = {12753, 12754, 12755}},
}
TODOS icone q tu cria tem q tar com o effect = 188
e na hr de cria o poke tem q ter algo na talk de criar poke.. vé se tu acha no server dele la em data/talk/script/createpokeball acho q é assim.
Editado Janeiro 30 por StyloMaldoso
info
Grupo: Visconde
Registrado: 10/09/12
Posts: 476
Reputação: +2
Char no Tibia: Esqueci

Podem fechar o topico.
info
Grupo: Príncipe
Registrado: 19/08/10
Posts: 4k
Reputação: +1.1k
Gênero: Masculino

sanado, movido
info
Grupo: Herói
Registrado: 28/11/10
Posts: 3.4k
Reputação: +585
Gênero: Masculino

+ Caso a dúvida não tenha sido resolvida você poderá criar outro tópico solicitando ajuda.
* Lembre-se que é permitido dar UP no tópico a cada 24 horas para assim o destacar e manter movimentado.




info
Grupo: Visconde
Registrado: 10/09/12
Posts: 476
Reputação: +2
Char no Tibia: Esqueci
Iae galera eu conseguir entender como é o iconsystem dps de um tempão mais, eu usei como base do iconsystem o serv do smix akele que ja tem o iconsystem, já que ele retirou o conteudo do iconsystem, ai fuis tudo certinho, Quase nada deu error, Só deu error em duas coisas no
MoveEvents.xml e a Pokeballs.lua que fica na data/lib
Aki os error:
[30/01/2013 09:21:16] [Error - LuaScriptInterface::loadFile] data/lib/Pokeballs.lua:2: unexpected symbol near '<eof>'
[30/01/2013 09:21:16] [Warning - LuaScriptInterface::initState] Cannot load data/lib/
[30/01/2013 09:21:16] [Warning - BaseEvents::loadFromXml] Cannot open movements.xml file.
[30/01/2013 09:21:16] Line: 297, Info: Premature end of data in tag movements line 2
[30/01/2013 09:21:16] > ERROR: Unable to load MoveEvents!
Esse error da quando eu estou ligando o serve.
Aki os bangs que deram error:
o MoveEvents.xml
<?xml version="1.0" encoding="UTF-8"?>
<movements>
<movevent type="StepIn" actionid="33691-33710" event="script" value="PVP/Trade_Go.lua"/>
<movevent type="StepIn" actionid="33799;33800-33808" event="script" value="PVP/Trade_Back.lua"/>
<movevent type="AddItem" itemid="11826-11837;11737-11748;12325-12329;12332" event="script" value="UniqueItem.lua"/>
<movevent type="StepIn" itemid="11777-11785;1533-1542;11809-11811;5303-5304;1111-1119;873-878;2703;2767;1036-1048;6436-6439" event="script" value="blockwall.lua"/>
<movevent type="StepIn" actionid="25695-25698;24158" event="script" value="PVP/PVP_tile.lua"/>
<!-- Decaying tiles -->
<movevent type="StepIn" itemid="293" event="script" value="decay.lua"/>
<movevent type="StepIn" itemid="461" event="script" value="decay.lua"/>
<!-- Swimming -->
<movevent type="StepIn" itemid="4828-4831" event="script" value="swimming.lua"/>
<movevent type="StepIn" itemid="7943-7954" event="script" value="swimming.lua"/>
<!-- Underwater drown -->
<movevent type="StepIn" fromid="5405" toid="5410" event="script" value="drown.lua"/>
<movevent type="StepOut" fromid="5405" toid="5410" event="script" value="drown.lua"/>
<!-- (Depot & Level) tiles -->
<movevent type="StepIn" itemid="416" event="script" value="tiles.lua"/>
<movevent type="StepOut" itemid="417" event="script" value="tiles.lua"/>
<movevent type="StepIn" itemid="426" event="script" value="tiles.lua"/>
<movevent type="StepOut" itemid="425" event="script" value="tiles.lua"/>
<movevent type="StepIn" itemid="446" event="script" value="tiles.lua"/>
<movevent type="StepOut" itemid="447" event="script" value="tiles.lua"/>
<movevent type="StepIn" itemid="3216" event="script" value="tiles.lua"/>
<movevent type="StepOut" itemid="3217" event="script" value="tiles.lua"/>
<movevent type="StepIn" itemid="3202" event="script" value="tiles.lua"/>
<movevent type="StepOut" itemid="3215" event="script" value="tiles.lua"/>
<movevent type="StepIn" itemid="11059" event="script" value="tiles.lua"/>
<movevent type="StepOut" itemid="11060" event="script" value="tiles.lua"/>
<!-- <movevent type="StepIn" itemid="8714" event="script" value="tiles.lua"/> -->
<!-- Traps -->
<movevent type="StepIn" itemid="1510" event="script" value="trap.lua"/>
<movevent type="StepOut" itemid="1511" event="script" value="trap.lua"/>
<movevent type="StepIn" itemid="1512" event="script" value="trap.lua"/>
<movevent type="StepOut" itemid="1513" event="script" value="trap.lua"/>
<movevent type="StepIn" itemid="2579" event="script" value="trap.lua"/>
<movevent type="RemoveItem" itemid="2579" event="script" value="trap.lua"/>
<!-- Citizen teleport -->
<movevent type="StepIn" itemid="1387" event="script" value="citizen.lua"/>
<!-- Walkback when walking on quest chest -->
<movevent type="StepIn" itemid="1738" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="1740" event="script" value="walkback.lua"/>
<movevent type="StepIn" fromid="1746" toid="1749" event="script" value="walkback.lua"/>
<!-- (Level & quest) doors -->
<movevent type="StepOut" itemid="1228" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="1230" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="1246" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="1248" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="1260" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="1262" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="3541" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="3550" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="5104" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="5113" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="5122" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="5131" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="5293" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="5295" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="1224" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="1226" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="1242" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="1244" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="1256" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="1258" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="3543" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="3552" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="5106" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="5115" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="5124" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="5133" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="5289" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="5291" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="5746" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="5749" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="6203" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="6205" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="6207" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="6209" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="6260" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="6262" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="6264" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="6266" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="6897" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="6899" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="6906" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="6908" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="7039" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="7041" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="7048" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="7050" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="8552" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="8554" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="8556" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="8558" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="9176" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="9178" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="9180" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="9182" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="9278" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="9280" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="9282" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="9284" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="10279" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="10281" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="10283" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="10285" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="10474" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="10476" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="10483" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="10485" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="10780" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="10782" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="10789" event="script" value="closingdoor.lua"/>
<movevent type="StepOut" itemid="10791" event="script" value="closingdoor.lua"/>
<movevent type="StepIn" itemid="1228" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="1230" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="1246" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="1248" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="1260" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="1262" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="3541" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="3550" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="5104" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="5113" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="5122" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="5131" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="5293" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="5295" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="1224" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="1226" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="1242" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="1244" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="1256" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="1258" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="3543" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="3552" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="5106" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="5115" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="5124" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="5133" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="5289" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="5291" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="5746" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="5749" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="6203" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="6205" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="6207" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="6209" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="6260" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="6262" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="6264" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="6266" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="6897" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="6899" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="6906" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="6908" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="7039" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="7041" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="7048" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="7050" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="8552" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="8554" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="8556" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="8558" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="9176" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="9178" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="9180" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="9182" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="9278" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="9280" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="9282" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="9284" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="10279" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="10281" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="10283" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="10285" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="10474" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="10476" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="10483" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="10485" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="10780" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="10782" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="10789" event="script" value="walkback.lua"/>
<movevent type="StepIn" itemid="10791" event="script" value="walkback.lua"/>
<!-- Snow footprint tiles -->
<movevent type="StepIn" itemid="670" event="script" value="snow.lua"/>
<movevent type="StepIn" itemid="6594" event="script" value="snow.lua"/>
<!-- Create bread movements -->
<movevent type="AddItem" tileitem="1" itemid="1786" event="script" value="dough.lua"/>
<movevent type="AddItem" tileitem="1" itemid="1788" event="script" value="dough.lua"/>
<movevent type="AddItem" tileitem="1" itemid="1790" event="script" value="dough.lua"/>
<movevent type="AddItem" tileitem="1" itemid="1792" event="script" value="dough.lua"/>
<!-- Campfires -->
<movevent type="StepIn" itemid="1423" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="1423" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="1424" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="1424" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="1425" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="1425" event="function" value="onAddField"/>
<!-- Fields -->
<movevent type="StepIn" itemid="1487" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="1487" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="1488" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="1488" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="1489" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="1489" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="1490" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="1490" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="1491" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="1491" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="1492" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="1492" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="1493" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="1493" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="1494" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="1494" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="1495" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="1495" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="1496" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="1496" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="1497" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="1497" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="1498" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="1498" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="1499" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="1499" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="1500" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="1500" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="1501" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="1501" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="1502" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="1502" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="1503" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="1503" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="1504" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="1504" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="1505" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="1505" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="1506" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="1506" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="1507" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="1507" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="1508" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="1508" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="7359" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="7359" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="7360" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="7360" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="7465-7473" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="7465-7473" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="11095" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="11095" event="function" value="onAddField"/>
<movevent type="StepIn" itemid="11096" event="function" value="onStepInField"/>
<movevent type="AddItem" itemid="11096" event="function" value="onAddField"/>
<!-- Other -->
<movevent type="Equip" itemid="11826-11837;11737-11748;12753-12755" slot="feet" event="script" value="portrait.lua"/>
<movevent type="DeEquip" itemid="11826-11837;11737-11748;12753-12755" slot="feet" event="script" value="portrait.lua"/>
<movevent type="AddItem" itemid="12753-12755" event="script" value="pokeicon.lua">
<movevent type="RemoveItem" itemid="12753-12755" event="script" value="pokeicon.lua">
<movevent type="StepIn" actionid="9015" event="script" value="roupa.lua"/>
<movevent type="AddItem" tileitem="0" itemid="2160" event="script" value="fut.lua"/>
<movevent type="StepIn" itemid="4820-4824;11756" event="script" value="surf.lua"/>
<movevent type="StepOut" itemid="4820-4824;11756" event="script" value="surf.lua"/>
<!-- <movevent type="StepIn" itemid="4632-4663;6627-6694" event="script" value="surfcancel.lua"/> -->
<movevent type="StepIn" itemid="460;11675-11677" event="script" value="fly.lua"/>
<movevent type="StepOut" itemid="460;11675-11677" event="script" value="fly.lua"/>
<movevent type="StepIn" itemid="919" event="script" value="ghostwalk.lua"/>
<movevent type="StepOut" itemid="8260" event="script" value="ghostwalk.lua"/>
<movevent type="StepOut" itemid="11439;11440" event="script" value="mimicwall.lua"/>
<movevent type="StepIn" itemid="11440" event="script" value="mimicwall.lua"/>
<movevent type="StepOut" itemid="11749-11751" event="script" value="under deep sea.lua"/>
</movements>
Nessa linha que ta o bang do diretorio do icon:
[spoiler~]<movevent type="Equip" itemid="11826-11837;11737-11748;12753-12755" slot="feet" event="script" value="portrait.lua"/>
<movevent type="DeEquip" itemid="11826-11837;11737-11748;12753-12755" slot="feet" event="script" value="portrait.lua"/>
<movevent type="AddItem" itemid="12753-12755" event="script" value="pokeicon.lua">
<movevent type="RemoveItem" itemid="12753-12755" event="script" value="pokeicon.lua">
Agora o Pokeballs.lua o da lib
icons = {
["Venomoth"] = { on = 12753, off = 12755, use = 12754 },
Aki uma print do error:
Rep+ pra quem ajudar com isso