Help for Spellup plugin

Posted by Chronicles on Sat 10 Oct 2009 06:08 AM — 4 posts, 20,835 views.

#0
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
#1
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.
#2
Blainer, thanks for the link..
but unfortunately it is confusing :(
can you give me some hints/guidances for spellup part?
I got confused :(
#3
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.