Jesus Vicente

Jesus Vicente

  • NA
  • 4
  • 3.1k

Some Basic Help About A Modification In a Script!

May 18 2013 12:58 PM
I have a simple question but for someone like me who is not familiar with c# is giving a bit of trouble. I am making a basic script in c# for a bot in a videogame (TERA). What I want is to avoid attacking static immortal debuffs when my character approaches to them. A simple script without nothing would be like this:

//Blank.cs
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;

namespace SimpleCombat
{

public class EntryPoint : ZurasBot.Addons.ICombat
{

public override string Name
{
get
{
return "Shell";
}
}


public override void OnLoad()
{
}

public override void OnUnload()
{
}

public override void Settings()
{
}

public override void OnBotStart()
{
}

public override void OnBotStop()
{
}

public override void Patrolling()
{
} //end Patrolling

public override Boolean Pull(MyTERA.Helpers.ObjectManager.TERAObject Object)
{
return true;
} //end Pull

public override Boolean Combat(MyTERA.Helpers.ObjectManager.TERAObject Object)
{
return true;
} //end Combat

public override void PostCombat()
{
}

} //end EntryPoint

} //end SimpleCombat


The question is: How/where do I declare/define the pullfunction? What I have to add is this:

if (Object.S1NPCDataController.Name == "name1") return false;

"name1" being the name of the static immortal debuff. Anyone could help me? It is important to me since I am helping a friend to level up his character so he can play with the rest of us! I would really appreciate any help you could give me, it would mean a lot to me! Thank you very much for your help, I hope I can find a solution! Have a nice weekend!  :)