Ir para conteúdo

Player não morre mais


Zazeros

Posts Recomendados

Então pessoal, é um pequeno erro que não muda em nada no jogo, o unico problema é que o player não morre mais hsauhsuahsau. Quando é pra ele morrer, um corpo aparece no chão, a vida e o nome dele some pra outros players (como se tivesse morrido mesmo) mas ai ele volta, com vida e mana full, no mesmo lugar. No console, acontece esse bug:

 

[10:59:08.154] [Error - CreatureScript Interface]
[10:59:08.154] domodlib('re')
[10:59:08.154] function onPrepareDeath(cid, deathList)
[10:59:08.154] if(not isPlayer(cid)) then
[10:59:08.164] return true
[10:59:08.164] end
[10:59:08.164] if getGlobalStorageValue(t.a) == 1 then
[10:59:08.164] local strings = {""}
[10:59:08.164] local j, position, corpse = 1, 1, 0
[10:59:08.164] for _, pid in ipairs(deathList) do
[10:59:08.164] if isCreature(pid) == true then
[10:59:08.164] strings[position] = j == 1 and "" or strings[position] .. ", "
[10:59:08.164] strings[position] = strings[position] .. getCreatureName(pid) ..
""
[10:59:08.174] j = j + 1
[10:59:08.174] else
[10:59:08.174] strings[position] = j == 1 and "" or strings[position] .. ", "
[10:59:08.174] strings[position] = strings[position] .."a field item"
[10:59:08.174] j = j + 1
[10:59:08.174] end
[10:59:08.174] end
[10:59:08.174] for i, str in ipairs(strings) do
[10:59:08.174] if(str:sub(str:len()) ~= ",") then
[10:59:08.174] str = str .. "."
[10:59:08.184] end
[10:59:08.184] desc = "You recognize "
[10:59:08.184] desc = desc .. "" .. getCreatureName(cid) .. ". He was killed by
" .. str
[10:59:08.184] end
[10:59:08.184] if(getPlayerSex(cid) == 1) then
[10:59:08.184] corpse = doCreateItem(3058, getCreaturePosition(cid))
[10:59:08.184] else
[10:59:08.184] corpse = doCreateItem(3065, getCreaturePosition(cid))
[10:59:08.184] end
[10:59:08.194] doItemSetAttribute(corpse, "description", desc)
[10:59:08.194] if((getPlayerStorageValue(cid, t.g) % 2) == 1) then
[10:59:08.194] setGlobalStorageValue(t.u, getGlobalStorageValue(t.u)+1)
[10:59:08.194] else
[10:59:08.194] setGlobalStorageValue(t.l, getGlobalStorageValue(t.l)+1)
[10:59:08.194] end
[10:59:08.194] local red = getGlobalStorageValue(t.l)
[10:59:08.194] local blue = getGlobalStorageValue(t.u)
[10:59:08.194] if blue < t.v or red < t.v then
[10:59:08.194] if(isPlayer(cid) == false) then
[10:59:08.204] return true
[10:59:08.204] end
[10:59:08.204] if((getPlayerStorageValue(cid, t.g) % 2) == 1) then
[10:59:08.204] doTeleportThing(cid, t.d_1)
[10:59:08.204] doSendMagicEffect(getCreaturePosition(cid), 10)
[10:59:08.204] doCreatureAddHealth(cid, getCreatureMaxHealth(cid), MAGIC_EFFECT_
UNKNOWN, COLOR_UNKNOWN, true)
[10:59:08.204] doCreatureAddMana(cid, getCreatureMaxMana(cid))
[10:59:08.204] doPlayerRemoveLethalConditions(cid)
[10:59:08.204] if getCreatureSkullType(cid) == SKULL_WHITE then
[10:59:08.204] doCreatureSetSkullType(cid, 0)
[10:59:08.215] end
[10:59:08.216] else
[10:59:08.217] doTeleportThing(cid, t.d_2)
[10:59:08.218] doSendMagicEffect(getCreaturePosition(cid), 10)
[10:59:08.219] doCreatureAddHealth(cid, getCreatureMaxHealth(cid), MAGIC_EFFECT_
UNKNOWN, COLOR_UNKNOWN, true)
[10:59:08.220] doCreatureAddMana(cid, getCreatureMaxMana(cid))
[10:59:08.221] doPlayerRemoveLethalConditions(cid)
[10:59:08.222] if getCreatureSkullType(cid) == SKULL_WHITE then
[10:59:08.223] doCreatureSetSkullType(cid, 0)
[10:59:08.224] end
[10:59:08.225] end
[10:59:08.228] end
[10:59:08.229] if blue >= t.v then
[10:59:08.230] doBroadcastMessage(t.y, MESSAGE_STATUS_WARNING)
[10:59:08.231] setGlobalStorageValue(t.h, 1)
[10:59:08.232] for _, pid in ipairs(getPlayersOnline()) do
[10:59:08.234] if(getPlayerStorageValue(pid, t.f_1) == 1) then
[10:59:08.235] doPlayerAddItem(cid, 2160, 30)
[10:59:08.236] end
[10:59:08.237] end
[10:59:08.238] elseif red >= t.v then
[10:59:08.239] doBroadcastMessage(t.o, MESSAGE_STATUS_WARNING)
[10:59:08.240] setGlobalStorageValue(t.h, 1)
[10:59:08.241] for _, pid in ipairs(getPlayersOnline()) do
[10:59:08.242] if(getPlayerStorageValue(pid, t.f_2) == 1) then
[10:59:08.243] doPlayerAddItem(cid, 2160, 30)
[10:59:08.244] end
[10:59:08.245] end
[10:59:08.246] end
[10:59:08.247] if getGlobalStorageValue(t.h) == 1 then
[10:59:08.248] setGlobalStorageValue(t.a, 0)
[10:59:08.249] setGlobalStorageValue(t.h, 0)
[10:59:08.250] setGlobalStorageValue(t.wv, -1)
[10:59:08.251] setPlayerStorageValue(cid, t.f, -1)
[10:59:08.252] setPlayerStorageValue(cid, t.g, 0)
[10:59:08.253] setPlayerStorageValue(cid, t.l, 0)
[10:59:08.254] setPlayerStorageValue(cid, t.u, 0)
[10:59:08.255] setPlayerStorageValue(cid, t.f_1, -1)
[10:59:08.256] setPlayerStorageValue(cid, t.f_2, -1)
[10:59:08.257] setPlayerStorageValue(cid, t.h, -1)
[10:59:08.258] doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)), t
rue)
[10:59:08.259] doSendMagicEffect(getCreaturePosition(cid), 10)
[10:59:08.260] doCreatureAddHealth(cid, getCreatureMaxHealth(cid), MAGIC_EFFECT_
UNKNOWN, COLOR_UNKNOWN, true)
[10:59:08.261] doCreatureAddMana(cid, getCreatureMaxMana(cid))
[10:59:08.262] doPlayerRemoveLethalConditions(cid)
[10:59:08.263] for _, pid in ipairs(getPlayersOnline()) do
[10:59:08.265] if(getPlayerStorageValue(pid, t.f_1) == 1 or getPlayerStorageValu
e(pid, t.f_2) == 1) then
[10:59:08.266] setPlayerStorageValue(pid, t.f, -1)
[10:59:08.267] doTeleportThing(pid, getTownTemplePosition(getPlayerTown(pid)))
[10:59:08.268] doSendMagicEffect(getCreaturePosition(pid), CONST_ME_TELEPORT)
[10:59:08.269] setPlayerStorageValue(pid, t.g, 0)
[10:59:08.270] setPlayerStorageValue(pid, t.l, 0)
[10:59:08.271] setPlayerStorageValue(pid, t.u, 0)
[10:59:08.272] setPlayerStorageValue(pid, t.f_1, -1)
[10:59:08.275] setPlayerStorageValue(pid, t.f_2, -1)
[10:59:08.276] setPlayerStorageValue(pid, t.h, -1)
[10:59:08.277] doCreatureAddHealth(pid, getCreatureMaxHealth(pid), MAGIC_EFFECT_
UNKNOWN, COLOR_UNKNOWN, true)
[10:59:08.278] doCreatureAddMana(pid, getCreatureMaxMana(pid))
[10:59:08.280] doPlayerRemoveLethalConditions(pid)
[10:59:08.281] end
[10:59:08.282] end
[10:59:08.283] return false
[10:59:08.284] end
[10:59:08.285] return false
[10:59:08.287] end
[10:59:08.288] return true
[10:59:08.289] end
[10:59:08.290] :onPrepareDeath
[10:59:08.291] Description:
[10:59:08.292] [string "LuaInterface::loadBuffer"]:49: attempt to call global 'd
oPlayerRemoveLethalConditions' (a nil value)
[10:59:08.293] stack traceback:
[10:59:08.294] [string "LuaInterface::loadBuffer"]:49: in function <[string "Lu
aInterface::loadBuffer"]:2>

 

Eu preciso de ajuda, por favor. Não da pra jogar enquanto tiver esse bug
obrigado

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...