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

Windows Inq Boss problem

8683984

New Member
Joined
Jun 5, 2009
Messages
95
Reaction score
2
Location
Sweden
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

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
Hope someone can help me!
Especially you Cykotitan your things always works ! :D
 
Last edited:
hmm... you can use my script becouse your is very short and use new functions which on some engines can be out of order
Lua:
function onDeath(cid, corpse, killer)

registerCreatureEvent(cid, "inquisitionPortals")

local creaturename = getCreatureName(cid)

--- positions where the teleports will be created:

local ushuriel_in_pos = {x=246, y=351, z=12, stackpos=2}
local annihilon_in_pos = {x=637, y=472, z=13, stackpos=2}
local hellgorak_in_pos = {x=335, y=581, z=10, stackpos=2}
local madareth_in_pos = {x=340, y=460, z=13, stackpos=2}
local zugurosh_in_pos = {x=390, y=525, z=13, stackpos=2}
local brothers_in_pos = {x=505, y=345, z=13, stackpos=1}

--- positions where the teleports will be teleported you:

local ushuriel_to_pos = {x=172, y=559, z=13, stackpos=1}
local annihilon_to_pos = {x=294, y=681, z=13, stackpos=1}
local hellgorak_to_pos = {x=255, y=467, z=13, stackpos=1}
local madareth_to_pos = {x=287, y=365, z=13, stackpos=1}
local zugurosh_to_pos = {x=314, y=474, z=13, stackpos=1}
local brothers_to_pos = {x=408, y=413, z=13, stackpos=1}

local time_to_pass = 180 -- in seconds
local tpID = 5023
local doEffect = CONST_ME_ENERGYHIT
local message = "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."

if creaturename == 'Ushuriel' then

teleport = doCreateTeleport(tpID, ushuriel_to_pos, ushuriel_in_pos)

doSendMagicEffect(ushuriel_in_pos, doEffect)

doCreatureSay(cid, message, TALKTYPE_ORANGE_1)

addEvent(removeTeleportInUshurielWard, (1000*time_to_pass))

elseif creaturename == 'Annihilon' then

teleport = doCreateTeleport(tpID, annihilon_to_pos, annihilon_in_pos)

doSendMagicEffect(annihilon_in_pos, doEffect)

doCreatureSay(cid, message, TALKTYPE_ORANGE_1)

addEvent(removeTeleportInAnnihilonWard, (1000*time_to_pass))

elseif creaturename == 'Madareth' then

teleport = doCreateTeleport(tpID, madareth_to_pos, madareth_in_pos)

doSendMagicEffect(madareth_in_pos, doEffect)

doCreatureSay(cid, message, TALKTYPE_ORANGE_1)

addEvent(removeTeleportInMadarethWard, (1000*time_to_pass))

elseif creaturename == 'Hellgorak' then

teleport = doCreateTeleport(tpID, hellgorak_to_pos, hellgorak_in_pos)

doSendMagicEffect(hellgorak_in_pos, doEffect)

doCreatureSay(cid, message, TALKTYPE_ORANGE_1)

addEvent(removeTeleportInHellgorakWard, (1000*time_to_pass))

elseif creaturename == 'Zugurosh' then

teleport = doCreateTeleport(tpID, zugurosh_to_pos, zugurosh_in_pos)

doSendMagicEffect(zugurosh_in_pos, doEffect)

doCreatureSay(cid, message, TALKTYPE_ORANGE_1)

addEvent(removeTeleportInZuguroshWard, (1000*time_to_pass))

elseif creaturename == 'Latrivan' then

teleport = doCreateTeleport(tpID, brothers_to_pos, brothers_in_pos)

doSendMagicEffect(brothers_in_pos, doEffect)

doCreatureSay(cid, message, TALKTYPE_ORANGE_1)

addEvent(removeTeleportInBrothersWard, (1000*time_to_pass))

end
end

function removeTeleportInUshurielWard()
if getThingfromPos({x=246, y=351, z=12, stackpos=1}).itemid == 5023 then
doRemoveItem(getThingfromPos({x=246, y=351, z=12, stackpos=1}).uid,1)
doSendMagicEffect({x=246, y=351, z=12, stackpos=1}, CONST_ME_POFF)
return TRUE
end
end

function removeTeleportInAnnihilonWard()
if getThingfromPos({x=637, y=472, z=13, stackpos=1}).itemid == 5023 then
doRemoveItem(getThingfromPos({x=637, y=472, z=13, stackpos=1}).uid,1)
doSendMagicEffect({x=637, y=472, z=13, stackpos=1}, CONST_ME_POFF)
return TRUE
end
end

function removeTeleportInHellgorakWard()
if getThingfromPos({x=335, y=581, z=10, stackpos=1}).itemid == 5023 then
doRemoveItem(getThingfromPos({x=335, y=581, z=10, stackpos=1}).uid,1)
doSendMagicEffect({x=335, y=581, z=10, stackpos=1}, CONST_ME_POFF)
return TRUE
end
end

function removeTeleportInMadarethWard()
if getThingfromPos({x=340, y=460, z=13, stackpos=1}).itemid == 5023 then
doRemoveItem(getThingfromPos({x=340, y=460, z=13, stackpos=1}).uid,1)
doSendMagicEffect({x=340, y=460, z=13, stackpos=1}, CONST_ME_POFF)
return TRUE
end
end

function removeTeleportInZuguroshWard()
if getThingfromPos({x=390, y=525, z=13, stackpos=1}).itemid == 5023 then
doRemoveItem(getThingfromPos({x=390, y=525, z=13, stackpos=1}).uid,1)
doSendMagicEffect({x=390, y=525, z=13, stackpos=1}, CONST_ME_POFF)
return TRUE
end
end

function removeTeleportInBrothersWard()
if getThingfromPos({x=505, y=345, z=13, stackpos=1}).itemid == 5023 then
doRemoveItem(getThingfromPos({x=505, y=345, z=13, stackpos=1}).uid,1)
doSendMagicEffect({x=505, y=345, z=13, stackpos=1}, CONST_ME_POFF)
return TRUE
end
end
 
You need to change the toPos and teleportPos:
Lua:
	["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"},
 
isnt it enought to just change this one "
Lua:
		fromPos = {x = 1147, y = 1244, z = 12},
		toPos = {x = 1148, y = 1193 , z = 13 }
?
 
Back
Top