New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Core/AreaTrigger : Basic areaTrigger entities system #17997
Changes from 9 commits
715b7f3
06dc199
d3744a9
462b95b
d88e0b3
2bddefa
9dfac99
c352b46
271e829
d90a0e3
38ce9ad
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
DELETE FROM `rbac_permissions` WHERE `id` = 845; | ||
INSERT INTO `rbac_permissions` (`id`, `name`) VALUES | ||
( 845, 'Command : reload areatrigger templates' ); | ||
|
||
DELETE FROM `rbac_linked_permissions` WHERE `id` = 192 AND `linkedId` = 845; | ||
INSERT INTO `rbac_linked_permissions` (`id`, `linkedId`) VALUES | ||
( 192, 845 ); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
CREATE TABLE `areatrigger_template` ( | ||
`Id` int(10) unsigned NOT NULL, | ||
`Flags` int(10) unsigned NOT NULL DEFAULT '0', | ||
`MoveCurveId` int(10) unsigned NOT NULL DEFAULT '0', | ||
`ScaleCurveId` int(10) unsigned NOT NULL DEFAULT '0', | ||
`MorphCurveId` int(10) unsigned NOT NULL DEFAULT '0', | ||
`FacingCurveId` int(10) unsigned NOT NULL DEFAULT '0', | ||
`Data0` float NOT NULL DEFAULT '0', | ||
`Data1` float NOT NULL DEFAULT '0', | ||
`Data2` float NOT NULL DEFAULT '0', | ||
`Data3` float NOT NULL DEFAULT '0', | ||
`Data4` float NOT NULL DEFAULT '0', | ||
`Data5` float NOT NULL DEFAULT '0', | ||
`ScriptName` char(64) NOT NULL DEFAULT '', | ||
`VerifiedBuild` int(10) unsigned NOT NULL DEFAULT '0', | ||
PRIMARY KEY (`id`) | ||
) ENGINE=MyISAM DEFAULT CHARSET=utf8; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. #17976 (comment) applies here as well There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wasn't the comment about using MyISAM ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. well, i cant read, ignore it There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. UpperCamelCase style for columns since all new fields are named so |
||
|
||
CREATE TABLE `areatrigger_template_polygon_vertices` ( | ||
`AreaTriggerId` int(10) unsigned NOT NULL, | ||
`Idx` int(10) unsigned NOT NULL, | ||
`VerticeX` float NOT NULL DEFAULT '0', | ||
`VerticeY` float NOT NULL DEFAULT '0', | ||
`VerticeTargetX` float NOT NULL DEFAULT '0', | ||
`VerticeTargetY` float NOT NULL DEFAULT '0', | ||
`VerifiedBuild` int(10) unsigned NOT NULL DEFAULT '0', | ||
PRIMARY KEY (`areatriggerId`,`index`) | ||
) ENGINE=MyISAM DEFAULT CHARSET=utf8; | ||
|
||
DELETE FROM `areatrigger_template` WHERE `id` IN (2472, 4424); | ||
INSERT INTO `areatrigger_template`(`id`,`flags`,`moveCurveId`,`scaleCurveId`,`morphCurveId`,`facingCurveId`,`data0`,`data1`,`data2`,`data3`,`data4`,`data5`,`scriptName`) VALUES | ||
(2472,65536,0,0,0,0,0,0,0,0,0,0,''), | ||
(4424,131072,0,0,0,0,3,3,4,4,1,1,''); | ||
|
||
DELETE FROM `areatrigger_template_polygon_vertices` WHERE `areatriggerId` = 2472; | ||
INSERT INTO `areatrigger_template_polygon_vertices`(`areatriggerId`,`index`,`verticeX`,`verticeY`,`verticeTargetX`,`verticeTargetY`) VALUEs | ||
(2472,0,-1,0.75,0,0), | ||
(2472,1,-1,-0.75,0,0), | ||
(2472,2,4,-0.75,0,0), | ||
(2472,3,4,0.75,0,0); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Drop the table before creating it please (same in the create statement below)