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


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Plugins
. . -> [Subject]  Aardwolf spellups plugin

Aardwolf spellups plugin

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


Pages: 1 2  3  4  

Posted by Nick Gammon   Australia  (22,990 posts)  [Biography] bio   Forum Administrator
Date Sun 13 Jul 2008 12:27 AM (UTC)

Amended on Sun 13 Jul 2008 06:40 AM (UTC) by Nick Gammon

Message

The plugin described provides "spellups" (buffs) for Aardwolf players.

First I will describe what it does, and then explain how to install it.

Initially, after installing, you will see a window which shows you have no spellups on you, and none requested:

One thing you can do now is request a couple of spellups, for example "armor" and "bless" by specifying them separated by commas:

    spellup armor, bless

The window changes to indicate those two are requested, and are also pending. Pending means you want them, but don't have them yet.

I have been sitting, so it can't cast them yet, so I'll stand up, and let it get on with it:

    stand

It immediately detected it could cast the spells since I changed position, and cast both of them. Now the spellup window shows they are both active:

The window also shows how long each one will last, and is refreshed each second. They are sorted into order with the soonest to expire at the top, so you can see at a glance if your spells are about to expire.

It can be a bit tedious for a high level player to work out all of their possible spellups, so if you want all of them you can just type "spellup all":

    spellup all

I sat down again so you can see the effect. The existing ones are still active, but another 10 are now pending. Let's stand up and let them take effect:

    stand

If a spell fails to cast, it detects that, and retries, until it is cast successfully. Spells are cast in the order you specify, so a more important one can be cast before a less important one.

We also see from the above screenshot that as spellups are about to expire, their "time to go" is coloured yellow (less than 3 minutes) or red (less than one minute). This gives you a visual cue that perhaps you should spellup again before starting a big fight.

You can also get "bad" spells on you (debuffs). This screenshot shows an example:

The spell "blindness" is shown in red to alert you the bad effect, and perhaps you could get it cured one way or another before continuing.


Other options

Remove an unwanted spellup

Perhaps you don't need 'underwater breathing' as it just wastes mana? You can remove it by preceding the name(s) of the spells with a minus sign:

    spellup - underwater

Add a wanted spellup

If you want to add a spell back, you can add it by preceding the name(s) of the spells with a plus sign:

    spellup + underwater

Pause spellups

If you are in the city and want to chat with friends without seeing lots of spellup messages, just type "spellup pause"

    spellup pause

Resume spellups

If you have paused spellups, and now want them to continue, just type "spellup resume"

    spellup resume 

Fast spellups

The default behaviour is for the spellup script to spell you up in the order you specify. That way, if mana is low, you spend it on an important spell, rather than something you might not need, like underwater breathing. However if you are in a hurry, you can do "spellup fast" which quickly casts all needed spellups, and then waits for any error messages, to recast any that failed:

    spellup fast 

Spellup other players

If another player requests a spellup, you can just type "spellup other (name)", which makes the script quickly cast all suitable spellups on the other player:

    spellup other Traethiel

Cancel all spellups

To remove all existing spellups (from the list), type "spellup none". Of course, existing spellups will continue to affect you, however they will not be recast when they expire.

    spellup none

Help on spellups

To be reminded of these options, type "spellup help" and a summary will appear in the output window.

    spellup help

Recoveries

Some spellups have recovery times (cooldowns). The plugin detects such cases, and shows a "recovery" line for each such spell. Any spell which is awaiting cooldown will be shown as "on cooldown", and the script will not attempt to recast it until the cooldown period is over.


Brief version

Once you are confident the spellup plugin is working properly, you can type "spellup brief" to see a shortened display.

    spellup brief

