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

Plugin replacing parts of CC with own code?

strix

New Member
Joined
Feb 13, 2010
Messages
442
Reaction score
18
I want make plugin to use same combat code no matter what CC is loaded.

How can i override Pull() and Combat() parts of CustomClass inside plugin?

EDIT:
Looking at Mr.Autofight i guessed overriding combat (and also completely achieving my goal for melees versus aggresive mobs) would be that:
Code:
public override void Pulse()
{
	while (Styx.Logic.BehaviorTree.TreeRoot.IsRunning && Me.Combat)
    {
		MyCombat();
	}
}

private void MyCombat()
{

}
But what to do to replace CC's Pull() for ranged classes?

And as we analized with friend, why this piece of code was even working? It should run as 2 independent threads without interaction along with CC.
 
Last edited:
Back
Top