mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-19 03:45:43 +00:00
fix(Scripts): Pilfering Perfume (#5043)
Co-authored-by: Silker <61223313+Si1ker@users.noreply.github.com>
This commit is contained in:
@@ -22,13 +22,17 @@
|
||||
enum Spells
|
||||
{
|
||||
SPELL_GOBLIN_DISGUISE = 71450,
|
||||
SPELL_GOBLIN_ALLY_COMPLETE = 71522,
|
||||
SPELL_GOBLIN_HORDE_COMPLETE = 71539,
|
||||
SPELL_GOBLIN_CARRY_CRATE = 71459,
|
||||
|
||||
NPC_SOMETHING_STINKS_CREDIT = 37558,
|
||||
};
|
||||
|
||||
enum Quests
|
||||
{
|
||||
QUEST_PILGRIM_HORDE = 24541,
|
||||
QUEST_PILGRIM_ALLIANCE = 24656
|
||||
};
|
||||
|
||||
class npc_love_in_air_supply_sentry : public CreatureScript
|
||||
{
|
||||
public:
|
||||
@@ -53,9 +57,13 @@ public:
|
||||
me->MonsterSay("That crate won't deliver itself, friend. Get a move on!", LANG_UNIVERSAL, who->ToPlayer());
|
||||
|
||||
if (who->ToPlayer()->GetTeamId() == TEAM_ALLIANCE)
|
||||
who->CastSpell(who, SPELL_GOBLIN_ALLY_COMPLETE, true);
|
||||
{
|
||||
who->ToPlayer()->CompleteQuest(QUEST_PILGRIM_ALLIANCE);
|
||||
}
|
||||
else
|
||||
who->CastSpell(who, SPELL_GOBLIN_HORDE_COMPLETE, true);
|
||||
{
|
||||
who->ToPlayer()->CompleteQuest(QUEST_PILGRIM_HORDE);
|
||||
}
|
||||
|
||||
me->CastSpell(who, SPELL_GOBLIN_CARRY_CRATE, true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user