Jump to content

Alliance Chat


Maki

Recommended Posts


  • Group:  Members
  • Topic Count:  146
  • Topics Per Day:  0.03
  • Content Count:  1195
  • Reputation:   467
  • Joined:  11/15/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

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

  • Upvote 5
Link to comment
Share on other sites


  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3123
  • Reputation:   1617
  • Joined:  03/26/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  146
  • Topics Per Day:  0.03
  • Content Count:  1195
  • Reputation:   467
  • Joined:  11/15/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  398
  • Reputation:   140
  • Joined:  01/04/12
  • Last Seen:  

  	 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


  • Group:  Members
  • Topic Count:  146
  • Topics Per Day:  0.03
  • Content Count:  1195
  • Reputation:   467
  • Joined:  11/15/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

slash-commands are client-side and may be harder to implement.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  148
  • Reputation:   46
  • Joined:  11/02/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  146
  • Topics Per Day:  0.03
  • Content Count:  1195
  • Reputation:   467
  • Joined:  11/15/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  392
  • Reputation:   47
  • Joined:  11/18/11
  • Last Seen:  

  	 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

  • 6 months later...

  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  144
  • Reputation:   4
  • Joined:  10/28/12
  • Last Seen:  

@spyra where do I add the script up??

Link to comment
Share on other sites


  • Group:  Development Manager
  • Topic Count:  56
  • Topics Per Day:  0.01
  • Content Count:  732
  • Reputation:   525
  • Joined:  12/13/11
  • Last Seen:  

There's no need to add anything from this topic. Just update past r17228 and type @join #ally.

Link to comment
Share on other sites

×
×
  • Create New...