Ir para conteúdo

[Fechado]


mathemas

Posts Recomendados

Olha eu peguei o vip tile,aqui no Xtibia,e pego tudo legal,mais as vezes quando ninguem pisa dar isso o:

[20/11/2009 14:51:16] Lua Script Error: [MoveEvents Interface] 
[20/11/2009 14:51:16] data/movements/scripts/vipTile.lua:onStepIn

[20/11/2009 14:51:16] data/movements/scripts/vipTile.lua:12: attempt to compare boolean with number
[20/11/2009 14:51:16] stack traceback:
[20/11/2009 14:51:16]     data/movements/scripts/vipTile.lua:12: in function <data/movements/scripts/vipTile.lua:1>

[20/11/2009 14:51:18] Lua Script Error: [MoveEvents Interface] 
[20/11/2009 14:51:18] data/movements/scripts/vipTile.lua:onStepIn

[20/11/2009 14:51:18] luaGetPlayerStorageValue(). Player not found

 

Traduzido:

[20/11/2009 14:51:16] Lua Script Error: [MoveEvents Interface]
[20/11/2009 14:51:16] data / movimentos / scripts / vipTile.lua: onStepIn

[20/11/2009 14:51:16] data / movimentos / scripts / vipTile.lua: 12: tentativa de comparar com o número de boolean
[20/11/2009 14:51:16] stack traceback:
[20/11/2009 14:51:16] data / movimentos / scripts / vipTile.lua: 12: em função <data/movements/scripts/vipTile.lua:1>

[20/11/2009 14:51:18] Lua Script Error: [MoveEvents Interface]
[20/11/2009 14:51:18] data / movimentos / scripts / vipTile.lua: onStepIn

[20/11/2009 14:51:18] luaGetPlayerStorageValue (). Jogador não encontrado

 

Aqui o script dele:

 

function onStepIn(cid, item, position, fromPosition)

local tileConfig = {
kickPos = {x=160, y=53, z=7},
kickEffect = CONST_ME_POFF,
kickMsg = "So vip que PODE.Podre.",
enterMsg = "Bem vindo vip,bom up!",
enterEffect = CONST_ME_MAGIC_BLUE,
vipStorage = 13540,
}

if(getPlayerStorageValue(cid, tileConfig.vipStorage) <= 0) then
doTeleportThing(cid, tileConfig.kickPos)
doSendMagicEffect(tileConfig.kickPos, tileConfig.kickEffect)
doPlayerSendCancel(cid, tileConfig.kickMsg)
return
end

doPlayerSendTextMessage(cid, 25, tileConfig.enterMsg)
doSendMagicEffect(position, tileConfig.enterEffect)
return true
end

Editado por mathemas
Link para o comentário
Compartilhar em outros sites

tenta isso aqui:

 

function onStepIn(cid, item, position, fromPosition)

 

local tileConfig = {

kickPos = {x=160, y=53, z=7},

kickEffect = CONST_ME_POFF,

kickMsg = "So vip que PODE.Podre.",

enterMsg = "Bem vindo vip,bom up!",

enterEffect = CONST_ME_MAGIC_BLUE,

vipStorage = 13540,

}

 

if(getPlayerStorageValue(cid, tileConfig.vipStorage) <= 0) then

doTeleportThing(cid, tileConfig.kickPos)

doSendMagicEffect(tileConfig.kickPos, tileConfig.kickEffect)

doPlayerSendCancel(cid, tileConfig.kickMsg)

else

doPlayerSendTextMessage(cid, 25, tileConfig.enterMsg)

doSendMagicEffect(position, tileConfig.enterEffect)

end

return TRUE

end

 

eu acho que vai dar certo.

flw

Link para o comentário
Compartilhar em outros sites

Ae não deu não:

 

[20/11/2009 16:33:33] Lua Script Error: [MoveEvents Interface] 
[20/11/2009 16:33:33] data/movements/scripts/vipTile.lua:onStepIn

[20/11/2009 16:33:33] data/movements/scripts/vipTile.lua:12: attempt to compare boolean with number
[20/11/2009 16:33:33] stack traceback:
[20/11/2009 16:33:33]     data/movements/scripts/vipTile.lua:12: in function <data/movements/scripts/vipTile.lua:1>

[20/11/2009 16:33:35] Lua Script Error: [MoveEvents Interface] 
[20/11/2009 16:33:35] data/movements/scripts/vipTile.lua:onStepIn

[20/11/2009 16:33:35] luaGetPlayerStorageValue(). Player not found

 

Aqui o XML do movements.xml:

 

<movevent type="StepIn" actionid="13500" event="script" value="vipTile.lua"/>

Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...