Page 1 of 1

Scan for other players, when near then do x

Posted: Sat Apr 27, 2013 11:01 am
by Jig
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

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

Posted: Sat Apr 27, 2013 8:03 pm
by wps
You could refer to lisa's userfunction_gmmonitor.lua

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

Posted: Sat Apr 27, 2013 8:22 pm
by lisa
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.

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

Posted: Sun Apr 28, 2013 3:38 am
by Jig
Thank you very much lisa and wps.