[12:25:04.458] > Loading battle.xml...[Error - LuaInterface::loadBuffer] [string "LuaInterface::loadBuffer"]:69: ')' expected near '5'
[12:25:04.459] [Error - Event::checkScript] Cannot load script ( domodlib('re')
[12:25:04.459] function onPrepareDeath(cid, deathList)
[12:25:04.459] if(not isPlayer(cid)) then
[12:25:04.459] return true
[12:25:04.459] end
[12:25:04.459] if getGlobalStorageValue(t.a) == 1 then
[12:25:04.460] local strings = {""}
[12:25:04.460] local j, position, corpse = 1, 1, 0
[12:25:04.460] for _, pid in ipairs(deathList) do
[12:25:04.460] if isCreature(pid) == true then
[12:25:04.460] strings[position] = j == 1 and "" or strings[position] .. ", "
[12:25:04.460] strings[position] = strings[position] .. getCreatureName(pid) .. ""
[12:25:04.460] j = j + 1
[12:25:04.460] else
[12:25:04.461] strings[position] = j == 1 and "" or strings[position] .. ", "
[12:25:04.461] strings[position] = strings[position] .."a field item"
[12:25:04.461] j = j + 1
[12:25:04.461] end
[12:25:04.461] end
[12:25:04.461] for i, str in ipairs(strings) do
[12:25:04.461] if(str:sub(str:len()) ~= ",") then
[12:25:04.461] str = str .. "."
[12:25:04.462] end
[12:25:04.462] desc = "You recognize "
[12:25:04.462] desc = desc .. "" .. getCreatureName(cid) .. ". He was killed by " .. str
[12:25:04.462] end
[12:25:04.462] if(getPlayerSex(cid) == 1) then
[12:25:04.462] corpse = doCreateItem(3058, getCreaturePosition(cid))
[12:25:04.462] else
[12:25:04.462] corpse = doCreateItem(3065, getCreaturePosition(cid))
[12:25:04.462] end
[12:25:04.463] doItemSetAttribute(corpse, "description", desc)
[12:25:04.463] if((getPlayerStorageValue(cid, t.g) % 2) == 1) then
[12:25:04.463] setGlobalStorageValue(t.u, getGlobalStorageValue(t.u)+1)
[12:25:04.463] else
[12:25:04.463] setGlobalStorageValue(t.l, getGlobalStorageValue(t.l)+1)
[12:25:04.463] end
[12:25:04.463] local red = getGlobalStorageValue(t.l)
[12:25:04.463] local blue = getGlobalStorageValue(t.u)
[12:25:04.464] if blue < t.v or red < t.v then
[12:25:04.464] if(isPlayer(cid) == false) then
[12:25:04.464] return true
[12:25:04.464] end
[12:25:04.464] if((getPlayerStorageValue(cid, t.g) % 2) == 1) then
[12:25:04.464] doTeleportThing(cid, t.d_1)
[12:25:04.464] doSendMagicEffect(getCreaturePosition(cid), 10)
[12:25:04.464] doCreatureAddHealth(cid, getCreatureMaxHealth(cid), MAGIC_EFFECT_UNKNOWN, COLOR_UNKNOWN, true)
[12:25:04.465] doCreatureAddMana(cid, getCreatureMaxMana(cid))
[12:25:04.465] doPlayerRemoveLethalConditions(cid)
[12:25:04.465] if getCreatureSkullType(cid) == SKULL_WHITE then
[12:25:04.465] doCreatureSetSkullType(cid, 0)
[12:25:04.465] end
[12:25:04.465] else
[12:25:04.466] doTeleportThing(cid, t.d_2)
[12:25:04.466] doSendMagicEffect(getCreaturePosition(cid), 10)
[12:25:04.466] doCreatureAddHealth(cid, getCreatureMaxHealth(cid), MAGIC_EFFECT_UNKNOWN, COLOR_UNKNOWN, true)
[12:25:04.466] doCreatureAddMana(cid, getCreatureMaxMana(cid))
[12:25:04.466] doPlayerRemoveLethalConditions(cid)
[12:25:04.466] if getCreatureSkullType(cid) == SKULL_WHITE then
[12:25:04.467] doCreatureSetSkullType(cid, 0)
[12:25:04.467] end
[12:25:04.467] end
[12:25:04.467] end
[12:25:04.467] if blue >= t.v then
[12:25:04.467] doBroadcastMessage(t.y, MESSAGE_STATUS_WARNING)
[12:25:04.467] setGlobalStorageValue(t.h, 1)
[12:25:04.467] for _, pid in ipairs(getPlayersOnline()) do
[12:25:04.468] if(getPlayerStorageValue(pid, t.f_1) == 1) then
[12:25:04.468] db.executeQuery('UPDATE accounts SET premium_points=premium_points+'5' WHERE id=' .. getPlayerAccountId(cid))
[12:25:04.468] end
[12:25:04.468] end
[12:25:04.468] elseif red >= t.v then
[12:25:04.468] doBroadcastMessage(t.o, MESSAGE_STATUS_WARNING)
[12:25:04.468] setGlobalStorageValue(t.h, 1)
[12:25:04.468] for _, pid in ipairs(getPlayersOnline()) do
[12:25:04.469] if(getPlayerStorageValue(pid, t.f_2) == 1) then
[12:25:04.469] db.executeQuery('UPDATE accounts SET premium_points=premium_points+'5' WHERE id=' .. getPlayerAccountId(cid))
[12:25:04.469] end
[12:25:04.469] end
[12:25:04.469] end
[12:25:04.469] if getGlobalStorageValue(t.h) == 1 then
[12:25:04.469] setGlobalStorageValue(t.a, 0)
[12:25:04.469] setGlobalStorageValue(t.h, 0)
[12:25:04.469] setGlobalStorageValue(t.wv, -1)
[12:25:04.469] setPlayerStorageValue(cid, t.f, -1)
[12:25:04.469] setPlayerStorageValue(cid, t.g, 0)
[12:25:04.469] setPlayerStorageValue(cid, t.l, 0)
[12:25:04.469] setPlayerStorageValue(cid, t.u, 0)
[12:25:04.469] setPlayerStorageValue(cid, t.f_1, -1)
[12:25:04.469] setPlayerStorageValue(cid, t.f_2, -1)
[12:25:04.469] setPlayerStorageValue(cid, t.h, -1)
[12:25:04.469] doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)), true)
[12:25:04.469] doSendMagicEffect(getCreaturePosition(cid), 10)
[12:25:04.469] doCreatureAddHealth(cid, getCreatureMaxHealth(cid), MAGIC_EFFECT_UNKNOWN, COLOR_UNKNOWN, true)
[12:25:04.469] doCreatureAddMana(cid, getCreatureMaxMana(cid))
[12:25:04.469] doPlayerRemoveLethalConditions(cid)
[12:25:04.469] for _, pid in ipairs(getPlayersOnline()) do
[12:25:04.469] if(getPlayerStorageValue(pid, t.f_1) == 1 or getPlayerStorageValue(pid, t.f_2) == 1) then
[12:25:04.469] setPlayerStorageValue(pid, t.f, -1)
[12:25:04.469] doTeleportThing(pid, getTownTemplePosition(getPlayerTown(pid)))
[12:25:04.469] doSendMagicEffect(getCreaturePosition(pid), CONST_ME_TELEPORT)
[12:25:04.469] setPlayerStorageValue(pid, t.g, 0)
[12:25:04.469] setPlayerStorageValue(pid, t.l, 0)
[12:25:04.469] setPlayerStorageValue(pid, t.u, 0)
[12:25:04.469] setPlayerStorageValue(pid, t.f_1, -1)
[12:25:04.469] setPlayerStorageValue(pid, t.f_2, -1)
[12:25:04.469] setPlayerStorageValue(pid, t.h, -1)
[12:25:04.469] doCreatureAddHealth(pid, getCreatureMaxHealth(pid), MAGIC_EFFECT_UNKNOWN, COLOR_UNKNOWN, true)
[12:25:04.469] doCreatureAddMana(pid, getCreatureMaxMana(pid))
[12:25:04.469] doPlayerRemoveLethalConditions(pid)
[12:25:04.469] end
[12:25:04.469] end
[12:25:04.469] return false
[12:25:04.469] end
[12:25:04.469] return false
[12:25:04.469] end
[12:25:04.469] return true
[12:25:04.469] end
[12:25:04.470] )
[12:25:04.470] [string "LuaInterface::loadBuffer"]:69: ')' expected near '5'
[12:25:04.475] done.
[12:25:04.475] > 3 mods were loaded.