Azerus is crashing my server - even while nobody is doing Yalahari quest -

bury

Excellent OT User
Joined
Jul 27, 2008
Messages
375
Reaction score
9
Hello. I've experimented 3 crashes and when the screen of debian is terminated I can see azerus errors. For the moment I will disable all the script but this is what im using (I think I got the script from otland):

azerus.lua

Lua:
local topLeft = {x = 574, y = 558, z = 10}
local bottomRight = {x = 588, y = 575, z = 10}

local entry = {x = 582, y = 577, z = 9}
local tp = {x = 581, y = 575, z = 10}
local glo = {x = 581, y = 566, z = 10}

local function getCreaturesInArea()
    local t = {}
    for x = topLeft.x, bottomRight.x do
        for y = topLeft.y, bottomRight.y do
            for z = topLeft.z, bottomRight.z do
                local c = getTopCreature({x=x, y=y, z=z})
                if c.type == 2 then
                    table.insert(t, c.uid)
                end
            end
        end
    end

    local c = getTopCreature({x = 579, y = 557, z = 10})
    if c.type == 2 then
        table.insert(t, c.uid)
    end

    return t
end

local function summon(name, pos)
    doCreateMonster(name, pos)
    doSendMagicEffect(pos, CONST_ME_TELEPORT)
end

local function reset()
    local m, p = {}, {}
    for x = topLeft.x, bottomRight.x do
        for y = topLeft.y, bottomRight.y do
            for z = topLeft.z, bottomRight.z do
                local c = getTopCreature({x=x, y=y, z=z})
                if c.type == 1 then
                    table.insert(p, c.uid)
                elseif c.type == 2 then
                    table.insert(m, c.uid)
                end
            end
        end
    end

    local c = getTopCreature({x = 579, y = 557, z = 10})
    if c.type == 1 then
        table.insert(p, c.uid)
    elseif c.type == 2 then
        table.insert(m, c.uid)
    end

    if #p ~= 0 and #m ~= 0 then
        addEvent(reset, 30000)
    else
        if #m ~= 0 then
            for i = 1, #m do
                doRemoveCreature(m[i])
            end
        end
        if #p ~= 0 then
            for i = 1, #p do
                doTeleportThing(p[i], {x = 580, y = 579, z = 9})
            end
        end
        doTransformItem(getTileItemById(tp, 9772).uid, 1387)
        doTransformItem(getTileItemById(entry, 9772).uid, 1387)
        doItemSetAttribute(getTileItemById(glo, 9767).uid, 'aid', 58261)
    end
end

local function SeventhWave()
    for _, monster in ipairs(getCreaturesInArea()) do
        if getCreatureName(monster) == 'Azerus' then
            doRemoveCreature(monster)
            break
        end
    end

    summon('Azerus3', {x= glo.x - 5,y=glo.y,z=glo.z})
    summon('War Golem', {x= glo.x - 4,y=glo.y,z=glo.z})
    summon('War Golem', {x= glo.x + 4,y=glo.y,z=glo.z})
    summon('War Golem', {x=glo.x,y=glo.y - 4,z=glo.z})
    summon('War Golem', {x=glo.x,y=glo.y + 4,z=glo.z})
    addEvent(reset, 300000)
end

local function FourthWave()
    summon('War Golem', {x= glo.x - 4,y=glo.y,z=glo.z})
    summon('War Golem', {x= glo.x + 4,y=glo.y,z=glo.z})
    summon('War Golem', {x=glo.x,y=glo.y - 4,z=glo.z})
    summon('War Golem', {x=glo.x,y=glo.y + 4,z=glo.z})
    addEvent(SeventhWave, 30000)
end

local function ThirdWave1()
    summon('Rift Scythe', {x=glo.x,y=glo.y + 4,z=glo.z})
    summon('Rift Scythe', {x=glo.x,y=glo.y - 4,z=glo.z})
    summon('Rift Scythe', {x=glo.x,y=glo.y + 5,z=glo.z})
    addEvent(FourthWave, 30000)
end

local function ThirdWave()
    for _, m in ipairs(getCreaturesInArea()) do
        if getCreatureName(m) == 'Azerus' then
            doRemoveCreature(m)
            break
        end
    end
    summon('Azerus2', {x= glo.x - 5,y=glo.y,z=glo.z})
    summon('Rift Scythe', {x= glo.x - 4,y=glo.y,z=glo.z})
    summon('Rift Scythe', {x= glo.x + 4,y=glo.y,z=glo.z})
    summon('Rift Scythe', {x= glo.x + 4,y=glo.y,z=glo.z})
    summon('Rift Scythe', {x=glo.x,y=glo.y + 4,z=glo.z})
    addEvent(ThirdWave1, 20000)
end

