I'm not aware of a way to do that with the PEQ editor, you would need to run SQL queries.
The PEQ db has npc id's set up by zone, which makes this fairly simple.
Blackburrow's zone id is 17, so all npc's in blackburrow will have and id like 17xxx in the npc_types table. (This might not be perfectly true if you've done a lot of customization. It's wisely implemented, but not enforced.)
The sql for what you're wanting would then look like this:
UPDATE npc_types SET ATK = 1000, Accuracy = 1000 WHERE id LIKE '17%' AND LENGTH(id) = 5
The length component is important. Iceclad is 174, so npc's there should be 174xxx. The query for Iceclad becomes:
UPDATE npc_types SET ATK = 1000, Accuracy = 1000 WHERE id LIKE '174%' AND LENGTH(id) = 6
Before doing any update, it's a good idea to run a select with the same where clause to make sure you know what rows you're going to effect, and of course, back up your db, standard disclaimer, etc.
You could also write a script that assembles npc id's from spawn2 and spawngroup by zone. It would be much more reliable, but also much more involved.
|