read player.name?

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
langelot
Posts: 6
Joined: Wed May 12, 2010 5:36 am

read player.name?

#1 Post by langelot » Sun Jul 22, 2012 3:49 am

hello
i've been searching on this forum to find a way to read the actual player.name and then if the player name is xxxxxxxxxx then load a "tag" in my WP file

i've tried

Code: Select all


<onload>
local name = player.name
if name == xxxx then
__WPL:setWaypointIndex(__WPL:findWaypointTag("middle"))
else
__WPL:setWaypointIndex(__WPL:findWaypointTag("end"))
end
</onload>


but it didn't work, i also tried with

Code: Select all

if name == "xxxx" then
didn't work

:/

thanks in advance

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: read player.name?

#2 Post by lisa » Sun Jul 22, 2012 4:15 am

player.Name

Has to be exact, capitals and all
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

langelot
Posts: 6
Joined: Wed May 12, 2010 5:36 am

Re: read player.name?

#3 Post by langelot » Sun Jul 22, 2012 4:21 am

ahhh i'm going to try it right the way, sorry to disturb you with such a rubbish question but i've been searching for hours :(

thanks anyway

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: read player.name?

#4 Post by lisa » Sun Jul 22, 2012 5:23 am

All good, if you open up rom/classes/pawn.lua

Anything that has self. can be player. and yeah it has to be exact
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 0 guests