There is already a simple plugin for Sport fishing and I have tested it to see that it still works. But we need to add in to this plugin or make separate plugin for Family Fishing. I tried editing it myself to figure it out but I am not a programmer of any sort so I can only test a few things.
I just edited a few things from the sport fisher that I found https://www.thebuddyforum.com/arche...ions-crafting/187171-plugin-sport-fisher.html
Code I have edited looks like this
If anyone could edit this and make this work and send me a message I would love you forever.
I just edited a few things from the sport fisher that I found https://www.thebuddyforum.com/arche...ions-crafting/187171-plugin-sport-fisher.html
Code I have edited looks like this
Code:
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", "Cheer: Shift Left!"},
{"Moving to the Right", "Cheer: Shift Right!"},
{"Escape", "Cheer: Let It Go!"},
{"Move to the Bottom", "Cheer: Reel It In!"},
{"Leap", "Cheer: Pull Hard!"}
};
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;
}
}
}
If anyone could edit this and make this work and send me a message I would love you forever.






