Giter Site home page Giter Site logo

eventai-to-smartai's People

Contributors

horn avatar jasperrietrae avatar warpten avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

eventai-to-smartai's Issues

Summoned Creature on target Position

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");

Little problem with sql request

IF a creature have 2 or more ID of script but is not consecutive it will take only the first consecutive one ( Highest one).

EXEMPLE

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");

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.