-Follow up r17284
-- add makefile for cmake and visual studio -- move some hardcoded into msg_conf git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@17285 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
6967a84171
commit
ccb0dc1603
@ -1491,6 +1491,15 @@
|
|||||||
1466: For '%s' you need the amount of seconds (from 0 to 10)
|
1466: For '%s' you need the amount of seconds (from 0 to 10)
|
||||||
1467: -- %s unbanall <channel name>
|
1467: -- %s unbanall <channel name>
|
||||||
1468: - unbans everyone from <channel name>
|
1468: - unbans everyone from <channel name>
|
||||||
|
1469: * %s delete <channel_name>
|
||||||
|
1470: -- Force people leave and destroy the specified channel
|
||||||
|
1471: * %s list mine
|
||||||
|
1472: -- List all your joined channel
|
||||||
|
1473: * %s join <channel_name> <channel_password>
|
||||||
|
1474: -- join specified channel
|
||||||
|
1475: ---- Joined Channels ----
|
||||||
|
1476: You have not joined any channel yet
|
||||||
|
1477: Channel %s deleted
|
||||||
|
|
||||||
//Custom translations
|
//Custom translations
|
||||||
//import: conf/msg_conf/import/map_msg_eng_conf.txt
|
//import: conf/msg_conf/import/map_msg_eng_conf.txt
|
||||||
|
@ -8793,18 +8793,18 @@ static inline void atcmd_channel_help(struct map_session_data *sd, const char *c
|
|||||||
|
|
||||||
//option delete
|
//option delete
|
||||||
if(can_delete){
|
if(can_delete){
|
||||||
sprintf(atcmd_output, "* %s delete <channel_name>",command);// * %s delete <channel_name>
|
sprintf(atcmd_output, msg_txt(sd,1469),command);// * %s delete <channel_name>
|
||||||
clif_displaymessage(fd, atcmd_output);
|
clif_displaymessage(fd, atcmd_output);
|
||||||
clif_displaymessage(fd, "Force people leave and destroy the specified channel");
|
clif_displaymessage(fd, msg_txt(sd,1470)); // -- Force people leave and destroy the specified channel
|
||||||
}
|
}
|
||||||
|
|
||||||
//option list
|
//option list
|
||||||
sprintf(atcmd_output, msg_txt(sd,1417),command);// * %s list
|
sprintf(atcmd_output, msg_txt(sd,1417),command);// * %s list
|
||||||
clif_displaymessage(fd, atcmd_output);
|
clif_displaymessage(fd, atcmd_output);
|
||||||
clif_displaymessage(fd, msg_txt(sd,1418));// -- Lists all public channels.
|
clif_displaymessage(fd, msg_txt(sd,1418));// -- Lists all public channels.
|
||||||
sprintf(atcmd_output, "* %s list mine",command);// * %s list mine
|
sprintf(atcmd_output, msg_txt(sd,1471),command);// * %s list mine
|
||||||
clif_displaymessage(fd, atcmd_output);
|
clif_displaymessage(fd, atcmd_output);
|
||||||
clif_displaymessage(fd, "List all your joined channel");
|
clif_displaymessage(fd, msg_txt(sd,1472));
|
||||||
if( can_create ) {
|
if( can_create ) {
|
||||||
sprintf(atcmd_output, msg_txt(sd,1419),command);// * %s list colors
|
sprintf(atcmd_output, msg_txt(sd,1419),command);// * %s list colors
|
||||||
clif_displaymessage(fd, atcmd_output);
|
clif_displaymessage(fd, atcmd_output);
|
||||||
@ -8819,9 +8819,9 @@ static inline void atcmd_channel_help(struct map_session_data *sd, const char *c
|
|||||||
}
|
}
|
||||||
|
|
||||||
//option join
|
//option join
|
||||||
sprintf(atcmd_output, "* %s join <channel_name> <channel_password>",command);// * %s join <channel_name>
|
sprintf(atcmd_output, msg_txt(sd,1473),command);// * %s join <channel_name>
|
||||||
clif_displaymessage(fd, atcmd_output);
|
clif_displaymessage(fd, atcmd_output);
|
||||||
clif_displaymessage(fd, "join specified channel");
|
clif_displaymessage(fd, msg_txt(sd,1474));
|
||||||
|
|
||||||
//option leave
|
//option leave
|
||||||
sprintf(atcmd_output, msg_txt(sd,1423),command);// * %s leave <#channel_name>
|
sprintf(atcmd_output, msg_txt(sd,1423),command);// * %s leave <#channel_name>
|
||||||
|
@ -480,9 +480,9 @@ int channel_display_list(struct map_session_data *sd, char *options){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if( options[0] != '\0' && strcmpi(options,"mine") == 0 ) { //display chan I'm into
|
else if( options[0] != '\0' && strcmpi(options,"mine") == 0 ) { //display chan I'm into
|
||||||
clif_displaymessage(sd->fd, " ---- Joined Channels ----"); // ---- Joined Channels ----
|
clif_displaymessage(sd->fd, msg_txt(sd,1475)); // ---- Joined Channels ----
|
||||||
if(!sd->channel_count)
|
if(!sd->channel_count)
|
||||||
clif_displaymessage(sd->fd, "You have not joined any channel yet");
|
clif_displaymessage(sd->fd, msg_txt(sd,1476)); //You have not joined any channel yet
|
||||||
else {
|
else {
|
||||||
for(k=0; k<sd->channel_count; k++){
|
for(k=0; k<sd->channel_count; k++){
|
||||||
channel = sd->channels[k];
|
channel = sd->channels[k];
|
||||||
@ -575,13 +575,13 @@ int channel_pcdelete(struct map_session_data *sd, char *chname){
|
|||||||
|
|
||||||
channel = channel_name2channel(chname,sd,0);
|
channel = channel_name2channel(chname,sd,0);
|
||||||
if(channel_pc_haschan(sd,channel)<0){
|
if(channel_pc_haschan(sd,channel)<0){
|
||||||
sprintf(output, "Channel %s doesn't exist",chname);// You're not part of the '%s' channel.
|
sprintf(output, msg_txt(sd,1425),chname);// You're not part of the '%s' channel.
|
||||||
clif_displaymessage(sd->fd, output);
|
clif_displaymessage(sd->fd, output);
|
||||||
return -2; //channel doesn't exist or player don't have it
|
return -2; //channel doesn't exist or player don't have it
|
||||||
}
|
}
|
||||||
channel_delete(channel);
|
channel_delete(channel);
|
||||||
|
|
||||||
sprintf(output, "Channel %s deleted",chname); // You've left the '%s' channel.
|
sprintf(output, msg_txt(sd,1477),chname); //Channel %s deleted
|
||||||
clif_displaymessage(sd->fd, output);
|
clif_displaymessage(sd->fd, output);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
@ -865,7 +865,7 @@ int channel_pcban(struct map_session_data *sd, char *chname, struct map_session_
|
|||||||
sprintf(output, msg_txt(sd,1443), channel->name);// -- '%s' ban list
|
sprintf(output, msg_txt(sd,1443), channel->name);// -- '%s' ban list
|
||||||
clif_displaymessage(sd->fd, output);
|
clif_displaymessage(sd->fd, output);
|
||||||
for( pl_sd = dbi_first(iter); dbi_exists(iter); pl_sd = dbi_next(iter) ) { //for all users
|
for( pl_sd = dbi_first(iter); dbi_exists(iter); pl_sd = dbi_next(iter) ) { //for all users
|
||||||
sprintf(output, "%d: %s",pl_sd->status.char_id,pl_sd->status.name); // %d: %s
|
sprintf(output, msg_txt(sd,1444),pl_sd->status.char_id,pl_sd->status.name); // %d: %s
|
||||||
clif_displaymessage(sd->fd, output);
|
clif_displaymessage(sd->fd, output);
|
||||||
}
|
}
|
||||||
dbi_destroy(iter);
|
dbi_destroy(iter);
|
||||||
|
@ -42,6 +42,7 @@ set( SQL_MAP_HEADERS
|
|||||||
"${SQL_MAP_SOURCE_DIR}/unit.h"
|
"${SQL_MAP_SOURCE_DIR}/unit.h"
|
||||||
"${SQL_MAP_SOURCE_DIR}/vending.h"
|
"${SQL_MAP_SOURCE_DIR}/vending.h"
|
||||||
"${SQL_MAP_SOURCE_DIR}/cashshop.h"
|
"${SQL_MAP_SOURCE_DIR}/cashshop.h"
|
||||||
|
"${SQL_MAP_SOURCE_DIR}/channel.h"
|
||||||
)
|
)
|
||||||
set( SQL_MAP_SOURCES
|
set( SQL_MAP_SOURCES
|
||||||
"${SQL_MAP_SOURCE_DIR}/atcommand.c"
|
"${SQL_MAP_SOURCE_DIR}/atcommand.c"
|
||||||
@ -82,6 +83,7 @@ set( SQL_MAP_SOURCES
|
|||||||
"${SQL_MAP_SOURCE_DIR}/unit.c"
|
"${SQL_MAP_SOURCE_DIR}/unit.c"
|
||||||
"${SQL_MAP_SOURCE_DIR}/vending.c"
|
"${SQL_MAP_SOURCE_DIR}/vending.c"
|
||||||
"${SQL_MAP_SOURCE_DIR}/cashshop.c"
|
"${SQL_MAP_SOURCE_DIR}/cashshop.c"
|
||||||
|
"${SQL_MAP_SOURCE_DIR}/channel.c"
|
||||||
)
|
)
|
||||||
set( DEPENDENCIES common_sql )
|
set( DEPENDENCIES common_sql )
|
||||||
set( LIBRARIES ${GLOBAL_LIBRARIES} )
|
set( LIBRARIES ${GLOBAL_LIBRARIES} )
|
||||||
|
@ -165,6 +165,7 @@
|
|||||||
<ClInclude Include="..\src\map\battleground.h" />
|
<ClInclude Include="..\src\map\battleground.h" />
|
||||||
<ClInclude Include="..\src\map\buyingstore.h" />
|
<ClInclude Include="..\src\map\buyingstore.h" />
|
||||||
<ClInclude Include="..\src\map\cashshop.h" />
|
<ClInclude Include="..\src\map\cashshop.h" />
|
||||||
|
<ClInclude Include="..\src\map\channel.h" />
|
||||||
<ClInclude Include="..\src\map\chat.h" />
|
<ClInclude Include="..\src\map\chat.h" />
|
||||||
<ClInclude Include="..\src\map\chrif.h" />
|
<ClInclude Include="..\src\map\chrif.h" />
|
||||||
<ClInclude Include="..\src\map\clif.h" />
|
<ClInclude Include="..\src\map\clif.h" />
|
||||||
@ -238,6 +239,7 @@
|
|||||||
<ClCompile Include="..\src\map\battleground.c" />
|
<ClCompile Include="..\src\map\battleground.c" />
|
||||||
<ClCompile Include="..\src\map\buyingstore.c" />
|
<ClCompile Include="..\src\map\buyingstore.c" />
|
||||||
<ClCompile Include="..\src\map\cashshop.c" />
|
<ClCompile Include="..\src\map\cashshop.c" />
|
||||||
|
<ClCompile Include="..\src\map\channel.c" />
|
||||||
<ClCompile Include="..\src\map\chat.c" />
|
<ClCompile Include="..\src\map\chat.c" />
|
||||||
<ClCompile Include="..\src\map\chrif.c" />
|
<ClCompile Include="..\src\map\chrif.c" />
|
||||||
<ClCompile Include="..\src\map\clif.c" />
|
<ClCompile Include="..\src\map\clif.c" />
|
||||||
|
@ -16,6 +16,9 @@
|
|||||||
<ClCompile Include="..\src\map\cashshop.c">
|
<ClCompile Include="..\src\map\cashshop.c">
|
||||||
<Filter>map_sql</Filter>
|
<Filter>map_sql</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\src\map\channel.c">
|
||||||
|
<Filter>map_sql</Filter>
|
||||||
|
</ClCompile>
|
||||||
<ClCompile Include="..\src\map\chat.c">
|
<ClCompile Include="..\src\map\chat.c">
|
||||||
<Filter>map_sql</Filter>
|
<Filter>map_sql</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
@ -213,6 +216,9 @@
|
|||||||
<ClInclude Include="..\src\map\cashshop.h">
|
<ClInclude Include="..\src\map\cashshop.h">
|
||||||
<Filter>map_sql</Filter>
|
<Filter>map_sql</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\src\map\channel.h">
|
||||||
|
<Filter>map_sql</Filter>
|
||||||
|
</ClInclude>
|
||||||
<ClInclude Include="..\src\map\chat.h">
|
<ClInclude Include="..\src\map\chat.h">
|
||||||
<Filter>map_sql</Filter>
|
<Filter>map_sql</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
@ -428,4 +434,4 @@
|
|||||||
<UniqueIdentifier>{9caf40b7-c4d1-43b4-bd1f-0376b4f920e7}</UniqueIdentifier>
|
<UniqueIdentifier>{9caf40b7-c4d1-43b4-bd1f-0376b4f920e7}</UniqueIdentifier>
|
||||||
</Filter>
|
</Filter>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
@ -169,6 +169,7 @@
|
|||||||
<ClInclude Include="..\src\map\battleground.h" />
|
<ClInclude Include="..\src\map\battleground.h" />
|
||||||
<ClInclude Include="..\src\map\buyingstore.h" />
|
<ClInclude Include="..\src\map\buyingstore.h" />
|
||||||
<ClInclude Include="..\src\map\cashshop.h" />
|
<ClInclude Include="..\src\map\cashshop.h" />
|
||||||
|
<ClInclude Include="..\src\map\channel.h" />
|
||||||
<ClInclude Include="..\src\map\chat.h" />
|
<ClInclude Include="..\src\map\chat.h" />
|
||||||
<ClInclude Include="..\src\map\chrif.h" />
|
<ClInclude Include="..\src\map\chrif.h" />
|
||||||
<ClInclude Include="..\src\map\clif.h" />
|
<ClInclude Include="..\src\map\clif.h" />
|
||||||
@ -242,6 +243,7 @@
|
|||||||
<ClCompile Include="..\src\map\battleground.c" />
|
<ClCompile Include="..\src\map\battleground.c" />
|
||||||
<ClCompile Include="..\src\map\buyingstore.c" />
|
<ClCompile Include="..\src\map\buyingstore.c" />
|
||||||
<ClCompile Include="..\src\map\cashshop.c" />
|
<ClCompile Include="..\src\map\cashshop.c" />
|
||||||
|
<ClCompile Include="..\src\map\channel.c" />
|
||||||
<ClCompile Include="..\src\map\chat.c" />
|
<ClCompile Include="..\src\map\chat.c" />
|
||||||
<ClCompile Include="..\src\map\chrif.c" />
|
<ClCompile Include="..\src\map\chrif.c" />
|
||||||
<ClCompile Include="..\src\map\clif.c" />
|
<ClCompile Include="..\src\map\clif.c" />
|
||||||
@ -298,4 +300,4 @@
|
|||||||
<Copy SourceFiles="..\conf\msg_conf\import-tmpl\map_msg_rus_conf.txt" DestinationFolder="..\conf\msg_conf\import\" ContinueOnError="true" Condition="!Exists('..\conf\msg_conf\import\map_msg_rus_conf.txt')" />
|
<Copy SourceFiles="..\conf\msg_conf\import-tmpl\map_msg_rus_conf.txt" DestinationFolder="..\conf\msg_conf\import\" ContinueOnError="true" Condition="!Exists('..\conf\msg_conf\import\map_msg_rus_conf.txt')" />
|
||||||
<Copy SourceFiles="..\conf\msg_conf\import-tmpl\map_msg_spn_conf.txt" DestinationFolder="..\conf\msg_conf\import\" ContinueOnError="true" Condition="!Exists('..\conf\msg_conf\import\map_msg_spn_conf.txt')" />
|
<Copy SourceFiles="..\conf\msg_conf\import-tmpl\map_msg_spn_conf.txt" DestinationFolder="..\conf\msg_conf\import\" ContinueOnError="true" Condition="!Exists('..\conf\msg_conf\import\map_msg_spn_conf.txt')" />
|
||||||
</Target>
|
</Target>
|
||||||
</Project>
|
</Project>
|
||||||
|
@ -12,6 +12,12 @@
|
|||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="..\src\map\buyingstore.c">
|
<ClCompile Include="..\src\map\buyingstore.c">
|
||||||
<Filter>map_sql</Filter>
|
<Filter>map_sql</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\src\map\channel.c">
|
||||||
|
<Filter>map_sql</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\src\map\cashshop.c">
|
||||||
|
<Filter>map_sql</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="..\src\map\chat.c">
|
<ClCompile Include="..\src\map\chat.c">
|
||||||
<Filter>map_sql</Filter>
|
<Filter>map_sql</Filter>
|
||||||
@ -193,10 +199,11 @@
|
|||||||
<ClCompile Include="..\src\common\raconf.c">
|
<ClCompile Include="..\src\common\raconf.c">
|
||||||
<Filter>common</Filter>
|
<Filter>common</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="..\src\common\cli.c" />
|
<ClCompile Include="..\src\common\cli.c">
|
||||||
<ClCompile Include="..\src\common\msg_conf.c" />
|
<Filter>common</Filter>
|
||||||
<ClCompile Include="..\src\map\cashshop.c">
|
</ClCompile>
|
||||||
<Filter>map_sql</Filter>
|
<ClCompile Include="..\src\common\msg_conf.c">
|
||||||
|
<Filter>common</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
@ -212,6 +219,12 @@
|
|||||||
<ClInclude Include="..\src\map\buyingstore.h">
|
<ClInclude Include="..\src\map\buyingstore.h">
|
||||||
<Filter>map_sql</Filter>
|
<Filter>map_sql</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\src\map\channel.h">
|
||||||
|
<Filter>map_sql</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\src\map\cashshop.h">
|
||||||
|
<Filter>map_sql</Filter>
|
||||||
|
</ClInclude>
|
||||||
<ClInclude Include="..\src\map\chat.h">
|
<ClInclude Include="..\src\map\chat.h">
|
||||||
<Filter>map_sql</Filter>
|
<Filter>map_sql</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
@ -409,10 +422,11 @@
|
|||||||
<ClInclude Include="..\src\common\raconf.h">
|
<ClInclude Include="..\src\common\raconf.h">
|
||||||
<Filter>common</Filter>
|
<Filter>common</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="..\src\common\cli.h" />
|
<ClInclude Include="..\src\common\cli.h">
|
||||||
<ClInclude Include="..\src\common\msg_conf.h" />
|
<Filter>common</Filter>
|
||||||
<ClInclude Include="..\src\map\cashshop.h">
|
</ClInclude>
|
||||||
<Filter>map_sql</Filter>
|
<ClInclude Include="..\src\common\msg_conf.h">
|
||||||
|
<Filter>common</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
@ -432,4 +446,4 @@
|
|||||||
<UniqueIdentifier>{9caf40b7-c4d1-43b4-bd1f-0376b4f920e7}</UniqueIdentifier>
|
<UniqueIdentifier>{9caf40b7-c4d1-43b4-bd1f-0376b4f920e7}</UniqueIdentifier>
|
||||||
</Filter>
|
</Filter>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
@ -512,6 +512,14 @@
|
|||||||
RelativePath="..\src\map\cashshop.h"
|
RelativePath="..\src\map\cashshop.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\src\map\channel.c"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\src\map\channel.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\src\map\chat.c"
|
RelativePath="..\src\map\chat.c"
|
||||||
>
|
>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user