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

wbulot

New Member
Joined
Sep 20, 2014
Messages
24
Reaction score
0
Hello,

I'm using a personal plugin who cast spell for me and it seems that there is some problems with BuddyTor.Me.CurrentTarget.
Indeed, often the value is null, while I really have a target.

It happen a lot in PvP (But in PVE as well). Maybe 1 in 10 target is not recognise as a target.
Is it a known issue ? Is there a dirty fix or something ?

Thank you.
 
You can send me the code and tell me what you are trying to do
 
Here is my plugin : http://pastebin.com/tJum6Lt3

I register an Hotkey and I execute some code to cast spell when I press the hotKey.
Everything works fine but in PVP, some targets are not recognise. Maybe 5 or 10% of the time. Don't know why.

When I say not recognise, I mean BuddyTor.Me.CurrentTarget return null.
So obviously in this case, the spells are not cast.

Thx for your help.
 
Might be a sync issue. Maybe wrapping all the code in Routine between an AcquireFrame could help.
 
Code:
private static void Routine()
{
	using (BuddyTor.Memory.AcquireFrame())
	{
		BuddyTor.Update();
		BuddyTor.Me.SetTarget(BuddyTor.Me.CurrentTarget);
		//The rest of the code from Routine....
	}
}
 
Back
Top