Read this post for more details http://www.ryftomate.com/developers-forum/3-getting-started-developers.html
Here is the a simple bare minimum template I put together. Read the comments.
- You need to know how to program in C# and behavior trees
- Routines are compiled in to DLLs and placed into the Routines sub folder
Here is the a simple bare minimum template I put together. Read the comments.
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Giga.Common;
using Giga.Common.Composites;
using Giga.Common.Helpers;
using Giga.RIFT;
using Giga.RIFT.Objects;
using Giga.RiftBot.Helpers;
using Giga.RiftBot.Routines;
using System.Diagnostics;
using TreeSharp;
namespace HighVoltz
{
// 1) make a new C# class library project in VS
// 2) add reference to Giga.RiftBot.dll, Giga.RIFT.dll,Giga.Common.dll and TreeSharp.dll
// Check out the helpers found in 'Giga.RiftBot.Routines.ClassRoutine' CreateBuff, CreatSpellCast etc
public class RoutineTemplate : ClassRoutine
{
// this ctor is required.
public RoutineTemplate(){}
public override string Author { get { return "HighVoltz"; } }
public override System.Version Version { get { return new Version(1, 0); } }
RiftLocalPlayer Me { get { return GigaRift.Me; } }
// initialization code goes in here
public override void OnLoading()
{
}
public override void OnUnloading()
{
}
// This behavior will run while bot is in combat and has a target to kill
public override Composite CreateCombatBehavior()
{
return new PrioritySelector(
);
}
// This behavior will run while not in combat but bot has a target to kill.
public override Composite CreatePullBehavior()
{
return new PrioritySelector(
);
}
// put your heal behavior here (out of combat)
//return RunStatus.Failture if no heals are required otherwise return RunStatus.Success
public override Composite CreateRestBehavior() {
return new PrioritySelector(
);
}
}
}