Hi, I'm PogGeRs.
Here's a gem miner, you need to be near the AlKharid gem mine to start the script.
NOTE: THIS IS ABSOLUTELY SHIT CODE AND I WROTE THIS TO TEST THE API CAPABILITIES - If you use this, you may get banned due to the lack of care when i created the script.
If you don't want the source code and you can't compile shit, attached is the DLL.
Source:
Here's a gem miner, you need to be near the AlKharid gem mine to start the script.
NOTE: THIS IS ABSOLUTELY SHIT CODE AND I WROTE THIS TO TEST THE API CAPABILITIES - If you use this, you may get banned due to the lack of care when i created the script.
If you don't want the source code and you can't compile shit, attached is the DLL.
Source:
Code:
public class PogGems
{
private System.Timers.Timer randomCamTimer;
private bool hasBanked = false;
public PogGems()
{
LocalPlayer.Initialize();
Inventory.Initialize();
Mouse.MaxZoomOut();
}
public void InitTimer()
{
randomCamTimer = new System.Timers.Timer();
randomCamTimer.Elapsed += RandomCamTimer_Elapsed;
randomCamTimer.Interval = new Random().Next(40000, 120000); // in miliseconds
randomCamTimer.Start();
}
private void RandomCamTimer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
{
MoveRandomCamera(); // Move camera, dont be a bot.
}
public void Main()
{
InitTimer(); // Dont be a bot.
while (true)
{
/* While inventory not full, mine shit. */
if (!Inventory.IsFull())
{
var randInterval = new Random().Next(2500, 6000);
Objects.FindObject("Uncommon gem rock").GetNearest().DoAction(MiniMenu.MINE);
Thread.Sleep(randInterval);
}
if (Inventory.IsFull())
{
//Start going to bank.
WalkRoutine();
DepositInventory();
}
}
}
public void WalkRoutine()
{
var randX = new Random().Next(3297, 3300);
var randY = new Random().Next(3292, 3294);
var randX2 = new Random().Next(3308, 3311);
var randY2 = new Random().Next(3274, 3276);
var randX3 = new Random().Next(3328, 3331);
var randY3 = new Random().Next(3274, 3279);
var randX4 = new Random().Next(3338, 3342);
var randY4 = new Random().Next(3270, 3272);
var randX5 = new Random().Next(3358, 3362);
var randY5 = new Random().Next(3272, 3274);
var randX6 = new Random().Next(3379, 3381);
var randY6 = new Random().Next(3269, 3271);
if (!hasBanked)
{
LocalPlayer.WalkTo(randX, randY);
LocalPlayer.WaitPlayerMovement();
//2nd checkpoint
LocalPlayer.WalkTo(randX2, randY2);
LocalPlayer.WaitPlayerMovement();
//3rd checkpoint
LocalPlayer.WalkTo(randX3, randY3);
LocalPlayer.WaitPlayerMovement();
//4th checkpoint
LocalPlayer.WalkTo(randX4, randY4);
LocalPlayer.WaitPlayerMovement();
//5th checkpoint
LocalPlayer.WalkTo(randX5, randY5);
LocalPlayer.WaitPlayerMovement();
//5th checkpoint
LocalPlayer.WalkTo(randX6, randY6);
LocalPlayer.WaitPlayerMovement();
}
else
{
//5th checkpoint
LocalPlayer.WalkTo(randX6, randY6);
LocalPlayer.WaitPlayerMovement();
LocalPlayer.WalkTo(randX5, randY5);
LocalPlayer.WaitPlayerMovement();
//2nd checkpoint
LocalPlayer.WalkTo(randX4, randY4);
LocalPlayer.WaitPlayerMovement();
//3rd checkpoint
LocalPlayer.WalkTo(randX3, randY3);
LocalPlayer.WaitPlayerMovement();
//4th checkpoint
LocalPlayer.WalkTo(randX2, randY2);
LocalPlayer.WaitPlayerMovement();
//5th checkpoint
LocalPlayer.WalkTo(randX, randY);
LocalPlayer.WaitPlayerMovement();
hasBanked = false;
}
}
public void DepositInventory()
{
NPC.FindNpc("Fadli").GetNearest().DoAction(MiniMenu.BANK);
Thread.Sleep(new Random().Next(2000, 4000));
while (Bank.IsOpen())
{
Bank.Click(BankButtons.deposit_inventory);
Thread.Sleep((new Random()).Next(1236, 2000));
Bank.Click(BankButtons.close);
hasBanked = true;
}
//Walk back to mine
WalkRoutine();
}
public void MoveRandomCamera()
{
int num = 0;
if ((new Random()).Next(18, 22) <= num)
{
num++;
return;
}
num = 0;
int num1 = (new Random()).Next(0, 2);
int num2 = (new Random()).Next(0, 2);
if (num1 == 0)
{
Keyboard.DispatchKey(Keys.Left);
if (num2 == 0)
{
Keyboard.DispatchKey(Keys.Down);
return;
}
Keyboard.DispatchKey(Keys.Up);
return;
}
if (num1 != 1)
{
return;
}
Keyboard.DispatchKey(Keys.Right);
if (num2 == 0)
{
Keyboard.DispatchKey(Keys.Down);
return;
}
Keyboard.DispatchKey(Keys.Up);
}
}