Ir para conteúdo
  • 0

bernardes22

Pergunta

Boa Noite Galera!



Preciso muito da ajuda de vocês, quando eu coloco o meu server online, e logo com o player que usou a gema aura não aparece nenhum erro na Distro, mais quando eu deslogo e logo no server o erro aparece, erro nos seguintes arquivos login.lua e no pivi.lua gente por favor me ajudem a tirar esse erro?



Irei posta o erro que aparece na distro e os arquivos, estou usando o TFS 0.4 versão 8.60




Por Favor Gente Me Ajudem, Estou desesperado, tem dias que estou tentando arrume isso e não consigo :/




erro que aparece na Distro





[05/03/2016 00:22:52] [Error - CreatureScript Interface]
[05/03/2016 00:22:52] In a timer event called from:
[05/03/2016 00:22:52] data/creaturescripts/scripts/login.lua:onLogin
[05/03/2016 00:22:52] Description:
[05/03/2016 00:22:52] (luaGetThingPosition) Thing not found


[05/03/2016 00:22:52] [Error - CreatureScript Interface]
[05/03/2016 00:22:52] In a timer event called from:
[05/03/2016 00:22:52] data/creaturescripts/scripts/login.lua:onLogin
[05/03/2016 00:22:52] Description:
[05/03/2016 00:22:52] (internalGetPlayerInfo) Player not found when requesting player info #6


[05/03/2016 00:22:52] [Error - CreatureScript Interface]
[05/03/2016 00:22:52] In a timer event called from:
[05/03/2016 00:22:52] data/creaturescripts/scripts/login.lua:onLogin
[05/03/2016 00:22:52] Description:
[05/03/2016 00:22:53] (internalGetPlayerInfo) Player not found when requesting player info #6


[05/03/2016 00:22:53] [Error - CreatureScript Interface]
[05/03/2016 00:22:53] In a timer event called from:
[05/03/2016 00:22:53] data/creaturescripts/scripts/login.lua:onLogin
[05/03/2016 00:22:53] Description:
[05/03/2016 00:22:53] (luaGetCreatureStorage) Creature not found


[05/03/2016 00:22:53] [Error - CreatureScript Interface]
[05/03/2016 00:22:53] In a timer event called from:
[05/03/2016 00:22:53] data/creaturescripts/scripts/login.lua:onLogin
[05/03/2016 00:22:53] Description:
[05/03/2016 00:22:53] data/lib/Pivi.lua:34: attempt to compare number with boolean
[05/03/2016 00:22:53] stack traceback:
[05/03/2016 00:22:53] data/lib/Pivi.lua:34: in function <data/lib/Pivi.lua:19>

Arquivo data/creaturescripts/scripts/login.lua





function onLogin(cid)


setPlayerStorageValue(cid, 47112120, 2)


local voc = getPlayerVocation(cid)


if getPlayerStorageValue(cid, gems.storage[getPlayerVocation(cid)]) > 0 then
sendGemEffect(cid, gems.storage[voc], gems.interval[voc])
end
local loss = getConfigValue('deathLostPercent')
if(loss ~= nil) then
for i = PLAYERLOSS_EXPERIENCE, PLAYERLOSS_ITEMS do
doPlayerSetLossPercent(cid, i, getConfigValue('deathLostPercent'))
end
end


registerCreatureEvent(cid, "owned")
registerCreatureEvent(cid, "conected")
registerCreatureEvent(cid, "boss")
registerCreatureEvent(cid, "thalasteleport")
registerCreatureEvent(cid, "thalas_teleport")
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
registerCreatureEvent(cid, "zombieevent")
registerCreatureEvent(cid, "combat")
registerCreatureEvent(cid, "forever amulet")
return TRUE
end

Arquivo data/lib/Pivi.lua





function doUseGem(cid, item)
local voc = getPlayerVocation(cid)
local interval = gems.interval[voc]


if item.itemid ~= gems.id[voc] or getPlayerStorageValue(cid, gems.storage[voc]) > 0 then
return FALSE
end


setPlayerStorageValue(cid, gems.storage[voc], 1)
sendGemEffect(cid, gems.storage[voc], gems.interval[voc])
doRemoveItem(item.uid, 1)






return TRUE
end




function sendGemEffect(cid, storage, interval)
local pos = getThingPos(cid)
local voc = getPlayerVocation(cid)
local color = 1
if voc == 5 then
color = gemMsg.colorDruid[math.random(1,#gemMsg.colorElderDruid)]
elseif voc == 6 then
color = gemMsg.colorSorcerer[math.random(1,#gemMsg.colorMasterSorcerer)]
elseif voc == 7 then
color = gemMsg.colorPaladin[math.random(1,#gemMsg.colorRoyalPaladin)]
elseif voc == 8 then
color = gemMsg.colorKnight[math.random(1,#gemMsg.colorEliteKnight)]
end


doSendAnimatedText(pos, gemMsg.rnd[math.random(1,#gemMsg.rnd)], color)
if getPlayerStorageValue(cid, gems.storage[getPlayerVocation(cid)]) >= 1 then
addEvent(sendGemEffect, interval, cid, storage, interval)
end
end


function doRemoveGemEffect(cid)
if getPlayerStorageValue(cid, gems.storage[getPlayerVocation(cid)]) < 1 then
return FALSE
end
setPlayerStorageValue(cid, gems.storage[getPlayerVocation(cid)], 0)
return TRUE
end


function doRemoveAllGemEffect(cid)
for i = 1, table.maxn(gms.storage) do
setPlayerStorageValue(cid, gems.storage[i], 0)
end
return TRUE
end


function isGemActivated(cid)
if getPlayerStorageValue(cid, gems.storage[getPlayerVocation(cid)]) > 0 then
return TRUE
end
return FALSE
end






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

3 respostass a esta questão

Posts Recomendados

  • 0

 

Abaixo de:
function sendGemEffect(cid, storage, interval)
coloque:
if not isPlayer(cid) then return true end

 

 

Cara Tu é de mais <3 Muito Obrigado <3.

 

 

Poderia me informar como que eu consigo resolver esse erro aqui amigo?

 

 

[05/03/2016 00:31:52] [Warning - InstantSpell::loadFunction] Function "editHouseGuest" does not exist.
[05/03/2016 00:31:52] [Warning - InstantSpell::loadFunction] Function "editHouseSubOwner" does not exist.
[05/03/2016 00:31:52] [Warning - InstantSpell::loadFunction] Function "editHouseDoor" does not exist.
[05/03/2016 00:31:52] [Warning - InstantSpell::loadFunction] Function "houseKick" does not exist.
Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...