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

Listening to lua events and ProffesionBuddy

ekologic

New Member
Joined
Jan 20, 2012
Messages
5
Reaction score
0
Hi all,
i am writing a plugin which just simply monitors whispers and send email, everything is working fine, however whenever PB switches to another char the plugin stop working, i've tested it with other plugins and the result remains the same. Any ideas?
Thanks in advance.
 
Each Char has it's on character settings in HB. Is the plugin enabled for each char?

In CharacterSettings_CharName.xml
<enabledplugins>

</enabledplugins>
 
I'd say it was the character settings, login to each of the characters manually and enable your plugin for each of them. By default not every plugin is enabled for every char.
 
You will probably need need to re-hook the events after a character change because logging out wipes any lua hooks, and I assume HB doesn't 'reapply them..
 
Last edited:
You will probably need need to re-hook the events after a character change because logging out wipes any lua hooks, and I assume HB doesn't 'reapply them..

The events are already in init and dispose so HB should re-init.

i'd get rid of all the below checks though and the stuff in pulse

Code:
if (init == null || init == false)
 
Last edited:
How to get the name of the char, i mean Me.Name only returns the name of the attached character, somewhere i saw a code which instantiates a new Me class but i cant find
 
StyxWoW.Me.Name returns the name of your toon. Or are you looking for the name of another player or npc
Sent from my 7 Trophy using Board Express
 
Found it, seems like i have to update ObjectManager whenever i want to compare the names. (In order to check whether bot changed toons)
 
Back
Top