7 years ago
Getting loot script
I am trying to fix a script I used and it is missing loot data from base or camp.
Currently, it sets the camp/base object using coordinate:
var CampBase = world.GetObjectFromPosition(scanX, scanY);
I want to check the loot from that campBase and not sure what API statement to use
Alternatively I can use this API to check the loot:
var loot = ClientLib.API.Battleground.GetInstance().GetLootFromCurrentCity();
But I don't know how to set the CurrentCity instance to the selected CampBase
Any help is appreciated.
Currently, it sets the camp/base object using coordinate:
var CampBase = world.GetObjectFromPosition(scanX, scanY);
I want to check the loot from that campBase and not sure what API statement to use
Alternatively I can use this API to check the loot:
var loot = ClientLib.API.Battleground.GetInstance().GetLootFromCurrentCity();
But I don't know how to set the CurrentCity instance to the selected CampBase
Any help is appreciated.