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

it's work fine without this: sometimes doRemoveCreature is not work and summoned like as 2 or 3 Azerus..
 
When he dies no tp pop ups and this error pops up

____error.jpg


Any help?

Code:
-- Yalahar 10th mission By QuaS~~ 

-- Config #1 --  
local BlindField = {x=579, y=557, 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, getTilefromPos(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=574, y=560, z=10} 
local buttomRight = {x=589, y=576, z=10} 

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

-- Position Of TP -- 
local tp = {x=581, y=575, z=10} 

-- Position of Gllobus 
local glo = {x=581, y=566, 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) 
doItemSetAttribute(item1.uid, 58261) 
end 



if item.actionid == 58261 then 
doItemSetAttribute(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
 
Last edited:
same problem as Choklad, except that the TP pops up but it doesnt work.
 
[19/01/2011 17:58:09] [Error - Action Interface]
[19/01/2011 17:58:09] In a timer event called from:
[19/01/2011 17:58:09] data/actions/scripts/Yalahar Mission 10/azerus.lua:eek:nUse
[19/01/2011 17:58:09] Description:
[19/01/2011 17:58:09] (luaGetThingFromPos) Tile not found


On tfs 0.4.0
 
Updated this failscript. Since all RL maps i've met with has this same failbug script made by me. (0.4 TFS NOW ONLY)
 
This Should Be Fixed:
Lua:
function onUse(cid, item, frompos, item2, topos)

--Config-->
local statue_pos = {x = 581, y = 566, z = 10}
local portal_quest01_pos = {x = 581, y = 575, z = 10, stackpos = 2}
local portal_quest02_pos = {x = 582, y = 577, z = 9, stackpos = 2}
local new_portal_pos = {x = 581, y = 567, z = 10, stackpos = 1}
local new_pos = {x = 576, y = 572, z = 14}
--End Config-->

function Potwory1()
if math.random (1,8) == 4 then
doSummonCreature('Rift Brood', {x = statue_pos.x+1, y = statue_pos.y+1, z = statue_pos.z, stackpos = 253})
doSummonCreature('Rift Brood', {x = statue_pos.x-1, y = statue_pos.y+1, z = statue_pos.z, stackpos = 253})
doSummonCreature('Rift Brood', {x = statue_pos.x, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253})
doSummonCreature('Rift Worm', {x = statue_pos.x-1, y = statue_pos.y, z = statue_pos.z, stackpos = 253})
doSummonCreature('Rift Worm', {x = statue_pos.x+1, y = statue_pos.y, z = statue_pos.z, stackpos = 253})
doSummonCreature('Rift Worm', {x = statue_pos.x+1, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253})
doSummonCreature('Rift Worm', {x = statue_pos.x-1, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253})
addEvent(Potwory2, 30 * 1000)
else
doSummonCreature('Azerus', {x = statue_pos.x, y = statue_pos.y+1, z = statue_pos.z, stackpos = 253})
doSummonCreature('Rift Brood', {x = statue_pos.x+1, y = statue_pos.y+1, z = statue_pos.z, stackpos = 253})
doSummonCreature('Rift Brood', {x = statue_pos.x-1, y = statue_pos.y+1, z = statue_pos.z, stackpos = 253})
doSummonCreature('Rift Brood', {x = statue_pos.x, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253})
doSummonCreature('Rift Worm', {x = statue_pos.x-1, y = statue_pos.y, z = statue_pos.z, stackpos = 253})
doSummonCreature('Rift Worm', {x = statue_pos.x+1, y = statue_pos.y, z = statue_pos.z, stackpos = 253})
doSummonCreature('Rift Worm', {x = statue_pos.x+1, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253})
doSummonCreature('Rift Worm', {x = statue_pos.x-1, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253})
addEvent(Potwory2, 30 * 1000)
end
end

function Potwory2()
doSummonCreature('Rift Brood', {x = statue_pos.x-1, y = statue_pos.y+1, z = statue_pos.z, stackpos = 253})
doSummonCreature('Rift Brood', {x = statue_pos.x, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253})
doSummonCreature('Rift Worm', {x = statue_pos.x-1, y = statue_pos.y, z = statue_pos.z, stackpos = 253})
doSummonCreature('Rift Worm', {x = statue_pos.x+1, y = statue_pos.y, z = statue_pos.z, stackpos = 253})
addEvent(Potwory3, 35 * 1000)
end

function Potwory3()
doSummonCreature('Rift Scythe', {x = statue_pos.x-1, y = statue_pos.y, z = statue_pos.z, stackpos = 253})
doSummonCreature('Rift Scythe', {x = statue_pos.x+1, y = statue_pos.y, z = statue_pos.z, stackpos = 253})
doSummonCreature('Rift Scythe', {x = statue_pos.x+1, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253})
doSummonCreature('Rift Scythe', {x = statue_pos.x-1, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253})
addEvent(Potwory4, 40 * 1000)
end

function Potwory4()
doSummonCreature('Azerus', {x = statue_pos.x, y = statue_pos.y+1, z = statue_pos.z, stackpos = 253})
doSummonCreature('War Golem', {x = statue_pos.x+1, y = statue_pos.y+1, z = statue_pos.z, stackpos = 253})
doSummonCreature('War Golem', {x = statue_pos.x-1, y = statue_pos.y+1, z = statue_pos.z, stackpos = 253})
doSummonCreature('War Golem', {x = statue_pos.x, y = statue_pos.y-1, z = statue_pos.z, stackpos = 253})
doSummonCreature('War Golem', {x = statue_pos.x-1, y = statue_pos.y, z = statue_pos.z, stackpos = 253})
addEvent(NewPortal, 90 * 1000)
end

function NewPortal()
doCreateTeleport(1387, new_pos, new_portal_pos)
addEvent(RemoveAll, 60 * 1000)
end

function RemoveAll()
doRemoveItem(getThingfromPos(portal_quest01_pos).uid,1)
doRemoveItem(getThingfromPos(portal_quest02_pos).uid,1)
doRemoveItem(getThingfromPos(new_portal_pos).uid,1)
end

if item.uid == 11223 and getThingfromPos(portal_quest01_pos).itemid ~= 9772 then
doCreateItem(9772,1,portal_quest01_pos)
doCreateItem(9772,1,portal_quest02_pos)
addEvent(Potwory1, 0)
else
doPlayerSendTextMessage(cid,22,"Sorry, not possible.")
end
return TRUE
end
 
@up Nope. This sux.

Possibility to get 2 Azerus(if u read code you'll find it.)
Azerus may be spawned in last wave(not on previous 3).
No cleaning When Team Dies.
No random waves.
No portal reset.
 
@up Nope. This sux.

Possibility to get 2 Azerus(if u read code you'll find it.)
Azerus may be spawned in last wave(not on previous 3).
No cleaning When Team Dies.
No random waves.
No portal reset.
thx for the update, but i found some things missing xD, like the action for the door of the chests room and better explanation of which coordinates to change in the teleports :D
 
@up

1:
Image from 1st post:
kdkh28.jpg


2:
Lua:
local tpin = {{x=32784, y=31177, z=9}, {x=32783, y=31173, z=10}}
local tpout = {{x=32783, y=31175, z=10}, {x=32784, y=31178, z=9}}

1st position is teleport position, 2nd position is teleport destination
 
Why i'm getting this error? =/

[20:53:27.185] [Error - CreatureScript Interface]
[20:53:27.185] In a timer event called from:
[20:53:27.185] data/creaturescripts/scripts/custom/azerus.lua:eek:nDeath
[20:53:27.185] Description:
[20:53:27.185] attempt to index a nil value
[20:53:27.185] stack traceback:
[20:53:27.185] [C]: in function 'getTileItemById'
[20:53:27.185] data/creaturescripts/scripts/custom/azerus.lua:32: in function <
data/creaturescripts/scripts/custom/azerus.lua:31>

this happen when someone is killed by any mob on the entire server
 
Last edited by a moderator:
New error:

[17:2:30.893] [Error - Action Interface]
[17:2:30.893] In a timer event called from:
[17:2:30.893] data/actions/scripts/custom/azerus.lua:eek:nUse
[17:2:30.893] Description:
[17:2:30.893] (luaDoRemoveCreature) Creature not found

I don't know when it happen or how to reproduce it =/
 
Fixed it... didn't change anything.. works fine now.. yay?

I'm using this script and everything works perfectly fine...

Except when you finish the quest and entrance/exit teleporters are spawns they do not send you anywhere...

HELP!

=)?

I'm using 0.4.3777

here is my config for tps
Lua:
-- Config #1 By Quas--  
local BlindField = {x=32781, y=31157, z=10, stackpos=1} 
local topLeft = {x=32776, y=31159, z=10} 
local buttomRight = {x=32792, y=31176, z=10} 
local tpin = {{x=32784, y=31177, z=9}, {x=32783, y=31173, z=10}}
local tpout = {{x=32783, y=31175, z=10}, {x=32783, y=31177, z=9}}
local glo = {x=32783, y=31166, z=10} 
ttime = {10, 30}
local isEvent = 58263;
and the lines that create the teleporters
Lua:
doCreateTeleport(1387, tpin[2],tpin[1]);
    doCreateTeleport(1387, tpout[2],tpout[1]);
    addEvent(fixGlobe,60*12*1000);
end
 
Last edited:
Back
Top