• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Lua I need help with script, Event cid, target,damage, flags, war not found. Error msg + scripts inside!

Stureslask

New Member
Joined
May 21, 2014
Messages
5
Reaction score
0
Hello!

When I start my server on windows I get this script error. I've have no idea on how to solve this so after many hours of trying im asking the forums for help. If you know how to solve this please help!

Kind regards Stureslask

ee7524b0cc688d7d4e65ed305c4ed222

Code:
[Warning - Event::loadScript ] Event cid, target, damage, flags, war not found <data/creaturescripts/scripts/inquisition.lua>
[Warning - Event::loadScript ] Event cid, target, damage, flags, war not found <data/creaturescripts/scripts/arenakill.lua>
[Warning - Event::loadScript ] Event cid, target, damage, flags, war not found <data/creaturescripts/scripts/killinginthenameof.lua>
 
Post those scripts, my guess is that you are missing some parameters in your function start line.
Like function onUse() must be function onUse(cid, item, fromPosition, itemEx, toPosition).
 
Post those scripts, my guess is that you are missing some parameters in your function start line.
Like function onUse() must be function onUse(cid, item, fromPosition, itemEx, toPosition).

Inquisition

Code:
local config = {
        timeToRemove = 120, -- seconds
        message = "You now have 2 minutes to exit this room through the teleporter. It will bring you to the next room only during his time or the teleporter will disappear",
        teleportId = 9773,
        bosses = { -- Monster Name,  Teleport Position
                ["Ushuriel"] = {  pos={ x=33157, y=31725, z=11, stackpos=1 }, aid=1001 },
                ["Zugurosh"] = {  pos={ x=33123, y=31689, z=11, stackpos=1 }, aid=1002},
                ["Madareth"] = {  pos={ x=33194, y=31768, z=11, stackpos=1 }, aid=1003},
                ["Annihilon"] = {  pos={ x=33200, y=31704, z=11, stackpos=1 }, aid=1005},
                ["Hellgorak"] = {  pos={ x=33107, y=31735, z=11, stackpos=1 }, aid=1006}
                },
        brothers ={
        ["Golgordan"] = {pos={ x=33235, y=31734, z=11, stackpos=1 },aid=1004, brother = "Latrivan"},
        ["Latrivan"] = {pos={ x=33235, y=31734, z=11, stackpos=1 },aid=1004, brother = "Golgordan"},
        brothersArea ={
                fromPos = {x = 33224, y = 31722, z = 11},
                toPos = {x = 33240, y = 31734, z = 11} } }
}
local function removal(position)
    doRemoveThing(getTileItemById(position, config.teleportId).uid, 1)
    return TRUE
end
function onKill(cid, target, lastHit)
    if(config.bosses[getCreatureName(target)]) then
        local t = config.bosses[getCreatureName(target)]
        local teleport = doCreateItem(config.teleportId, t.pos)
        local position = t.pos
        doItemSetAttribute(teleport, "aid", t.aid)
        doCreatureSay(cid, config.message, TALKTYPE_ORANGE_1)
        addEvent(removal, config.timeToRemove * 1000, position)
    elseif(config.brothers[getCreatureName(target)]) then
        local t = config.brothers[getCreatureName(target)]
        local brother = getCreatureByName(t.brother)
        if(isMonster(brother) == true) then
            if(isInRange(getCreaturePosition(brother), config.brothers.brothersArea.fromPos, config.brothers.brothersArea.toPos) == true) then
                return TRUE
            end
        else
            local teleport = doCreateItem(config.teleportId, t.pos)
            local position = t.pos
            doItemSetAttribute(teleport, "aid", t.aid)
            doCreatureSay(cid, config.message, TALKTYPE_ORANGE_1)
            addEvent(removal, config.timeToRemove * 1000, position)
        end
    end
    return TRUE
end

Arenakill

Code:
function onKill(cid, target)
    local room = getArenaMonsterIdByName(getCreatureName(target))
    if room > 0 then
        setPlayerStorageValue(cid, room, 1)
        doPlayerSendTextMessage(cid,22,"You can enter next room!")
    end
    return TRUE
end

Killing in the name of

Code:
function onKill(cid, target, damage, flags)
    if damage == false or (flags and flags ~= 3) then
        return true
    else
        local f = getCreatureMaster(target)
        if f and f ~= target then
            return true
        end
    end
    local name = getCreatureName(target):lower()
    local a = tasks[name]
    if a then
        if getPlayerStorageValue(cid, 14500) ~= a.storage or getPlayerStorageValue(cid, a.storage) == a.amount then
            return true
        end
        local b = getPlayerStorageValue(cid, a.storage) + 1
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Task (".. name:upper() .."): " .. (b == a.amount and "Completed!" or b .." / ".. a.amount))
        setPlayerStorageValue(cid, a.storage, b)
    end
    return true
end

Feel free to look through the scripts and see if you can find something.

Kind regards Stureslask
 
Have you done any source changes? Looks as if you have to put the variables within the function, even if you aren't using them (not a good scripter who made it for you)
replace
function onKill(..)
with
function onKill(cid, target, damage, flags, war)
 
Back
Top