Page 1 of 1
New LUA Function: GetPlayersInZone
Posted: Wed Aug 31, 2016 10:47 pm
by Jabantiz
GetPlayersInZone()
This will get a LUA table of all players in the provided zone.
Re: New LUA Function: GetPlayersInZone
Posted: Thu Sep 01, 2016 4:58 am
by Gangrenous
This was needed greatly. Also while you are here

Is there any LUA functions that you know of regarding text / hails and such? What I mean by that, are there any functions that capture text when a player speaks to an NPC?
Re: New LUA Function: GetPlayersInZone
Posted: Thu Sep 01, 2016 3:24 pm
by Jabantiz
No there is not. I assume you mean /say in the vicinity of a spawn?
Re: New LUA Function: GetPlayersInZone
Posted: Thu Sep 01, 2016 3:41 pm
by Gangrenous
Correct sir.
Re: New LUA Function: GetPlayersInZone
Posted: Thu Sep 01, 2016 3:48 pm
by Jabantiz
It might be possible to add something in but would it be ok if it only works when the player has an npc targeted? Doing proximity checks every time some one uses /say would not be good for performance.
Re: New LUA Function: GetPlayersInZone
Posted: Thu Sep 01, 2016 7:38 pm
by Gangrenous
Absolutely, in fact that is the way I think it should be done, only when a player has an NPC targeted.