Setup/Sources

* rewrote SetupSrcipt
 * implemented 'zone' parameter
 * implemented 'bossdrop' parameter
 * implemented 'dungeondifficulty' parameter
 * implemented item filter relying on zone information (dropsInX)
 * fixed world random drops showing a single loot source
 * extended Source column of spells to the same functionality as items

ToDo:
 * apply new 'commondrop' parameter on loot listviews
 * gather difficuly versions of gameobjects and apply the same logic as for creatures
 * implement fake spawns so npcs can get linked to a zone
This commit is contained in:
Sarjuuk
2023-05-20 03:18:36 +02:00
parent fc7a526a67
commit 77f81c1bde
20 changed files with 1143 additions and 914 deletions

View File

@@ -2477,6 +2477,7 @@ CREATE TABLE `aowow_source` (
`moreType` tinyint(4) unsigned DEFAULT NULL,
`moreTypeId` mediumint(9) unsigned DEFAULT NULL,
`moreZoneId` mediumint(9) unsigned DEFAULT NULL,
`moreMask` mediumint(9) unsigned DEFAULT NULL,
`src1` tinyint(1) unsigned DEFAULT NULL COMMENT 'Crafted',
`src2` tinyint(3) unsigned DEFAULT NULL COMMENT 'Drop (npc / object / item) (modeMask)',
`src3` tinyint(3) unsigned DEFAULT NULL COMMENT 'PvP (g_sources_pvp)',
@@ -3185,7 +3186,7 @@ UNLOCK TABLES;
LOCK TABLES `aowow_dbversion` WRITE;
/*!40000 ALTER TABLE `aowow_dbversion` DISABLE KEYS */;
INSERT INTO `aowow_dbversion` VALUES (1682012751,0,NULL,NULL);
INSERT INTO `aowow_dbversion` VALUES (1684620410,0,NULL,NULL);
/*!40000 ALTER TABLE `aowow_dbversion` ENABLE KEYS */;
UNLOCK TABLES;

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,2 @@
ALTER TABLE `aowow_source`
ADD COLUMN `moreMask` mediumint(9) unsigned DEFAULT NULL AFTER `moreZoneId`;

View File

@@ -0,0 +1 @@
UPDATE `aowow_dbversion` SET `sql` = CONCAT(IFNULL(`sql`, ''), ' source');