Type "spellup full" to return to the full version:
    spellup full

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Nick Gammon   Australia  (22,990 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Sun 13 Jul 2008 12:36 AM (UTC)

Amended on Sun 13 Jul 2008 06:38 AM (UTC) by Nick Gammon

Message
To install, RH click the link below and choose "Save Link As" (or "Save Linked File As") to save the linked file.

http://www.gammon.com.au/mushclient/plugins/Aardwolf/Aardwolf_Spellups.xml (44 Kb)


This plugin also uses these plugins and files:

http://www.gammon.com.au/mushclient/plugins/Aardwolf/Stats_Detector.xml (6 Kb)

http://www.gammon.com.au/mushclient/plugins/Aardwolf/AFK_Detector.xml ( 3 Kb)

http://www.gammon.com.au/mushclient/plugins/Aardwolf/Playing_Detector.xml (2 Kb)

http://www.gammon.com.au/mushclient/plugins/Aardwolf/Create_World_File.xml (2 Kb)

http://www.gammon.com.au/mushclient/plugins/Aardwolf/telnet_options.lua (2 Kb)


In a standard MUSHclient installation these files should to into this directory:


C:\Program Files\MUSHclient\worlds\plugins\Aardwolf\


You also need a "dummy world file" for the spellups to appear in (a world which connects to IP address 0.0.0.0).

You can make your own, or download this file:

http://www.gammon.com.au/mushclient/plugins/Aardwolf/Spellups.mcl

Put that into the "worlds\Aardwolf" directory, which in a standard installation would be:

C:\Program Files\MUSHclient\worlds\Aardwolf\




An easy way of installing all the required plugins is to install the "plugin installer" described below, and then let it load everything else for you:

http://www.gammon.com.au/forum/?id=8767




The other plugins are explained here:

Stats detector:

http://www.gammon.com.au/forum/?id=8776

AFK detector:

http://www.gammon.com.au/forum/?id=8779

Playing detector:

http://www.gammon.com.au/forum/?id=8778

Telnet options:

http://www.gammon.com.au/forum/?id=8775

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Nick Gammon   Australia  (22,990 posts)  [Biography] bio   Forum Administrator
Date Reply #2 on Sun 13 Jul 2008 12:44 AM (UTC)
Message
You can also cast spells by number, if that is how you remember them. For example:


spellup 72, 34, 35


It replies:


Requested (3): Shield, Detect invis, Detect magic


That confirms you got the numbers right. ;)

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Shaleen   (1 post)  [Biography] bio
Date Reply #3 on Tue 15 Jul 2008 02:01 PM (UTC)
Message
Is there anyway you could explain to me in full detail how do put this spellupscript on my computer? I am not very smart when it comes to these things. when I even try to save these things it gives me an option to save them to desktop and stuff but not to save them under administration files. should I save to desktop then move to other?
If you could just help me I would really appreciate it...I am new to mud and could really use it
thanks !
[Go to top] top

Posted by Nick Gammon   Australia  (22,990 posts)  [Biography] bio   Forum Administrator
Date Reply #4 on Tue 15 Jul 2008 09:01 PM (UTC)
Message
Certainly you can save them on the desktop and then move them.

I believe Lasher is working on an installer to automate the process, it should be out in a couple of days.

Meanwhile, locate the MUSHclient install, which defaults to:


C:\Program Files\MUSHclient\


Inside that directory should be a "worlds" directory. If necessary, make a subfolder to hold the "dummy world file" in which the spellup messages appear:


C:\Program Files\MUSHclient\worlds\Aardwolf\


Download the following file and put into that directory:

http://www.gammon.com.au/mushclient/plugins/Aardwolf/Spellups.mcl




Then, go back up to the directory:


C:\Program Files\MUSHclient\worlds\plugins\


