void CEbenezerDlg::InitServerCommands() { static Command<CEbenezerDlg> commandTable[] = { // Command Handler Help message { "notice", &CEbenezerDlg::HandleNoticeCommand, "Sends a server-wide chat notice." }, { "kill", &CEbenezerDlg::HandleKillUserCommand, "Disconnects the specified player" }, { "open1", &CEbenezerDlg::HandleWar1OpenCommand, "Opens war zone 1" }, { "open2", &CEbenezerDlg::HandleWar2OpenCommand, "Opens war zone 2" }, { "open3", &CEbenezerDlg::HandleWar3OpenCommand, "Opens war zone 3" }, { "snowopen", &CEbenezerDlg::HandleSnowWarOpenCommand, "Opens the snow war zone" }, { "close", &CEbenezerDlg::HandleWarCloseCommand, "Closes the active war zone" }, { "down", &CEbenezerDlg::HandleShutdownCommand, "Shuts down the server" }, { "pause", &CEbenezerDlg::HandlePauseCommand, "Prevents users from connecting to the server" }, { "resume", &CEbenezerDlg::HandleResumeCommand, "Allows users to resume connecting to the server" }, { "discount", &CEbenezerDlg::HandleDiscountCommand, "Enables server discounts for the winning nation of the last war" }, { "alldiscount", &CEbenezerDlg::HandleGlobalDiscountCommand, "Enables server discounts for everyone" }, { "offdiscount", &CEbenezerDlg::HandleDiscountOffCommand, "Disables server discounts" }, { "captain", &CEbenezerDlg::HandleCaptainCommand, "Sets the captains/commanders for the war" }, { "santa", &CEbenezerDlg::HandleSantaCommand, "Enables a flying Santa Claus." }, { "offsanta", &CEbenezerDlg::HandleSantaOffCommand, "Disables a flying Santa Claus/angel." }, { "angel", &CEbenezerDlg::HandleAngelCommand, "Enables a flying angel." }, { "offangel", &CEbenezerDlg::HandleSantaOffCommand, "Disables a flying Santa Claus/angel." }, { "permanent", &CEbenezerDlg::HandlePermanentChatCommand, "Sets the permanent chat bar to the specified text." }, { "offpermanent", &CEbenezerDlg::HandlePermanentChatOffCommand, "Resets the permanent chat bar text." }, { "reload_notice", &CEbenezerDlg::HandleReloadNoticeCommand, "Reloads the in-game notice list." }, }; init_command_table(CEbenezerDlg, commandTable, s_commandTable); }
void CUser::InitChatCommands() { static Command<CUser> commandTable[] = { // Command Handler Help message { "give_item", &CUser::HandleGiveItemCommand, "Gives a player an item. Arguments: character name | item ID | [optional stack size]" }, { "zonechange", &CUser::HandleZoneChangeCommand, "Teleports you to the specified zone. Arguments: zone ID" }, }; init_command_table(CUser, commandTable, s_commandTable); }
void CUser::InitChatCommands() { static Command<CUser> commandTable[] = { // Command Handler Help message { "give_item", &CUser::HandleGiveItemCommand, "Gives a player an item. Arguments: character name | item ID | [optional stack size]" }, { "zonechange", &CUser::HandleZoneChangeCommand, "Teleports you to the specified zone. Arguments: zone ID" }, { "open1", &CUser::HandleWar1OpenCommand, "Opens war zone 1" }, { "open2", &CUser::HandleWar2OpenCommand, "Opens war zone 2" }, { "open3", &CUser::HandleWar3OpenCommand, "Opens war zone 3" }, { "snowopen", &CUser::HandleSnowWarOpenCommand, "Opens the snow war zone" }, { "close", &CUser::HandleWarCloseCommand, "Closes the active war zone" }, }; init_command_table(CUser, commandTable, s_commandTable); }