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

Inquisition Teleporters

Sue Mea

New Member
Joined
Nov 3, 2009
Messages
23
Reaction score
0
Anyone know how do I make teleporters which tp me in the different Seals only possible if you done this seal? Can't find anything with the Search function.


I'll give rep++ :)




Yours,

Sue Mea
 
Yeah, there is no good Inquisition released to community, but it's easy to script one on your own. I gona start scripting Inquisition for my server today.
 
Could you post it than for me? :p

I'm learning atm and dont really know how to do it. ^^


Edit:

Maybe someone can tell me how do I make spears unbreakable? lol xD


Yours,

Sue Mea
 
Last edited:
Need this too ;> Would be nice if someone posted scripts that is needed.
Maybe it's good the have that the TP after each boss add a storage ID, and when you get that storage ID you can go through the shortcut-portal... or which is the best way to do this?
 
Dont forget to Rep++ me :D
i am using this and working perfect 100%

Here you are the inq teleports all u have to do is to create this script
data/creaturescripts/scripts/inquisition/teleports_inquisition.lua

and paste the following:

Code:
local config = {
	message = "Go into the teleporter in 3 minutes, else it will disappear.",
	timeToRemove = 180, -- seconds
	teleportId = 1387,
	bosses = {
		["Ushuriel"] = { x = 3486, y = 3373, z = 5 },
		["Annihilon"] = { x = 3547, y = 3601, z = 5 },
		["Hellgorak"] = { x = 3365, y = 3613, z = 6 },
		["Madareth"] = { x = 3346, y = 3510, z = 6 },
		["Zugurosh"] = { x = 3429, y = 3455, z = 5 },
		["Latrivan"] = { x = 3541, y = 3444, z = 6}
                            
	}
}

local function removal(position)
	position.stackpos = 1
	if getThingfromPos(position).itemid == config.teleportId then
		doRemoveItem(getThingfromPos(position).uid)
	end
	return TRUE
end

function onDeath(cid, corpse, killer)
	registerCreatureEvent(cid, "inquisitionPortals")
	local position = getCreaturePosition(cid)
	
	for name, pos in pairs(config.bosses) do
		if name == getCreatureName(cid) then
			teleport = doCreateTeleport(config.teleportId, pos, position)
			doCreatureSay(cid, config.message, TALKTYPE_ORANGE_1)
			addEvent(removal, config.timeToRemove * 1000, position)
		end
	end
	return TRUE
end

Dont forget to put you own Coordinates x-y-z that u want the tp to teleport the player to.

then
add this line to data/creaturescripts/creaturescripts.xml

Code:
<event type="death" name="inquisitionPortals" script="Inquisition/teleports_inquisition.lua"/>

then go to data/creaturescriptes/login.lua
and add the foloowing after Function onLogin(cid)

Code:
registerCreatureEvent(cid, "inquisitionPortals")

now your almost done

go to each monester that u want to to create tp and the are shown in the first script then add like that example

to make Ushuriel working goto
data/monester/bosses/ushuriel.xml

then add this after flags

Code:
<script>
<event name="inquisitionPortals"/>
</script>

then when u kill the monester it will make the tp :D and this tp will disappear after 3 minutes

Rep++ if it worked it's tested on my server and workign perfect :)
 
Dont forget to Rep++ me :D
i am using this and working perfect 100%

Here you are the inq teleports all u have to do is to create this script
data/creaturescripts/scripts/inquisition/teleports_inquisition.lua

and paste the following:

Code:
local config = {
	message = "Go into the teleporter in 3 minutes, else it will disappear.",
	timeToRemove = 180, -- seconds
	teleportId = 1387,
	bosses = {
		["Ushuriel"] = { x = 3486, y = 3373, z = 5 },
		["Annihilon"] = { x = 3547, y = 3601, z = 5 },
		["Hellgorak"] = { x = 3365, y = 3613, z = 6 },
		["Madareth"] = { x = 3346, y = 3510, z = 6 },
		["Zugurosh"] = { x = 3429, y = 3455, z = 5 },
		["Latrivan"] = { x = 3541, y = 3444, z = 6}
                            
	}
}

