Maki Posted September 12, 2012 Posted September 12, 2012 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. 2
Brian Posted September 12, 2012 Posted September 12, 2012 I do not use it because there's no one else to chat with on my localhost test server. 5
Akkarin Posted September 12, 2012 Posted September 12, 2012 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
Maki Posted September 12, 2012 Author Posted September 12, 2012 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
Flaid Posted September 12, 2012 Posted September 12, 2012 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; }
Maki Posted September 12, 2012 Author Posted September 12, 2012 (edited) 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 September 12, 2012 by Maki
Brian Posted September 12, 2012 Posted September 12, 2012 slash-commands are client-side and may be harder to implement.
lekkereten Posted September 13, 2012 Posted September 13, 2012 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) ? 1
Maki Posted September 13, 2012 Author Posted September 13, 2012 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 =]
Sneaky Posted September 14, 2012 Posted September 14, 2012 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.
Aleos Posted April 5, 2013 Posted April 5, 2013 There's no need to add anything from this topic. Just update past r17228 and type @join #ally.
Recommended Posts