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

Is this somewhere in the API?

Karls

New Member
Joined
Apr 11, 2014
Messages
324
Reaction score
2
Territory/BackpackPrices Questions

I didn't find it, so hoping I just didn't look hard enough. If not, for Out, is it something ArcheBuddy could get in the future?

- Getting the trade route values (70-130%) from the vocation menu
- Getting the war/peace/conflict status of a zone (with the time left if at war/peace)
 
Last edited:
Getting the war/peace/conflict status of a zone (with the time left if at war/peace)
currentTerritoryState() . Or getCurrentTerritory().state
Getting the trade route values (70-130%) from the vocation menu
Returns price in percent for all backpack in location:
List<BackpackInfo> backpacksPercentPrice(ushort zoneIdFrom, ushort zoneIdTo)
List<BackpackInfo> backpacksPercentPrice(string zoneNameFrom, string zoneNameTo)

zoneIdFrom -zone where you craft backpack
zoneIdTo - zone where you sell backpack

BackpackInfo.percentPrice - Trade pack price in percents
BackpackInfo.item - Pack information from database. (SqlItem)
 
Territory info works fine, thanks for that.

But having some issues with backpack prices (start & end being Territory objects for 2 different zones)

Code:
List<BackpackInfo> prices = backpacksPercentPrice(start.name, end.name);

I also tried with displayName and id members instead of name (with a cast from int to ushort for id), but all 3 give me a "Object isn't defined" error. Any tips to make it work?
 
in the test, start.displayName was Gweonid Forest and end.displayName was Marianople
 
in the test, start.displayName was Gweonid Forest and end.displayName was Marianople
Update AB again, and try please.
 
Update AB again, and try please.

Works great now, thanks Out.

Edit: and since title in thread list didn't change, I'll use the same thread for my next question: Is there any way to detect if the client is still loading?
 
Is there any way to detect if the client is still loading?
No.
You can try use gameState, but its not changes after you teleport somewhere.
 
Works great now, thanks Out.

Mind posting simple example that returns to Log %'s for Gweonid Forest -> Marianople packs? Mine backpacksPercentPrice keep saying need (string, bool) :/
 
Code:
var li = backpacksPercentPrice("Gweonid Forest",Marianople);
foreach (var l in li)
{
  Log(l.item.name + " = " +l.percentPrice + "%");
}
 
Back
Top