local function removal(position)
	position.stackpos = 1
	if getThingfromPos(position).itemid == config.teleportId then
		doRemoveItem(getThingfromPos(position).uid)
	end
	return TRUE
end

function onDeath(cid, corpse, killer)
	registerCreatureEvent(cid, "inquisitionPortals")
	local position = getCreaturePosition(cid)
	
	for name, pos in pairs(config.bosses) do
		if name == getCreatureName(cid) then
			teleport = doCreateTeleport(config.teleportId, pos, position)
			doCreatureSay(cid, config.message, TALKTYPE_ORANGE_1)
			addEvent(removal, config.timeToRemove * 1000, position)
		end
	end
	return TRUE
end

Dont forget to put you own Coordinates x-y-z that u want the tp to teleport the player to.

then
add this line to data/creaturescripts/creaturescripts.xml

Code:
<event type="death" name="inquisitionPortals" script="Inquisition/teleports_inquisition.lua"/>

then go to data/creaturescriptes/login.lua
and add the foloowing after Function onLogin(cid)

Code:
registerCreatureEvent(cid, "inquisitionPortals")

now your almost done

go to each monester that u want to to create tp and the are shown in the first script then add like that example

to make Ushuriel working goto
data/monester/bosses/ushuriel.xml

then add this after flags

Code:
<script>
<event name="inquisitionPortals"/>
</script>

then when u kill the monester it will make the tp :D and this tp will disappear after 3 minutes

Rep++ if it worked it's tested on my server and workign perfect :)


lol. THis script summons teleport when monster is killed and removes after a period of time. This is not script for tp's to seals.
 
He doesn't wants the scripts to continue to next seal. He wants the tps in the start of the quest which allows you to go directly to a seal if you've done it before.

Fail.
 
Dont forget to Rep++ me :D
i am using this and working perfect 100%

Here you are the inq teleports all u have to do is to create this script
data/creaturescripts/scripts/inquisition/teleports_inquisition.lua

and paste the following:

Code:
local config = {
	message = "Go into the teleporter in 3 minutes, else it will disappear.",
	timeToRemove = 180, -- seconds
	teleportId = 1387,
	bosses = {
		["Ushuriel"] = { x = 3486, y = 3373, z = 5 },
		["Annihilon"] = { x = 3547, y = 3601, z = 5 },
		["Hellgorak"] = { x = 3365, y = 3613, z = 6 },
		["Madareth"] = { x = 3346, y = 3510, z = 6 },
		["Zugurosh"] = { x = 3429, y = 3455, z = 5 },
		["Latrivan"] = { x = 3541, y = 3444, z = 6}
                            
	}
}

local function removal(position)
	position.stackpos = 1
	if getThingfromPos(position).itemid == config.teleportId then
		doRemoveItem(getThingfromPos(position).uid)
	end
	return TRUE
end

function onDeath(cid, corpse, killer)
	registerCreatureEvent(cid, "inquisitionPortals")
	local position = getCreaturePosition(cid)
	
	for name, pos in pairs(config.bosses) do
		if name == getCreatureName(cid) then
			teleport = doCreateTeleport(config.teleportId, pos, position)
			doCreatureSay(cid, config.message, TALKTYPE_ORANGE_1)
			addEvent(removal, config.timeToRemove * 1000, position)
		end
	end
	return TRUE
end

Dont forget to put you own Coordinates x-y-z that u want the tp to teleport the player to.

then
add this line to data/creaturescripts/creaturescripts.xml

Code:
<event type="death" name="inquisitionPortals" script="Inquisition/teleports_inquisition.lua"/>

then go to data/creaturescriptes/login.lua
and add the foloowing after Function onLogin(cid)

Code:
registerCreatureEvent(cid, "inquisitionPortals")

now your almost done

go to each monester that u want to to create tp and the are shown in the first script then add like that example

to make Ushuriel working goto
data/monester/bosses/ushuriel.xml

