Welcome to the Achaea Forums! Please be sure to read the
Forum Rules.
Been contemplating posting this since it's incomplete on here, but everyone who has used it so far is satisfied for it, so here it is.
Current Version: 0.6
Features:
- Automatic targeting based on GMCP information sent by the server.
- Target priority based on name e.g. Mhun Keeper > Mhun Knight > Mhun Guard.
- Priority switching without hardcoding.
- Adding/Removing Denizens to the tables without hardcoding.
How to use:
When first installing the script, use the alias hinstall to install the script and you should be good to go.
Aliases:
hinstall - Installs the hunting script.
hunt on/off - Turns the script on and off.
hcc (chat) - Echo target to a chat, hcc toggles it back to echoing locally. Echo to party by doing hcc pt etc.
hecho - Turns off targeting echoing.
hload - Reloads the tables.
hsave - Saves the tables.
hshow - Shows the denizen table and priority from top to bottom with clickable buttons to enable/disable targeting and increase/lower priority.
hadd - Shows a table of denizens not currently added in the room on entry with buttons to add.
hremove - Shows the denizen table with buttons to remove the denizen from the table.
Requirements:
The variable name of your target is 'target'.
Donations are appreciated, but definitely not required.
Download Link: http://dl.dropboxusercontent.com/s/zga0ik6rg8cv7uw/Huntingv0.6.xml?dl=1
Hope you enjoy using the script, send feedback/bugs to Guhem and I'll do my best to fix them asap.
Feedback on code is also appreciated, all this was done for learning purposes.
17
Comments
As for the PT announcing, there's really two ways that I'm thinking of that would be able to transition, one would be to call the next target in the list (problem with this would be the next target might change depending on if something with a higher priority walks in/walks out and you have two party tells per denizen kill) or having a complete general target for all the denizens in all the lists (big overhaul on the tables and script, not really much benefit)
Truthfully the easiest way for them to work with you would be to just grab a quick and dirty party target announcer. I'll see if I can come up with something else in regards to that though.
My version is incorporated into svo to not only target, but also keep attacking as long as something is in the room.
I for my part set it so I don't change the target, if something wit higher priority walks in, because especially in non-teaming areas you always only have one target you attack. But thst can also be personal preferences.
As for party targeting: You could fire an event when you change target, which can be caught by party announcer/own visuals/GUI etc.
GMCP documentation: https://github.com/keneanung/GMCPAdditions
svof github site: https://github.com/svof/svof and documentation at https://svof.github.io/svof
The script itself doesn't change targets until the first target you picked up is dead/you walk to another room, then it swaps to the next target which would the be highest priority.
True on the party targeting, I'll definitely raise an event when the target is changed so people can use it to for their own systems.
The party targeting itself is there and it echos to the party once you kill something for the next target, but I'm not sure if there's any way to do what Aedin requested which is for someone else in the party who doesn't have targeting based on party announce other than the ways which I listed earlier which is to: call out a separate send with Next Target: ###### or instead, a general target such as Orc or Animal.
I figured the latter would be much harder but could be done using a denizen database with tags containing a general target for it. With that it'd do away with the priority though, though you could definitely use it for say foozling if you implement a search function.
About the echo. It's hard to say, because you probably still want to target the same target on a party call. This would be defeated, if you used two different techniques to target like ID and general target. Because for example if you have two mhun guards and an elite keeper, "mhun" does not tell which one to attack and "guard" neither (elites seem to count as guards from my testing). All you can do is definitely target the elite in this case. But I don't think that is worth the effort.
So all in all I'd say using a "tags" or "keyword" database for pary targetting as well and use both at the same time is unfeasable.
You could however use some kind of "alternate targetting" which would lessen the effect of prios in exchange of guaranteeing the same target. This way you have to a) collect the keywords manually (as I ave no idea how determine them automatically) and b) either use a single keyword for each target or c) define multiple keywords and then try to calculate the "best" one (whatever that means).
Alternatively you can just forget about party targeting and bash away :P
Edit: spelling. Duh!
GMCP documentation: https://github.com/keneanung/GMCPAdditions
svof github site: https://github.com/svof/svof and documentation at https://svof.github.io/svof
Could be already done without this script with svo/omni in many areas:
dor kill mhun(/vertani/gnoll/animal)
start moving
afk
GMCP documentation: https://github.com/keneanung/GMCPAdditions
svof github site: https://github.com/svof/svof and documentation at https://svof.github.io/svof
Intention was never to allow auto bashing, but more for areas such as mirror caves/morindar where you need to change targets frequently since my wrist starts hurting after a while.
https://dl.dropboxusercontent.com/u/32189290/Huntingv0.61.xml?dl=1
GMCP documentation: https://github.com/keneanung/GMCPAdditions
svof github site: https://github.com/svof/svof and documentation at https://svof.github.io/svof
And you won't understand the cause of your grief...
...But you'll always follow the voices beneath.
Glad you enjoy it, saving one person from carpal tunnel at a time.
Thanks!
@Strata
Thanks for the things, just wondering for the making higher priority denizens "sticky", did you use an alias to reset in the case where you run into a room with lower priority stuff and decide to clear them instead?
Either way, this is just a baseline of what I want to do, there's other things as well.
Do you have any other info I could use to try to replicate the problem?
I really am enjoying this code, makes bashing a lot more bearable, thanks!
Quick question (or three):
The Priority List shows up as red, so it lists everything there in... red. Any way we can change that? It's not the most noticeable for me, and I have issues catching it sometimes. Thanks!
Also!
[NOTE]: Depending on your class, abilities, and weapons, using the KILL command may be less
efficient than manually choosing your abilities.
You reach out with your withered finger and stroke a goblin zombie, who screams in agony as his
flesh withers.
The system-thingie only uses the 'Kill' command from what I can see, is there a way we can change what it uses?
Oh man, I posted this on the wrong one...
If nobody can help here, an alternative to check out would be http://forums.achaea.com/discussion/1533/mudlet-another-denizen-targeting-script (my hunting script)
GMCP documentation: https://github.com/keneanung/GMCPAdditions
svof github site: https://github.com/svof/svof and documentation at https://svof.github.io/svof
For future references, troubleshooting:
When it doesn't work, check to make sure if GMCP is on.
Do HUNT ON/OFF, it's the on and off button.
Check HSHOW to see if the denizens are on the list (or adjust target priority).
HADD to add the denizens if they're not.
It doesn't rely on serverside targeting, but a 'target' variable, but that's easily adjustable.
Search for function targetSet(), and just add: send("settarget " .. target) a line after cecho("<blue:green>Target: "..target).
https://discord.gg/dwUkmeZ