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
➜ General
➜ Creating plugin/script
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Khannon
(32 posts) Bio
|
| Date
| Fri 16 Nov 2018 07:57 PM (UTC) |
| Message
| Hi!
I've been wanting to try to create a script, later turn it into a plugin that would do following:
Capture targets attacking me.
Show total targets attacking me in a small mini win.
ex. simply a number of total targets <7>
Subtract targets every time mob died, can do it based on exp acquired.
I don't really know where to start, I just have a couple triggers that I probably need for it.
General purpose for this is to know when to stop using spells to avoid getting lag when last 2-3 mobs die so for instance when leading a group you don't get lagged when last mobs die.
Any and all help is greatly appreciated!
I also don't want to use consider plugins, consider applies another lag which makes it feel even slower. | | Top |
|
| Posted by
| Khannon
(32 posts) Bio
|
| Date
| Reply #1 on Fri 16 Nov 2018 09:34 PM (UTC) |
| Message
| I guess what I want to achieve or the way it works aside what I mentioned above:
When entering a new room, through a command look, capture '* KILL YOU!' Either if I started combat or mobs did, how do I turn matches into one number output. I found something Look plugin from Blainer, I'm not interested in all the functions his plugin does, aside it doesn't really do what I'm aiming at, simply capture targets who attack me through command look and give output in the small mini win as a number output. | | Top |
|
| Posted by
| Fiendish
USA (2,558 posts) Bio
Global Moderator |
| Date
| Reply #2 on Sat 17 Nov 2018 03:23 PM (UTC) Amended on Sat 17 Nov 2018 03:28 PM (UTC) by Fiendish
|
| Message
| The miniwin part is often the trickiest, so I suggest starting with just the triggers and output to the main screen with Note() or print() and then moving up from there.
As for where to start, I would think the start would be in figuring out how to do this part:
Quote: Capture targets attacking me.
Thoughts?
As for this...
Quote: how do I turn matches into one number output
You would want to have a variable that you set to 0 when you type look and then add 1 to it every time your '* KILL YOU!' trigger matches.
And then maybe you display the value stored in that variable when you detect a blank line if the variable isn't 0 and then immediately reset the variable to 0 after display it? |
https://github.com/fiendish/aardwolfclientpackage | | Top |
|
| Posted by
| Khannon
(32 posts) Bio
|
| Date
| Reply #3 on Sun 18 Nov 2018 07:50 AM (UTC) |
| Message
| | Sorry didn't reply here yet, still interested to make this plugin. I'm trying to figure out something for simpler plugin right now. I realize this plugin is much harder for me to make without understanding a lot of basic stuff. I will reply back to here when I start focusing this idea again. Thanks for the input though, Fiendish. | | 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.
14,364 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top