- Code: Select all
delimiter $$
CREATE TRIGGER `t_set_first_spawn` before INSERT ON `character` FOR EACH ROW BEGIN
set New.GeoID = 117052637;
set New.GeoAlt = 5100;
set New.BindedObjectID = 12345;
END;
$$
delimiter $$
CREATE TRIGGER `t_set_first_spawn` before INSERT ON `character` FOR EACH ROW BEGIN
set New.GeoID = 117052637;
set New.GeoAlt = 5100;
set New.BindedObjectID = 12345;
END;
$$
delimiter $$
CREATE DEFINER=`root`@`localhost` TRIGGER `t_set_first_spawn` BEFORE INSERT ON `character` FOR EACH ROW BEGIN
CASE new.RaceID
when 1 then
set New.GeoID = 117517090;
set New.GeoAlt = 5270;
when 2 then
set New.GeoID = 118017424;
set New.GeoAlt = 6100;
when 3 then
set New.GeoID = 115944941;
set New.GeoAlt = 5100;
else
set New.GeoID = 117052637;
set New.GeoAlt = 5100;
end CASE;
END;
$$
Thril wrote:The trigger is working quite nice, but i noticed some weird behaviour:
If i set just one Spawn Location that way, it seems to work, but new Characters don't spawn at the exact location, but often in a few couple tiles around that spot. sometimes a couple more also... but always around the area.
Anyone has the same "issue" ?
Shrewdcrow wrote:Thril wrote:The trigger is working quite nice, but i noticed some weird behaviour:
If i set just one Spawn Location that way, it seems to work, but new Characters don't spawn at the exact location, but often in a few couple tiles around that spot. sometimes a couple more also... but always around the area.
Anyone has the same "issue" ?
Is the location in a claim? It will spawn at random just outside of claims if so.