PDA

View Full Version : load settings on waypoint



twogirlsonecup
03-04-2016, 01:22 PM
hey, if anyone could help me with a simple lua code that loads a different type of setting through the walker label?

i want to afk mana burn so i want the walker to load a setting once it gets to a private location then load back to original settings once leaving the location so i am not constantly casting spells on my way to refill?

if someone could help me out with this asap i would be very thankful for the help!

Jontor
03-04-2016, 02:13 PM
Isn't it easier to make it with a module?



local module = Module.New(function()
-- your code here
end, false)

module:Start()
module:Stop()

twogirlsonecup
03-04-2016, 02:30 PM
im new to xeno so i dont know what a module is :S

where it says "your code here" do i just put the name of the xbst setting? or is this different...

Jontor
03-05-2016, 10:16 AM
twogirlsonecup
-- your code here
Means that you should have a code that will spam spells/potions or alternatively if you HAVE to load another settings


loadSettings(fileName, "Self Healer")

twogirlsonecup
03-07-2016, 03:26 AM
thanks alot, this has helped me so much