Hello, Guys! i made a simple checks in player.cpp, in Extended costs to Require a Quest Completed to Buy items in the Vendor, but i have a problem, i cant use Quest_Status_Rewarded i don't know why doesnt work, but if i am use Quest_Status_Complete then it work, but only if you complete the objectives from the quest, not if you finisht the quest. i know i need Quest_Status_Rewarded, for it
maybe someone can help me to fix my simple problem,
here my edits.
maybe someone can help me to fix my simple problem,
here my edits.
Code:
if (creature->GetScriptName() == "NPC_Season_10")
{
if (GetQuestStatus(108000) == QUEST_STATUS_REWARDED)
{
// ignore this ChatHandler(GetSession()).PSendSysMessage("|cffff0000thanks for purchase.");
}
else
{
ChatHandler(GetSession()).PSendSysMessage("|cffff0000You need to complete the arena season 10 pre quest to buy items from this vendor.");
return false;
}
}
Last edited by a moderator: