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
➜ Lua
➜ Healing script
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Xystan
USA (2 posts) Bio
|
| Date
| Sat 08 Nov 2008 09:38 AM (UTC) |
| Message
| 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 | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Sun 09 Nov 2008 04:56 AM (UTC) |
| Message
| 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
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Xystan
USA (2 posts) Bio
|
| Date
| Reply #2 on Sun 09 Nov 2008 05:32 AM (UTC) |
| Message
| 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 | | 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.
13,018 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top