Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifdef __WINGS_SYSTEM__
- enum {
- ITEM_WINGS_MAX_COUNT = 4,
- };
- const static DWORD dwItemVnum[ITEM_WINGS_MAX_COUNT] = {86001, 86011, 86021, 86031, };
- ACMD(do_select_wings)
- {
- if (ch->GetQuestFlag("wings.item-complete") == 0) return;
- if (ch->GetQuestFlag("wings.receive-complete") == 1) return;
- char arg1[256];
- one_argument(argument, arg1, sizeof(arg1));
- if (!*arg1) return;
- if (!*isnhdigit(*arg1)) return;
- BYTE i;
- str_to_number(arg1, i);
- if (i >= ITEM_WINGS_MAX_COUNT) return;
- LPITEM item;
- if ((item = AutoGiveItem(dwItemVnum[i])))
- {
- quest::PC * pPC = quest::CQuestManager::instance().GetPCForce(ch->GetPlayerID());
- int value = quest::CQuestManager::Instance().GetQuestStateIndex("wings", "__COMPLETE");
- pPC->SetFlag("wings.__status", value);
- ch->SetQuestFlag("wings.receive-complete", 1);
- }
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement