Healing script

Posted by Xystan on Sat 08 Nov 2008 09:38 AM — 3 posts, 13,222 views.

USA #0
Ok, I am very new to LUA and to be honest very very confused. I have read alot of the literature. (not that it has done me any good) What i am try to do is make a very simple "auto" healing script, the mud i play on allows multiple logins on 2 characters.

Tiggering off of:
{*/*/*hp*/*/*mv|*/*}

I can make it show low hps via colournote and such but i am trying to make it do a "group heal" off of %3 < 350 and im stuck on what the command is perform such a task, sorry for this being probably something very boring and all but thanks in advance for any help i can get
Australia Forum Administrator #1
Sounds like you are on the right track. Can you post what you did already? You will want something like:


if %3 < 350 then
  Send "group heal"
end -- if


USA #2
Thank you Very much. This is what im doing now.

Trigger:
{*/*/*hp*/*/*mv|*/*}

Send:
if %3 < 300
then ColourNote ("green", "white", "HEALED GROUP!")
end -- if

if %3 < 300 then
Send "cast group heal"
end -- if

if %3 < 150 then
Send "group"
end -- if

ReTrigger:
[ * * * ] * */* */* */* *

Send:
if %5 < 150 then
send "cast greater healing %4"
end -- if

Once again thank you. Makes life much easier dragging big priest and helping me lvl faster.
Xystan