TrinityCore / TrinityCore

TrinityCore Open Source MMO Framework (master = 11.0.5.57388, 3.3.5 = 3.3.5a.12340, cata classic = 4.4.1.57294)
http://www.trinitycore.org
GNU General Public License v2.0
9.61k stars 6.06k forks source link

[Quest] Fields of Grief - Tirisfal Pumpkins don't restock (DB patch included) #5320

Closed FlyteX closed 11 years ago

FlyteX commented 12 years ago

The Tirisfal Pumpkins required for the Fields of Grief quest in Tirisfal Glades don't seem to restock. I created a smart script database entry to restock them every 2 minutes as I could not find the default restock time anywhere. If anyone knows the proper time please change it.

Here is the SQL DB patch:

UPDATE `gameobject_template` SET `AIName`='SmartGameObjectAI' WHERE `entry`=375;

INSERT INTO `smart_scripts` (`entryorguid`, `comment`, `source_type`, `action_type`, `action_param1`, `target_type`, `event_param1`, `event_type`) VALUES (375, 'Tirisfal Pumpkin - Script - Restock', '1', '70', '120', '1', '2', '70');
ZxBiohazardZx commented 11 years ago

in a proper format:

-- Issue 5320: Fields of Grief
UPDATE `gameobject_template` SET `AIName`='SmartGameObjectAI' WHERE `entry`=375;
DELETE FROM `smart_scripts` WHERE `entryorguid`=375 AND `source_type`=1;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(375,1,0,0,70,0,100,0,2,0,0,0,70,120,0,0,0,0,0,1,0,0,0,0.0,0.0,0.0,0.0,'Tirisfal Pumpkin - On Use - Respawn/restock after 120s'),