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

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Profession Buddy using Lists

Yverac

New Member
Joined
Jan 3, 2012
Messages
2
Hello!

I have just started using PB to make profiles to do the random boring shit that needs to be done but I am not the best programmer/had very little programming experience.

At the moment I have a while condition that goes like this:
Code:
While (MailCount > 0 || HasNewMail == true || InbagCount(52983) > 4 || InbagCount(52984) > 4 || InbagCount(52985) > 4 || InbagCount(52986) > 4 || InbagCount(52987) > 4 || InbagCount(52988) > 4)

I would like to change that to be less messy and have it something like:
Code:
MailCount > 0 || HasNewMail == true || InbagCount(var1) > 4

Where var1 is a list of ID's. I have made all my profiles from reading and under standing the other profiles already included with PB but I am not sure how it is meant to be done.

My var1 list is declared this way:
Code:
CustomAction:(var1 = new List<uint>{52983, 52984, 52985, 52986, 52987, 52988};)

Is this possible or am I just coding this wrong?

Thanks for the help in advanced. :D

Edit1: Also is there a list of Profession Buddy commands? The help that is already there is pretty in depth but does not display all the possible commands.
 
Last edited:
To achieve something like that, you're gonna have to make a new method in a declaration action which will go through the list.
I also recommend using declaration for your list, so you can name it something else than var1 (plus you don't need to do typecasting).
But to make such a method, you'll need to do a little C# programming. If you need help, let me know.

And to Tony:
ProfessionBuddy really needs it's own subforum. With the 1 thread that exists atm, it's impossible to have discussions and help people who needs this kind of help. It gets too messy to find the responses to a specific question etc. There's so many questions going on with PB and it's just a big mess in that thread. So new PB subforum pretty please? :) I could even help moderate it if needed - I'm pretty active in the PB thread and various posts over the forums anyway.
 
Thanks for the help Inrego :)

Ill take your advice and use google to achieve what you have told me!

Sorry Tony. Didn't know where to put this as there was no PB forum. I didn't think of posting it in the PB thread.
 
Back
Top