Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ Lua
➜ Creating a spell bot in lua
|
Creating a spell bot in lua
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Oriol
(31 posts) Bio
|
| Date
| Wed 25 Mar 2009 05:21 PM (UTC) |
| Message
| Hello all,
I need some help here. I'm trying to make a bot that will help me raise my character's spells. On alter aeon, the mud i play, if youmove around you have a higher chance at getting better at spells/skills. So what I'm trying to do is, run my character through a series of commands until soemthing happends, like me running out of mana and having to rest, or getting attacked or whatever. I tried using a coroutine, but coroutine.yield would give me some error that Ii was attempting to pass in a c function or something.. waht I have right now is, a separate script file with the function spellbot().
So, anyone got any ideas?
Thanks | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Wed 25 Mar 2009 08:22 PM (UTC) |
| Message
| Check out this thread:
http://www.gammon.com.au/forum/?id=4957
That describes using coroutines to wait for things, and looping while waiting for something to happen. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
13,336 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top