What's new
  • Visit Rebornbuddy
  • Visit Resources
  • Visit API Documentation
  • Visit Downloads
  • Visit Portal
  • Visit Panda Profiles
  • Visit LLamamMagic

Character cleaner pluggin.

edwinlodz

Member
Joined
Jan 28, 2015
Messages
90
Reaction score
1
Hello i am trying to make Pluggin that will :

1)Teleport .
2)Use warehouse to get items.
3)Craft 58 gilda stars .
4)Move to mail .

Unfortunately i am just starting C# Journey if anyone could take a look at it and help me connect the parts and finish it. Thanks in advance :)

That is what i collected still i cannot connect it right most parts works separately unfortunately i am still C# noob.

using System;
using System.Drawing;
using System.Windows.Forms;
using System.Threading;
using System.Collections.Generic;
using System.Linq;
using ArcheBuddy.Bot.Classes;


namespace DefaultNameSpace{
public class DefaultClass : Core
{
private Gps gps;
bool SprintActivated = false;
public static string GetPluginAuthor()
{
return "Clean";
}

public static string GetPluginVersion()
{
return "0.2";
}

public static string GetPluginDescription()
{
return "Clean";
}

//Call on plugin start
//1.TELEPORT
public void PluginRun()
{
if( HaveHereafterstones() == true)
{
UsePortalBook() ;
Thread.Sleep(5000);
return;
}
}

public void UsePortalBook()
{
foreach (var port in me.portalBook.getDistricts())
{
if (port.name == "Widesleeves")
{
port.OpenPortal();
Thread.Sleep(1000);
while (me.isCasting || me.isGlobalCooldown)
Thread.Sleep(100);
Thread.Sleep(2500);
UsePortal(getMyPortal());
break;
}
}
}

public Creature getMyPortal()
{
foreach (var creat in getCreatures())
{
if (creat.db.id == 3891 && creat.ownerUniqId == me.uniqId)
return creat;
}
return null;
}
public bool HaveHereafterstones()
{
List<Item> inventory = getAllInvItems() ;
foreach(Item myitem in inventory)
{
if( myitem.name == "Hereafter Stone")
{
return true;
}
}
return false;
}
//2.MOVING to warehouse
{
Gps gps = new Gps(this);
gps.LoadDataBase(Application.StartupPath + "\\plugins\\Clean\\path.db3");
while (gps.GpsMove("WH"))
Thread.Sleep(10220);
}
//3.WAREHOUSE
{
uint _itemid = 23633;
MoveItemFromWh(_itemid);
}
//4.MOVING to craft
{
Gps gps = new Gps(this);
gps.LoadDataBase(Application.StartupPath + "\\plugins\\Clean\\path.db3");
while (gps.GpsMove("Craft"))
Thread.Sleep(10220);
}
//5.Crafting 58 Gilda Star


//Call on plugin stop
public void PluginStop()
{
}
}
}
}
 
Back
Top