• 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!

Yalahari 10 mission. Actions, Movements, Creaturescripts,Monsters&NPC. Many Scripts.

@TFS 0.3.6 problem

after click on
You see an item of type 9767, please report it to gamemaster.
ItemID: [9767], ActionID: [58261].

azerus dont spawn, plz help:

PHP:
[15/12/2009 00:32:28] [Error - Action Interface] 
[15/12/2009 00:32:28] data/actions/scripts/quests/azerus.lua:onUse
[15/12/2009 00:32:28] Description: 
[15/12/2009 00:32:28] data/actions/scripts/quests/azerus.lua:160: attempt to call global 'doSetItemActionId' (a nil value)
[15/12/2009 00:32:28] stack traceback:
[15/12/2009 00:32:28] 	data/actions/scripts/quests/azerus.lua:160: in function <data/actions/scripts/quests/azerus.lua:50>

azerus.lua
PHP:
-- Yalahar 10th mission By QuaS~~

-- Config #1 -- 
local BlindField = {x=21323, y=21055, z=10, stackpos=1}
-- end -- 

function mapArea(fromPos, toPos, stack)
        -- Area iterator by Colandus.
        local pos = {x=fromPos.x, y=fromPos.y-1, z=fromPos.z}
        return function()
                if (pos.y < toPos.y) then
                        pos.y = pos.y+1
                elseif (pos.x <= toPos.x) then
                        pos.y = fromPos.y
                        pos.x = pos.x+1
                else
                        pos.x = fromPos.x
                        pos.y = fromPos.y
                        pos.z = pos.z+1
                end
                if (pos.x <= toPos.x and pos.y <= toPos.y or pos.z < toPos.z) then
                        if (stack == nil) then
                                return pos
                        else
                                pos.stackpos = stack
                                --return pos, getTileThingByPos(pos)
                                return pos, getThingfromPos(pos)
                        end
                end
        end
end


function getMonstersfromArea(fromPos, toPos)
        local monsters = {}    
        for _, thing in mapArea(fromPos, toPos, 253) do
                if isMonster(thing.uid) == TRUE then
                        table.insert(monsters, thing.uid)
            end

        end
          local bfm = getThingfromPos(BlindField)
            if isMonster(bfm.uid) == TRUE then
            table.insert(monsters, bfm.uid)
            end
        return monsters
end


function onUse(cid, item, fromPosition, itemEx, toPosition)

-- CONFIG #2!!!! --


-- Map checking --

local topLeft = {x=21318, y=21057, z=10}
local buttomRight = {x=21332, y=21074, z=10}

-- Immortality of Azerus
local monsters = getMonstersfromArea(topLeft, buttomRight)
local monsters1 = getMonstersfromArea(topLeft, buttomRight)

-- Position Of TP --
local tp = {x=21325, y=21073, z=10}

-- Position of Gllobus
local glo = {x=21325, y=21064, z=10}

-- END OF CONFIG! --



function FirstWave()
    doSummonCreature("Rift Worm", {x= glo.x - 4,y=glo.y,z=glo.z})

    doSummonCreature("Rift Worm", {x= glo.x + 4,y=glo.y,z=glo.z})

    doSummonCreature("Rift Worm", {x=glo.x,y=glo.y + 4,z=glo.z})

    doSummonCreature("Rift Worm", {x=glo.x,y=glo.y - 4,z=glo.z})

    doSummonCreature("Rift Worm", {x=glo.x,y=glo.y + 5,z=glo.z})

    doSummonCreature("Azerus", {x=glo.x,y=glo.y - 5,z=glo.z})
end

function SecondWave()
local monsters1 = getMonstersfromArea(topLeft, buttomRight)

    for _, monster in pairs(monsters1) do
    if getCreatureName(monster) == "Azerus" then
    doRemoveCreature(monster)
    end
    end
    doSummonCreature("Azerus1", {x=glo.x,y=glo.y - 5,z=glo.z})

    doSummonCreature("Rift Brood", {x= glo.x - 4,y=glo.y,z=glo.z})

    doSummonCreature("Rift Brood", {x= glo.x + 4,y=glo.y,z=glo.z})

    doSummonCreature("Rift Brood", {x=glo.x,y=glo.y + 4,z=glo.z})

    doSummonCreature("Rift Brood", {x=glo.x,y=glo.y - 4,z=glo.z})

    doSummonCreature("Rift Brood", {x=glo.x,y=glo.y + 5,z=glo.z})
end
function ThirdWave()
local monsters1 = getMonstersfromArea(topLeft, buttomRight)

    for _, monster in pairs(monsters1) do
    if getCreatureName(monster) == "Azerus" then
    doRemoveCreature(monster)
    end
    end
    doSummonCreature("Azerus2", {x= glo.x - 5,y=glo.y,z=glo.z})

    doSummonCreature("Rift Scythe", {x= glo.x - 4,y=glo.y,z=glo.z})

    doSummonCreature("Rift Scythe", {x= glo.x + 4,y=glo.y,z=glo.z})
