Hello All,
I'm new to LUA scripting and was wondering if there is any way for my script to detect certain keywords and act on them WITHOUT setting up an external trigger.
Is there a Lua Function that will check for a Certain string upon entering a new room?
Specifically, I am running a auto-path and want the script to detect who is in the room (Friendly or Evil) and either attack and stay in that room until mob is dead or move on if it is a friendly.
I've figured out how to iterate through a String Array that will fire off each path name in a loop, but I want it to pause in each room and attack/heal until finished then continue on.
Here is what I have so far for the movement and it works:
gopath = {"nw", "nw", "nw", "n", "n", "e", "e", "e", "se", "se", "sw", "s", "sw"}
loc = loc or 0
for loc = 1, 13 do
Send (gopath[loc])
end
Thanks in advance!
I'm new to LUA scripting and was wondering if there is any way for my script to detect certain keywords and act on them WITHOUT setting up an external trigger.
Is there a Lua Function that will check for a Certain string upon entering a new room?
Specifically, I am running a auto-path and want the script to detect who is in the room (Friendly or Evil) and either attack and stay in that room until mob is dead or move on if it is a friendly.
I've figured out how to iterate through a String Array that will fire off each path name in a loop, but I want it to pause in each room and attack/heal until finished then continue on.
Here is what I have so far for the movement and it works:
gopath = {"nw", "nw", "nw", "n", "n", "e", "e", "e", "se", "se", "sw", "s", "sw"}
loc = loc or 0
for loc = 1, 13 do
Send (gopath[loc])
end
Thanks in advance!