OnUpdate

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
WhiteTiger
Posts: 84
Joined: Tue Jun 22, 2010 8:06 am

OnUpdate

#1 Post by WhiteTiger » Wed Oct 19, 2011 6:37 pm

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 ^^

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: OnUpdate

#2 Post by lisa » Wed Oct 19, 2011 9:54 pm

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.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

WhiteTiger
Posts: 84
Joined: Tue Jun 22, 2010 8:06 am

Re: OnUpdate

#3 Post by WhiteTiger » Thu Oct 20, 2011 4:17 am

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.

WhiteTiger
Posts: 84
Joined: Tue Jun 22, 2010 8:06 am

Re: OnUpdate

#4 Post by WhiteTiger » Thu Oct 20, 2011 5:44 am

nvm i found this shit

Code: Select all

registerTimer
=D

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: OnUpdate

#5 Post by lisa » Thu Oct 20, 2011 6:13 am

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
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

WhiteTiger
Posts: 84
Joined: Tue Jun 22, 2010 8:06 am

Re: OnUpdate

#6 Post by WhiteTiger » Thu Oct 20, 2011 7:12 am

mmh I just needed some place to update speedhack on

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: OnUpdate

#7 Post by lisa » Thu Oct 20, 2011 9:19 am

then that's what you should have asked lol

Code: Select all

registerTimer("speed", 5, speed)
that will set speed to 100 every 5 seconds, add it to an onload somewhere so it is only used once.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 5 guests