[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Lua
. . -> [Subject]  Creating a spell bot in lua
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Creating a spell bot in lua

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Oriol   (31 posts)  [Biography] 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
[Go to top] top

Posted by Nick Gammon   Australia  (21,322 posts)  [Biography] 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
[Go to top] 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.


2,815 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]