V2.57
This commit is contained in:
parent
cd3a0d5cf5
commit
2515966e3d
2
Form1.cs
2
Form1.cs
|
@ -42,7 +42,7 @@ namespace app
|
|||
public partial class Form1 : Form
|
||||
{
|
||||
|
||||
public string BotVersion = "V2.56";
|
||||
public string BotVersion = "V2.57";
|
||||
|
||||
public string D2_LOD_113C_Path = "";
|
||||
|
||||
|
|
|
@ -195,11 +195,13 @@ namespace app
|
|||
Form1_0.SetGameStatus("TOWN-SHOP-SELL ITEMS");
|
||||
for (int i = 0; i < 40; i++)
|
||||
{
|
||||
if (CharConfig.InventoryDontCheckItem[i] == 1) continue;
|
||||
if (Form1_0.InventoryStruc_0.InventoryHasItem[i] == 0) continue;
|
||||
if (ShopForTomeOfPortal && Form1_0.InventoryStruc_0.InventoryItemNames[i] == "Wirt's Leg") continue;
|
||||
|
||||
if (CharConfig.InventoryDontCheckItem[i] == 0
|
||||
&& Form1_0.InventoryStruc_0.InventoryHasItem[i] >= 1
|
||||
&& Form1_0.InventoryStruc_0.InventoryHasStashItem[i] == 0
|
||||
//Console.WriteLine("HasStashItem:" + Form1_0.InventoryStruc_0.InventoryHasStashItem[i] + ", HasUnidItem:" + Form1_0.InventoryStruc_0.InventoryHasUnidItem[i]);
|
||||
|
||||
if (Form1_0.InventoryStruc_0.InventoryHasStashItem[i] == 0
|
||||
&& Form1_0.InventoryStruc_0.InventoryHasUnidItem[i] == 0)
|
||||
{
|
||||
Dictionary<string, int> itemScreenPos = Form1_0.InventoryStruc_0.ConvertIndexToXY(i);
|
||||
|
|
|
@ -104,6 +104,7 @@ namespace app
|
|||
//if its not a key at the key location, relocate the item
|
||||
if (InventoryItemNames[thisindex] != "Key")
|
||||
{
|
||||
//Console.WriteLine("here");
|
||||
int ThisNewIndex = GetNextFreeSpaceInInventory();
|
||||
|
||||
if (ThisNewIndex > -1)
|
||||
|
@ -130,6 +131,7 @@ namespace app
|
|||
{
|
||||
if (CharConfig.InventoryDontCheckItem[i] == 0 && InventoryHasItem[i] >= 1 && InventoryItemNames[i] == "Key")
|
||||
{
|
||||
//Console.WriteLine("hereIndex:" + i);
|
||||
//pick key item from this slot
|
||||
Dictionary<string, int> itemScreenPos = Form1_0.InventoryStruc_0.ConvertIndexToXY(i);
|
||||
itemScreenPos = Form1_0.InventoryStruc_0.ConvertInventoryLocToScreenPos(itemScreenPos["x"], itemScreenPos["y"]);
|
||||
|
@ -279,7 +281,13 @@ namespace app
|
|||
{
|
||||
int FullIndex = ConvertXYToIndex(Form1_0.ItemsStruc_0.itemx, Form1_0.ItemsStruc_0.itemy);
|
||||
|
||||
if (CharConfig.InventoryDontCheckItem[FullIndex] == 1) return;
|
||||
if (CharConfig.InventoryDontCheckItem[FullIndex] == 1
|
||||
&& Form1_0.ItemsStruc_0.ItemNAAME != "Key"
|
||||
&& Form1_0.ItemsStruc_0.ItemNAAME != "Tome of Town Portal"
|
||||
&& Form1_0.ItemsStruc_0.ItemNAAME != "Tome of Identify")
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
InventoryHasItem[FullIndex] = 1;
|
||||
InventoryItemPointers[FullIndex] = Form1_0.ItemsStruc_0.ItemPointerLocation;
|
||||
|
@ -342,7 +350,7 @@ namespace app
|
|||
{
|
||||
for (int i = 0; i < 40; i++)
|
||||
{
|
||||
if (CharConfig.InventoryDontCheckItem[i] == 0 && InventoryHasItem[i] >= 1)
|
||||
if (InventoryHasItem[i] >= 1)
|
||||
{
|
||||
if (InventoryItemNames[i] == ItemmN)
|
||||
{
|
||||
|
|
|
@ -60,7 +60,7 @@ namespace app
|
|||
string ItemName = Form1_0.ItemsStruc_0.ItemNAAME.Replace(" ", "");
|
||||
foreach (var ThisDir in PickItemsRunesKeyGems)
|
||||
{
|
||||
if (ItemName == ThisDir.Key && ThisDir.Value)
|
||||
if (ItemName == ThisDir.Key.Replace(" ", "") && ThisDir.Value)
|
||||
{
|
||||
if (Form1_0.ItemsStruc_0.ItemNAAME.Contains("Chipped") || Form1_0.ItemsStruc_0.ItemNAAME.Contains("Flawed")
|
||||
|| Form1_0.ItemsStruc_0.ItemNAAME == "Topaz"
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue