PDA

View Full Version : Help echoing mana via whisper.



Glaves
11-24-2011, 04:51 AM
Trying to get my alt to whisper his current total mana via a whisper when i whisper the word "mana" to him, heres what i tried.


loop{ waitfor "glaves whispers to you, \"mana\"" fput "whisper glaves #{mana}"

I'm receiving this error.

;mana
--- Lich: mana active.
--- SyntaxError: compile error
mana:1: syntax error, unexpected $undefined, expecting '}'
{\rtf1\ansi\ansicpg1252\deff0\de...
^
mana:1:in `create_block'
--- Lich: cannot execute mana, aborting.
--- Lich: mana has exited.

If someone could give me a hand that would be great, possibly one for health aswell in the same script. I'm VERY much not a script writer so the help would be most appreciated.

subzero
11-24-2011, 06:40 AM
while line = get
if line =~ /^Glaves whispers, "Mana/i
fput "whisper glaves #{checkmana}"
elsif line =~ /^Glaves whispers, "(Health|Hp)/i
fput "whisper glaves #{checkhealth}"
end
end

Glaves
11-24-2011, 08:25 AM
Thank you! Works perfectly!