TalkAction [Configurable] Player/Donator Teleport

Status
Not open for further replies.

JDB

OtLand Veteran
Joined
Jun 1, 2009
Messages
4,145
Best answers
2
Reaction score
109
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:

Zerak456

Gorlex.net NEW!
Joined
Aug 13, 2008
Messages
1,060
Best answers
0
Reaction score
6
Location
Germany
cool but its not useful:S also it will make ur server noob..
 
OP
JDB

JDB

OtLand Veteran
Joined
Jun 1, 2009
Messages
4,145
Best answers
2
Reaction score
109
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:
OP
JDB

JDB

OtLand Veteran
Joined
Jun 1, 2009
Messages
4,145
Best answers
2
Reaction score
109
No other comments?
Why don't people reply to my threads...?
 

EvulMastah

๏̯͡๏﴿
Premium User
Joined
Aug 19, 2007
Messages
4,833
Best answers
0
Reaction score
184
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
 
OP
JDB

JDB

OtLand Veteran
Joined
Jun 1, 2009
Messages
4,145
Best answers
2
Reaction score
109
It works,
I tested it before posting...

I had them the other way, but it gave wrong message, so I switched.
Weird :huh:
 
OP
JDB

JDB

OtLand Veteran
Joined
Jun 1, 2009
Messages
4,145
Best answers
2
Reaction score
109
Bump :huh:
 

Uk Mark

New Member
Joined
May 26, 2009
Messages
92
Best answers
0
Reaction score
0
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
 

Sync

Ø,ø
Joined
May 26, 2009
Messages
1,876
Best answers
0
Reaction score
19
Location
Canada
Psscht i didnt really help but thanks for the credits :thumbup:
 
OP
JDB

JDB

OtLand Veteran
Joined
Jun 1, 2009
Messages
4,145
Best answers
2
Reaction score
109
@Up,

No problem. :cool:
 
OP
JDB

JDB

OtLand Veteran
Joined
Jun 1, 2009
Messages
4,145
Best answers
2
Reaction score
109
Does anyone actually use this?
I thought for donators it would be cool.
 
Last edited:
OP
JDB

JDB

OtLand Veteran
Joined
Jun 1, 2009
Messages
4,145
Best answers
2
Reaction score
109
Bump.
 

Guitar Freak

_LüA_n☺b_
Joined
Dec 27, 2008
Messages
831
Best answers
0
Reaction score
11
Location
Caracas, Venezuela
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:

Saj

Remember my name
Joined
Feb 26, 2008
Messages
2,127
Best answers
0
Reaction score
5
Great script! good job mate!
 

dave182

New Member
Joined
Jan 23, 2009
Messages
80
Best answers
0
Reaction score
3
I have a question, if someone has PZ, does it will teleport you anyways?
 

Znote

<?php echo $title; ?>
Staff member
Global Moderator
Premium User
Joined
Feb 14, 2008
Messages
6,667
Best answers
202
Reaction score
1,375
Location
Norway, Oslo
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.
Top