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

Why does Lua Event GUILDBANKFRAME_CLOSED not fire?

Thang781

New Member
Joined
May 13, 2011
Messages
630
Reaction score
2
I have the following Code:

Lua.Events.AttachEvent("GUILDBANKFRAME_CLOSED", OnGoldUpdate);

...



private void OnGoldUpdate(object sender, LuaEventArgs args)
{
MessageBox.Show("Update");
ReportToServerAsync();
}



...

why does this event not fire, wenn i close the guild bank in game?

anybody knows? :)
 
use Logging.Write instead of MessageBox.Show, also you need to get the arguments from args.Args[0]
 
MessageBox.Show is just to know event fired.
But does not fire at all.

what is args.Args[0] for? i don't need any args.
 
Do you have a bank addon? That might interfere with the events.
 
Why should addons interfere with the events, as they are fired as broadcast?
 
No Add ons active at all. It seems the events just dont fire at all.
do i need another code to hoook to the events?
 
No, that's sufficient. Where are you binding the Lua event to the method? in OnBotStarted? And are you unbinding it in OnBotStopped?
 
i now use OnBotStarted trace shows that events are hooked.
but they do not fire.

i started combat bot. but they do not seem to fire.​
 
Last edited by a moderator:
AFAIK the bots do not handle the events, HB in general fires them, thus there should be no difference between the bots and OnBotStart/OnBotStarted (and all the other standard events).
 
Back
Top