local function SixthWave()
    summon('Rift Brood', {x= glo.x - 4,y=glo.y,z=glo.z})
    summon('Rift Brood', {x= glo.x + 4,y=glo.y,z=glo.z})
    summon('Rift Brood', {x=glo.x,y=glo.y + 4,z=glo.z})
    summon('Rift Brood', {x=glo.x,y=glo.y - 4,z=glo.z})
    summon('Rift Brood', {x=glo.x,y=glo.y + 5,z=glo.z})
    addEvent(ThirdWave, 30000)
end

local function SecondWave()
    for _, m in ipairs(getCreaturesInArea()) do
        if getCreatureName(m) == 'Azerus' then
            doRemoveCreature(m)
            break
        end
    end

    summon('Azerus1', {x=glo.x,y=glo.y - 5,z=glo.z})
    summon('Rift Brood', {x= glo.x - 4,y=glo.y,z=glo.z})
    summon('Rift Brood', {x= glo.x + 4,y=glo.y,z=glo.z})
    summon('Rift Brood', {x=glo.x,y=glo.y + 4,z=glo.z})
    summon('Rift Brood', {x=glo.x,y=glo.y - 4,z=glo.z})
    summon('Rift Brood', {x=glo.x,y=glo.y + 5,z=glo.z})
    addEvent(SixthWave, 30000)
end

local function FifthWave()
    summon('Rift Worm', {x= glo.x - 4,y=glo.y,z=glo.z})
    summon('Rift Worm', {x= glo.x + 4,y=glo.y,z=glo.z})
    summon('Rift Worm', {x=glo.x,y=glo.y + 4,z=glo.z})
    summon('Rift Worm', {x=glo.x,y=glo.y - 4,z=glo.z})
    summon('Rift Worm', {x=glo.x,y=glo.y + 5,z=glo.z})
    addEvent(SecondWave, 30000)
end

local function FirstWave()
    summon('Rift Worm', {x= glo.x - 4,y=glo.y,z=glo.z})
    summon('Rift Worm', {x= glo.x + 4,y=glo.y,z=glo.z})
    summon('Rift Worm', {x=glo.x,y=glo.y + 4,z=glo.z})
    summon('Rift Worm', {x=glo.x,y=glo.y - 4,z=glo.z})
    summon('Rift Worm', {x=glo.x,y=glo.y + 5,z=glo.z})
    summon('Azerus', {x=glo.x,y=glo.y - 5,z=glo.z})
    addEvent(FifthWave, 30000)
end

function onUse(cid, item, fromPosition, itemEx, toPosition)
    if item.actionid == 58261 then
        doItemSetAttribute(item.uid, 'aid', 58263)
        doTransformItem(getTileItemById(tp, 1387).uid, 9772)
        doTransformItem(getTileItemById(entry, 1387).uid, 9772)
        for x = 577, 585, 10 do
            for y = 561, 571, 10 do
                doSendMagicEffect({x=x, y=y, z=10}, CONST_ME_HOLYAREA)
            end
        end
        addEvent(FirstWave, 5000)
    elseif item.actionid == 58263 then
        doCreatureSay(cid, 'You have to wait some time before this globe charges.', TALKTYPE_ORANGE_1, false, cid)
    end
    return true
end
Actions.xml

Code:
<action itemid="9767" event="script" value="quests/azerus.lua"/> -- Kill Azerus

-------------------------------------

azerus.lua

Lua:
local config = {
    message = "Azerus ran into teleporter! It will disappear in 2 minutes. Enter It!",
    teleportId = 1387,
    bosses = { -- Monster Name, Teleport To Position, Teleport Position
        ["Azerus"] = {{x=581, y=577, z=9}, {x=581, y=575, z=10}},



            }
}

function onDeath(cid, corpse, killer)
    local position = getCreaturePosition(cid)
    for name, pos in pairs(config.bosses) do
        if name == getCreatureName(cid) then

        doCreateTeleport(config.teleportId, pos[1], pos[2])
        doCreatureSay(cid, config.message, TALKTYPE_ORANGE_1)
        end
    end
    return TRUE
end
creaturescripts.xml

Code:
<event type="death" name="Azerus" event="script" value="azerus.lua"/>
Then I have 4 Azerus monsters in monsters/azerus. If it's needed I upload them.

ERRORS:

[Error - Action Interface]
In a timer event called from:
data/actions/scripts/quests/azerus.lua:eek:nUse
Description:
(luaDoRemoveCreature) Creature not found
[Error - Action Interface]
In a timer event called from:
data/actions/scripts/quests/azerus.lua:eek:nUse
Description:
(luaDoRemoveCreature) Creature not found
[Error - Action Interface]
In a timer event called from:
data/actions/scripts/quests/azerus.lua:eek:nUse
Description:
(luaDoRemoveCreature) Creature not found
[Error - Action Interface]
In a timer event called from:
data/actions/scripts/quests/azerus.lua:eek:nUse
Description:
(luaDoCreateMonster) Cannot create monster: War Golem
[Error - Action Interface]
In a timer event called from:
data/actions/scripts/quests/azerus.lua:eek:nUse
Description:
(luaDoCreateMonster) Cannot create monster: War Golem


