DB/conditions: add condition Pet Type to Pet Trainers gossip

Use ConditionTypeOrReference 45 (PetType in PetDefines.h):
- Show gossip menu 4783 option id 1 if Pet Type is hunter pet

( follow-up to PR #17746 / commit 03bafe3 )

(cherry picked from commit 9d7cd93e0d)
This commit is contained in:
tkrokli
2016-09-13 06:33:05 +02:00
committed by joschiwald
parent cab4ce3a53
commit b4083763bc

View File

@@ -0,0 +1,4 @@
-- Condition for Pet Trainer gossip menu option, condition type PetType
DELETE FROM `conditions` WHERE `ConditionTypeOrReference`= 45 AND `SourceGroup`= 4783 AND `SourceEntry`= 1;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`,`ErrorType`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES
(15,4783,1,0,0,45,0,2,0,0,0,0,0, '','Show gossip menu 4783 option id 1 if Pet Type is hunter pet.');