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

[Request] List on PB

lexase

New Member
Joined
Feb 8, 2011
Messages
68
Reaction score
0
I need your Help, let me explain i need this :

Check every X min if i have Y Amount of Z Item on my Bags Else Whitdraw fro Gbank N Amount of Z item.

Y => Amount of Item in Bag
Z => Itemid
N => Amount of Item to Whidraw

I want to implement that to a List of items, Item1,Item2,Item3,Item4,Item5 .....

Thank you Alot !!!
 
Use a While InbagCount(Z) <= Y

And then add a withdraw N x Z from gbank.
 
I want to give a List of Item ID to this function an Array if you want :)
 
This is quite unspeicified as I don't know what you will be doing, or if this is even a smart solution. How long are the itemId lists?
Code:
<Declaration Code="uint[] itemIds;" />

private bool needStock(uint[] inputIds)
}
 foreach(inputId in InputIds)
   {
    If(InbagCount(inputId) != Y)
          return true;
    return false;
    }
}

private uint needThisItem(uint[] inputIds)
{
 foreach(inputId in InputIds)
   {
    If(InbagCount(inputId) != Y)
          return inputId;
    return 0;
    }
}

And then something like:
Code:
while(running)
     While(needStock(itemList))
          Withdraw(needThisItem(itemList)
          Wait(50000, !needStock(itemList))

It's late hour for me so don't know if this works for you or at all. Give it a go, or just look at it for inspiration.
 
this is my itemid list 52212,52207,52206,52235,52242,52244,52246,52221,52210,52213,52217,52220,52203,52234,52236,52238,52243,52248,52222,68358,68356,52249,52240,42239,52229,52224,68357,52204,52205,52208,52209,52211,52214,52215,52237,52223,52225,52228,52218,52250,68741,52231,52245,52233
 
Describe what is happening in your profile. Are you farming mats? Are you crafting stuff? Where are you? details....
 
Back
Top