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

TalkAction Unique Teleportation System v1 for TFS 1.0 only

change:
Code:
if not teleport.canTeleportWhileInfight and player:getCondition(CONDITION_INFIGHT) == false then
to:
Code:
if not teleport.canTeleportWhileInfight and getCreatureCondition(cid, CONDITION_INFIGHT) == false then
 
  • Indent your code
  • Use constant variables for text messages/magic effects
  • You can remove the Position userdata you're using on L13 (ModalWindow - teleport.lua), L19 (global.lua#Player.savePortPosition).
 
I'm using this at the moment and the only problem that I couldn't fix is that you can use the !saveTeleport as many times you want and you'll never get the "You cannot have more then X save points". Anyway, the talkaction won't keep adding them to the list if they are more than X.
 
Last edited:
Hello, I think I have a good idea...

Is there anyway that you could edit the talkactions scipt to work only with players that have account type higher than 2, this way only tutors and god chars will be able to teleport and not single players, I think this would be useful for people running big RL map otservers to save current destinations but wont allow players to abuse from this . idk im just trying to contrivute somehow
 
Back
Top