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

[Teleports]

sonata

New Member
Joined
Jan 26, 2009
Messages
84
Reaction score
0
Can anyone give me a script V,one for portal tele and one for on item use tele> please and ill set the y,z,x pos ty ^^;
 
Well i dont know if it work, im not sure but anyway try!

PHP:
function onStepIn(cid, item, pos)

local npos = {x=1000, y=1000, z=7} -- Where to be teleported!
local npos name = "Thais"
local effect = getCreaturePosition(cid), CONST_ME_POFF
local msg = "Hello" ".. getCreatureName(cid).." " You have been teleported to " " .. npos name .. " ." -- The message to player who enter the teleport.
local teleport = ITEM_ID -- The id of teleport.
local item = ITEM_ID -- The id you need to enter the teleport.

if item.itemid == teleport and getPlayerItem(cid, item) and if isPlayer(cid) == TRUE then

             doTeleportThing(cid, npos, TRUE)
             doSendMagicEffect(effect)
             doCreatureSay(cid, msg)
	         end
     return TRUE
end
 
Last edited:
Back
Top