From f56d5028da37b5a31b5d6361f8acec18a7ce4ba2 Mon Sep 17 00:00:00 2001 From: Exynox Date: Sat, 24 Dec 2022 20:00:00 +0200 Subject: [PATCH] Removed unused and buggy priv_guild command --- game/src/cmd.cpp | 2 -- game/src/cmd_gm.cpp | 47 --------------------------------------------- 2 files changed, 49 deletions(-) diff --git a/game/src/cmd.cpp b/game/src/cmd.cpp index 3eef280..8171e86 100644 --- a/game/src/cmd.cpp +++ b/game/src/cmd.cpp @@ -129,7 +129,6 @@ ACMD(do_attract_ranger); ACMD(do_pull_monster); ACMD(do_setblockmode); ACMD(do_priv_empire); -ACMD(do_priv_guild); ACMD(do_mount_test); ACMD(do_unmount); ACMD(do_observer); @@ -411,7 +410,6 @@ struct command_info cmd_info[] = { "polymorph", do_polymorph, 0, POS_DEAD, GM_LOW_WIZARD }, { "polyitem", do_polymorph_item, 0, POS_DEAD, GM_HIGH_WIZARD }, { "priv_empire", do_priv_empire, 0, POS_DEAD, GM_HIGH_WIZARD }, - { "priv_guild", do_priv_guild, 0, POS_DEAD, GM_HIGH_WIZARD }, { "mount_test", do_mount_test, 0, POS_DEAD, GM_IMPLEMENTOR }, { "unmount", do_unmount, 0, POS_DEAD, GM_PLAYER }, { "private", do_private, 0, POS_DEAD, GM_IMPLEMENTOR }, diff --git a/game/src/cmd_gm.cpp b/game/src/cmd_gm.cpp index 7431a6b..73bf26f 100644 --- a/game/src/cmd_gm.cpp +++ b/game/src/cmd_gm.cpp @@ -2544,53 +2544,6 @@ USAGE: ch->ChatPacket(CHAT_TYPE_INFO, " hour"); } -/** - * @version 05/06/08 Bang2ni - ±æµå º¸³Ê½º Äù½ºÆ® ÁøÇà ¾ÈµÇ´Â ¹®Á¦ ¼öÁ¤.(½ºÅ©¸³Æ®°¡ ÀÛ¼º¾ÈµÊ.) - * quest/priv_guild.quest ·Î ºÎÅÍ ½ºÅ©¸³Æ® Àоî¿À°Ô ¼öÁ¤µÊ - */ -ACMD(do_priv_guild) -{ - static const char msg[] = { '\0' }; - - char arg1[256]; - one_argument(argument, arg1, sizeof(arg1)); - - if (*arg1) - { - CGuild * g = CGuildManager::instance().FindGuildByName(arg1); - - if (!g) - { - DWORD guild_id = 0; - str_to_number(guild_id, arg1); - g = CGuildManager::instance().FindGuild(guild_id); - } - - if (!g) - ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("±×·± À̸§ ¶Ç´Â ¹øÈ£ÀÇ ±æµå°¡ ¾ø½À´Ï´Ù.")); - else - { - char buf[1024+1]; - snprintf(buf, sizeof(buf), msg, g->GetID()); - - using namespace quest; - PC * pc = CQuestManager::instance().GetPC(ch->GetPlayerID()); - QuestState qs = CQuestManager::instance().OpenState("ADMIN_QUEST", QUEST_FISH_REFINE_STATE_INDEX); - luaL_loadbuffer(qs.co, buf, strlen(buf), "ADMIN_QUEST"); - pc->SetQuest("ADMIN_QUEST", qs); - - QuestState & rqs = *pc->GetRunningQuestState(); - - if (!CQuestManager::instance().RunState(rqs)) - { - CQuestManager::instance().CloseState(rqs); - pc->EndRunning(); - return; - } - } - } -} - ACMD(do_mount_test) { char arg1[256];