Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
going to share what i learned. (i run on dayz.st, like most do)
short tutorial:
1)go into your database, click the SQL tab on top and put in:
Code:CREATE TABLE `cust_spawn` ( `unique_id` INT(10) NULL DEFAULT NULL, `worldspace` VARCHAR(50) NULL DEFAULT NULL ) COLLATE='utf8_general_ci' ENGINE=InnoDB;
2)then send an email to your host (heres a cut and paste of mine to dayz.st):
Subject: Adding Trigger to DB
I run two servers, and need to add a trigger to the survivor table in my DB. But this requires SUPER ADMIN privileges.
My servers are:
173.193.205.66:3425 (username:xxxxxxxxxxx)
208.43.9.86:3000 (username:xxxxxxxxxx)
Ive already made the cust_spawn table on both servers, now i just need the triggers in the survivor table, heres the trigger:
and obviously the delimiter is set to $$.Code:CREATE TRIGGER `custom_spawn` BEFORE INSERT ON `survivor` FOR EACH ROW BEGIN DECLARE x INT; DECLARE y varchar(50); SET x = (SELECT `unique_id` FROM `cust_spawn` WHERE `unique_id`=NEW.unique_id); SET y = (SELECT `worldspace` FROM `cust_spawn` WHERE `unique_id`=NEW.unique_id); IF NEW.unique_id = x THEN SET NEW.worldspace=y; END IF; END;$$
Thank you for your time, and assistance,
delimiter $$
CREATE TRIGGER `custom_spawn`
BEFORE INSERT ON `survivor`
FOR EACH ROW
BEGIN
DECLARE x INT;
DECLARE y varchar(50);
SET x = (SELECT `unique_id` FROM `cust_spawn` WHERE `unique_id`=NEW.unique_id);
SET y = (SELECT `worldspace` FROM `cust_spawn` WHERE `unique_id`=NEW.unique_id);
IF NEW.unique_id = x THEN
SET NEW.worldspace=y;
END IF;
END