Removed unused and buggy priv_guild command
This commit is contained in:
parent
7c821325c7
commit
f56d5028da
|
@ -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 },
|
||||
|
|
|
@ -2544,53 +2544,6 @@ USAGE:
|
|||
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)
|
||||
{
|
||||
char arg1[256];
|
||||
|
|
Loading…
Reference in New Issue