end

function ThirdWave1() --  with 2s delay

    doSummonCreature("Rift Scythe", {x=glo.x,y=glo.y + 4,z=glo.z})

    doSummonCreature("Rift Scythe", {x=glo.x,y=glo.y - 4,z=glo.z})

    doSummonCreature("Rift Scythe", {x=glo.x,y=glo.y + 5,z=glo.z})
end

function FourthWave()
local monsters1 = getMonstersfromArea(topLeft, buttomRight)

    for _, monster in pairs(monsters1) do
    if getCreatureName(monster) == "Azerus" then
    doRemoveCreature(monster)
    end
    end
    doSummonCreature("Azerus3", {x= glo.x - 5,y=glo.y,z=glo.z})

    doSummonCreature("War Golem", {x= glo.x - 4,y=glo.y,z=glo.z})

    doSummonCreature("War Golem", {x= glo.x + 4,y=glo.y,z=glo.z})

    doSummonCreature("War Golem", {x=glo.x,y=glo.y - 4,z=glo.z})

    doSummonCreature("War Golem", {x=glo.x,y=glo.y + 4,z=glo.z})

end

function Glllobe()
item1 = getTileItemById(glo,9767)
doSetItemActionId(item1.uid, 58261)
end



if item.actionid == 58261 then
doSetItemActionId(item.uid, 58263)
local monsters = getMonstersfromArea(topLeft, buttomRight)
local monsters1 = getMonstersfromArea(topLeft, buttomRight)

if getTileItemById(tp,1387).itemid == 1387 then
doRemoveItem(getTileItemById(tp,1387).uid)
end

addEvent(FirstWave, 0)
addEvent(SecondWave, 10000)
addEvent(ThirdWave, 20000)
addEvent(ThirdWave1, 24000)
addEvent(FourthWave, 38000)
addEvent(Glllobe, 900000)


elseif item.actionid == 58263 then
doCreatureSay(cid, "You have to wait some time before this globe will charge.", TALKTYPE_ORANGE_1)
end


return TRUE
end

on tfs 0.3.4pl2 it work properly:p
 
thanks
o set piece of script on
function Glllobe()
item1 = getTileItemById(glo,9767)
doItemSetAttribute(item1.uid,"type",58261)
end



if item.actionid == 58261 then
doItemSetAttribute(item.uid, "type",58263)
local monsters = getMonstersfromArea(topLeft, buttomRight)
local monsters1 = getMonstersfromArea(topLeft, buttomRight)
and now it work:)
 
Yeah, that'll work :D
quas should update the script sometime ;s
 
Do my problem get solved if I do what Quas hotfix functions tell me to do?

I get this error message in the console right after Azerus get killed
PHP:
[Error - Action interface] In a timer event called from: data/actions/scripts/quests/azerus.lua:onUse Description: <luaDoItemSetAttribute> Item not found
Notice that he doesn't turn into a teleporter after he dies as he should do :O
 
well i got the quest works 100% and ppl take the rewards but i see some bugs in my consol while doing the quest, i'm using tfs 0.3.6pl1. Here wat the consol says :
[31/12/2009 19:59:33] [Error - Action Interface]
[31/12/2009 19:59:33] In a timer event called from:
[31/12/2009 19:59:33] data/actions/scripts/quests/azerus.lua:eek:nUse
[31/12/2009 19:59:33] Description:
[31/12/2009 19:59:33] (luaGetThingFromPos) Tile not found
 
it works fine with no errors, but there is one bug. It spawns the next wave even if the current one isint done :s
 
