I'll just preface this by saying that I've been playing mud(s) for a grand total of 2 weeks now, so I don't know a lot about them let alone MUSHclient or lua. That being said I have watched all of the youtube tutorials by Gammon.
1. My current goal is to make a trigger for healing. I have seen a few plugins posted by others but they are not automated.
Here is my current attempt
I must have something wrong because it tries to drink multiple potions instead of waiting for the string match for 10 seconds? Basically I want to drink a potion to heal but have a failsafe so it doesn't fire off again before drinking the first one.
2. If I were to make a trigger for using Spellup, how would I go about doing this? seeing as there are different timers/messages for each spell.
3. Lets say I download a plugin that someone else has made, and I want to make changes to it/see how it works, how can i see all the different aliases/triggers/scripts that it is made up of? Do I just open the xml with a word editor?
4. What is GMCP? Can GMCP be used with triggers to get data without using regex?
Thanks if anyone can answer some of these questions.
1. My current goal is to make a trigger for healing. I have seen a few plugins posted by others but they are not automated.
Here is my current attempt
<triggers>
<trigger
enabled="y"
expand_variables="y"
group="Potions"
match="[*/*hp */*mn */*mv]"
send_to="12"
sequence="100"
>
<send>require "wait"
function cr ()
if ((%1/%2) < 0.75) then
Execute "drink_heal"
wait.match ("You quaff potion", 10)
end
end
wait.make (cr)</send>
</trigger>
</triggers>
I must have something wrong because it tries to drink multiple potions instead of waiting for the string match for 10 seconds? Basically I want to drink a potion to heal but have a failsafe so it doesn't fire off again before drinking the first one.
2. If I were to make a trigger for using Spellup, how would I go about doing this? seeing as there are different timers/messages for each spell.
3. Lets say I download a plugin that someone else has made, and I want to make changes to it/see how it works, how can i see all the different aliases/triggers/scripts that it is made up of? Do I just open the xml with a word editor?
4. What is GMCP? Can GMCP be used with triggers to get data without using regex?
Thanks if anyone can answer some of these questions.