• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Action yalahar quarter gate script !

Thunder Beam

New Member
Joined
Apr 23, 2008
Messages
107
Reaction score
0
Hello,

I need a gate script that teleports you to the other side of the gate for Yalahar Quarters(like real tibia) is it possible ?

I tried the search function but nothing found.

Thunder Beam
 
it works like:
you stay at the wall at yalahar, and then there is a item of type: 9534 (don't know it's name) and u use it and it tp's you over the wall
 
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local text = "You are worthy enough to pass."
local newposition = {x=1780, y=1718, z=5}
local playerposition = getPlayerPosition(cid)
	getThingfromPos(playerposition)
	doTeleportThing(cid, newposition)
	doSendMagicEffect(newposition, 32)
	doSendAnimatedText(newposition, text, 100)
return TRUE
end
Try now,
 
If you want to use "multi gates" then you can use my script.

PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition) 

local config = {
gates = {
	[1930] = {{x=100,y=100,z=7}, CONST_ME_TELEPORT},  -- [uid] = {{pos}, effect}
	[1931] = {{x=100,y=100,z=7}, CONST_ME_TELEPORT},
	[1932] = {{x=100,y=100,z=7}, CONST_ME_TELEPORT},
	[1933] = {{x=100,y=100,z=7}, CONST_ME_TELEPORT},
	[1934] = {{x=100,y=100,z=7}, CONST_ME_TELEPORT},
	[1935] = {{x=100,y=100,z=7}, CONST_ME_TELEPORT}
},
text = "You are worthy enought to pass."
}
	for type, variable in pairs(config.gates) do
		if item.uid == type then
			doTeleportThing(cid, variable[1])
			doSendMagicEffect(variable[1], variable[2])
			doPlayerSendTextMessage(cid, 22, config.text) 
		end
	end  
	return TRUE
end

Just configurate config. :)
 
Last edited:
i have made some scripts for all gates but to activate them you need to go around and use the gate from the other side and you also need to set some action ids on them if you want it i can upload them
 
No thanks :) I have already a working script :)
But perhaps you can upload them for other people ?
I think there are many who needs this script too..
 
ye true but then i need to help everyone where to set the action ids in the mapeditor thay can use the script that already is posted in this thread (im to lazy :p)
 
Back
Top