Knight God
Member
- Joined
- Oct 19, 2008
- Messages
- 1,180
- Reaction score
- 21
up please
[21:53:25.968] [Error - CreatureScript Interface]
[21:53:25.968] function onKill(cid, target, lastHit)
[21:53:25.968] if(config.bosses[getCreatureName(target)]) then
[21:53:25.968] local t = config.bosses[getCreatureName(target)]
[21:53:25.968] local teleport = doCreateTeleport(config.teleportId, t.pt
p, t.pp)
[21:53:25.968] local position = t.pp
[21:53:25.984] doItemSetAttribute(teleport, "uid", t.uid)
[21:53:25.984] doCreatureSay(cid, config.message, TALKTYPE_ORANGE_1)
[21:53:25.984] addEvent(removal, config.timeToRemove * 1000, position)
[21:53:25.984] end
[21:53:25.984] return TRUE
[21:53:25.984] end:onKill
[21:53:25.984] Description:
[21:53:25.984] [string "LuaInterface::loadBuffer"]:2: attempt to index field 'bo
sses' (a nil value)
[21:53:25.984] stack traceback:
[21:53:25.984] [string "LuaInterface::loadBuffer"]:2: in function <[string "Lua
Interface::loadBuffer"]:1>
[21:53:26.484] [Error - CreatureScript Interface]
[21:53:26.484] function onKill(cid, target, lastHit)
[21:53:26.484] if(config.bosses[getCreatureName(target)]) then
[21:53:26.484] local t = config.bosses[getCreatureName(target)]
[21:53:26.484] local teleport = doCreateTeleport(config.teleportId, t.pt
p, t.pp)
[21:53:26.484] local position = t.pp
[21:53:26.484] doItemSetAttribute(teleport, "uid", t.uid)
[21:53:26.484] doCreatureSay(cid, config.message, TALKTYPE_ORANGE_1)
[21:53:26.484] addEvent(removal, config.timeToRemove * 1000, position)
[21:53:26.484] end
[21:53:26.484] return TRUE
[21:53:26.500] end:onKill
[21:53:26.500] Description:
[21:53:26.500] [string "LuaInterface::loadBuffer"]:2: attempt to index field 'bo
sses' (a nil value)
[21:53:26.500] stack traceback:
[21:53:26.500] [string "LuaInterface::loadBuffer"]:2: in function <[string "Lua
Interface::loadBuffer"]:1>
[21:53:27.046] [Error - CreatureScript Interface]
[21:53:27.046] function onKill(cid, target, lastHit)
[21:53:27.046] if(config.bosses[getCreatureName(target)]) then
[21:53:27.046] local t = config.bosses[getCreatureName(target)]
[21:53:27.046] local teleport = doCreateTeleport(config.teleportId, t.pt
p, t.pp)
[21:53:27.046] local position = t.pp
[21:53:27.046] doItemSetAttribute(teleport, "uid", t.uid)
[21:53:27.046] doCreatureSay(cid, config.message, TALKTYPE_ORANGE_1)
[21:53:27.046] addEvent(removal, config.timeToRemove * 1000, position)
[21:53:27.046] end
[21:53:27.046] return TRUE
[21:53:27.046] end:onKill
[21:53:27.046] Description:
[21:53:27.046] [string "LuaInterface::loadBuffer"]:2: attempt to index field 'bo
sses' (a nil value)
[21:53:27.062] stack traceback:
[21:53:27.062] [string "LuaInterface::loadBuffer"]:2: in function <[string "Lua
Interface::loadBuffer"]:1>
[21:53:27.640] [Error - CreatureScript Interface]
[21:53:27.640] function onKill(cid, target, lastHit)
[21:53:27.640] if(config.bosses[getCreatureName(target)]) then
[21:53:27.640] local t = config.bosses[getCreatureName(target)]
[21:53:27.640] local teleport = doCreateTeleport(config.teleportId, t.pt
p, t.pp)
[21:53:27.640] local position = t.pp
[21:53:27.640] doItemSetAttribute(teleport, "uid", t.uid)
[21:53:27.640] doCreatureSay(cid, config.message, TALKTYPE_ORANGE_1)
[21:53:27.640] addEvent(removal, config.timeToRemove * 1000, position)
[21:53:27.640] end
[21:53:27.640] return TRUE
[21:53:27.640] end:onKill
[21:53:27.640] Description:
[21:53:27.640] [string "LuaInterface::loadBuffer"]:2: attempt to index field 'bo
sses' (a nil value)
[21:53:27.640] stack traceback:
[21:53:27.640] [string "LuaInterface::loadBuffer"]:2: in function <[string "Lua
Interface::loadBuffer"]:1>
[21:53:28.218] [Error - CreatureScript Interface]
[21:53:28.218] function onKill(cid, target, lastHit)
[21:53:28.218] if(config.bosses[getCreatureName(target)]) then
[21:53:28.218] local t = config.bosses[getCreatureName(target)]
[21:53:28.218] local teleport = doCreateTeleport(config.teleportId, t.pt
p, t.pp)
[21:53:28.218] local position = t.pp
[21:53:28.234] doItemSetAttribute(teleport, "uid", t.uid)
[21:53:28.234] doCreatureSay(cid, config.message, TALKTYPE_ORANGE_1)
[21:53:28.234] addEvent(removal, config.timeToRemove * 1000, position)
[21:53:28.234] end
[21:53:28.234] return TRUE
[21:53:28.250] end:onKill
[21:53:28.250] Description:
[21:53:28.250] [string "LuaInterface::loadBuffer"]:2: attempt to index field 'bo
sses' (a nil value)
[21:53:28.250] stack traceback:
[21:53:28.250] [string "LuaInterface::loadBuffer"]:2: in function <[string "Lua
Interface::loadBuffer"]:1>
[21:53:28.796] [Error - CreatureScript Interface]
[21:53:28.796] function onKill(cid, target, lastHit)
[21:53:28.796] if(config.bosses[getCreatureName(target)]) then
[21:53:28.796] local t = config.bosses[getCreatureName(target)]
[21:53:28.812] local teleport = doCreateTeleport(config.teleportId, t.pt
p, t.pp)
[21:53:28.812] local position = t.pp
[21:53:28.812] doItemSetAttribute(teleport, "uid", t.uid)
[21:53:28.812] doCreatureSay(cid, config.message, TALKTYPE_ORANGE_1)
[21:53:28.828] addEvent(removal, config.timeToRemove * 1000, position)
[21:53:28.828] end
[21:53:28.828] return TRUE
[21:53:28.828] end:onKill
[21:53:28.828] Description:
[21:53:28.843] [string "LuaInterface::loadBuffer"]:2: attempt to index field 'bo
sses' (a nil value)
[21:53:28.843] stack traceback:
[21:53:28.843] [string "LuaInterface::loadBuffer"]:2: in function <[string "Lua
Interface::loadBuffer"]:1>
[21:53:29.328] [Error - CreatureScript Interface]
[21:53:29.328] function onKill(cid, target, lastHit)
[21:53:29.328] if(config.bosses[getCreatureName(target)]) then
[21:53:29.343] local t = config.bosses[getCreatureName(target)]
[21:53:29.343] local teleport = doCreateTeleport(config.teleportId, t.pt
p, t.pp)
[21:53:29.343] local position = t.pp
[21:53:29.343] doItemSetAttribute(teleport, "uid", t.uid)
[21:53:29.343] doCreatureSay(cid, config.message, TALKTYPE_ORANGE_1)
[21:53:29.359] addEvent(removal, config.timeToRemove * 1000, position)
[21:53:29.359] end
[21:53:29.359] return TRUE
[21:53:29.359] end:onKill
[21:53:29.359] Description:
[21:53:29.375] [string "LuaInterface::loadBuffer"]:2: attempt to index field 'bo
sses' (a nil value)
[21:53:29.375] stack traceback:
[21:53:29.375] [string "LuaInterface::loadBuffer"]:2: in function <[string "Lua
Interface::loadBuffer"]:1>
[21:53:29.890] [Error - CreatureScript Interface]
[21:53:29.890] function onKill(cid, target, lastHit)
[21:53:29.890] if(config.bosses[getCreatureName(target)]) then
[21:53:29.890] local t = config.bosses[getCreatureName(target)]
[21:53:29.906] local teleport = doCreateTeleport(config.teleportId, t.pt
p, t.pp)
[21:53:29.906] local position = t.pp
[21:53:29.906] doItemSetAttribute(teleport, "uid", t.uid)
[21:53:29.906] doCreatureSay(cid, config.message, TALKTYPE_ORANGE_1)
[21:53:29.906] addEvent(removal, config.timeToRemove * 1000, position)
[21:53:29.921] end
[21:53:29.921] return TRUE
[21:53:29.921] end:onKill
[21:53:29.921] Description:
[21:53:29.921] [string "LuaInterface::loadBuffer"]:2: attempt to index field 'bo
sses' (a nil value)
[21:53:29.937] stack traceback:
[21:53:29.937] [string "LuaInterface::loadBuffer"]:2: in function <[string "Lua
Interface::loadBuffer"]:1>
[21:53:30.437] [Error - CreatureScript Interface]
[21:53:30.437] function onKill(cid, target, lastHit)
[21:53:30.437] if(config.bosses[getCreatureName(target)]) then
[21:53:30.453] local t = config.bosses[getCreatureName(target)]
[21:53:30.453] local teleport = doCreateTeleport(config.teleportId, t.pt
p, t.pp)
[21:53:30.453] local position = t.pp
[21:53:30.453] doItemSetAttribute(teleport, "uid", t.uid)
[21:53:30.453] doCreatureSay(cid, config.message, TALKTYPE_ORANGE_1)
[21:53:30.468] addEvent(removal, config.timeToRemove * 1000, position)
[21:53:30.468] end
[21:53:30.468] return TRUE
[21:53:30.468] end:onKill
[21:53:30.468] Description:
[21:53:30.484] [string "LuaInterface::loadBuffer"]:2: attempt to index field 'bo
sses' (a nil value)
[21:53:30.484] stack traceback:
[21:53:30.484] [string "LuaInterface::loadBuffer"]:2: in function <[string "Lua
Interface::loadBuffer"]:1>
[21:53:30.968] [Error - CreatureScript Interface]
[21:53:30.968] function onKill(cid, target, lastHit)
[21:53:30.968] if(config.bosses[getCreatureName(target)]) then
[21:53:30.968] local t = config.bosses[getCreatureName(target)]
[21:53:30.984] local teleport = doCreateTeleport(config.teleportId, t.pt
p, t.pp)
[21:53:30.984] local position = t.pp
[21:53:30.984] doItemSetAttribute(teleport, "uid", t.uid)
[21:53:30.984] doCreatureSay(cid, config.message, TALKTYPE_ORANGE_1)
[21:53:30.984] addEvent(removal, config.timeToRemove * 1000, position)
[21:53:31.000] end
[21:53:31.000] return TRUE
[21:53:31.000] end:onKill
[21:53:31.000] Description:
[21:53:31.000] [string "LuaInterface::loadBuffer"]:2: attempt to index field 'bo
sses' (a nil value)
[21:53:31.015] stack traceback:
[21:53:31.015] [string "LuaInterface::loadBuffer"]:2: in function <[string "Lua
Interface::loadBuffer"]:1>
[21:53:31.531] [Error - CreatureScript Interface]
[21:53:31.531] function onKill(cid, target, lastHit)
[21:53:31.546] if(config.bosses[getCreatureName(target)]) then
[21:53:31.546] local t = config.bosses[getCreatureName(target)]
[21:53:31.546] local teleport = doCreateTeleport(config.teleportId, t.pt
p, t.pp)
[21:53:31.546] local position = t.pp
[21:53:31.562] doItemSetAttribute(teleport, "uid", t.uid)
[21:53:31.562] doCreatureSay(cid, config.message, TALKTYPE_ORANGE_1)
[21:53:31.562] addEvent(removal, config.timeToRemove * 1000, position)
[21:53:31.562] end
[21:53:31.578] return TRUE
[21:53:31.578] end:onKill
[21:53:31.578] Description:
[21:53:31.578] [string "LuaInterface::loadBuffer"]:2: attempt to index field 'bo
sses' (a nil value)
[21:53:31.578] stack traceback:
[21:53:31.593] [string "LuaInterface::loadBuffer"]:2: in function <[string "Lua
Interface::loadBuffer"]:1>
[21:53:32.062] [Error - CreatureScript Interface]
[21:53:32.078] function onKill(cid, target, lastHit)
[21:53:32.078] if(config.bosses[getCreatureName(target)]) then
[21:53:32.078] local t = config.bosses[getCreatureName(target)]
[21:53:32.078] local teleport = doCreateTeleport(config.teleportId, t.pt
p, t.pp)
[21:53:32.093] local position = t.pp
[21:53:32.093] doItemSetAttribute(teleport, "uid", t.uid)
[21:53:32.093] doCreatureSay(cid, config.message, TALKTYPE_ORANGE_1)
[21:53:32.093] addEvent(removal, config.timeToRemove * 1000, position)
[21:53:32.093] end
[21:53:32.109] return TRUE
[21:53:32.109] end:onKill
[21:53:32.109] Description:
[21:53:32.109] [string "LuaInterface::loadBuffer"]:2: attempt to index field 'bo
sses' (a nil value)
[21:53:32.125] stack traceback:
[21:53:32.125] [string "LuaInterface::loadBuffer"]:2: in function <[string "Lua
Interface::loadBuffer"]:1>
[21:53:32.640] [Error - CreatureScript Interface]
[21:53:32.640] function onKill(cid, target, lastHit)
[21:53:32.640] if(config.bosses[getCreatureName(target)]) then
[21:53:32.640] local t = config.bosses[getCreatureName(target)]
[21:53:32.656] local teleport = doCreateTeleport(config.teleportId, t.pt
p, t.pp)
[21:53:32.656] local position = t.pp
[21:53:32.656] doItemSetAttribute(teleport, "uid", t.uid)
[21:53:32.656] doCreatureSay(cid, config.message, TALKTYPE_ORANGE_1)
[21:53:32.671] addEvent(removal, config.timeToRemove * 1000, position)
[21:53:32.671] end
[21:53:32.671] return TRUE
[21:53:32.671] end:onKill
[21:53:32.687] Description:
[21:53:32.687] [string "LuaInterface::loadBuffer"]:2: attempt to index field 'bo
sses' (a nil value)
[21:53:32.687] stack traceback:
[21:53:32.687] [string "LuaInterface::loadBuffer"]:2: in function <[string "Lua
Interface::loadBuffer"]:1>
[21:53:33.218] [Error - CreatureScript Interface]
[21:53:33.218] function onKill(cid, target, lastHit)
[21:53:33.234] if(config.bosses[getCreatureName(target)]) then
[21:53:33.234] local t = config.bosses[getCreatureName(target)]
[21:53:33.234] local teleport = doCreateTeleport(config.teleportId, t.pt
p, t.pp)
[21:53:33.234] local position = t.pp
[21:53:33.250] doItemSetAttribute(teleport, "uid", t.uid)
[21:53:33.250] doCreatureSay(cid, config.message, TALKTYPE_ORANGE_1)
[21:53:33.250] addEvent(removal, config.timeToRemove * 1000, position)
[21:53:33.250] end
[21:53:33.250] return TRUE
[21:53:33.265] end:onKill
[21:53:33.265] Description:
[21:53:33.265] [string "LuaInterface::loadBuffer"]:2: attempt to index field 'bo
sses' (a nil value)
[21:53:33.265] stack traceback:
[21:53:33.281] [string "LuaInterface::loadBuffer"]:2: in function <[string "Lua
Interface::loadBuffer"]:1>
[21:53:33.781] [Error - CreatureScript Interface]
[21:53:33.781] function onKill(cid, target, lastHit)
[21:53:33.781] if(config.bosses[getCreatureName(target)]) then
[21:53:33.781] local t = config.bosses[getCreatureName(target)]
[21:53:33.796] local teleport = doCreateTeleport(config.teleportId, t.pt
p, t.pp)
[21:53:33.796] local position = t.pp
[21:53:33.796] doItemSetAttribute(teleport, "uid", t.uid)
[21:53:33.796] doCreatureSay(cid, config.message, TALKTYPE_ORANGE_1)
[21:53:33.812] addEvent(removal, config.timeToRemove * 1000, position)
[21:53:33.812] end
[21:53:33.812] return TRUE
[21:53:33.812] end:onKill
[21:53:33.828] Description:
[21:53:33.828] [string "LuaInterface::loadBuffer"]:2: attempt to index field 'bo
sses' (a nil value)
[21:53:33.828] stack traceback:
[21:53:33.828] [string "LuaInterface::loadBuffer"]:2: in function <[string "Lua
Interface::loadBuffer"]:1>
<?xml version="1.0" encoding="UTF-8"?>
<mod name="Inquisition"
version="2.0" author="Tommy" contact="[email protected]" enabled="yes">
<config name="inqusitionFunctions"><![CDATA[
config = {
message = "Go into the teleporter in 1 minute to exit this room through the teleporter.",
timeToRemove = 10, -- seconds
teleportId = 9739,
MonStor = 48000,
bosses = { -- Monster Name, Teleport To Position, Teleport Position, UID
["Ushuriel"] = { ptp={ x=1350, y=1473, z=5}, pp={ x=1338, y=1536, z=5, stackpos=1 }, aid=1001 },
["Annihilon"] = { ptp={ x=1468, y=1618, z=5 }, pp={ x=1409, y=1520, z=5, stackpos=1 }, aid=1005 },
["Hellgorak"] = { ptp={ x=1286, y=1630, z=6 }, pp={ x=1414, y=1562, z=5, stackpos=1 }, aid=1006 },
["Madareth"] = { ptp={ x=1395, y=1459, z=5}, pp={ x=1334, y=1562, z=5, stackpos=1 }, aid=1003 },
["Zugurosh"] = { ptp={ x=1267, y=1527, z=6}, pp={ x=1371, y=1535, z=5, stackpos=1 }, aid=1002 },
["Golgordan"] = { ptp={ x=1417, y=1545, z=6}, pp={ x=1369, y=1566, z=5, stackpos=1 }, aid=1004 }
}
}
function removal(position)
if getThingfromPos(position).itemid == config.teleportId then
doRemoveItem(getThingfromPos(position).uid)
end
return TRUE
end]]></config>
<event type="login" name="inquisitionRegister" event="script"><![CDATA[
domodlib('inqusitionFunctions')
function onLogin(cid)
registerCreatureEvent(cid, "Inquisition")
return true
end]]></event>
<event type="kill" name="Inquisition" event="script"><![CDATA[
function onKill(cid, target, lastHit)
if(config.bosses[getCreatureName(target)]) then
local t = config.bosses[getCreatureName(target)]
local teleport = doCreateTeleport(config.teleportId, t.ptp, t.pp)
local position = t.pp
doItemSetAttribute(teleport, "aid", t.aid)
doCreatureSay(cid, config.message, TALKTYPE_ORANGE_1)
addEvent(removal, config.timeToRemove * 1000, position)
end
return TRUE
end]]></event>
</mod>