then add this after flags

Code:
<script>
<event name="inquisitionPortals"/>
</script>

then when u kill the monester it will make the tp :D and this tp will disappear after 3 minutes

Rep++ if it worked it's tested on my server and workign perfect :)

do i have to put a actionid or a uid on the tp cause when i step onto it, it does nothing


EDIT: i have got it working now but i get this error
[04/12/2009 09:05:12] Lua Script Error: [CreatureScript Interface]
[04/12/2009 09:05:12] buffer: onKill

[04/12/2009 09:05:12] luaDoCreateTeleport(). Tile not found

also is there a way to make the boss's corpse not go into the teleport when it is moveable
 
Last edited:
do i have to put a actionid or a uid on the tp cause when i step onto it, it does nothing


EDIT: i have got it working now but i get this error


also is there a way to make the boss's corpse not go into the teleport when it is moveable
change tp creation positions of he? <,<
 
Anyone know how do I make teleporters which tp me in the different Seals only possible if you done this seal? Can't find anything with the Search function.


I'll give rep++ :)




Yours,

Sue Mea


Sue , my friend make one script if u kill boss , u can down in tp.
exemple:
u kill Ushuriel and u can down tp Crystal caves...

when he enter , i go send msg to you ,if he wanna share the script.
 
Hi everybody! Im Dinhu's friend here =P. Hope we can help.
I made myself the teleporters that allow you to go only if you kill the boss before. As in the global server, you have to kill the boss, the teleport appears, you enter and fall in the next seal path. Then you NEED to go back with the teleport to main room and you will be able to go and back with this teleport. (so the teleport that returns you is the one that gives your storagevalue.)

