Register forum user name Search FAQ

Gammon Forum

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 ➜ Plugins ➜ Help for Spellup plugin

Help for Spellup plugin

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


Posted by Chronicles   (5 posts)  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
Top

Posted by Blainer   (191 posts)  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.
Top

Posted by Chronicles   (5 posts)  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 :(
Top

Posted by Blainer   (191 posts)  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.
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.


16,007 views.

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

Go to topic:           Search the forum


[Go to top] top

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