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

/reload and attached lua events

seafunk

New Member
Joined
Feb 23, 2011
Messages
273
Reaction score
4
Hi folks!

I'm trying to rewrite my mailloot reloader and am experiencing the following problem:

Whenever I have /reload'ed, the code attached to the MAIL_SUCCESS event won't get fired anymore at all. I tried detaching and reattaching, but that doesn't work either. Is there any way to update hb after a reload so it's in sync again or is the problem something entirely different?

I'd really appreciate your help!
 
try to reattach your EVENT-Listeners on one of these Events
PLAYER_ENTERING_WORLD
BN_SELF_ONLINE
BN_CONNECTED

The first one Should be fired after reloadui in my opinion (couldn't test yet cause i'm at work)
 
Hi folks!

I'm trying to rewrite my mailloot reloader and am experiencing the following problem:

Whenever I have /reload'ed, the code attached to the MAIL_SUCCESS event won't get fired anymore at all. I tried detaching and reattaching, but that doesn't work either. Is there any way to update hb after a reload so it's in sync again or is the problem something entirely different?

I'd really appreciate your help!

I had a similar problem. HB fails to re-attach lua events after a reload UI. Best bet is to use your own lua event hook. I had this laying around, might still work. //mostly coded by Apoc with some of the lua edited by me (Highvoltz) //namespac - Pastebin.com
 
Last edited:
Thanks a lot you two!! :)

edit: whoa looks like a ton of work, looking at apocs/your code . i better get started on biochemistry or i can see myself coding till midnight. :D pulse is suddenly becoming very attractive again ;)
 
Back
Top