Sending multiple invites

General debates and discussion about the Guild of Writers and Age creation

Sending multiple invites

Postby Korovev » Thu Oct 04, 2018 5:22 am

On MOULa I’ve kept the avatar I’ve used to make the Italian hood; I’d like to send invites to this avatar’s ages, so as to have a sort of hood instance of e.g. Teledahn (something like the Public Age Project, but limited to the hood).
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)
Deep Island #194197, MOULa #46116, Gehn #137074, Minkata #132812.
Gahreesenomee biv keneet pishoeet b’set!
My macOS wrappers, Fan Age Expeditions, tools and other stuff.
User avatar
Korovev
 
Posts: 317
Joined: Sun Jan 27, 2013 5:18 am
Location: Europe

Re: Sending multiple invites

Postby Deledrius » Thu Oct 04, 2018 8:22 am

I think you may want to try ptVault().getAgesIOwnFolder(). Flip through those, check if the Age name is in your list of valid names, and if so, fire off the invite? That sounds like it might work.
User avatar
Deledrius
Gehn Shard Admin
 
Posts: 1377
Joined: Mon Oct 01, 2007 1:21 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 0 guests

cron