ey kurwa u should stop mak like cip:
Code:
    elseif(msgcontains(msg, 'mission' and getPlayerStorageValue(cid,102501) == 1 and getPlayerStorageValue(cid,102500) <= 1 then
        kurwa1()
    elseif(msgcontains(msg, 'mission' and getPlayerStorageValue(cid,102501) == 1 and getPlayerStorageValue(cid,102500) > 1 then
        kurwa2()
mor is koll in lUA:
Code:
    elseif(msgcontains(msg, 'mission') then
	if getPlayerStorageValue(cid,102501) == 1 then
		if getPlayerStorageValue(cid,102500) <= 1 then
			aa()
		elseif getPlayerStorageValue(cid,102500) > 1 then
			bb()
		end
	end
 
[28/01/2010 17:10:10] [Error - LuaScriptInterface::loadFile] data/actions/scripts/quests/azeruschest.lua:36: 'end' expected (to close 'function' at line 3) near '<eof>'
[28/01/2010 17:10:10] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/quests/azeruschest.lua)
[28/01/2010 17:10:10] data/actions/scripts/quests/azeruschest.lua:36: 'end' expected (to close 'function' at line 3) near '<eof>'
[28/01/2010 17:10:10] [Error - LuaScriptInterface::loadFile] data/actions/scripts/quests/azeruschest.lua:36: 'end' expected (to close 'function' at line 3) near '<eof>'
[28/01/2010 17:10:10] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/quests/azeruschest.lua)
[28/01/2010 17:10:10] data/actions/scripts/quests/azeruschest.lua:36: 'end' expected (to close 'function' at line 3) near '<eof>'
[28/01/2010 17:10:10] [Error - LuaScriptInterface::loadFile] data/actions/scripts/quests/azeruschest.lua:36: 'end' expected (to close 'function' at line 3) near '<eof>'
[28/01/2010 17:10:10] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/quests/azeruschest.lua)
[28/01/2010 17:10:10] data/actions/scripts/quests/azeruschest.lua:36: 'end' expected (to close 'function' at line 3) near '<eof>'


PLX HELP ME

Engine TFS 0.3.6




Click Globe



[28/01/2010 17:18:32] [Error - Action Interface]
[28/01/2010 17:18:32] data/actions/scripts/quests/azerus.lua:eek:nUse
[28/01/2010 17:18:32] Description:
[28/01/2010 17:18:32] (luaGetThingFromPos) Tile not found

[28/01/2010 17:18:32] [Error - Action Interface]
[28/01/2010 17:18:32] data/actions/scripts/quests/azerus.lua:eek:nUse
[28/01/2010 17:18:32] Description:
[28/01/2010 17:18:32] (luaGetThingFromPos) Tile not found

[28/01/2010 17:18:32] [Error - Action Interface]
[28/01/2010 17:18:32] data/actions/scripts/quests/azerus.lua:eek:nUse
[28/01/2010 17:18:32] Description:
[28/01/2010 17:18:32] data/actions/scripts/quests/azerus.lua:160: attempt to call global 'doSetItemActionId' (a nil value)
[28/01/2010 17:18:32] stack traceback:
[28/01/2010 17:18:32] data/actions/scripts/quests/azerus.lua:160: in function <data/actions/scripts/quests/azerus.lua:50>

[28/01/2010 17:18:33] [Error - Action Interface]
[28/01/2010 17:18:33] data/actions/scripts/quests/azerus.lua:eek:nUse
[28/01/2010 17:18:33] Description:
[28/01/2010 17:18:33] (luaGetThingFromPos) Tile not found

[28/01/2010 17:18:33] [Error - Action Interface]
[28/01/2010 17:18:33] data/actions/scripts/quests/azerus.lua:eek:nUse
[28/01/2010 17:18:33] Description:
[28/01/2010 17:18:33] (luaGetThingFromPos) Tile not found

[28/01/2010 17:18:33] [Error - Action Interface]
[28/01/2010 17:18:33] data/actions/scripts/quests/azerus.lua:eek:nUse
[28/01/2010 17:18:33] Description:
[28/01/2010 17:18:33] data/actions/scripts/quests/azerus.lua:160: attempt to call global 'doSetItemActionId' (a nil value)
[28/01/2010 17:18:33] stack traceback:
[28/01/2010 17:18:33] data/actions/scripts/quests/azerus.lua:160: in function <data/actions/scripts/quests/azerus.lua:50>

[28/01/2010 17:18:34] [Error - Action Interface]
[28/01/2010 17:18:34] data/actions/scripts/quests/azerus.lua:eek:nUse
[28/01/2010 17:18:34] Description:
[28/01/2010 17:18:34] (luaGetThingFromPos) Tile not found

[28/01/2010 17:18:34] [Error - Action Interface]
[28/01/2010 17:18:34] data/actions/scripts/quests/azerus.lua:eek:nUse
[28/01/2010 17:18:34] Description:
[28/01/2010 17:18:34] (luaGetThingFromPos) Tile not found

[28/01/2010 17:18:34] [Error - Action Interface]
[28/01/2010 17:18:34] data/actions/scripts/quests/azerus.lua:eek:nUse
[28/01/2010 17:18:34] Description:
[28/01/2010 17:18:34] data/actions/scripts/quests/azerus.lua:160: attempt to call global 'doSetItemActionId' (a nil value)
[28/01/2010 17:18:34] stack traceback:
[28/01/2010 17:18:34] data/actions/scripts/quests/azerus.lua:160: in function <data/actions/scripts/quests/azerus.lua:50>
 
Last edited:
Tp doesn't spawn after Azerus ded on TFS 0.3.6
0 bugs in console
 
Code:
[02/02/2010 21:11:58] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/quests/azerus.lua)
[02/02/2010 21:11:58] data/actions/scripts/quests/azerus.lua:183: '<eof>' expected near 'end'
[02/02/2010 21:11:58] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/quests/azerus.lua)
[02/02/2010 21:11:58] data/actions/scripts/quests/azerus.lua:183: '<eof>' expected near 'end'
[02/02/2010 21:11:59] [Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/azerus.lua)
[02/02/2010 21:11:59] cannot open data/creaturescripts/scripts/azerus.lua: No such file or directory

Fix it plx
 
Back
Top