Jump to content

Recommended Posts

Posted (edited)

Actually as follow up of my Pull: 86 and some idea from rAthena Guild Conf Request


Config Updates:

  • Changes 'emblem_woe_change' to 'disable_change_emblem' & added some options
  • Added 'create_guild' to enable/disable guild creation by player.
  • Added 'break_guild' to enable/disable break a guild by player.
  • Added 'disable_invite' to enable/disable guild invitation by player.
  • Added 'disable_expel' to enable/disable guild expulsion by player.

Script Command Updates

  • Added 'guild_info' to retrieve specified guild information from a given guild (name or ID). The available info by type are:
    Get guild information by given 'type':
    	GINFO_NAMEID 	:If guild_id used, returns "guild name" or "" if not found.
    					 If "guild name" used, returns guild_id or -1 if not found
    	GINFO_LEVEL  	: Guild level
    	GINFO_ONLINE 	: Connected member
    	GINFO_MAX    	: Max members
    	GINFO_AVERAGE	: Average member level
    	GINFO_ALLY   	: Allies number, also returns
    					  .@ginfo_ally_id[]      Ally Guild IDs
    					  .@ginfo_ally_name$[]   Ally Guild Names
    	GINFO_ENEMY  	: Enemy number, also returns
    					  .@ginfo_enemy_id[]     Enemy Guild ID
    					  .@ginfo_enemy_name$[]  Enemy Guild Name
    	GINFO_CASTLE 	: Castles, also returns
    					  .@ginfo_castle_id[]    Castle ID
    					  .@ginfo_castle_name$[] Castle Name
  • Added 'guild_create' to create a new guild. (Ignore 'create_guild' config value)
  • Added 'guild_addmember' to add new member to a guild. (Ignore 'disable_invite' config value)
  • Added 'guild_delmember' to remove/kick/expel a guild member from a guild. (Ignore 'guild_expel' config value)
  • Added 'guild_changegm' to change guild master from a guild.
  • Added 'guild_break' to break a guild. Like @breakguild or /breakguild, guild must be empty first. (Ignore 'break_guild' config value)

Download:

Git Hash: 870273e : script_guild-rA-870273e4.diff

Edited by Cydh
  • Upvote 5
  • 3 months later...
Posted

Is it possible to add this kind of system?

// Guild Classified = yes/no
// If Set to 1/Yes it will activate this system.
// If Guild Leader is Transcendent Class it will check everytime a guild leader/member invite someone on a guild
// example : Player A (Trans) Invite > Player B 3rd Class it will display [ Player B is not allowed to enter a Transcendent Guild. ]
// another example : Player A (Third Job) Invite > Player B Transcendent Class it will display [ Player B is not allowed to enter a Transcendent Guild. ]
// Default : no
guild_classified: no
Posted

 

paid request? /gg

 

I pm'ed you about that.

 

 

@offtopic on your signature what's the meaning of that? build failing?

 

it's success now. /heh rAthena Build Status in TravisCI

Posted

 

 

paid request? /gg

 

I pm'ed you about that.

 

 

@offtopic on your signature what's the meaning of that? build failing?

 

it's success now. /heh rAthena Build Status in TravisCI

 

 

Nice. is it done?

Posted

@Cydh I am having warnings while compiling..

clif.c: In function ‘clif_sub_guild_invite’:
clif.c:12784: warning: ‘return’ with no value, in function returning non-void
        CC      date.c
        CC      duel.c
        CC      elemental.c
        CC      guild.c
guild.c: In function ‘guild_created’:
guild.c:377: warning: ‘return’ with a value, in function returning void
guild.c: In function ‘guild_invite’:
guild.c:556: warning: ‘return’ with a value, in function returning void

Related to this

clif.c: In function ‘clif_sub_guild_invite’:
clif.c:12784: warning: ‘return’ with no value, in function returning non-void 

what I did was I change this

		return 0;

into this

		return 1;

then about this one

guild.c: In function ‘guild_created’:
guild.c:377: warning: ‘return’ with a value, in function returning void

i change this line

		return 0;

into this

		return;

and then this one

guild.c: In function ‘guild_invite’:
guild.c:556: warning: ‘return’ with a value, in function returning void

I changed this

		return 0;

into this

		return;

Please tell me if I changed it wrong...

  • 10 months later...
Posted (edited)

So many errors. I cannot deal they.   :(. There are any other new version or anything that I can put at an script that put someone inside a guild?

jYJw8cw.png

Edited by SyncMaster
Posted

So many errors. I cannot deal they.   :(. There are any other new version or anything that I can put at an script that put someone inside a guild?

jYJw8cw.png

I can try update this mod for recent rAthena.

  • Upvote 1
Posted (edited)

I can try update this mod for recent rAthena.

 

It will make my life way more easy. If you intend do that, please, tell me.

Edited by SyncMaster
Posted

 

I can try update this mod for recent rAthena.

 

It will make my life way more easy. If you intend do that, please, tell me.

 

There the updated file on first post

  • Upvote 1
  • 6 months later...
Posted

Actually as follow up of my Pull: 86 and some idea from rAthena Guild Conf Request

Config Updates:

  • Changes 'emblem_woe_change' to 'disable_change_emblem' & added some options
  • Added 'create_guild' to enable/disable guild creation by player.
  • Added 'break_guild' to enable/disable break a guild by player.
  • Added 'disable_invite' to enable/disable guild invitation by player.
  • Added 'disable_expel' to enable/disable guild expulsion by player.

Script Command Updates

  • Added 'guild_info' to retrieve specified guild information from a given guild (name or ID). The available info by type are:
    • 0: If guild_id used, returns "guild name" or "" if not found. If "guild name" used, returns guild_id or -1 if not found
    • 1: Returns a guild level
    • 2: Returns a number of connected members
    • 3: Returns a number of max members
    • 4: Returns a number of average member level
    • 5: Returns a number of allies number. Also $@guildallies_id[] & $@guildallies_name$[] array for Ally IDs & Names
    • 6: Returns a number of enemy number. Also $@guildenemies_id[] & $@guildenemies_name$[] array for Enemy IDs & Names
    • 7: Returns a number of castles owned. Also $@guildcastles_id[] & $@guildcastles_name$[] array for Castle IDs & Names
  • Added 'guild_create' to create a new guild. (Ignore 'create_guild' config value)
  • Added 'guild_addmember' to add new member to a guild. (Ignore 'disable_invite' config value)
  • Added 'guild_delmember' to remove/kick/expel a guild member from a guild. (Ignore 'guild_expel' config value)
  • Added 'guild_changegm' to change guild master from a guild.
  • Added 'guild_break' to break a guild. Like @breakguild or /breakguild, guild must be empty first. (Ignore 'break_guild' config value)

Download:

8c360c9a875496630e56a54ef0e565cbab6b1380attachicon.gifscript_guild-rA-20151117-8c360c.diff

Cydh?

 

On this part :

// Allow to create a new guild (bitmask)
// 0: Disable
// 1: Enable via client
// 2: Enable via atcommand
create_guild: 2

I can still use /guild even tho i set it for 2 there is no error while compiling. maybe update for the recent rA?

  • 2 months later...
Posted

@Radian, try again. Updated for 4e137d30

 

Changes on guild_info

On newer diff, type for guild_info now using constants, and THE VARIABLES to store Allies, Enemies, and Castles are changed!

  • Upvote 2
  • 5 months later...
  • 2 months later...

Join the conversation

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

Guest
Reply to this topic...

×   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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...