Jump to content
Maki

Alliance Chat

Recommended Posts

It's come to my attention (mainly because I forgot all about this) that alliance chat is not by default added into rAthena/eAthena; even though every server I've seen or heard of uses this system.

I think we should add it to rAthena.

  • Upvote 2
Link to comment
Share on other sites

I do not use it because there's no one else to chat with on my localhost test server. :(

You sir, deserve a rep.

On-topic though, is alliance chat between guilds that are allied? >_> I know this is gonna look like the biggest noob question ever, but I've never heard of it, nor been on a server that uses similar. Just wanted to ask to clarify :P

Link to comment
Share on other sites

Yes, on any decent-sized server (or a server where WoE is popular) they way they use it is as follows:

  • Type "alliance" in pm window
  • sends message to anyone in alliance (up to 3 guilds or whatever your server is set at)
  • Allied guild member responses are shown as: "[Guildname] user : message"
  • Guild member responses are shown as default

Link to comment
Share on other sites

  	 if(!strcmp(target,"Alliance"))
	{
		struct guild *g, *g_;
		char out[256];
		int j, len;
		if( !sd->status.guild_id || (g=guild_search(sd->status.guild_id))==NULL ) {
			sprintf(out,"You have to be in a guild to talk with possible Alliances!");
			clif_disp_onlyself(sd,out,strlen(out));
			return;
		}

		sprintf(out, "[%s] %s : %s", g->name, sd->status.name, message);
		len = strlen(out);
		for(i=0;i<MAX_GUILDALLIANCE;i++) {
			if(g->alliance[i].guild_id != 0 && g->alliance[i].opposition == 0) {
				g_ = guild_search(g->alliance[i].guild_id);
				if(g_==NULL) continue;
				for(j = 0; j < g_->max_member; j++) {
					if(g_->member[j].sd != NULL)
						clif_disp_onlyself(g_->member[j].sd,out,len);
				}
			}
		}
		guild_send_message(sd,out,len+1);
		return;
	}

Link to comment
Share on other sites

Wouldn't it be easier to use like /a or @a to talk in alliance instead of typing alliance in PM box? I personally hate typing/removing alliance from the window just to talk to allianced guilds (although the feature is so useful forcing me to do it).

Commands:

/a

/ally

/alliance

@a

@ally

@alliance

Edit: As Flaid brought up the point that using commands is annoying for non-english keyboards we can make it a conf setting. You could set your own @command or allowing "alliance" to be typed in PM box (or all of the above).

Edited by Maki
Link to comment
Share on other sites

Can it be implemented a new symbol?

Something like

&my message
IMO it looks better than
@command my message

And since you brought in this subject, what about an option to whether or not view guild hp members (+ ally --optional as well) ?

  • Upvote 1
Link to comment
Share on other sites

I didn't even know we could use different commands like &; that'd be awesome as well (and much easier); making your second suggestion an option in conf would be great =]

Link to comment
Share on other sites

  	 if(!strcmp(target,"Alliance"))
	{
		struct guild *g, *g_;
		char out[256];
		int j, len;
		if( !sd->status.guild_id || (g=guild_search(sd->status.guild_id))==NULL ) {
			sprintf(out,"You have to be in a guild to talk with possible Alliances!");
			clif_disp_onlyself(sd,out,strlen(out));
			return;
		}

		sprintf(out, "[%s] %s : %s", g->name, sd->status.name, message);
		len = strlen(out);
		for(i=0;i<MAX_GUILDALLIANCE;i++) {
			if(g->alliance[i].guild_id != 0 && g->alliance[i].opposition == 0) {
				g_ = guild_search(g->alliance[i].guild_id);
				if(g_==NULL) continue;
				for(j = 0; j < g_->max_member; j++) {
					if(g_->member[j].sd != NULL)
						clif_disp_onlyself(g_->member[j].sd,out,len);
				}
			}
		}
		guild_send_message(sd,out,len+1);
		return;
	}

xilero's code...xd

Can it be implemented a new symbol?

Something like

&my message
IMO it looks better than
@command my message

And since you brought in this subject, what about an option to whether or not view guild hp members (+ ally --optional as well) ?

I like the &my message idea. Even though I don't think it's really necessary to add this since it's really up to them (server owners) to customize it the way they want it to work.

Link to comment
Share on other sites



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.