Creating plugin/script

Posted by Khannon on Fri 16 Nov 2018 07:57 PM — 4 posts, 15,149 views.

#0
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.
#1
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.
USA Global Moderator #2
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?
Amended on Sat 17 Nov 2018 03:28 PM by Fiendish
#3
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.