Installation Guide
Step 1: Insert SQL Tables
You need to execute the SQL code to set up the necessary database tables.
Instructions
Open your database management tool (e.g., phpMyAdmin or HeidiSQL).
Select Your Database.
Run the following SQL code to create the required tables:
CREATE TABLE `dj_objects` (
`zone_name` VARCHAR(100) NOT NULL COLLATE 'utf8mb3_general_ci',
`model` VARCHAR(100) NULL DEFAULT NULL COLLATE 'utf8mb3_general_ci',
`coords` VARCHAR(255) NULL DEFAULT NULL COLLATE 'utf8mb3_general_ci',
`queued_songs` TEXT NULL DEFAULT NULL COLLATE 'utf8mb3_general_ci',
`type` ENUM('djdesk','djlaptop','djspeaker1','djlights') NOT NULL COLLATE 'utf8mb3_general_ci',
`owner` VARCHAR(50) NOT NULL COLLATE 'utf8mb3_general_ci',
`created_at` TIMESTAMP NOT NULL DEFAULT current_timestamp(),
PRIMARY KEY (`zone_name`) USING BTREE
)
COLLATE='utf8mb3_general_ci'
ENGINE=InnoDB
;
Step 2: Add Items to Inventory
["djdesk"] = {["name"] = "djdesk", ["label"] = "Dj Desk", ["weight"] = 2000, ["type"] = "item", ["image"] = "djdesk.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
["djlaptop"] = {["name"] = "djlaptop", ["label"] = "Dj Laptop", ["weight"] = 2000, ["type"] = "item", ["image"] = "djlaptop.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
["djspeaker1"] = {["name"] = "djspeaker1", ["label"] = "Dj Speaker 1", ["weight"] = 2000, ["type"] = "item", ["image"] = "djspeaker1.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
["djlights"] = {["name"] = "djlights", ["label"] = "Dj Lights", ["weight"] = 2000, ["type"] = "item", ["image"] = "djlights.png", ["unique"] = false, ["useable"] = true, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = ""},
['djusb'] = {['name'] = 'djusb', ['label'] = 'DJ USB', ['weight'] = 100, ['type'] = 'item', ['image'] = 'djusb.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = ''},
Step 3: Add Images
Import the pictures from the [images]
folder into your inventory/html/images
directory.
Step 4: Ensure Dependencies
Ensure you have the following dependencies installed:
Step 5: Test Installation
Start your server and verify that the DJ Script works as intended.
Test the inventory items and their functionality.
Last updated