Improve MySQL configuration and normalize SmartAI action flags

This commit is contained in:
Deckard
2025-10-19 05:33:43 -04:00
parent bc90f40aeb
commit bd0503b492
4 changed files with 17 additions and 2 deletions

View File

@@ -1,5 +1,10 @@
-- Fix SmartAI boolean parameters for action 53 (Start Waypoint) on specific creatures.
-- This script is idempotent and can be executed multiple times safely.
-- Normalize Start Waypoint boolean flags that were set to invalid values (e.g., 2 instead of 0/1).
UPDATE smart_scripts
SET action_param1 = 1
WHERE action_type = 53
AND source_type IN (0, 9)
AND action_param1 NOT IN (0, 1);
UPDATE smart_scripts
SET action_param1 = 1