Doc
Valued Member!
Paste the error pleaseI get the same error in Navicat that others are getting. I cut and pasted your text and followed the directions. The procedure won't save.
It should work with1 751
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.
Paste the error pleaseI get the same error in Navicat that others are getting. I cut and pasted your text and followed the directions. The procedure won't save.
Paste the error please
It should work with1 751
Well...I went and redid my steps to duplicate the problem and now it saves fine...not sure what I was doing wrong. Must be my noob gene kickin in.
Now, I can't seem to create a new column in the object_classes or object_data as your post states. How do I make a new column? I am running the "trial" of Navicat...think that is my problem?
The trial should be fine - but you can use Navicat Lite which is just a free version (or be naughty and torre......)!!
If you click Design Table you can add another column![]()
SET @initialClassCount = fGetClassCount(@rsClassname);
DROP FUNCTION IF EXISTS `fGetClassCount`;
DELIMITER ;;
CREATE FUNCTION `fGetClassCount`(`clname` varchar(32)) RETURNS smallint(3)
READS SQL DATA
BEGIN
DECLARE iClassCount SMALLINT(3) DEFAULT 0;
SELECT COUNT(*)
INTO iClassCount
FROM Object_DATA
WHERE Classname = clname;
RETURN iClassCount;
END
Looks a lot like it, since there is randomization in that one too. Dunno about dynamic vehicle numbers, but damage and fuel is randomized (even though thanks to DayZ core bug, you can just bump in to a chopper and it fixes itself x_x)Is this already implemented in the most recent release of Pwnozor's Server Pack?
DELIMITER $$
CREATE [EMAIL]DEFINER=`dayz`@`localhost[/EMAIL]` PROCEDURE `pFixMaxNum`()
BEGIN
DECLARE iCounter INT DEFAULT 0;
SELECT COUNT(*) INTO @iClassesCount FROM object_classes WHERE Classname<>'';
WHILE (iCounter < @iClassesCount) DO
SELECT Classname, MaxNum INTO @Classname, @MaxNum FROM object_classes LIMIT iCounter,1;
SELECT COUNT(*) INTO @iMaxClassSpawn FROM object_spawns WHERE Classname LIKE @Classname;
IF (@MaxNum > @iMaxClassSpawn) THEN
UPDATE object_classes SET MaxNum = @iMaxClassSpawn WHERE Classname = @Classname;
END IF;
SET iCounter = iCounter + 1;
END WHILE;
END
DELIMITER $$
CREATE [EMAIL]DEFINER=`dayz`@`localhost[/EMAIL]` FUNCTION `fGetClassCount`(`clname` varchar(32)) RETURNS smallint(3)
READS SQL DATA
BEGIN
DECLARE iClassCount SMALLINT(3) DEFAULT 0;
SELECT COUNT(*)
INTO iClassCount
FROM Object_DATA
WHERE Classname = clname;
RETURN iClassCount;
END