Skip to content

Commit

Permalink
Merge pull request #6 from VORPCORE/main
Browse files Browse the repository at this point in the history
sync with Head
  • Loading branch information
Hailey-Ross authored Oct 12, 2023
2 parents d4eb7c9 + b9dcf2d commit 6dfc59c
Show file tree
Hide file tree
Showing 1,198 changed files with 105,857 additions and 33,152 deletions.
40 changes: 28 additions & 12 deletions MariaDB.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@
CREATE DATABASE IF NOT EXISTS `vorpv2` /*!40100 DEFAULT CHARACTER SET utf8mb4 */;
USE `vorpv2`;

CREATE TABLE IF NOT EXISTS `banks` (
`name` varchar(50) NOT NULL,
PRIMARY KEY (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

CREATE TABLE IF NOT EXISTS `users` (
`identifier` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
Expand All @@ -35,7 +31,6 @@ CREATE TABLE `bank_users` (
`invspace` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `name` (`name`),
CONSTRAINT `bank` FOREIGN KEY (`name`) REFERENCES `banks` (`name`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `bankusers` FOREIGN KEY (`identifier`) REFERENCES `users` (`identifier`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4;

Expand Down Expand Up @@ -336,14 +331,9 @@ CREATE TABLE `whitelist` (
ROW_FORMAT=DYNAMIC
;

INSERT IGNORE INTO `banks` (`name`) VALUES
('Blackwater'),
('SaintDenis'),
('Valentine');


/*!40000 ALTER TABLE `items` DISABLE KEYS */;
INSERT INTO `items` (`item`, `label`, `limit`, `can_remove`, `type`, `usable`, `id`, `metadata`, `desc`) VALUES
INSERT IGNORE INTO `items` (`item`, `label`, `limit`, `can_remove`, `type`, `usable`, `id`, `metadata`, `desc`) VALUES
('acid', 'Acid', 10, 1, 'item_standard', 1, 1, '{}', 'A corrosive substance used for various purposes.'),
('Agarita', 'Agarita', 10, 1, 'item_standard', 1, 2, '{}', 'A flowering plant found in the wild, known for its medicinal properties.'),
('Agarita_Seed', 'Agarita Seed', 10, 1, 'item_standard', 1, 3, '{}', 'A seed that can be planted to grow Agarita plants.'),
Expand Down Expand Up @@ -1073,7 +1063,8 @@ INSERT INTO `items` (`item`, `label`, `limit`, `can_remove`, `type`, `usable`, `
('wsnakeskin', 'Watersnake pelt', 20, 1, 'item_standard', 1, 485, '{}', 'The skin of a watersnake.'),
('Yarrow', 'Yarrow', 10, 1, 'item_standard', 1, 336, '{}', 'A flowering plant known as Yarrow.'),
('Yarrow_Seed', 'Yarrow Seed', 10, 1, 'item_standard', 1, 337, '{}', 'Seeds to grow Yarrow plants.');
INSERT INTO `items` (`item`, `label`, `limit`, `can_remove`, `type`, `usable`, `id`, `metadata`, `desc`) VALUES

INSERT IGNORE INTO `items` (`item`, `label`, `limit`, `can_remove`, `type`, `usable`, `id`, `metadata`, `desc`) VALUES
('absinthe','Absinthe',10,1,'item_standard',1,1600,'{}','An anise-flavoured spirit derived from several plants, including the flowers and leaves of Artemisia absinthium'),
('bacon','Bacon',10,1,'item_standard',1,1601,'{}','Bacon what else do you need to know?'),
('beartrap','Beartrap',10,1,'item_standard',1,1602,'{}','A sturdy beartrap used for catching animals or stopping trespassers'),
Expand Down Expand Up @@ -1286,6 +1277,31 @@ INSERT INTO `items` (`item`, `label`, `limit`, `can_remove`, `type`, `usable`, `
('woodsaw','Woodsaw',10,1,'item_standard',1,1809,'{}','Used to cut wood.'),
('wood_plane','Wood Plane',10,1,'item_standard',1,1810,'{}','A wood plane used for shaping wood.'),
('wrench','Wrench',10,1,'item_standard',1,1811,'{}','A wrech used to tighten bolts and other things.');

CREATE TABLE `item_group` (
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
`description` VARCHAR(255) NOT NULL COMMENT 'Description of Item Group',
PRIMARY KEY (`id`)
) AUTO_INCREMENT=1;

INSERT INTO `item_group` (`id`, `description`) VALUES (1,"default");

ALTER TABLE `items`
ADD COLUMN `groupId` INT UNSIGNED NOT NULL DEFAULT '1' COMMENT 'Item Group ID for Filtering' AFTER `id`,
ADD CONSTRAINT `FK_items_item_group` FOREIGN KEY (`groupId`) REFERENCES `item_group` (`id`) ON UPDATE NO ACTION ON DELETE NO ACTION;

INSERT INTO `item_group` (`description`) VALUES
('medical'),
('foods'),
('tools'),
('weapons'),
('ammo'),
('documents'),
('animals'),
('valuables'),
('horse'),
('herbs');

/*!40000 ALTER TABLE `items` ENABLE KEYS */;

/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
Expand Down
7 changes: 5 additions & 2 deletions server/resources.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ ensure rconlog
ensure oxmysql
ensure basic-gamemode
ensure chat
ensure menuapi
ensure vorp_menu

ensure weathersync
ensure interiors
ensure syn_minigame
Expand All @@ -32,8 +33,8 @@ ensure syn_minigame
ensure vorp_core
ensure vorp_inputs
ensure vorp_progressbar
ensure vorp_character
ensure vorp_inventory
ensure vorp_character
ensure vorp_utils
ensure vorp_admin
ensure vorp_metabolism
Expand All @@ -52,6 +53,8 @@ ensure vorp_walkanim
ensure vorp_ml_policejob
ensure vorp_crafting
ensure vorp_zonenotify
ensure vorp_wildhorse
ensure vorp_lootnpcs
#ensure vorp_traffic -- will limitate peds and animals
#ensure vorp_radius -- culling
#ensure vorp_bossmanager
Expand Down
Loading

0 comments on commit 6dfc59c

Please sign in to comment.