What is the method to call guild storage gold amount?
inventory gold is already in get_character_data()
storage gold ?
guild storage gold?
The inventory functions have a “gold” field.
Aha i got it. thanks.
last question how i know if the char is the master of the guild or not via plugin from get_guild()
cuz i need to do action with the master guild only not via all members.
The next version will have a ‘master’ field only if the player is the master of the guild.
i did this, under testing:
def CheckMaster(): #4294967295
authority = 0
thisName = get_character_data()['name']
members = get_guild()
if members:
for key, member in members.items():
if member['name'] == thisName:
authority = member['authority']
if authority == 4294967295:
return True
return False
That’s just -1
which is indeed master status.
after test and parse of many authority, i think its for guild member max is 31.
so if i do
if authority > 31:
will work too. but as i see this number 4294967295 is static for guild master authority (at least for vsro)