01/10/2016, 08:26
Exemple de GameObject pouvant servir de base :
Type Buttom (1) : Un Détonateur qui ne despawn pas et un temps de recharge de 5s . Le test ce fait par un changement d’état de celui ci (activé)
Type Goober (10) : Ici un canon utilisable uniquement avec la quête 26628 en cour , utilisable par gossip_hello
Type Buttom (1) : Un Détonateur qui ne despawn pas et un temps de recharge de 5s . Le test ce fait par un changement d’état de celui ci (activé)
Citation :REPLACE INTO `gameobject_template` (`entry`, `type`, `displayId`, `name`, `IconName`, `castBarCaption`, `unk1`, `faction`, `flags`, `size`, `Data0`, `Data1`, `Data2`, `Data3`, `Data4`, `Data5`, `Data6`, `Data7`, `Data8`, `Data9`, `Data10`, `Data11`, `Data12`, `Data13`, `Data14`, `Data15`, `Data16`, `Data17`, `Data18`, `Data19`, `Data20`, `Data21`, `Data22`, `Data23`, `Data24`, `Data25`, `Data26`, `Data27`, `Data28`, `Data29`, `Data30`, `Data31`, `Data32`, `unkInt32`, `AIName`, `ScriptName`, `VerifiedBuild`) VALUES
(204042, 1, 9277, 'Detonateur', 'Interact', '', '', 0, 0, 1, 0, 0, 5000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'SmartGameObjectAI', '', -18019);
Citation :SET @ENTRY := 204042;
UPDATE `gameobject_template` SET `AIName`="SmartGameObjectAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,1,10,11,70,0,100,0,2,0,0,0,12,62851,2,30000,0,0,0,8,0,0,0,-5519.81,693.753,375.138,4.96641,"Faites sauter la grotte ! 26318 : spawn pnj rocher"),
(@ENTRY,1,11,12,61,0,100,0,0,0,0,0,11,64753,66,0,0,0,0,17,0,5,0,0,0,0,0,"Faites sauter la grotte ! 26318 : nuage de poussiere"),
(@ENTRY,1,12,13,61,0,100,0,0,0,0,0,33,62851,0,0,0,0,0,17,0,8,0,0,0,0,0,"Faites sauter la grotte ! 26318 : credit"),
(@ENTRY,1,13,0,61,0,100,0,0,0,0,0,4,20452,0,0,0,0,0,17,0,8,0,0,0,0,0,"Faites sauter la grotte ! 26318 : audio explosion 18453");
Type Goober (10) : Ici un canon utilisable uniquement avec la quête 26628 en cour , utilisable par gossip_hello
Citation :REPLACE INTO `gameobject_template` (`entry`, `type`, `displayId`, `name`, `IconName`, `castBarCaption`, `unk1`, `faction`, `flags`, `size`, `Data0`, `Data1`, `Data2`, `Data3`, `Data4`, `Data5`, `Data6`, `Data7`, `Data8`, `Data9`, `Data10`, `Data11`, `Data12`, `Data13`, `Data14`, `Data15`, `Data16`, `Data17`, `Data18`, `Data19`, `Data20`, `Data21`, `Data22`, `Data23`, `Data24`, `Data25`, `Data26`, `Data27`, `Data28`, `Data29`, `Data30`, `Data31`, `Data32`, `unkInt32`, `AIName`, `ScriptName`, `VerifiedBuild`) VALUES
(113531, 10, 245, 'Cannon', 'Gunner', '', '', 0, 4, 0.60000002384186, 0, 26628, 0, 3000, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'SmartGameObjectAI', '', 16992);
Citation :SET @ENTRY := 113531;
UPDATE `gameobject_template` SET `AIName`="SmartGameObjectAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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
(@ENTRY,1,0,0,64,0,100,0,0,0,0,0,51,0,0,0,0,0,0,11,2775,50,0,0,0,0,0,"Shakes O'Breen - On gossip hello - kill");