forked from metin2/server
1
0
Fork 0

Removed unused and buggy priv_guild command

This commit is contained in:
Exynox 2022-12-24 20:00:00 +02:00
parent 7c821325c7
commit f56d5028da
2 changed files with 0 additions and 49 deletions

View File

@ -129,7 +129,6 @@ ACMD(do_attract_ranger);
ACMD(do_pull_monster); ACMD(do_pull_monster);
ACMD(do_setblockmode); ACMD(do_setblockmode);
ACMD(do_priv_empire); ACMD(do_priv_empire);
ACMD(do_priv_guild);
ACMD(do_mount_test); ACMD(do_mount_test);
ACMD(do_unmount); ACMD(do_unmount);
ACMD(do_observer); ACMD(do_observer);
@ -411,7 +410,6 @@ struct command_info cmd_info[] =
{ "polymorph", do_polymorph, 0, POS_DEAD, GM_LOW_WIZARD }, { "polymorph", do_polymorph, 0, POS_DEAD, GM_LOW_WIZARD },
{ "polyitem", do_polymorph_item, 0, POS_DEAD, GM_HIGH_WIZARD }, { "polyitem", do_polymorph_item, 0, POS_DEAD, GM_HIGH_WIZARD },
{ "priv_empire", do_priv_empire, 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 }, { "mount_test", do_mount_test, 0, POS_DEAD, GM_IMPLEMENTOR },
{ "unmount", do_unmount, 0, POS_DEAD, GM_PLAYER }, { "unmount", do_unmount, 0, POS_DEAD, GM_PLAYER },
{ "private", do_private, 0, POS_DEAD, GM_IMPLEMENTOR }, { "private", do_private, 0, POS_DEAD, GM_IMPLEMENTOR },

View File

@ -2544,53 +2544,6 @@ USAGE:
ch->ChatPacket(CHAT_TYPE_INFO, " <duration> hour"); ch->ChatPacket(CHAT_TYPE_INFO, " <duration> 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) ACMD(do_mount_test)
{ {
char arg1[256]; char arg1[256];