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 .

With most things i managed to do well just have problem with getting items from warehouse.

public bool MoveItemFromWh( string name)

Wont work, do i have to add anything before or after?

Checked like all pluggings and nowhere i found Warehouse functions.
Could someone post part of working warehouse code?


Thanks for help in advance.
 
You might want to provide a little more information or even a snippet of the code you're using for this.
It would allow for a lot more understanding.

A basic example of the function:

Code:
// With a string
MoveItemFromWh("Gilda Star");

// With item id
uint _itemid = 23633; // Gilda Star Item ID
MoveItemFromWh(_itemid);

// Using the functions return
bool retrieved = MoveItemFromWh("Gilda Star");
if(retrieved == true)
{Log("We got our Gilda Star!");}
else
{Log("We didn't get our Gilda Star! :(");}
 
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