Like in title ... can someone compile this for me ? i cant do that i dont know why:
using ArcheBuddy.Bot.Classes;
using System;
using System.Collections.Generic;
using System.Threading;
namespace Sport_Fisher {
public class Main : Core {
public static string GetPluginAuthor() {
return "CoalCloud";
}
public static string GetPluginVersion() {
return "1.0.0.1";
}
public static string GetPluginDescription() {
return "Sport Fisher";
}
bool done;
public void PluginRun() {
ClearLogs();
Log(String.Format("~~ Plug-in start: {0}, {1}", GetPluginDescription(), GetPluginVersion()));
Dictionary<string, string> actions = new Dictionary<string, string>() {
{"Moving to the Left", "Stand Firm Left"},
{"Moving to the Right", "Stand Firm Right"},
{"Escape", "Give Slack"},
{"Move to the Bottom", "Reel In"},
{"Leap", "Big Reel In"}
};
string prevSkill = null;
while (true) {
if (me.target == null || me.target.target != me || getBuff(me.target, "Strength Contest") == null)
Thread.Sleep(100);
else {
string skillToUse = null;
foreach (Buff b in me.target.getBuffs()) {
if (actions.ContainsKey(b.name)) {
skillToUse = actions[b.name];
break;
}
}
if (skillToUse == null) {
CancelSkill();
} else {
if (!isCasting() || prevSkill != skillToUse) {
CancelSkill();
TurnDirectly();
done = false;
new Thread(() => UseSkill(skillToUse)).Start();
while (!isCasting() && !done) ;
if (isCasting())
prevSkill = skillToUse;
}
}
}
}
}
public void PluginStop() {
Log("~~ Plug-in stop.");
}
private void UseSkill(string skillToUse) {
if (!UseSkill(skillToUse, true))
done = true;
}
}
}
using ArcheBuddy.Bot.Classes;
using System;
using System.Collections.Generic;
using System.Threading;
namespace Sport_Fisher {
public class Main : Core {
public static string GetPluginAuthor() {
return "CoalCloud";
}
public static string GetPluginVersion() {
return "1.0.0.1";
}
public static string GetPluginDescription() {
return "Sport Fisher";
}
bool done;
public void PluginRun() {
ClearLogs();
Log(String.Format("~~ Plug-in start: {0}, {1}", GetPluginDescription(), GetPluginVersion()));
Dictionary<string, string> actions = new Dictionary<string, string>() {
{"Moving to the Left", "Stand Firm Left"},
{"Moving to the Right", "Stand Firm Right"},
{"Escape", "Give Slack"},
{"Move to the Bottom", "Reel In"},
{"Leap", "Big Reel In"}
};
string prevSkill = null;
while (true) {
if (me.target == null || me.target.target != me || getBuff(me.target, "Strength Contest") == null)
Thread.Sleep(100);
else {
string skillToUse = null;
foreach (Buff b in me.target.getBuffs()) {
if (actions.ContainsKey(b.name)) {
skillToUse = actions[b.name];
break;
}
}
if (skillToUse == null) {
CancelSkill();
} else {
if (!isCasting() || prevSkill != skillToUse) {
CancelSkill();
TurnDirectly();
done = false;
new Thread(() => UseSkill(skillToUse)).Start();
while (!isCasting() && !done) ;
if (isCasting())
prevSkill = skillToUse;
}
}
}
}
}
public void PluginStop() {
Log("~~ Plug-in stop.");
}
private void UseSkill(string skillToUse) {
if (!UseSkill(skillToUse, true))
done = true;
}
}
}