PDA

View Full Version : Voodoo being weird.



FNLN
01-21-2011, 10:53 PM
It's trying to cast 101 and it's capturing everything sent to the game.

[voodoo: voodoo started]
>quit
[voodoo]>prepare 101
You gesture while calling upon the lesser spirits to aid you with the Spirit Warding I spell...
>
[voodoo]>cast quit
Cast at what?
>
[voodoo]>release
You feel the magic of your spell rush away from you.

Nilandia
01-21-2011, 11:08 PM
I dunno about voodoo doing that, but you might try voodoo2.

Gretchen

PS: Glad to see you back!

Fallen
01-21-2011, 11:10 PM
Recently redownloaded the script? Unfortuntely someone broke it, then no one ever fixed it. Here is my current script. Just copy it into your existing voodoo file and things should work again..perhaps with some minor tweaking.



#quiet
=begin
Voodoo by SpiffyJr, Azanoth and Tillmen
Description: Works similar to the Voodoo feature of PsiNet (RIP). ;voodoo help for
more information.
=end
no_kill_all
no_pause_all
#i_stand_alone
$voodoo_settings = CharSettings.to_hash
$voodoo_pending_num = nil
$voodoo_pending_cast = nil
stance = [ 702, 705, 111 ]
## Add upstream hook
action = proc { |client_string|
if client_string =~ /^(?:<c>)?(\d{3,4})(.*)$/
$voodoo_pending_num = "#{$1}"
$voodoo_pending_cast = "#{$2}" if $2.size > 2

nil
elsif client_string =~ /^(?:<c>)?;voodoo (.*)$/
cmd = $1.strip

case cmd
when /\?|help/
respond "Vodoo by SpiffYJr, Azanoth, and Tillmen"
respond " Usage: ;voodoo"
respond "Description: casts all sorts of spells for you!"
respond
respond " channel=<on|off>"
respond " channel spells that are able to be channeled"
respond " nerves=<on|off>"
respond " protects your nerves from being fried"
respond " stance=<on|off>"
respond " stance dance for spells that are more powerful in offensive"
when /(channel|nerves|stance)(?:=(on|off))?/
option = $1.strip
value = $2.strip

if $2.nil?
respond "-- voodoo: #{option} is currently set to #{$voodoo_settings[option]}"
else
$voodoo_settings[option] = value
respond "-- voodoo: set #{option} to #{value}"
end
else
respond "-- voodoo: you're doing it wrong! ;voodoo help for information."
end
elsif client_string =~ /^(?:<c>)?;voodoo/
respond "-- voodoo: you're doing it wrong! ;voodoo help for information."
else
client_string
end
}
UpstreamHook.add('voodoo', action)
before_dying { UpstreamHook.remove('voodoo'); }
## Main
loop {
wait_while { $voodoo_pending_num.nil? }

if CharSettings['nerves'].nil? or CharSettings['nerves'] == 'off' or (CharSettings['nerves'] == 'on' and Spell[$voodoo_pending_num].affordable?)
if stance.include?($voodoo_pending_num.to_i) and CharSettings['stance'] == 'on'
loop {
dothistimeout 'stance offensive', 1, /You are now|You move into/
break if checkstance == 'offensive'
sleep 0.10
}
end

if $voodoo_pending_cast.nil?
fput "incant #{$voodoo_pending_num}"
else
fput "prepare #{$voodoo_pending_num}"

prefix = 'cast'
prefix = 'channel' if CharSettings['stance'] == 'on' and Spell[$voodoo_pending_num].channel

fput "#{prefix}#{$voodoo_pending_cast}"
end

if stance.include?($voodoo_pending_num.to_i) and CharSettings['stance'] == 'on'
loop {
dothistimeout 'stance defensive', 1, /You are now|You move into/
break if checkstance == 'defensive'
sleep 0.10
}
end
else
respond '-- voodoo: preventing nerve damage'
end

$voodoo_pending_num = nil
$voodoo_pending_cast = nil
}


Mine will spam defensive on spells which jump your stance. If you like the old way better, just copy/paste from your current broken script the part at the end talking about stance defensive and stance guarded.

Fallen
01-21-2011, 11:11 PM
I dunno about voodoo doing that, but you might try voodoo2.

Gretchen

PS: Glad to see you back!

Voodoo2 works, and is actually a bit faster, but doesn't have some of the features of the original voodoo.

FNLN
01-22-2011, 12:06 AM
Yeah, I recently updated everything that was, well, updated since I stopped playing. Thanks for your version.