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

[request] need help with this simple script :D

healer007

New Member
Joined
Nov 11, 2008
Messages
174
Reaction score
0
Location
doesnt matter
Code:
local newpos = {x=98, y=117, z=7}
function onUse(cid, item, fromPosition, itemEx, toPosition)
	
if itemuid == 5009 then
		
doTeleportThing(cid, newpos) 
doSendMagicEffect(pos, type12)
end
return TRUE
end

this is my script i know it looks bad cus im still learning =p
want it to work like this> use door from pos A and get teleported to pos B. Use door from pos B and get teleported to A simple.
havent tested the script yet but
this only work one way from A to B i want both ty
 
Lua:
function onUse(cid, item, frompos, item2, topos)
local playerPos = getCreaturePosition(cid)
location = {x=95, y=117, z=7}
doTeleportThing(cid, location)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Teleported.")
return TRUE
end
 
Last edited:
Back
Top