Advertisement
bucur35

Untitled

Jan 15th, 2013
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. DELETE FROM `conditions` WHERE `SourceGroup`=47032;
  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);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement