LordManzana
New Member
- Joined
- May 2, 2015
- Messages
- 207
- Reaction score
- 0
I maded a simple open world gather because one user wanted it on my plugin post (see my signature for more info).
So, here it goes:
[HIDE]
[/HIDE]
Let me know if give you some problem/bug/crash.
Thank you!
So, here it goes:
[HIDE]
Code:
using System;
using System.Drawing;
using System.Threading;
using System.Collections.Generic;
using System.Linq;
using ArcheBuddy.Bot.Classes;
namespace Gather4Free
{
/*
* That Plugin is being under the Creative Commons BY-NC-SA v4.0
* More information about licence here: https://creativecommons.org/licenses/by-nc-sa/4.0/
*/
public class Gather4Free : Core
{
//Edit variables
bool chopTrees = false;
int radiusArea = 200; //in meters
//Don't edit any between here
public static string GetPluginAuthor()
{
return "LordManzana";
}
public static string GetPluginVersion()
{
return "1.0.0.2";
}
public static string GetPluginDescription()
{
return "Awesome Gather4Free";
}
public void PluginStop()
{
Log("Awesome Gather4Free closed");
}
public void PluginRun()
{
RoundZone gZone = new RoundZone(me.X, me.Y, radiusArea);
DoodadObject dood;
Skill skill;
List<DoodadObject> doodList = getDoodads();
if (doodList.Count() > 0)
{
foreach (var obj in doodList)
{
dood = obj;
var skills = dood.getUseSkills();
skill = skills[0];
if (skill != null)
{
if ((skill.name.Contains("Chop") && chopTrees) || !skill.name.Contains("Chop"))
{
CollectItemsInZone(dood.name, skill.id, gZone);
}
}
Thread.Sleep(50);
}
}
}
}
}
Let me know if give you some problem/bug/crash.
Thank you!






