Scan for other players, when near then do x

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
Jig
Posts: 13
Joined: Tue Apr 23, 2013 4:14 pm

Scan for other players, when near then do x

#1 Post by Jig » Sat Apr 27, 2013 11:01 am

hello,

i want to scan for nearby players and when they are near then i want to buff them with skill x or do action y.

I dont know where to start to search for the other players :(

Code: Select all

local target = player:getTarget();
 target:updateBuffs()
 if target:hasBuff("buffname") then
 
I just figured out how to scan my local player - someone have an idea? :)

greetings,
jig

wps
Posts: 74
Joined: Tue Feb 05, 2013 11:11 am

Re: Scan for other players, when near then do x

#2 Post by wps » Sat Apr 27, 2013 8:03 pm

You could refer to lisa's userfunction_gmmonitor.lua

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

Re: Scan for other players, when near then do x

#3 Post by lisa » Sat Apr 27, 2013 8:22 pm

check out this topic by xplar, I believe it is what you are after.
http://www.solarstrike.net/phpBB3/viewt ... siege+buff
the code posted will use the skills in your profile, so no need to actually specify a skill int he coding but just make sure your profile is correct.
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

Jig
Posts: 13
Joined: Tue Apr 23, 2013 4:14 pm

Re: Scan for other players, when near then do x

#4 Post by Jig » Sun Apr 28, 2013 3:38 am

Thank you very much lisa and wps.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 3 guests