As sending invites manually is a bit tedious, I’ve been trying to come up with a Python function; the problem is that I don’t know how to get the age info for the avatar’s ages, except for the one it’s in. This is what I have so far:
- Code: Select all
def invitebundle(kinum):
ages = ["Garrison","Teledahn","Kadish","Gira","EderKemo",\
"Ercana","AhnonayCathedral","Ahnonay",\
"Minkata","Jalak","Myst"]
player_ID = PtGetAvatarKeyFromClientID(kinum)
for link in ages:
ageInfo = PtGetAgeInfo() # should take info from 'ages' or
# from the avatar’s folders instead of currentAge
dest = ptAgeLinkStruct()
dest.setAgeInfo(ageInfo)
ptVault().invitePlayerToAge(dest, player_ID)