Skip to content

Guild Position Functions

Jesusalva Jesusalva requested to merge jesusalva/guildpos into master

Add a function to retrieve EXP tax for a certain guild role, and another function to retrieve the role title. (I think the role title function may be used more times, as it makes prettier scripts).

Depends on !16 (merged)

Note: Probably would look better as a single function. I wonder if I should add a way to retrieve the permissions (can invite/can kick) for the position, I think we'll end up using bytemask for custom permissions (eg. $GUILDPERM_STORAGE[guild_id]=2**0+2**6 → Guild Master and Position 7 have authorization to use guild storage, for example) so it doesn't seems needed nor particularly useful (but there's no reason to not add it if we make this a single function).

Note 2: There's one last MR related to guilds to push; But that one is only required if nobody updates ManaPlus to use the guild API - It's a script workaround to edit a guild role (redefining the permissions, the EXP tax and the title name).

Edited by Jesusalva Jesusalva

Merge request reports