Hello guys, i have a little problem, i have a custom quest with name season 8 pre-quest
now i need a c++ script gossip to complete the Quest example if i have 8 pieces of Required season 7, then complete the quest. but the problem is, how i can require 8 items s7 example Head Shoulder chest gloves legguards fets waist wrist, but also ignore if for example head is a sp item, or dps, if someone know how to do something like this or similar, and can please tell me i will be happy.
this is my script is only a example.
and again if anyone can help me to do this i will be happy
now i need a c++ script gossip to complete the Quest example if i have 8 pieces of Required season 7, then complete the quest. but the problem is, how i can require 8 items s7 example Head Shoulder chest gloves legguards fets waist wrist, but also ignore if for example head is a sp item, or dps, if someone know how to do something like this or similar, and can please tell me i will be happy.
this is my script is only a example.
Code:
class npc_quests : public CreatureScript
{
public:
npc_quests() : CreatureScript("npc_quests") { }
bool OnGossipHello(Player* player, Creature* creature)
{
AddGossipItemFor(player, 1, "Nevermind", GOSSIP_SENDER_MAIN, 0);
AddGossipItemFor(player, 1, "Check if can complet s8 quest", GOSSIP_SENDER_MAIN, 1);
player->PlayerTalkClass->SendGossipMenu(1, creature->GetGUID());
return true;
}
bool OnGossipSelect(Player* player, Creature* creature, uint32 /* Sender*/, uint32 Action)
{
uint32 Item_Entry[9] =
{
20537,
30436,
50453,
60532,
44059,
24533,
38060,
55617,
47502
};
player->PlayerTalkClass->ClearMenus();
switch (Action)
{
case 0:
CloseGossipMenuFor(player);
break;
case 1:
for (uint32 i = 0; i < sizeof(Item_Entry) / sizeof(uint32); i++)
{
if (player->HasItemCount(Item_Entry[i]) && player->hasQuest(108000))
player->CompleteQuest(108000);
ChatHandler(player->GetSession()).PSendSysMessage("Congratulations, s8 Quest Completed!", player->GetGUID());
}
CloseGossipMenuFor(player);
break;
}
return true;
}
};
void AddSC_npc_quests()
{
new npc_quests();
}
and again if anyone can help me to do this i will be happy