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

Guild war tile

Lua:
function onStepIn(cid, item, position, fromPosition)
		if not(getPlayerGuildId(cid)) then
			doTeleportThing(cid, fromPosition, false)
			doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "The tile seems to be protected against unwanted intruders.")
		end
    return true
end

its ok?
 
PHP:
     <action uniqueid="1033" script="tile.lua" />
PHP:
17:47 You see a magic forcefield.
You can see the other side through it.
ItemID: [1387], UniqueID: [1033].
Position: [X: 287] [Y: 583] [Z: 7].

my char not have guild war and teleported
 
PHP:
function onStepIn(cid, item, position, fromPosition)
	local t = {x=1000,y=1000,z=7}
		if not(getPlayerGuildId(cid)) then
			doTeleportThing(cid,t)
			doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "The tile seems to be protected against unwanted intruders.")
		end
    return true
end

in the teleport coordinates do not put only put a teleport and put the unique id in the tile that the teleport is low.
 
Code:
function onStepIn(cid, item, position, fromPosition) 
    local t = {[COLOR="#0000CD"]x=1000,y=1000,z=7[/COLOR]} 
        if not(getPlayerGuildId(cid)) then 
            doTeleportThing(cid,t) 
            doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "The tile seems to be protected against unwanted intruders.") 
        end 
    return true 
end

blue = where you want the tile to teleport you.

In actions.xml, add this line maybe:
Code:
<action uniqueid="[U]uniqueid of a tile[/U]" event="script" value="[U]name of file.lua[/U]"

So, in map editor you change the uniqueid of a tile to which ever is in actions.xml


Also, in your last post (or which ever above), you posted this:
17:47 You see a magic forcefield.
You can see the other side through it.
ItemID: [1387], UniqueID: [1033].
Position: [X: 287] [Y: 583] [Z: 7].

well, not sure but maybe instead of tp, put a normal tile in here? But well, it should work with tp i think.
 
just, put a teleport on a tile and don't do anything with it. but give the uniqueid to the tile that is under tp first.

and then in the script, put the destination in x, y, z where a person should be teleported...

I will test that script if it even works coz we dont even know if it does.
 
Back
Top