Make another directory inside plugins called Aardwolf (if it isn't there already):


C:\Program Files\MUSHclient\worlds\plugins\Aardwolf\


Download the following files and copy into that directory:

http://www.gammon.com.au/mushclient/plugins/Aardwolf/Stats_Detector.xml (6 Kb)
http://www.gammon.com.au/mushclient/plugins/Aardwolf/AFK_Detector.xml ( 3 Kb)
http://www.gammon.com.au/mushclient/plugins/Aardwolf/Playing_Detector.xml (2 Kb)
http://www.gammon.com.au/mushclient/plugins/Aardwolf/Create_World_File.xml (2 Kb)
http://www.gammon.com.au/mushclient/plugins/Aardwolf/telnet_options.lua (2 Kb)
http://www.gammon.com.au/mushclient/plugins/Aardwolf/Aardwolf_Spellups.xml (44 Kb)




Now, to automatically load all that stuff into MUSHclient download this file:

http://www.gammon.com.au/mushclient/plugins/Plugin_Installer.xml

Put it into this directory:


C:\Program Files\MUSHclient\worlds\plugins\


Start MUSHclient up, go to the File menu -> Plugins, and install Plugin_Installer.xml as a plugin. When you have done that, a couple of seconds later it should install all the other plugins if you put them in the right place.





- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Laviunt   (3 posts)  [Biography] bio
Date Reply #5 on Tue 29 Jul 2008 06:07 PM (UTC)
Message
Using aardwolfs custom made client I get this error after following the mentioned procedure. When I downloaded all the required files it said i all ready had them so didn't bother to download them. Thought it does work just get the below run-time error when loading the plugin.

Laviunt.

Run-time error
Plugin: xCreate_World_File (called from world: Aardwolf)
Function/Sub: CreateWorldFile called by Plugin xCreate_World_File
Reason: Executing plugin xCreate_World_File sub CreateWorldFile
C:\Programs\MUSHclient\lua\getworld.lua:30: Function 'io.open' disabled in Lua sandbox - see MUSHclient global preferences
stack traceback:
[C]: in function 'error'
[string "Sandbox"]:39: in function 'open'
C:\Programs\MUSHclient\lua\getworld.lua:30: in function 'make_world'
[string "Plugin"]:35: in function <[string "Plugin"]:6>

[Go to top] top

Posted by Nick Gammon   Australia  (22,990 posts)  [Biography] bio   Forum Administrator
Date Reply #6 on Tue 29 Jul 2008 09:10 PM (UTC)
Message
The simplest way to fix that is to go to the Lua sandbox and change the first 3 lines.

In MUSHclient, go to File menu -> Global Preferences, click on the Lua tab, and make sure the first 3 lines read:


trust_all_worlds = true -- change to true to trust all the worlds
trust_all_plugins = true-- change to true to trust all the plugins
warn_if_not_trusted = false -- change to true to show warnings


Slightly safer is not to trust all plugins but instead add one line further down:


 -- Plugin IDs of plugins we trust - add your plugins to the table

  local trusted_plugins = {
     [""] = "",            -- trust main script (ie. if no plugin running)
     ["03ca99c4e98d2a3e6d655c7d"] = "Chat",  
     ["982581e59ab42844527eec80"] = "Random_Socials", 
     ["4a267cd69ba59b5ecefe42d8"] = "Installer_sumcheck",  
     ["83beba4e37b3d0e7f63cedbc"] = "Reconnecter",   
     ["35dfdbf3afc8cbf60c91277c"] = "xCreate_World_File",  --> add this line
     }  -- end of trusted_plugins 



- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Kenneth   (18 posts)  [Biography] bio
Date Reply #7 on Sat 02 Aug 2008 12:34 PM (UTC)
Message
just wanted to report a bug with this plugin. i couldn't find any better place to do this but if they're is then please tell me...

the bug is that the spellup plugin recognizes attack spells as spellup spells, even when they're not on the spellup list.
like say, i fail to cast ego whip 10 times. it gives me the message:

Failed to cast 'Ego whip' 10 times. Removing from spellup list.

Didn't know if anyone reported this yet, but if not here it is.
[Go to top] top

Posted by Nick Gammon   Australia  (22,990 posts)  [Biography] bio   Forum Administrator
Date Reply #8 on Sat 02 Aug 2008 09:42 PM (UTC)
Message
It shouldn't be casting "ego whip" because that is not marked as a spellup.

Inside the state file (RH double-click the plugin in the plugin list), I see:


[115] = {
    name = "ego whip",
    target = 1,
    spellup = false,
    percent = 0,
    recovery = -1,
    },


Compare to "shield":


 [72] = {
    name = "shield",
    skilltype = 1,
    target = 2,
    spellup = true,
    percent = 100,
    recovery = -1,
    },


Which has "spellup = true" in it.

Can you check your state file for me to see if "ego whip" looks like it does for me? Also where did you get the spellup plugin from? The link mentioned on this page, or from Aardwolf site?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Laviunt   (3 posts)  [Biography] bio
Date Reply #9 on Sat 02 Aug 2008 11:28 PM (UTC)
Message
I found two bugs here.
when using skills that is actually buffs

clanskills and hide, sneak or shadow form
it's listed as debuff.

and I also get error messages when I fail spells like remove curse more then 10 times.

got the spellup from this website. as well.

Laviunt.
[Go to top] top

Posted by Kenneth   (18 posts)  [Biography] bio
Date Reply #10 on Sat 02 Aug 2008 11:42 PM (UTC)
Message
Here's what it looks like for me:

[115] = {
name = "ego whip",
recovery = -1,
target = 1,
skilltype = 1,
percent = 77,
spellup = false,
},

I got the spellup here at your site, not Aardwolf's site.

This has also happened with Psychic drain:

[131] = {
name = "psychic drain",
recovery = -1,
target = 1,
skilltype = 1,
percent = 81,
spellup = false,
},

I don't know much about coding or scripts, so I hope I've posted the information you need. If not, I'll post whatever else you might need. Thanks Mr. Gammon. :)
[Go to top] top

Posted by Nick Gammon   Australia  (22,990 posts)  [Biography] bio   Forum Administrator
Date Reply #11 on Sun 03 Aug 2008 02:38 AM (UTC)
Message
OK I see what you mean now. :)