Uses: UniqueIds and Mystic flames (instead of the common teleport).
Also these 2 scripts (one for the main room teleports, other for the return main room from entrance of seals.
and of course, update movements.xml with these:
Code:
	<!-- Inquisition -->
	<movement type="StepIn" uniqueid="5900" event="script" value="teleportsgo.lua" /> 
	<movement type="StepIn" uniqueid="5901" event="script" value="teleportsgo.lua" /> 
	<movement type="StepIn" uniqueid="5902" event="script" value="teleportsgo.lua" /> 
	<movement type="StepIn" uniqueid="5903" event="script" value="teleportsgo.lua" /> 
	<movement type="StepIn" uniqueid="5904" event="script" value="teleportsgo.lua" /> 
	<movement type="StepIn" uniqueid="5905" event="script" value="teleportsback.lua" /> 
	<movement type="StepIn" uniqueid="5906" event="script" value="teleportsback.lua" /> 
	<movement type="StepIn" uniqueid="5907" event="script" value="teleportsback.lua" /> 
	<movement type="StepIn" uniqueid="5908" event="script" value="teleportsback.lua" /> 
	<movement type="StepIn" uniqueid="5909" event="script" value="teleportsback.lua" />

Scripts:
Teleports go
Code:
function onStepIn(cid, item, pos)

    if item.uid == 5900 then
        if getPlayerStorageValue(cid,5900) == -1 then
		doTeleportThing(cid,{x=1067, y=1081, z=14})
		doSendMagicEffect(getPlayerPosition(cid),CONST_ME_MORTAREA)
            	doCreatureSay(cid, "You haven't passed Ushuriel's seal yet.", TALKTYPE_ORANGE_1)
        else
		doTeleportThing(cid,{x=1176, y=1140, z=12})
		doSendMagicEffect(getPlayerPosition(cid),CONST_ME_TELEPORT)
        end
    elseif item.uid == 5901 then
        if getPlayerStorageValue(cid,5901) == -1 then
		doTeleportThing(cid,{x=1069, y=1082, z=14})
		doSendMagicEffect(getPlayerPosition(cid),CONST_ME_MORTAREA)
            	doCreatureSay(cid, "You haven't passed Zugurosh's seal yet.", TALKTYPE_ORANGE_1)
        else
		doTeleportThing(cid,{x=1128, y=1151, z=12})
		doSendMagicEffect(getPlayerPosition(cid),CONST_ME_TELEPORT)
        end
    elseif item.uid == 5902 then
        if getPlayerStorageValue(cid,5902) == -1 then
		doTeleportThing(cid,{x=1069, y=1087, z=14})
		doSendMagicEffect(getPlayerPosition(cid),CONST_ME_MORTAREA)
            	doCreatureSay(cid, "You haven't passed Madareth's seal yet.", TALKTYPE_ORANGE_1)
        else
		doTeleportThing(cid,{x=1045, y=1205, z=13})
		doSendMagicEffect(getPlayerPosition(cid),CONST_ME_TELEPORT)
        end
    elseif item.uid == 5903 then
        if getPlayerStorageValue(cid,5903) == -1 then
		doTeleportThing(cid,{x=1067, y=1089, z=14})
		doSendMagicEffect(getPlayerPosition(cid),CONST_ME_MORTAREA)
            	doCreatureSay(cid, "You haven't passed the Brother's seal yet.", TALKTYPE_ORANGE_1)
        else
		doTeleportThing(cid,{x=1152, y=1195, z=13})
		doSendMagicEffect(getPlayerPosition(cid),CONST_ME_TELEPORT)
        end
    elseif item.uid == 5904 then
        if getPlayerStorageValue(cid,5904) == -1 then
		doTeleportThing(cid,{x=1062, y=1089, z=14})
		doSendMagicEffect(getPlayerPosition(cid),CONST_ME_MORTAREA)
            	doCreatureSay(cid, "You haven't passed Annihilon's seal yet.", TALKTYPE_ORANGE_1)
        else
		doTeleportThing(cid,{x=1245, y=1297, z=12})
		doSendMagicEffect(getPlayerPosition(cid),CONST_ME_TELEPORT)
        end
    end
    return 1
end

Here you use the mistic flames in the main room. You put yours uniqueId in each of them. Also you have to change the coordinates according to your map.
The teleports checks if you have the storage value. If you havent, he will tp 2 sqm back and give a msg that you havent done the seal. If you have got the storage value, he will teleport you to the seal path (check the coordinates.)



Teleports back
Code:
function onStepIn(cid, item, pos)

    if item.uid == 5905 then
        setPlayerStorageValue(cid,5900,1)
	doTeleportThing(cid,{x=1064, y=1085, z=14}) -- Coordinates of main room.
	doSendMagicEffect(getPlayerPosition(cid),CONST_ME_TELEPORT)

    elseif item.uid == 5906 then
        setPlayerStorageValue(cid,5901,1)
	doTeleportThing(cid,{x=1064, y=1085, z=14})
	doSendMagicEffect(getPlayerPosition(cid),CONST_ME_TELEPORT)

    elseif item.uid == 5907 then
        setPlayerStorageValue(cid,5902,1)
	doTeleportThing(cid,{x=1064, y=1085, z=14})
	doSendMagicEffect(getPlayerPosition(cid),CONST_ME_TELEPORT)

    elseif item.uid == 5908 then
        setPlayerStorageValue(cid,5903,1)
	doTeleportThing(cid,{x=1064, y=1085, z=14}) 
	doSendMagicEffect(getPlayerPosition(cid),CONST_ME_TELEPORT)

    elseif item.uid == 5909 then
        setPlayerStorageValue(cid,5904,1)
	doTeleportThing(cid,{x=1064, y=1085, z=14}) 
	doSendMagicEffect(getPlayerPosition(cid),CONST_ME_TELEPORT)   
end
    return 1
end

You have to put the mistic flame where the return teleport is. (e.g. entrance of crystal caves). And put the UniqueId of it.


Well.. its a bit messy the post, but I hope you can understand.
If you have any questions about substuting coordinates, numbers of UniqueIds, you can ask.
The only "problem" is that I had to use mistic flames. The original teleports were bugging with the uniqueIds and using actionIds was crashing the server server -.-

Good Luck =D
 
Last edited:
Back
Top