What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Click Cancel Question Button - That's it.

kron

New Member
Joined
May 6, 2013
Messages
84
Reaction score
0
I'm looking to write a REALLY simple script to just click cancel for powerleveling my alts on GHOM runs. Can't seem to pull that value and maybe it's handled by trinity in this case (which I don't need since he's just going to stand in town).

EDIT: may have been too quick to post this. Think the solution below works but I can't test with the current script yet. Maybe this would be easier if I ran party bot but I don't want to use that just yet.

Edit the trinity file /helpers/GameUI.cs, change the accept section to the return value below. This was line 86 for trinity 1.9.8

Code:
return UIElement.FromHash(0xCC56694B0659218D);
 
Last edited:
I'm looking to write a REALLY simple script to just click cancel for powerleveling my alts on GHOM runs. Can't seem to pull that value and maybe it's handled by trinity in this case (which I don't need since he's just going to stand in town).

EDIT: may have been too quick to post this. Think the solution below works but I can't test with the current script yet. Maybe this would be easier if I ran party bot but I don't want to use that just yet.

Edit the trinity file /helpers/GameUI.cs, change the accept section to the return value below. This was line 86 for trinity 1.9.8

Code:
return UIElement.FromHash(0xCC56694B0659218D);

cant u just make it press spacebar or escape key? i think it would be easier that way.
 
UIElement.FromName(".....");

Is a better way to handle buttons . u just have to dump it when its visible and use the "Root.Normallayer....." Path to handle the button

With ....Click();

Just write a little plugin and fire it OnPulse();

+ remove auto accepts from trinity + questtools in db of lvled char




Otherwise u could just rewrite the accepts in trinity + questtools to auto cancel boss fights

But I would suggest to use the UIElement.FromName(); method instead of ..FromHash();


UIElement CancelButton = UIElement.FromName("Root.NormalLayer.boss_join_party_main.stack.wrapper.Cancel");

if (CancelButton.IsVisible && CancelButton.IsValid)
{

CancelButton.Click();
 
Last edited:
how do you dump UIElement info ?
i wnt to dump everything's that's there on the screen..

i am having problems with this case..
multiple palyers in game.. 2 reject boss. 2 accept.

now bot isn't clicking OK.. its just leaving that dialog as is and its getting timed out.
it works properly for SK act 1.. but does not for Queen in act1 and also butcher.
 
Last edited:
I have done that change.

Let me explain the problem clearly in Act 1 Normal SPLIT bounty farming.

in public games.. when quest Queen Aranea comes up.
The bot clicks.. accept..
but 2 others guys click no. Then a confirmation dialog pops up. This Dialog is not getting handled. It just stays open. Times out and bot stays out of boss fight.. the one person that said yes.. goes in.
 
Back
Top