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
➜ Plugins
➜ Action Bar
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Bigwillscarlet
(4 posts) Bio
|
Date
| Sat 02 Jul 2016 04:35 PM (UTC) |
Message
| Ok, sorry if this has already been addressed but I could not find it anywhere. I am using the icon bar from mr gammon. But i was wondering if there was a way to link the cooldown timers with triggers so that if I were to type sit instead of hitting the button, the spam of "you sit down" would activate that cooldown timer? | Top |
|
Posted by
| Bigwillscarlet
(4 posts) Bio
|
Date
| Reply #1 on Sat 02 Jul 2016 05:13 PM (UTC) |
Message
| It wont let me enter the entire code to show you, says its too long but its the standard code from the icon bar. | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #2 on Sat 02 Jul 2016 08:45 PM (UTC) |
Message
| |
Posted by
| Bigwillscarlet
(4 posts) Bio
|
Date
| Reply #3 on Sat 02 Jul 2016 08:51 PM (UTC) Amended on Sat 02 Jul 2016 09:13 PM (UTC) by Bigwillscarlet
|
Message
| Yes sir thats it, Im sorry i couldnt copy and paste it all on one post, Essentially I was wanting to try and make it to where I didnt have to click the buttons unless i wanted to. Was wanting to see if it was possible to either have the click feature or have a certain trigger cause the countdown for that particular ability/button to activate and let me know when the ability is up for casting again. | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #4 on Sat 02 Jul 2016 08:54 PM (UTC) |
Message
| You can interact with the plugin by using the CallPlugin script function.
In this case you could do this:
CallPlugin("ede0920fc1173d5a03140f0e", "SetCooldown", 1, 30)
This is saying to go to plugin with the ID "ede0920fc1173d5a03140f0e" (the action bar plugin), call the function "SetCooldown", and pass the arguments 1 (the button number) and 30 (the number of seconds).
Now just put that inside a trigger, for example:
<triggers>
<trigger
enabled="y"
match="You sit down."
send_to="12"
sequence="100"
>
<send>
CallPlugin("ede0920fc1173d5a03140f0e", "SetCooldown", 1, 30)
</send>
</trigger>
</triggers>
 |
For advice on how to copy the above, and paste it into MUSHclient, please see Pasting XML.
|
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Bigwillscarlet
(4 posts) Bio
|
Date
| Reply #5 on Sun 03 Jul 2016 10:12 PM (UTC) |
Message
| awesome that worked like a charm sir, thank you very much :) | 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.
19,221 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top