Page 1 of 1

Loop through zones in lua.

Posted: Sun Dec 15, 2013 11:57 pm
by Volgin
Probably very easy, but I'm not quite sure how to do this.

Trying to create a command to give every mob in the game a buff, such as Protect, Hundred Fists, or Regain. Alongside this, looking to create a command that takes away this buff as well.

I know the loop for lua is:

<for x, y, z do> where x = starting int, y = stop value, z = increment...but how do I make it loop through every zone?

Thanks in advance for any assistance!

-kat

Re: Loop through zones in lua.

Posted: Mon Dec 16, 2013 12:38 am
by kjLotus
don't do it in lua, way harder than just making a new lua call to do it for you in c++

additionally, it's not very easy to give "every mob in the game" something, because if there's nobody in the zone there's nothing there