This commit is contained in:
65
trunk/dist/sql/game/custom/custom_npc_buffer.sql
vendored
Normal file
65
trunk/dist/sql/game/custom/custom_npc_buffer.sql
vendored
Normal file
@@ -0,0 +1,65 @@
|
||||
CREATE TABLE IF NOT EXISTS `custom_npc_buffer` (
|
||||
`npc_id` mediumint(7) NOT NULL,
|
||||
`skill_id` int(6) NOT NULL,
|
||||
`skill_level` int(6) NOT NULL DEFAULT '1',
|
||||
`skill_fee_id` int(6) NOT NULL DEFAULT '0',
|
||||
`skill_fee_amount` int(6) NOT NULL DEFAULT '0',
|
||||
`buff_group` int(6) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`npc_id`,`skill_id`,`buff_group`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
INSERT IGNORE INTO `custom_npc_buffer` VALUES
|
||||
(1000003,264,1,57,100,264),
|
||||
(1000003,265,1,57,100,265),
|
||||
(1000003,266,1,57,100,266),
|
||||
(1000003,267,1,57,100,267),
|
||||
(1000003,268,1,57,100,268),
|
||||
(1000003,269,1,57,100,269),
|
||||
(1000003,270,1,57,100,270),
|
||||
(1000003,271,1,57,100,271),
|
||||
(1000003,272,1,57,100,272),
|
||||
(1000003,273,1,57,100,273),
|
||||
(1000003,274,1,57,100,274),
|
||||
(1000003,275,1,57,100,275),
|
||||
(1000003,276,1,57,100,276),
|
||||
(1000003,277,1,57,100,277),
|
||||
(1000003,304,1,57,100,304),
|
||||
(1000003,305,1,57,100,305),
|
||||
(1000003,306,1,57,100,306),
|
||||
(1000003,307,1,57,100,307),
|
||||
(1000003,308,1,57,100,308),
|
||||
(1000003,309,1,57,100,309),
|
||||
(1000003,310,1,57,100,310),
|
||||
(1000003,311,1,57,100,311),
|
||||
(1000003,349,1,57,100,349),
|
||||
(1000003,363,1,57,100,363),
|
||||
(1000003,364,1,57,100,364),
|
||||
(1000003,366,1,57,100,366),
|
||||
(1000003,367,1,57,100,367),
|
||||
(1000003,529,1,57,100,529),
|
||||
(1000003,530,1,57,100,530),
|
||||
(1000003,1032,1,57,100,1032),
|
||||
(1000003,1033,1,57,100,1033),
|
||||
(1000003,1035,1,57,100,1035),
|
||||
(1000003,1036,1,57,100,1036),
|
||||
(1000003,1040,1,57,100,1040),
|
||||
(1000003,1043,1,57,100,1043),
|
||||
(1000003,1044,1,57,100,1044),
|
||||
(1000003,1045,1,57,100,1045),
|
||||
(1000003,1048,1,57,100,1048),
|
||||
(1000003,1059,1,57,100,1059),
|
||||
(1000003,1062,1,57,100,1062),
|
||||
(1000003,1068,1,57,100,1068),
|
||||
(1000003,1077,1,57,100,1077),
|
||||
(1000003,1078,1,57,100,1078),
|
||||
(1000003,1085,1,57,100,1085),
|
||||
(1000003,1086,1,57,100,1086),
|
||||
(1000003,1182,1,57,100,1182),
|
||||
(1000003,1189,1,57,100,1189),
|
||||
(1000003,1191,1,57,100,1191),
|
||||
(1000003,1204,1,57,100,1204),
|
||||
(1000003,1240,1,57,100,1240),
|
||||
(1000003,1242,1,57,100,1242),
|
||||
(1000003,1243,1,57,100,1243),
|
||||
(1000003,1303,1,57,100,1303),
|
||||
(1000003,1397,1,57,100,1397);
|
15
trunk/dist/sql/game/custom/custom_spawnlist.sql
vendored
Normal file
15
trunk/dist/sql/game/custom/custom_spawnlist.sql
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
CREATE TABLE IF NOT EXISTS `custom_spawnlist` (
|
||||
`location` varchar(40) NOT NULL DEFAULT '',
|
||||
`count` tinyint(1) unsigned NOT NULL DEFAULT '0',
|
||||
`npc_templateid` mediumint(7) unsigned NOT NULL DEFAULT '0',
|
||||
`locx` mediumint(6) NOT NULL DEFAULT '0',
|
||||
`locy` mediumint(6) NOT NULL DEFAULT '0',
|
||||
`locz` mediumint(6) NOT NULL DEFAULT '0',
|
||||
`randomx` mediumint(6) NOT NULL DEFAULT '0',
|
||||
`randomy` mediumint(6) NOT NULL DEFAULT '0',
|
||||
`heading` mediumint(6) NOT NULL DEFAULT '0',
|
||||
`respawn_delay` mediumint(5) NOT NULL DEFAULT '0',
|
||||
`respawn_random` mediumint(5) NOT NULL DEFAULT '0',
|
||||
`loc_id` int(9) NOT NULL DEFAULT '0',
|
||||
`periodOfDay` tinyint(1) unsigned NOT NULL DEFAULT '0'
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
11
trunk/dist/sql/game/custom/custom_teleport.sql
vendored
Normal file
11
trunk/dist/sql/game/custom/custom_teleport.sql
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
CREATE TABLE IF NOT EXISTS `custom_teleport` (
|
||||
`Description` varchar(75) DEFAULT NULL,
|
||||
`id` mediumint(7) unsigned NOT NULL DEFAULT '0',
|
||||
`loc_x` mediumint(6) DEFAULT NULL,
|
||||
`loc_y` mediumint(6) DEFAULT NULL,
|
||||
`loc_z` mediumint(6) DEFAULT NULL,
|
||||
`price` int(10) unsigned DEFAULT NULL,
|
||||
`fornoble` tinyint(1) NOT NULL DEFAULT '0',
|
||||
`itemId` smallint(5) unsigned NOT NULL DEFAULT '57',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
29
trunk/dist/sql/game/custom/documentation.txt
vendored
Normal file
29
trunk/dist/sql/game/custom/documentation.txt
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
None of these tables will have any effect on your server if you have them disabled from the configurations, so that means nothing is loaded from them, and you can have these tables absent from your database, it won't have any negative effect.
|
||||
|
||||
Basically almost all server admins do some kind of changes to their L2J database, and when they want to update their database they always have to worry about conflicting ID's, and issues where they could lose some data they made, i.e the datapack team perform updates on spawns, npcs, droplists etc.
|
||||
|
||||
To overcome this issue, you can put your custom data inside these tables. The L2JDP team won't be changing them too often. These files will just define table structures, so unless we needed to add/remove columns or change column types we won't change them.
|
||||
|
||||
Explanation of the table purposes:
|
||||
|
||||
custom_armor -> If you modified the stats of an armor you can put the armor here and delete it from the original armor table and safely have it loaded and never touched by l2j.
|
||||
|
||||
custom_armorsets -> same as above description.
|
||||
|
||||
custom_droplist -> same as above description.
|
||||
|
||||
custom_etcitem -> same as above description.
|
||||
|
||||
custom_merchant_buylists -> same as above description.
|
||||
|
||||
custom_merchant_shopids -> same as above description.
|
||||
|
||||
custom_notspawned -> When 'DeleteGmSpawnOnCustom' is set to True, this will make it so when a GM deletes an NPC in game, it does not actually get deleted from the spawnlist, it gets its ID put into a list of ID's that are NOT loaded with the rest of the spawns, this way you can prevent loss of spawn data by simply making it "not load that id", to load it again, simply go in this table and remove the id from the list. Id's with "isCustom = 0", are spawns from the spawnlist table, and Id's with "isCustom = 1", are spawns from the custom_spawnlist table.
|
||||
|
||||
custom_npc -> If you added a custom npc or modified stats of an existing one, you can put the npc here and delete it from the original npc table and safely have it loaded and never touched by l2j. In cases where you created your own npc and Id, you simply don't have to worry about deleting the ID unless if there is an ID in the NPC table that is using that ID.
|
||||
|
||||
custom_spawnlist -> here it is the same as above, but you do not need to worry about having the same id in the spawnlist table and the custom_spawnlist table
|
||||
|
||||
custom_teleport -> same as custom_npc
|
||||
|
||||
custom_weapon -> same as custom_armor
|
Reference in New Issue
Block a user