Reporting Bots
I decided to write a bot reporting addon. The irony of automating the process of reporting automated players was too good to pass up... For the most part it works about as well as I had envisioned except for the actual bot reporting part.
The only function I was able to dig up from the wiki and the source code that wasn't just nil is Lua Code:
This function is bound and works pretty much exactly as advertised, i.e. opens the report window with the player name filled in, but I would like to include more actionable information automatically populated within the description field (information that my addon already gathers). I can see the abuse potential for zero interaction player reporting, but automatic population of fields (but manual submission button) would be really nice. A promising looking function in the API section on the wiki is: Lua Code:
I've considered trying to find a way to detect that the description field is active, and just adding a string at the cursor... but there isn't an obvious way I can see to either detect such a thing or to place text at the current cursor location. Any suggestions for handling the reporting window would be appreciated, thank you! Side Note: It is probably worth mentioning that the similar function Lua Code:
|
Just a quaick & dirty idea without further checks:
ZO_HELP_GENERIC_TICKET_SUBMISSION_MANAGER:OpenReportPlayerTicketScene The name says it's a scene? So you could check if it is really a scene, using SCENE_MANAGER to check if the activeScene is filled with something like "help_generic_ticket" or similar. Then use your own scene's callback function for the onSceneChange function (see this thread for a scene's fragment, but pretty works the same for a scene: http://www.esoui.com/forums/showthre...ighlight=scene) and check if the edit field fpr the description etc. is not hidden editCtrl:IsHidden(). If it's shown: Fill it with your text (something like editCtrl:SetText("hello world") |
Quote:
|
Just checked ingame:
If the "report player" screen is shown the variable SCENE_MANAGER.currentScene.name = "helpCustomerSupport". Scene = HELP_CUSTOMER_SUPPORT_SCENE One fragment of this scene (SCENE_MANAGER.currentScene.fragments) is (within keyboard mode! Did not check the gamepad mode!) HELP_CUSTOMER_SERVICE_ASK_FOR_HELP_KEYBOARD_FRAGMENT So you could try to check if this fragment is only active as the "report player" interaction was executed (or maybe too if the /bug report is started). You could use the callback funciton on "fragment_shown" state, as shown in the thread that I've linked above, to check for the edit controls are not hidden. The edit control names are Player name to report (CT_LABEL) ZO_Help_Ask_For_Help_Keyboard_ControlDetailsTextLineFieldText Description text (CT_LABEL) ZO_Help_Ask_For_Help_Keyboard_ControlDescriptionBodyFieldText You are able to change the text in the description field by using something like this: ZO_Help_Ask_For_Help_Keyboard_ControlDescriptionBodyFieldText:SetText("Hello world") This worked for me. Example code: Lua Code:
If this doesn't work maybe try to add a small delay via function zo_callLater(function(), delayInMilliseconds) for testing purposes before the control get's assigned to descCtrl. Sometimes the controls are not always "there" already if a sene or fragment is shown. |
Quote:
You were extremely close with your Controls, specifically Lua Code:
However, some poking around revealed its parent Lua Code:
Even better, no delay or extra callbacks are even required. I can just call up the report window and instantly set the control fields. Your insight and guidance was invaluable, now that I have an idea how to poke around existing GUI environments, things are going to get more interesting for sure. |
And just to add sugar on top:
Lua Code:
I can set the subcategory as "Botting" even though ZoS removed the option from the menu. I do have one more question: My addon is on ESOUI and can be manually downloaded and install... but I don't see it on Minion and it has been up and Approved for several days now (in it's non automatic report fill in state). Is there something I need to do to get it to show up there? Thanks again! EDIT: Changing the ComboBox Text does not seem to affect the submitted ticket... In fact the ticket seems to be ignored by ZOS's auto reply system. |
Please make sure you clarify on the addon's purpose. No need for ppl getting rekt by good players just having to rage press one key for filing a cheat report. :)
|
All times are GMT -6. The time now is 04:44 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI