bury
Active Member
- Joined
- Jul 27, 2008
- Messages
- 421
- Solutions
- 7
- Reaction score
- 25
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
Actions.xml
-------------------------------------
azerus.lua
creaturescripts.xml
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.luanUse
Description:
(luaDoRemoveCreature) Creature not found
[Error - Action Interface]
In a timer event called from:
data/actions/scripts/quests/azerus.luanUse
Description:
(luaDoRemoveCreature) Creature not found
[Error - Action Interface]
In a timer event called from:
data/actions/scripts/quests/azerus.luanUse
Description:
(luaDoRemoveCreature) Creature not found
[Error - Action Interface]
In a timer event called from:
data/actions/scripts/quests/azerus.luanUse
Description:
(luaDoCreateMonster) Cannot create monster: War Golem
[Error - Action Interface]
In a timer event called from:
data/actions/scripts/quests/azerus.luanUse
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.
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.luanUse
Description:
(luaDoRemoveCreature) Creature not found
[Error - Action Interface]
In a timer event called from:
data/actions/scripts/quests/azerus.luanUse
Description:
(luaDoRemoveCreature) Creature not found
[Error - Action Interface]
In a timer event called from:
data/actions/scripts/quests/azerus.luanUse
Description:
(luaDoRemoveCreature) Creature not found
[Error - Action Interface]
In a timer event called from:
data/actions/scripts/quests/azerus.luanUse
Description:
(luaDoCreateMonster) Cannot create monster: War Golem
[Error - Action Interface]
In a timer event called from:
data/actions/scripts/quests/azerus.luanUse
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.