Okej so its me again haha problems as usual but i love the help here and im really thankful for it !
This is my problem this time when i kill the boss brothers in inq someone of them this error pops up ( the boss brothers Golgordan and latrivan )
http://img18.imageshack.us/img18/9403/errorsssss.png
Hope someone can help me!
Especially you Cykotitan your things always works !
This is my problem this time when i kill the boss brothers in inq someone of them this error pops up ( the boss brothers Golgordan and latrivan )
http://img18.imageshack.us/img18/9403/errorsssss.png
Lua:
local monsters =
{
["Ushuriel"] = {teleportPos = {x = 1097, y = 1214, z = 12, stackpos = 1}, toPos = {x = 1172, y = 1139, z = 12}},
["Annihilon"] = {teleportPos = {x = 1187, y = 1198, z = 12, stackpos = 1}, toPos = {x = 1242, y = 1297, z = 12}},
["Hellgorak"] = {teleportPos = {x = 1192, y = 1240, z = 12, stackpos = 1}, toPos = {x = 1068, y = 1308, z = 12}},
["Madareth"] = {teleportPos = {x = 1119, y = 1242, z = 12, stackpos = 1}, toPos = {x = 1044, y = 1203, z = 13}},
["Zugurosh"] = {teleportPos = {x = 1149, y = 1213, z = 12, stackpos = 1}, toPos = {x = 1124, y = 1151, z = 12}}
}
local brothers =
{
["Golgordan"] = {teleportPos = {x = 100, y = 100, z = 7}, toPos = {x = 100, y = 100, z = 100}, brother = "Latrivan"},
["Latrivan"] = {teleportPos = {x = 100, y = 100, z = 7}, toPos = {x = 100, y = 100, z = 100}, brother = "Golgordan"},
brothersArea =
{
fromPos = {x = 1147, y = 1244, z = 12},
toPos = {x = 1148, y = 1193 , z = 13 }
}
}
local time = 180 --seconds(3 minutes)
function onKill(cid, target, lastHit)
if(monsters[getCreatureName(target)]) then
local t = monsters[getCreatureName(target)]
doCreateTeleport(1387, t.toPos, t.teleportPos)
doSendMagicEffect(t.teleportPos, CONST_ME_POFF)
doCreatureSay(cid, "You now have 3 minutes to exit this room through the teleporter. It will bring you to the next room only during his time or the teleporter will disappear", TALKTYPE_MONSTER, getCreaturePosition(target))
addEvent(doRemoveTeleport, time * 1000, t.teleportPos)
elseif(brothers[getCreatureName(target)]) then
t = brothers[getCreatureName(target)]
local brother = getCreatureByName(t.brother)
if(isMonster(brother) == true) then
if(isInRange(getCreaturePosition(brother), brothers.brothersArea.fromPos, brothers.brothersArea.toPos) == true) then
return true
else
doCreateTeleport(1387, t.toPos, t.teleportPos)
doSendMagicEffect(t.teleportPos, CONST_ME_POFF)
doCreatureSay(cid, "You now have 3 minutes to exit this room through the teleporter. It will bring you to the next room only during his time or the teleporter will disappear", TALKTYPE_MONSTER, getCreaturePosition(target))
addEvent(doRemoveTeleport, time * 1000, t.teleportPos)
end
end
end
return true
end
function doRemoveTeleport(position)
if(getTileThingByPos(position).itemid > 0) then
doRemoveItem(getTileThingByPos(position).uid)
doSendMagicEffect(position, CONST_ME_POFF)
end
end
Especially you Cykotitan your things always works !
Last edited: