Jump to content
  • 0

How to edit Guild that allows only 1 Class per Guild


VhayneRO

Question


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  41
  • Reputation:   0
  • Joined:  02/12/12
  • Last Seen:  

How to edit Guild that allows only 1 Class per Guild

for example, in a guild i only want to have 10 members so ive already done that on mmo.h

and now i want it to be 1 class per guild, for example, only 1 Champion is able to join the guild etc etc

Is this possible at all?

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  69
  • Reputation:   10
  • Joined:  05/14/12
  • Last Seen:  

You could just invite people by yourself and make sure they aren't the same classes. I don't think it is possible, but you'll have to wait for someone who knows more about DB editing and such to find out.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  224
  • Reputation:   22
  • Joined:  03/23/12
  • Last Seen:  

You could just invite people by yourself and make sure they aren't the same classes. I don't think it is possible, but you'll have to wait for someone who knows more about DB editing and such to find out.

Nothing to do with DB, sourcemod instead.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  113
  • Reputation:   5
  • Joined:  06/06/12
  • Last Seen:  

Its kinda a lot of work, modification of guild is inside guild.c under src->map folder.

just to give you idea, In a sense, It could be done inside int guild_invite() , where loop each of your current member, get their sd->status.class_ , create an array of classes, then loop through each of that classes along with the sd->status.class_ of your guild, if they exist, return a message that you cant invite same class or class already exist, else continue inviting.

Edited by en_dev
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  41
  • Reputation:   0
  • Joined:  02/12/12
  • Last Seen:  

Can anybody give a guide for me and also for those who are planning to use this, just incase .

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...