[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]  Plugins
. . -> [Subject]  Help for Spellup plugin
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Help for Spellup plugin

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


Posted by Chronicles   (5 posts)  [Biography] bio
Date Sat 10 Oct 2009 06:08 AM (UTC)
Message
Hello guys, i need some help for spellup plugin.

My spellup plugin is going fine, but anyone know how customize the plugin?
when i do spellup other to the other characters,sometimes i lost concentration while casting that spells to the other characters. examples: spellup other <Target>,then --> You lost your concentration while trying to cast vaccinate. can anyone help me what script should i add inside the spellup plugin in order to recast ONLY the spells that i failed to give for my target?

Chronicles
[Go to top] top

Posted by Blainer   (191 posts)  [Biography] bio
Date Reply #1 on Sat 10 Oct 2009 06:48 AM (UTC)
Message
Have a look here I think it's what you're looking for.
Template:post=4957 Please see the forum thread: http://gammon.com.au/forum/?id=4957.
[Go to top] top

Posted by Chronicles   (5 posts)  [Biography] bio
Date Reply #2 on Sat 10 Oct 2009 03:27 PM (UTC)
Message
Blainer, thanks for the link..
but unfortunately it is confusing :(
can you give me some hints/guidances for spellup part?
I got confused :(
[Go to top] top

Posted by Blainer   (191 posts)  [Biography] bio
Date Reply #3 on Sat 10 Oct 2009 11:23 PM (UTC)
Message
Until someone who knows more can answer here's what I know.

It's a package to make waits in a script. You can make different types of waits like time or a regular expression to match text from the MUD. If I wanted to make a wait that waited for a heal spell to be successful I would use this.
require "wait"

wait.make (function ()  --- coroutine below here

  repeat
    Send "cast heal"
    line, wildcards = 
       wait.regexp ("^(You heal .*|You lose your concentration)$")

  until string.find (line, "heal")

  -- wait a second for luck
  wait.time (1) 

  Note ("heal done!")

end)  -- end of coroutine

wait.regexp ("^(You heal .*|You lose your concentration)$")
This line makes a trigger that captures the response from the MUD.

until string.find (line, "heal")
This line is testing for the the word "heal" which would be in the response from a successful heal. If it is not found do the repeat loop again.
[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.


3,772 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]