If you want to fix it quickly, edit the spellup plugin with any text editor (like notepad), and near the bottom find these lines:


  -- REGULAR FAIL
  if reason == 1 then --  Regular fail - recast
     failed_attempt_count [sn] = (failed_attempt_count [sn] or 0) + 1
     if failed_attempt_count [sn] > MAX_RETRIES then
       ColourNote ("red", "", "Failed to cast '" .. capitalize (spells [sn].name) .. 
                   "' "  .. MAX_RETRIES .. " times. Removing from spellup list.")
       remove_spellup (sn)
     end -- if


Change them to:


 -- REGULAR FAIL
  if reason == 1 then --  Regular fail - recast
     failed_attempt_count [sn] = (failed_attempt_count [sn] or 0) + 1
     if failed_attempt_count [sn] > MAX_RETRIES then
       if remove_spellup (sn) then
         ColourNote ("red", "", "Failed to cast '" .. capitalize (spells [sn].name) .. 
                     "' "  .. MAX_RETRIES .. " times. Removing from spellup list.")
       end -- if we had it in the first place
     end -- if


That basically suppresses the message if it isn't in the list.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Kenneth   (18 posts)  [Biography] bio
Date Reply #12 on Sun 03 Aug 2008 02:43 AM (UTC)
Message
Thanks Mr. Gammon, I'm glad there was a way to fix it. This is a really awesome plugin. The best spellup plugin I've found so far. :)
[Go to top] top

Posted by Nick Gammon   Australia  (22,990 posts)  [Biography] bio   Forum Administrator
Date Reply #13 on Sun 03 Aug 2008 02:44 AM (UTC)
Message
Quote:

clanskills and hide, sneak or shadow form
it's listed as debuff.


Let me check with Lasher on that one.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Nick Gammon   Australia  (22,990 posts)  [Biography] bio   Forum Administrator
Date Reply #14 on Sun 03 Aug 2008 02:46 AM (UTC)
Message
It also works a bit faster, if near the end you change it to read:


   if stats.position_str == "standing" and    -- need to be standing
       playing and           -- and playing
       not AFK and           -- not AFK
       not low_mana and      -- not recently out of mana
       not low_moves and     -- not recently out of moves
       reason ~= "recoveryon" and  -- recovery on is usually followed by {affon}
       have_slist and        -- have received list of spells
       not paused and        -- they haven't paused us
       (reason == "affecton" or reason == "fast" or last_cast_time ~= os.time ()) then  -- only once a second, or we thrash
      try_to_buff_us (reason)    
    end -- OK to cast


Add the extra bit in bold: reason == "affecton" or



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


153,666 views.

This is page 1, subject is 4 pages long: 1 2  3  4  [Next page]

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 HostDash]