SHOW:
|
|
- or go back to the newest paste.
1 | -- "Ignition" | |
2 | ||
3 | SET @GUID := 47032; | |
4 | ||
5 | UPDATE `creature_template` SET `questItem1`=62705 WHERE `entry`=47032; | |
6 | ||
7 | DELETE FROM `creature_loot_template` WHERE `entry`=47032 AND `item`=62705; | |
8 | INSERT INTO `creature_loot_template` (`entry`, `item`, `ChanceOrQuestChance`, `lootmode`, `groupid`, `mincountOrRef`, `maxcount`) VALUES | |
9 | (47032, 62705, 100, 1, 0, 1, 1); | |
10 | ||
11 | - | (1, 47032, 62705, 0, 0, 9, 0, 27903, 0, 0, 0, 0, '', 'show loot if player has quest'); |
11 | + | |
12 | INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES | |
13 | (1, 47032, 62705, 0, 0, 9, 0, 27903, 0, 0, 0, 0, '', 'show loot if player has quest'); | |
14 | ||
15 | DELETE FROM `creature` WHERE `guid`=@GUID; | |
16 | INSERT INTO `creature` (`guid`, `id`, `map`, `spawnMask`, `phaseMask`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `spawndist`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`) VALUES | |
17 | (181973, 47032, 1, 1, 1, 0, 0, -10458.3, -484.352, 228.921, 1.65806, 120, 0, 0, 1, 0, 0, 0, 0, 0); |