Loop through zones in lua.

Post Reply
Volgin
Posts: 32
Joined: Sun Oct 13, 2013 10:27 pm

Loop through zones in lua.

Post by Volgin » Sun Dec 15, 2013 11:57 pm

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

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Loop through zones in lua.

Post by kjLotus » Mon Dec 16, 2013 12:38 am

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

Post Reply