Copyright © 2012 Cerb3ruz. All Rights Reserved. Snowblind by Themes by bavotasan.com. Powered by WordPress.
Archive for November, 2009
Oh hai thar everybody! was kinda bored this weekend not much to do with HB at them moment, just some minor stuff anyways,
out boredom i wrote some new stuff on MrFishIt for a change, i have been kinda busy the last months so i haven’t been able to code a lot on MrFishIt
What does this mean?
You can customize all and or load new states into the engine and it will run them accordingly eg. StateCast;
using System;
using System.Diagnostics;
using System.Linq;
using System.Threading;
using Medusa.Finite_State_Machine;
using Medusa.Helpers;
using Medusa.Logic.Combat;
using Medusa.Memory_Read_Write_Inject.Lua;
using Medusa.Object_Dumping_Enumeration;
namespace MrFishIt.States
{
public class StateCast : IState
{
#region Implementation of IState
public string StatusText { get { return “Cast”; } }
public int Priority { get { return 4; } }
public bool NeedToRun
{
get
{
return !Medusa.Logic.Fishing.Fishing.IsFishing;
}
}
public void Run()
{
// Adding some lua just for fun, like DoEmote(“Dance”);
Lua.DoString(“DoEmote(\”Dance\”)”);
Thread.Sleep(1000);
var spell = (from b in ObjectManager.Me.KnownSpells.Values
where
b.ID == 7620 ||
b.ID == 7731 ||
b.ID == 7732 ||
b.ID == 18248 ||
b.ID == 33095 ||
b.ID == 51294 ||
b.ID == 62734
select b).FirstOrDefault();
if (spell != null)
{
Logging.Write(“: Casting”);
SpellManager.CastSpellById(spell.ID);
var rand = new Random();
int waitTime = rand.Next(500, 1500);
var watch = new Stopwatch();
watch.Start();
while (ObjectManager.Me.ChanneledCasting == 0 &&
watch.ElapsedMilliseconds <= waitTime)
Thread.Sleep(1);
watch.Reset();
}
}
#endregion
}
}
notice line 32? Some random ass lua i added and now it will start dancing and then wait one second before casting ! how kewl is that ? o_O
And here’s the download

Recent Comments