rushor / sai-editor Goto Github PK
View Code? Open in Web Editor NEWThis project forked from jasper-rietrae2/sai-editor
Editor for TrinityCore's SAI (SmartAI / smart_scripts) database scripting system
License: GNU General Public License v3.0
This project forked from jasper-rietrae2/sai-editor
Editor for TrinityCore's SAI (SmartAI / smart_scripts) database scripting system
License: GNU General Public License v3.0
As you can see here: https://i.imgur.com/19Z4tJu.png
When you generate a comment, it will mark the used spell (Spell 'SPELLID') between two '
symbols, instead of \'
, which causes MySQL to halt the execution.
Have not tried it with any other options within the application, but if there is '
sign, replace it with \'
and it should fix it for our picky MySQL server.
Also, the error it generates: https://i.imgur.com/aTPWDCE.png
Generated code by default:
-- Alley SAI
SET @ENTRY := 95001;
UPDATE `creature_template` SET `AIName`="SmartAI" , `scriptname` ="" WHERE `entry`= @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,0,0,100,0,5000,6000,5000,6000,11,73804,0,0,1,0,0,1,0,0,0,0,0,0,0,"Alley - In Combat - Cast 'Spell 73804' - Target: Self");
Code that should be instead:
-- Alley SAI
SET @ENTRY := 95001;
UPDATE `creature_template` SET `AIName`="SmartAI" , `scriptname` ="" WHERE `entry`= @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,0,0,100,0,5000,6000,5000,6000,11,73804,0,0,1,0,0,1,0,0,0,0,0,0,0,"Alley - In Combat - Cast \'Spell 73804\' - Target: Self");
The application is amazing, but if a dark theme can be added it'd be neat!
Not sure where to insert a request, sorry if I misplaced it.
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.