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

Alter teleporters?

XxDeathAvenger

New Member
Joined
May 5, 2011
Messages
95
Reaction score
2
I'm using TFS 0.2.10, would I be able to edit a teleporter to send me somewhere and cost money?
Any help is appreciated.
 
In the line in movements.xml(sorry) make sure its a UNUSED actionid. can be any number between 100 and 65535

Code:
local truepos = {x=1000, y=1000, z=7} -- Position where player will go
local falsepos = {x=1000, y=1000, z=7} -- Position infront of the teleport where player will go if rejected to enter since its a tp

function onStepIn(cid, item, frompos, itemEx, topos)
if getPlayerMoney(cid) >= how_much then
doTeleportThing(cid, truepos, TRUE)
doRemoveItem(money_id, how_much)
doCreatureSay(cid, "Teleported!", 19)
else
doCreatureSay(cid, "You do not have enough money to enter!", 19)
doTeleportThing(cid, falsepos, TRUE)
end
return true
end
 
Last edited:
Back
Top