Skip to content

Instantly share code, notes, and snippets.

@nazwadi
Created January 20, 2023 06:06
Show Gist options
  • Save nazwadi/6d1c43b95e8d1350767350fab1e2611c to your computer and use it in GitHub Desktop.
Save nazwadi/6d1c43b95e8d1350767350fab1e2611c to your computer and use it in GitHub Desktop.
UPDATE npc_types nt
SET nt.aggroradius=100
WHERE nt.aggroradius=120
AND nt.id IN (SELECT DISTINCT s2.npcID FROM spawn2 sp
INNER JOIN spawngroup s ON sp.spawngroupID = s.id
INNER JOIN spawnentry s2 ON s2.spawngroupID = s.id
INNER JOIN npc_types n ON n.id = s2.npcID
WHERE sp.zone = 'sebilis')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment