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

CC developing.

Klovnene

Member
Joined
Aug 30, 2010
Messages
666
Reaction score
19
Hey guys, now i have been having fun with Grind and Quest profiles, but now i would like to try doing a CC. Ive already used CodenameG's How to, but now i just need to know how to add all the spells. Im going to do a simple CC for rep grinding with my shaman. All i want it to do is Use Ghost Wolf, run to mob, attack, run, attack, etc. And by attack i mean Melee attack. Ive tried to look at other CC's and im finding it a little confusing. cus i simply just need those 2 behaviors... If any 1 knows where to look for the Tags or anything, i would love a little hint. :)

Ze Clown! :D
 
<code>
//Quick Shaman attack only CC by Gonemental
using System;
using System.Diagnostics;
using System.Threading;
using System.Linq;
using System.Collections.Generic;
using Styx;
using Styx.Combat.CombatRoutine;
using Styx.Helpers;
using Styx.Logic;
using Styx.Logic.Combat;
using Styx.Logic.Pathing;
using Styx.WoWInternals;
using Styx.WoWInternals.WoWObjects;
using TreeSharp;



namespace Shamanattackonly
{
class Shaman : CombatRoutine
{
public override sealed string Name { get { return "Shaman Attack only"; } }
public override WoWClass Class { get { return WoWClass.Shaman; } }
private static LocalPlayer Me { get { return ObjectManager.Me; } }

public override void Pull()
{
if (StyxWoW.Me.GotTarget && StyxWoW.Me.CurrentTarget.Attackable)
{
Lua.DoString("StartAttack()");
}
}
public void Travel()
{
if (SpellManager.CanCast("Ghost Wolf"))
{
int Distance = (int) Me.Location.Distance(StyxWoW.Me.Location);
if (Distance > 100)
{
GhostWolf();
}
}
}

public override void Combat()
{
if (Me.CurrentTarget == null || Me.CurrentTarget.Dead || !Me.CurrentTarget.IsAlive)
{
Lua.DoString("StartAttack()");
}
if (Me.CurrentTarget.Distance > 5)
Navigator.MoveTo(WoWMathHelper.CalculatePointFrom(ObjectManager.Me.Location, ObjectManager.Me.CurrentTarget.Location, 2.5f));
}
private void GhostWolf()
{
SpellManager.Cast("Ghost Wolf");
}
}
}
</code>

Untested, but I think it will work.
 
<code>
//Quick Shaman attack only CC by Gonemental
using System;
using System.Diagnostics;
using System.Threading;
using System.Linq;
using System.Collections.Generic;
using Styx;
using Styx.Combat.CombatRoutine;
using Styx.Helpers;
using Styx.Logic;
using Styx.Logic.Combat;
using Styx.Logic.Pathing;
using Styx.WoWInternals;
using Styx.WoWInternals.WoWObjects;
using TreeSharp;



namespace Shamanattackonly
{
class Shaman : CombatRoutine
{
public override sealed string Name { get { return "Shaman Attack only"; } }
public override WoWClass Class { get { return WoWClass.Shaman; } }
private static LocalPlayer Me { get { return ObjectManager.Me; } }

public override void Pull()
{
if (StyxWoW.Me.GotTarget && StyxWoW.Me.CurrentTarget.Attackable)
{
Lua.DoString("StartAttack()");
}
}
public void Travel()
{
if (SpellManager.CanCast("Ghost Wolf"))
{
int Distance = (int) Me.Location.Distance(StyxWoW.Me.Location);
if (Distance > 100)
{
GhostWolf();
}
}
}

public override void Combat()
{
if (Me.CurrentTarget == null || Me.CurrentTarget.Dead || !Me.CurrentTarget.IsAlive)
{
Lua.DoString("StartAttack()");
}
if (Me.CurrentTarget.Distance > 5)
Navigator.MoveTo(WoWMathHelper.CalculatePointFrom(ObjectManager.Me.Location, ObjectManager.Me.CurrentTarget.Location, 2.5f));
}
private void GhostWolf()
{
SpellManager.Cast("Ghost Wolf");
}
}
}
</code>

Untested, but I think it will work.
Change the first lines in Combat() to:
Code:
if (Me.CurrentTarget == null || Me.CurrentTarget.Dead || !Me.CurrentTarget.Attackable)
return;

<code>Lua.DoString("StartAttack()");
if (Me.CurrentTarget.Distance > 5)</code>
 
Back
Top