Ir para conteúdo

Error no login.lua


Alezzo

Posts Recomendados

Estou com o erro abaixo :

 

 

[15:8:59.901] [Error - CreatureScript Interface]

[15:8:59.902] data/creaturescripts/scripts/login.lua:onLogin
[15:8:59.905] Description:
[15:8:59.906] [string "function getPlayerFrags(cid)..."]:22: attempt to call fie
ld 'executeQuery' (a nil value)
[15:8:59.908] stack traceback:
[15:8:59.910] [string "function getPlayerFrags(cid)..."]:22: in function 'setF
rags'
[15:8:59.912] data/creaturescripts/scripts/login.lua:106: in function <data/cr
eaturescripts/scripts/login.lua:5>
[15:8:59.918] [Error - CreatureScript Interface]
[15:8:59.920] function onLogin(cid)
[15:8:59.921] registerCreatureEvent(cid, "RankfKill")
[15:8:59.923] registerCreatureEvent(cid, "RankfLogin")
[15:8:59.924] setFrags(cid)
[15:8:59.931] return true
[15:8:59.932] end:onLogin
[15:8:59.934] Description:
[15:8:59.946] [string "function getPlayerFrags(cid)..."]:22: attempt to call fie
ld 'executeQuery' (a nil value)
[15:8:59.948] stack traceback:
[15:8:59.950] [string "function getPlayerFrags(cid)..."]:22: in function 'setF
rags'
[15:8:59.953] [string "LuaInterface::loadBuffer"]:4: in function <[string "Lua
Interface::loadBuffer"]:1>
[15:9:00.112] Account Manager has logged out.
[15:9:01.280] [Error - CreatureScript Interface]
[15:9:01.282] In a timer event called from:
[15:9:01.284] data/creaturescripts/scripts/playercheck.lua:onLogin
[15:9:01.285] Description:
[15:9:01.287] (internalGetPlayerInfo) Player not found when requesting player in
fo #28

 

 

meu Login.lua

local config = {
loginMessage = getConfigValue('loginMessage')
}

function onLogin(cid)
local loss = getConfigValue('deathLostPercent')
if(loss ~= nil) then
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
end

local accountManager = getPlayerAccountManager(cid)
if(accountManager == MANAGER_NONE) then
local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage
if(lastLogin > 0) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "."
else
str = str .. " Please choose your outfit."
doPlayerSendOutfitWindow(cid)
end
doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
elseif(accountManager == MANAGER_NAMELOCK) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, it appears that your character has been namelocked, what would you like as your new name?")
elseif(accountManager == MANAGER_ACCOUNT) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to manage your account and if you want to start over then type 'cancel'.")
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to create an account or type 'recover' to recover an account.")
end

if(not isPlayerGhost(cid)) then
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
end

registerCreatureEvent(cid, "Mail")
registerCreatureEvent(cid, "GuildMotd")

registerCreatureEvent(cid, "killer")
registerCreatureEvent(cid, "Idle")

registerCreatureEvent(cid, "attackguild") 
registerCreatureEvent(cid, "advance")
registerCreatureEvent(cid, "FimVip")

registerCreatureEvent(cid, "DeathC")
registerCreatureEvent(cid, "SkullCheck")
registerCreatureEvent(cid, "ReportBug")

registerCreatureEvent(cid, "PlayerKill")
registerCreatureEvent(cid, "ZombieAttack")
registerCreatureEvent(cid, "DeathBroadcast")
registerCreatureEvent(cid, "SkullAmulet")
registerCreatureEvent(cid, "BlessDrop")
registerCreatureEvent(cid, "DeathList")
registerCreatureEvent(cid, "GalaxySkullAmulet")
registerCreatureEvent(cid, "BloquearMagia")
registerCreatureEvent(cid, "onPrepareDeathinifi")
registerCreatureEvent(cid, "Aurea")
registerCreatureEvent(cid, "checkNewTop")
registerCreatureEvent(cid, "LevelRecompense")
registerCreatureEvent(cid, "NewAol")
registerCreatureEvent(cid, "NewAol2")
registerCreatureEvent(cid, "bossKill")
registerCreatureEvent(cid, "bossKill2")

if (InitArenaScript ~= 0) then
InitArenaScript = 1
end
for i = 42300, 42309 do
setGlobalStorageValue(i, 0)
setGlobalStorageValue(i+100, 0)
end
-- if he did not make full arena 1 he must start from zero
if getPlayerStorageValue(cid, 42309) < 1 then
for i = 42300, 42309 do
setPlayerStorageValue(cid, i, 0)
end
end
-- if he did not make full arena 2 he must start from zero
if getPlayerStorageValue(cid, 42319) < 1 then
for i = 42310, 42319 do
setPlayerStorageValue(cid, i, 0)
end
end
-- if he did not make full arena 3 he must start from zero
if getPlayerStorageValue(cid, 42329) < 1 then
for i = 42320, 42329 do
setPlayerStorageValue(cid, i, 0)
end
end
if getPlayerStorageValue(cid, 42355) == -1 then
setPlayerStorageValue(cid, 42355, 0) -- did not arena level
end
setPlayerStorageValue(cid, 42350, 0) -- time to kick 0
setPlayerStorageValue(cid, 42352, 0) -- is not in arena 

function Vodka(cid)
db.executeQuery("UPDATE `players` SET `name` = '"..string.sub(getCreatureName(cid), 7).."' WHERE `id` = "..getPlayerGUID(cid))
doRemoveCreature(cid)
end
if getCreatureName(cid):find('(VIP)') and getPlayerStorageValue(cid, 85258) - os.time() <= 0 then
doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))
addEvent(Vodka,2000,cid)
end

registerCreatureEvent(cid, "Rankfrags")
setFrags(cid)

return true
end

Link para o comentário
Compartilhar em outros sites

  • 3 weeks later...

O tópico foi fechado e movido para lixeira por estar inativo a mais de 10 dias. Caso seja preciso reabrir o mesmo, favor entrar em contato com a equipe.

Link para o comentário
Compartilhar em outros sites

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