I think system was creating monsters everytime lol

Screen screenshot:



Also there are some movements but I think the fail is here. For the moment I will not register the scripts.
 

Xikini

I whore myself out for likes
Premium User
Joined
Nov 17, 2010
Messages
4,090
Reaction score
2,153
"Cannot create monster: War Golem"
- Does the monster exist? (can you summon it with a god?)
- Is the spawn location properly set?
- Does the map allow for a monster to be summoned there?

"No such file or directory"
- check actions.xml to confirm correct spelling of the file
- check actions/scripts/quests to confirm the file is in the correct location
 
OP
bury

bury

Excellent OT User
Joined
Jul 27, 2008
Messages
375
Reaction score
9
"Cannot create monster: War Golem"
- Does the monster exist? (can you summon it with a god?)
- Is the spawn location properly set?
- Does the map allow for a monster to be summoned there?

"No such file or directory"
- check actions.xml to confirm correct spelling of the file
- check actions/scripts/quests to confirm the file is in the correct location
- Does the monster exist? (can you summon it with a god?): 17:25 You see a war golem.
- Is the spawn location properly set?: Yes
- Does the map allow for a monster to be summoned there?: I think so.

Before this crash, people had always completed yalahari quest without problem. I had tested it before. What I mean with "I think so" is that maybe 4 players went to do the quest and there were not sit for all monsters? But the place is the same than RL:

Screenshot of the quest size in RME:



"No such file or directory"
- check actions.xml to confirm correct spelling of the file: <action itemid="9767" event="script" value="quests/azerus.lua"/> (The itemid is that globe in the center)
- check actions/scripts/quests to confirm the file is in the correct location: /data/actions/scripts/quests/azerus.lua (now I have unregistered it from xml until the fix)

Now this is funny, a player reported me that azerus had killed him last night. He was botting in Frost Dragons lol, a spawn that there are only frost dragons and I could be the only one to create him an Azerus:

Playername slain at level 428 by azerus, an Orshabaal, a grim reaper, a frost dragon and a rift worm

WTF???? Orshabaal too? There were not orshabaal when he was botting. Also If I do /goto azerus it says: Invalid param specified. So Azerus is not in the server, also I unregistered the script for the moment until I could fix it, so this is weird.

It happened with another players too:

Playername crushed at level 354 by a grim reaper, a hellhound, a dragon lord, a dragon lord, a hydra, a medusa, a rift worm, a demon, a rift brood, a fire elemental, azerus and a fire elemental.

WTF? azerus again lol

I'm using gesior acc. Maybe the deathlog is bugged?
 

Xikini

I whore myself out for likes
Premium User
Joined
Nov 17, 2010
Messages
4,090
Reaction score
2,153
- Does the monster exist? (can you summon it with a god?): 17:25 You see a war golem.
- Is the spawn location properly set?: Yes
- Does the map allow for a monster to be summoned there?: I think so.

Before this crash, people had always completed yalahari quest without problem. I had tested it before. What I mean with "I think so" is that maybe 4 players went to do the quest and there were not sit for all monsters? But the place is the same than RL:

Screenshot of the quest size in RME:



"No such file or directory"
- check actions.xml to confirm correct spelling of the file: <action itemid="9767" event="script" value="quests/azerus.lua"/> (The itemid is that globe in the center)
- check actions/scripts/quests to confirm the file is in the correct location: /data/actions/scripts/quests/azerus.lua (now I have unregistered it from xml until the fix)

Now this is funny, a player reported me that azerus had killed him last night. He was botting in Frost Dragons lol, a spawn that there are only frost dragons and I could be the only one to create him an Azerus:

Playername slain at level 428 by azerus, an Orshabaal, a grim reaper, a frost dragon and a rift worm

WTF???? Orshabaal too? There were not orshabaal when he was botting. Also If I do /goto azerus it says: Invalid param specified. So Azerus is not in the server, also I unregistered the script for the moment until I could fix it, so this is weird.

It happened with another players too:

Playername crushed at level 354 by a grim reaper, a hellhound, a dragon lord, a dragon lord, a hydra, a medusa, a rift worm, a demon, a rift brood, a fire elemental, azerus and a fire elemental.

WTF? azerus again lol

I'm using gesior acc. Maybe the deathlog is bugged?
There is too many possiblities to try to do this through text.
Can you pm me teamviewer details?
 
OP
bury

bury

Excellent OT User
Joined
Jul 27, 2008
Messages
375
Reaction score
9
There is too many possiblities to try to do this through text.
Can you pm me teamviewer details?
You have a MP. Thanks!

BUMP
 
Top