[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]  General
. . -> [Subject]  General spellup plugin/script?
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

General spellup plugin/script?

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


Posted by Vokin   (1 post)  [Biography] bio
Date Sat 07 Jan 2017 06:14 AM (UTC)
Message
Hi all,

Found a number of threads about the Aardmud spellup plugin, which looks awesome, but that's not the mud I play and it looks like it would take a LOT of work to change it. Does anyone have a simpler spellup script they could share?

While I would love many of the features from the Aardmud spellup plugin, my minimum requirements are basically:
- type in a command (spellup or whatever) with/without target (and possibly with modifiers but that's not necessary)
- this executes a list of spell casts (happy to preset these in the plugin/script, they won't change much)
- as the spells go off, some of them might fail. i'd want it to automatically requeue/recast those failed ones. the issue here is on my mud there is no customization to fail messages. all failed spells give the same message, so there is no way to easily trigger a recast of a given fail.

Right now I just spam all the casts in an alias and then, based on fails I have to figure out which failed and recast those manually. I'm low level so it's only a list of 3-4 spells right now, but will get much longer.

So, I guess what I'm asking is how to make a queue of spells and then, if I get the fail message instead of the succeed message (the successes all have different messages based on the buff's effect), redo the last tried spell (or add a recast to the end of the queue)

I have some basic programming experience, and can generally figure out how to modify code (I've edited certain code I found here for a channel capture window based on my mud's output). I just don't know where to begin trying to build this from scratch and the aardmud one is WAY complex and I know I would break it before I got anywhere close to making it work for my mud.
[Go to top] top

Posted by Nick Gammon   Australia  (21,322 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Sat 07 Jan 2017 08:45 PM (UTC)
Message
These scripts are very dependent on what messages you see from the MUD. If you are going to try to write one I suggest taking it slowly, and start simple. For example, find a message that indicates a spell fails (or succeeds) and make a trigger to detect that.

Also, make one or more aliases to do the casting. It's hard to give more details without knowing more.

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


1,295 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]