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

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

wbulot

New Member
Joined
Sep 20, 2014
Messages
24
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.
 
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