Page 1 of 1
OnUpdate
Posted: Wed Oct 19, 2011 6:37 pm
by WhiteTiger
Aiyyo,
I dunno if this exists already but i havent found it on the wiki site. In case it doesnt, can u add an OnUpdate event to the profile that would trigger from player:update() or some similar function that runs often ? The bot doesnt like that I change the player class myself ^^
Re: OnUpdate
Posted: Wed Oct 19, 2011 9:54 pm
by lisa
So what your saying is if you have bot running, pause bot then switch class then unpause bot it is unhappy?
Well you would need to either restart the bot or make sure it changes the skills as when you change class you change which skills you can use.
So it would need to reload the function that sets the skills.
Bot detects when you change zones automatically and updates when you do, not sure if it also updates skills at the same time.
You could test this by entering your house after changing class and then exiting. Bot will pick up the character address has changed.
Re: OnUpdate
Posted: Thu Oct 20, 2011 4:17 am
by WhiteTiger
na you got me wrong, sorry, Im abit bad at explaining stuff:p.
What I ment with changing the player class is that I tried to put my own code in the player.lua file but the bot refused to start then.
So what would be nice would be to have an <OnUpdate> event in the profile that runs every time player:update() runs in case you want code that runs very often.
Re: OnUpdate
Posted: Thu Oct 20, 2011 5:44 am
by WhiteTiger
Re: OnUpdate
Posted: Thu Oct 20, 2011 6:13 am
by lisa
concidering how often update occurs I think that would be opening a huge can of worms.
I wouldn't want to be trying to work out peoples problems with bot if they have some code in there, it would be a nightmare to troubleshoot lol
Re: OnUpdate
Posted: Thu Oct 20, 2011 7:12 am
by WhiteTiger
mmh I just needed some place to update speedhack on
Re: OnUpdate
Posted: Thu Oct 20, 2011 9:19 am
by lisa
then that's what you should have asked lol
that will set speed to 100 every 5 seconds, add it to an onload somewhere so it is only used once.