jasperrietrae / eventai-to-smartai Goto Github PK
View Code? Open in Web Editor NEWConversion of EventAI (EAI) to SmartAI (SAI) for TrinityCore. Moved to https://github.com/TrinityCore/EventAI-to-SmartAI
Conversion of EventAI (EAI) to SmartAI (SAI) for TrinityCore. Moved to https://github.com/TrinityCore/EventAI-to-SmartAI
A problem with The target_type its suposed to be 8 but its 1 and it set the target_param1 to 8 but its suposed to be 0 .
-- RESULT
(@entry,0,9,0,0,0, 100,6,600,600,5000,6000,12,28735,0,0,0,0,0,1,8,0,0,0,552.625,706.408,777.177,3.4383,"Krik'thir the Gatewatcher - In Combat - Summon Creature Skittering Swarmer");
-- Must BE
(@entry,0,9,0,0,0, 100,6,600,600,5000,6000,12,28735,0,0,0,0,0,8,0,0,0,552.625,706.408,777.177,3.4383,"Krik'thir the Gatewatcher - In Combat - Summon Creature Skittering Swarmer");
IF a creature have 2 or more ID of script but is not consecutive it will take only the first consecutive one ( Highest one).
One id is 31000035
and the other one is 32000014
so the EAI have 2 ID but it will parse only one in SAI cause its not consecutive.
INSERT INTO creature_ai_scripts(id, creature_id, event_type, event_inverse_phase_mask, event_chance, event_flags, event_param1, event_param2, event_param3, event_param4, action1_type, action1_param1, action1_param2, action1_param3, action2_type, action2_param1, action2_param2, action2_param3, action3_type, action3_param1, action3_param2, action3_param3, comment) VALUES
(31000035, 16643, 1, 0, 100, 1, 30000, 30000, 470000, 470000, 5, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Silvermoon city'),
(32000014, 16643, 1, 0, 100, 1, 30000, 30000, 470000, 470000, 1, -100014, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Random OOC Say');
1 RESULT in sai only suposed to be 2
-- Razia SAI
SET @ENTRY := 16643;
UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY;
DELETE FROM `creature_ai_scripts` WHERE `creature_id`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
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,0,0,0,1,0,100,0,30000,30000,470000,470000,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Razia - Out Of Combat - Say Line 0");
When i parsed a creature that summon a creature in a position its doesnt
have a summon type on action_param2 ( always 0)
Suposed to be 1 between 8 and sometime have a despawn time
http://collab.kpsn.org/display/tc/smart_scripts#smart_scripts-SummonTypes
i dont know if it can help
For at least one event type, event_param2 ends up out of range. at least in the current SQLs
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.