• 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 [Configurable] Player/Donator Teleport

Status
Not open for further replies.

JDB

OtLand Veteran
Joined
Jun 1, 2009
Messages
4,145
Solutions
2
Reaction score
115
The Forgotten Server 0.3.5+
PHP:
<talkaction log="no" words="/tp" access="0" event="script" value="script.lua"/>
The Forgotten Server 0.2.5+
PHP:
<talkaction words="/tp" script="teleport.lua"/>

New Thread Made.
 
Last edited:
cool but its not useful:S also it will make ur server noob..
 
Kiwi server uses something like this, for donators...
I think its usefull, maybe not for you.

Added:
Donators script, although it has been tested. :cool:
 
Last edited:
No other comments?
Why don't people reply to my threads...?
 
Code:
                                else
                                        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You are in a battle.")
                                end
                        else
                                doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You must be atleast level ".. level .." to travel here.")
                        end

Messages are wrong :S
 
It works,
I tested it before posting...

I had them the other way, but it gave wrong message, so I switched.
Weird :huh:
 
Nice script
Seen something like this on OTland about 2 months ago by Slawkens but good work
This will benefit a lot of people for sure
 
Psscht i didnt really help but thanks for the credits :thumbup:
 
@Up,

No problem. :cool:
 
Does anyone actually use this?
I thought for donators it would be cool.
 
Last edited:
Does anyone actually use this?
I thought for donators it would be cool.

I will, if I ever finish my project. Can't +Rep you again for a while tho ;)

Btw remember to put return TRUE on some lines there i.e:

Lua:
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You teleported to the ".. param .."!")
return TRUE

So the "/tp xxxx" command is not shown in log after success/failure. (At least in TFS 0.3.2 this is needed!)

Btw as a side note, I saw something similar to this script on a server a long time ago, but it was a bit more complex, it was something with map markers. For donators of course.

Like player says "/mapmark 1" and the map gets a marker in that spot (or it just saves the position), then he could say "/tpmark 1" and get teleported to that marked spot (only under certain conditions like yours ofc), and he could have like 5 different custom marks max to have/modify.

Ive tried but didnt even get close so Im just throwing out the idea for a future (and maybe more complex) script if you wish to keep developing this type of script further.

Good luck, keep it up :thumbup:
 
Last edited:
I have a question, if someone has PZ, does it will teleport you anyways?
 
But for TFS 0.2 you need to write:
PHP:
<talkaction words="/tp" script="teleport.lua"/>
Tested and the Players.lua script worked perfectly on TFS 0.2.5 Mystic Spirit.

Does it also work on Crying Damson 0.3.X? (I have a feeling that you build it based on the 0.3 series.)
 
Status
Not open for further replies.
Back
Top