91
Stealth Client / Re: pathfinding
« on: June 15, 2016, 06:10:40 AM »
i will look at it once i find some time.. time is random and rare lately :/
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
public class Buffs
{
// Singleton object
private Buffs _Instance {get;set;}
//Returns a pointer of _Instance
public Buffs Instance
{
get
{
if(_Instance == null)
_Instance = new Buffs();
return _Instance;
}
}
//Seals it, that only 1 Instance per Runtime is allowed to exist
protected Buffs()
{}
public bool Strangle {get;set;}
public bool Curse {get;set;}
public bool Strength {get;set;}
public bool Poison {get;set;}
public bool DivineFury {get;set;}
}
public void CheckBuff(object sender, Buff_DebuffSystemEventArgs e)
{
bool state = e.IsEnabled;
switch(e.ID) // need to check syntax here, forgot how the event args are filled
{
case 1082 : Buffs.Instance.DivineFury = state; break;
}
}
I added in some code to check for Divine Fury and it seems like its working ok but I'm pretty wet behind the ears when it comes to programmingCode: [Select]public void CheckBuff(object sender, Buff_DebuffSystemEventArgs e)
{
this.Dispatcher.Invoke((Action)(() =>
{
String buffstatus = (e.IsEnabled) ? "Active" : "NotActive";
String DFStatus = (e.IsEnabled) ? "Active" : "NotActive";
if (buffstatus == "Active")
{
CWBuff = new Buff_DebuffSystemEventArgs(44878, 1082, true);
}
else
{
CWBuff = new Buff_DebuffSystemEventArgs(44878, 1082, false);
}
if (DFStatus == "Active")
{
DFBuff = new Buff_DebuffSystemEventArgs(44878, 1010, true);
}
else
{
DFBuff = new Buff_DebuffSystemEventArgs(44878, 1010, false);
}
}));
}
Which stealth build? I did no upgrade to Stealth 7 yet.
version 6.7.1