Creon
Well-Known Member
In the first warzone, after clicking the stone and spawning the monsters, the teleport will not open, even after waiting for a certain period of time
Error:
Script:
Error:
Code:
[14/07/2013 19:08:12] Lua Script Error: [Action Interface]
[14/07/2013 19:08:12] in a timer event called from:
[14/07/2013 19:08:12] data/actions/scripts/bigfoot burden quest/bigfootBurdenQuestWarzones.lua:onUse
[14/07/2013 19:08:12] LuaScriptInterface::luaDoCreatureSay(). Creature not found
[14/07/2013 19:08:12] stack traceback:
[14/07/2013 19:08:12] [C]: ?
[14/07/2013 19:06:12] data/actions/scripts/bigfoot burden quest/bigfootBurdenQuestWarzones.lua:onUse
[14/07/2013 19:06:12] attempt to index a number value
[14/07/2013 19:06:12] stack traceback:
[14/07/2013 19:06:12] [C]: ?
[14/07/2013 19:06:12] [C]: in function 'getTileItemById'
[14/07/2013 19:06:12] ...ipts/bigfoot burden quest/bigfootBurdenQuestWarzones.lua:17: in function <...ipts/bigfoot burden quest/bigfootBurdenQuestWarzones.lua:1>
Script:
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(item.uid == 3143) then
if(getGlobalStorageValue(item.uid) < 1) then
setGlobalStorageValue(item.uid, 1)
for i = 1, 6 do
for k = 1, 10 do
creatures = {
"humongous fungus",
"hideous fungus"
}
pos = {x = math.random(33091, 33101), y = math.random(31899, 31916), z = 10}
addEvent(doSummonCreature, i * 20 * 1000, creatures[math.random(1, 2)], pos)
addEvent(doSendMagicEffect, i * 20 * 1000, pos, CONST_ME_TELEPORT)
end
addEvent(doCreatureSay, i * 20 * 1000, cid, "The crystals are charging.", TALKTYPE_ORANGE_1, false, cid, toPosition)
end
addEvent(doTransformItem, 6 * 20 * 1000, getTileItemById({x = 33104, y = 31908, z = 10}), 17999, 1387)
addEvent(doTransformItem, 6 * 20 * 1000, getTileItemById({x = 33104, y = 31908, z = 10}), 1387, 17999)
addEvent(doSummonCreature, 6 * 20 * 1000, "deathstrike", {x = 33100, y = 31955, z = 10})
addEvent(doSendMagicEffect, 6 * 20 * 1000, {x = 33100, y = 31955, z = 10}, CONST_ME_TELEPORT)
addEvent(teleportAllPlayersFromArea, 6 * 20 * 1000 + 30 * 60 * 1000, {
{x = 33089, y = 31946, z = 10},
{x = 33124, y = 31983, z = 10}
}, {x = 33002, y = 31918, z = 10})
addEvent(removeBoss, 6 * 20 * 1000 + 30 * 60 * 1000, {
{x = 33089, y = 31946, z = 10},
{x = 33124, y = 31983, z = 10}
}, "deathstrike")
addEvent(setGlobalStorageValue, 6 * 20 * 1000 + 30 * 60 * 1000, item.uid, 0)
end
end
return true
end