ALTER TABLE `bots`  ADD COLUMN `HP` INTEGER NOT NULL DEFAULT 0 AFTER `DrakkinDetails`;
ALTER TABLE `bots`  ADD COLUMN `Mana` INTEGER NOT NULL DEFAULT 0 AFTER `HP`;

-- Debuff Spells
REPLACE INTO npc_spells_entries (npc_spells_id, spellid, type, minlevel, maxlevel, priority) VALUES
((SELECT id FROM npc_spells WHERE name = 'Shadowknight Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Siphon Strength' AND sn.classes5 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 6, 51, 3),
((SELECT id FROM npc_spells WHERE name = 'Shadowknight Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Scream of Hate' AND sn.classes5 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 15, 34, 3),
((SELECT id FROM npc_spells WHERE name = 'Shadowknight Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Scream of Pain' AND sn.classes5 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 23, 49, 3),
((SELECT id FROM npc_spells WHERE name = 'Shadowknight Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Shroud of Hate' AND sn.classes5 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 35, 53, 3),
((SELECT id FROM npc_spells WHERE name = 'Shadowknight Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Shroud of Pain' AND sn.classes5 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 50, 55, 3),
((SELECT id FROM npc_spells WHERE name = 'Shadowknight Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Abduction of Strength' AND sn.classes5 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 52, 59, 3),
((SELECT id FROM npc_spells WHERE name = 'Shadowknight Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Torrent of Hate' AND sn.classes5 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 54, 64, 3),
((SELECT id FROM npc_spells WHERE name = 'Shadowknight Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Torrent of Pain' AND sn.classes5 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 56, 62, 3),
((SELECT id FROM npc_spells WHERE name = 'Shadowknight Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Torrent of Fatigue' AND sn.classes5 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 58, 65, 3),
((SELECT id FROM npc_spells WHERE name = 'Shadowknight Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Aura of Darkness' AND sn.classes5 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 61, 70, 2),

((SELECT id FROM npc_spells WHERE name = 'Druid Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Hand of Ro' AND sn.classes6 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 61, 85, 2),
((SELECT id FROM npc_spells WHERE name = 'Druid Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Sun\'s Corona' AND sn.classes6 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 67, 73, 2),
((SELECT id FROM npc_spells WHERE name = 'Druid Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Glacier Breath' AND sn.classes6 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 67, 71, 2),

((SELECT id FROM npc_spells WHERE name = 'Necromancer Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Siphon Strength' AND sn.classes11 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 1, 12, 3),
((SELECT id FROM npc_spells WHERE name = 'Necromancer Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Scent of Dusk' AND sn.classes11 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 10, 20, 3),
((SELECT id FROM npc_spells WHERE name = 'Necromancer Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Scent of Shadow' AND sn.classes11 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 21, 36, 3),
((SELECT id FROM npc_spells WHERE name = 'Necromancer Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Scent of Darkness' AND sn.classes11 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 37, 51, 3),
((SELECT id FROM npc_spells WHERE name = 'Necromancer Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Scent of Terris' AND sn.classes11 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 52, 67, 3),
((SELECT id FROM npc_spells WHERE name = 'Necromancer Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Degeneration' AND sn.classes11 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 52, 65, 3),
((SELECT id FROM npc_spells WHERE name = 'Necromancer Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Scent of Midnight' AND sn.classes11 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 68, 71, 3),

((SELECT id FROM npc_spells WHERE name = 'Magician Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Malaise' AND sn.classes13 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 22, 43, 2),
((SELECT id FROM npc_spells WHERE name = 'Magician Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Malaisement' AND sn.classes13 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 44, 50, 2),
((SELECT id FROM npc_spells WHERE name = 'Magician Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Malosi' AND sn.classes13 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 51, 57, 2),
((SELECT id FROM npc_spells WHERE name = 'Magician Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Malosini' AND sn.classes13 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 58, 59, 2),
((SELECT id FROM npc_spells WHERE name = 'Magician Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Mala' AND sn.classes13 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 60, 255, 1),
((SELECT id FROM npc_spells WHERE name = 'Magician Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Malosinia' AND sn.classes13 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 63, 70, 2),

((SELECT id FROM npc_spells WHERE name = 'Enchanter Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Weaken' AND sn.classes14 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 1, 3, 3),
((SELECT id FROM npc_spells WHERE name = 'Enchanter Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Tashan' AND sn.classes14 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 2, 17, 1),
((SELECT id FROM npc_spells WHERE name = 'Enchanter Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Enfeeblement' AND sn.classes14 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 4, 8, 3),
((SELECT id FROM npc_spells WHERE name = 'Enchanter Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Ebbing Strength' AND sn.classes14 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 9, 18, 3),
((SELECT id FROM npc_spells WHERE name = 'Enchanter Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Disempower' AND sn.classes14 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 16, 24, 3),
((SELECT id FROM npc_spells WHERE name = 'Enchanter Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Tashani' AND sn.classes14 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 18, 40, 1),
((SELECT id FROM npc_spells WHERE name = 'Enchanter Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Feckless Might' AND sn.classes14 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 19, 33, 4),
((SELECT id FROM npc_spells WHERE name = 'Enchanter Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Listless Power' AND sn.classes14 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 25, 39, 3),
((SELECT id FROM npc_spells WHERE name = 'Enchanter Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Insipid Weakness' AND sn.classes14 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 34, 41, 4),
((SELECT id FROM npc_spells WHERE name = 'Enchanter Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Incapacitate' AND sn.classes14 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 40, 52, 3),
((SELECT id FROM npc_spells WHERE name = 'Enchanter Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Tashania' AND sn.classes14 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 41, 56, 1),
((SELECT id FROM npc_spells WHERE name = 'Enchanter Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Weakness' AND sn.classes14 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 42, 52, 4),
((SELECT id FROM npc_spells WHERE name = 'Enchanter Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Cripple' AND sn.classes14 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 53, 65, 3),
((SELECT id FROM npc_spells WHERE name = 'Enchanter Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Tashanian' AND sn.classes14 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 57, 60, 1),
((SELECT id FROM npc_spells WHERE name = 'Enchanter Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Howl of Tashan' AND sn.classes14 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 61, 71, 1),
((SELECT id FROM npc_spells WHERE name = 'Enchanter Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Synapsis Spasm' AND sn.classes14 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 66, 70, 3),

((SELECT id FROM npc_spells WHERE name = 'Beastlord Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Listless Power' AND sn.classes15 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 44, 55, 2),
((SELECT id FROM npc_spells WHERE name = 'Beastlord Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Incapacitate' AND sn.classes15 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 56, 65, 2);

-- Level > 70
-- REPLACE INTO npc_spells_entries (npc_spells_id, spellid, type, minlevel, maxlevel, priority) VALUES
-- ((SELECT id FROM npc_spells WHERE name = 'Druid Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Blistering Sunray' AND sn.classes6 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 71, 75, 3),
-- ((SELECT id FROM npc_spells WHERE name = 'Druid Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Blistering Sunray Rk. II' AND sn.classes6 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 71, 75, 3),
-- ((SELECT id FROM npc_spells WHERE name = 'Druid Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Blistering Sunray Rk. III' AND sn.classes6 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 71, 75, 3),
-- ((SELECT id FROM npc_spells WHERE name = 'Druid Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Torrid Sunray' AND sn.classes6 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 76, 80, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Druid Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Torrid Sunray Rk. II' AND sn.classes6 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 76, 80, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Druid Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Torrid Sunray Rk. III' AND sn.classes6 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 76, 80, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Druid Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Withering Sunray' AND sn.classes6 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 81, 85, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Druid Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Withering Sunray Rk. II' AND sn.classes6 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 81, 85, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Druid Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Withering Sunray Rk. III' AND sn.classes6 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 81, 85, 2),

-- ((SELECT id FROM npc_spells WHERE name = 'Necromancer Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Scent of Twilight' AND sn.classes11 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 72, 76, 3),
-- ((SELECT id FROM npc_spells WHERE name = 'Necromancer Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Scent of Twilight Rk. II' AND sn.classes11 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 72, 76, 3),
-- ((SELECT id FROM npc_spells WHERE name = 'Necromancer Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Scent of Twilight Rk. III' AND sn.classes11 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 72, 76, 3),
-- ((SELECT id FROM npc_spells WHERE name = 'Necromancer Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Scent of Afterlife' AND sn.classes11 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 77, 81, 3),
-- ((SELECT id FROM npc_spells WHERE name = 'Necromancer Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Scent of Afterlife Rk. II' AND sn.classes11 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 77, 81, 3),
-- ((SELECT id FROM npc_spells WHERE name = 'Necromancer Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Scent of Afterlife Rk. III' AND sn.classes11 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 77, 81, 3),
-- ((SELECT id FROM npc_spells WHERE name = 'Necromancer Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Scent of Gloom' AND sn.classes11 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 82, 86, 3),
-- ((SELECT id FROM npc_spells WHERE name = 'Necromancer Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Scent of Gloom Rk. II' AND sn.classes11 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 82, 86, 3),
-- ((SELECT id FROM npc_spells WHERE name = 'Necromancer Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Scent of Gloom Rk. III' AND sn.classes11 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 82, 86, 3),

-- ((SELECT id FROM npc_spells WHERE name = 'Magician Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Malosinise' AND sn.classes13 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 71, 75, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Magician Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Malosinise Rk. II' AND sn.classes13 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 71, 75, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Magician Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Malosinise Rk. III' AND sn.classes13 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 71, 75, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Magician Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Malosinise' AND sn.classes13 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 76, 80, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Magician Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Malosinise Rk. II' AND sn.classes13 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 76, 80, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Magician Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Malosinise Rk. III' AND sn.classes13 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 76, 80, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Magician Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Malosenea' AND sn.classes13 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 81, 85, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Magician Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Malosenea Rk. II' AND sn.classes13 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 81, 85, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Magician Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Malosenea Rk. III' AND sn.classes13 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 81, 85, 2),

-- ((SELECT id FROM npc_spells WHERE name = 'Enchanter Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Fractured Consciousness' AND sn.classes14 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 71, 75, 3),
-- ((SELECT id FROM npc_spells WHERE name = 'Enchanter Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Fractured Consciousness Rk. II' AND sn.classes14 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 71, 75, 3),
-- ((SELECT id FROM npc_spells WHERE name = 'Enchanter Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Fractured Consciousness Rk. III' AND sn.classes14 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 71, 75, 3),
-- ((SELECT id FROM npc_spells WHERE name = 'Enchanter Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Echo of Tashan' AND sn.classes14 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 72, 76, 1),
-- ((SELECT id FROM npc_spells WHERE name = 'Enchanter Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Echo of Tashan Rk. II' AND sn.classes14 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 72, 76, 1),
-- ((SELECT id FROM npc_spells WHERE name = 'Enchanter Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Echo of Tashan Rk. III' AND sn.classes14 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 72, 76, 1),
-- ((SELECT id FROM npc_spells WHERE name = 'Enchanter Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Shattered Consciousness' AND sn.classes14 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 76, 80, 3),
-- ((SELECT id FROM npc_spells WHERE name = 'Enchanter Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Shattered Consciousness Rk. II' AND sn.classes14 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 76, 80, 3),
-- ((SELECT id FROM npc_spells WHERE name = 'Enchanter Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Shattered Consciousness Rk. III' AND sn.classes14 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 76, 80, 3),
-- ((SELECT id FROM npc_spells WHERE name = 'Enchanter Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Din of Tashan' AND sn.classes14 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 77, 81, 1),
-- ((SELECT id FROM npc_spells WHERE name = 'Enchanter Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Din of Tashan Rk. II' AND sn.classes14 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 77, 81, 1),
-- ((SELECT id FROM npc_spells WHERE name = 'Enchanter Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Din of Tashan Rk. III' AND sn.classes14 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 77, 81, 1),
-- ((SELECT id FROM npc_spells WHERE name = 'Enchanter Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Fragmented Consciousness' AND sn.classes14 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 81, 85, 3),
-- ((SELECT id FROM npc_spells WHERE name = 'Enchanter Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Fragmented Consciousness Rk. II' AND sn.classes14 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 81, 85, 3),
-- ((SELECT id FROM npc_spells WHERE name = 'Enchanter Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Fragmented Consciousness Rk. III' AND sn.classes14 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 81, 85, 3),
-- ((SELECT id FROM npc_spells WHERE name = 'Enchanter Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Bark of Tashan' AND sn.classes14 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 82, 86, 1),
-- ((SELECT id FROM npc_spells WHERE name = 'Enchanter Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Bark of Tashan Rk. II' AND sn.classes14 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 82, 86, 1),
-- ((SELECT id FROM npc_spells WHERE name = 'Enchanter Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Bark of Tashan Rk. III' AND sn.classes14 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 16384, 82, 86, 1);

-- Cure Spells
REPLACE INTO npc_spells_entries (npc_spells_id, spellid, type, minlevel, maxlevel, priority) VALUES
((SELECT id FROM npc_spells WHERE name = 'Cleric Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Cure Poison' AND sn.classes2 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 1, 21, 2),
((SELECT id FROM npc_spells WHERE name = 'Cleric Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Cure Disease' AND sn.classes2 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 4, 27, 2),
((SELECT id FROM npc_spells WHERE name = 'Cleric Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Remove Minor Curse' AND sn.classes2 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 8, 22, 2),
((SELECT id FROM npc_spells WHERE name = 'Cleric Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Counteract Poison' AND sn.classes2 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 22, 47, 2),
((SELECT id FROM npc_spells WHERE name = 'Cleric Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Remove Lesser Curse' AND sn.classes2 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 23, 37, 2),
((SELECT id FROM npc_spells WHERE name = 'Cleric Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Counteract Disease' AND sn.classes2 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 28, 50, 2),
((SELECT id FROM npc_spells WHERE name = 'Cleric Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Remove Curse' AND sn.classes2 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 38, 53, 2),
((SELECT id FROM npc_spells WHERE name = 'Cleric Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Abolish Poison' AND sn.classes2 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 48, 57, 2),
((SELECT id FROM npc_spells WHERE name = 'Cleric Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Pure Blood' AND sn.classes2 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 51, 83, 3),
((SELECT id FROM npc_spells WHERE name = 'Cleric Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Remove Greater Curse' AND sn.classes2 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 54, 255, 2),
((SELECT id FROM npc_spells WHERE name = 'Cleric Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Antidote' AND sn.classes2 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 58, 83, 2),

((SELECT id FROM npc_spells WHERE name = 'Paladin Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Cure Poison' AND sn.classes3 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 5, 33, 2),
((SELECT id FROM npc_spells WHERE name = 'Paladin Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Cure Disease' AND sn.classes3 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 11, 55, 2),
((SELECT id FROM npc_spells WHERE name = 'Paladin Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Remove Minor Curse' AND sn.classes3 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 19, 33, 2),
((SELECT id FROM npc_spells WHERE name = 'Paladin Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Counteract Poison' AND sn.classes3 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 34, 61, 2),
((SELECT id FROM npc_spells WHERE name = 'Paladin Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Remove Lesser Curse' AND sn.classes3 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 34, 44, 2),
((SELECT id FROM npc_spells WHERE name = 'Paladin Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Remove Curse' AND sn.classes3 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 45, 59, 2),
((SELECT id FROM npc_spells WHERE name = 'Paladin Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Counteract Disease' AND sn.classes3 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 56, 61, 2),
((SELECT id FROM npc_spells WHERE name = 'Paladin Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Remove Greater Curse' AND sn.classes3 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 60, 255, 2),
((SELECT id FROM npc_spells WHERE name = 'Paladin Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Crusader`s Touch' AND sn.classes3 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 62, 66, 2),
((SELECT id FROM npc_spells WHERE name = 'Paladin Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Crusader\'s Purity' AND sn.classes3 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 67, 80, 2),

((SELECT id FROM npc_spells WHERE name = 'Ranger Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Cure Poison' AND sn.classes4 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 13, 60, 2),
((SELECT id FROM npc_spells WHERE name = 'Ranger Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Cure Disease' AND sn.classes4 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 22, 60, 2),
((SELECT id FROM npc_spells WHERE name = 'Ranger Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Counteract Poison' AND sn.classes4 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 61, 72, 2),
((SELECT id FROM npc_spells WHERE name = 'Ranger Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Counteract Disease' AND sn.classes4 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 61, 72, 2),

((SELECT id FROM npc_spells WHERE name = 'Shadowknight Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Cure Disease' AND sn.classes5 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 19, 255, 2),

((SELECT id FROM npc_spells WHERE name = 'Druid Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Cure Disease' AND sn.classes6 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 4, 27, 2),
((SELECT id FROM npc_spells WHERE name = 'Druid Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Cure Poison' AND sn.classes6 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 5, 27, 2),
((SELECT id FROM npc_spells WHERE name = 'Druid Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Counteract Poison' AND sn.classes6 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 28, 51, 2),
((SELECT id FROM npc_spells WHERE name = 'Druid Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Counteract Disease' AND sn.classes6 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 28, 51, 2),
((SELECT id FROM npc_spells WHERE name = 'Druid Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Pure Blood' AND sn.classes6 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 52, 83, 2),

((SELECT id FROM npc_spells WHERE name = 'Bard Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Aria of Asceticism' AND sn.classes8 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 45, 85, 2),
((SELECT id FROM npc_spells WHERE name = 'Bard Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Aria of Innocence' AND sn.classes8 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 52, 85, 2),

((SELECT id FROM npc_spells WHERE name = 'Shaman Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Cure Disease' AND sn.classes10 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 1, 21, 2),
((SELECT id FROM npc_spells WHERE name = 'Shaman Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Cure Poison' AND sn.classes10 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 2, 25, 2),
((SELECT id FROM npc_spells WHERE name = 'Shaman Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Remove Minor Curse' AND sn.classes10 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 9, 23, 2),
((SELECT id FROM npc_spells WHERE name = 'Shaman Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Counteract Disease' AND sn.classes10 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 22, 47, 2),
((SELECT id FROM npc_spells WHERE name = 'Shaman Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Remove Lesser Curse' AND sn.classes10 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 24, 37, 2),
((SELECT id FROM npc_spells WHERE name = 'Shaman Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Counteract Poison' AND sn.classes10 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 26, 51, 2),
((SELECT id FROM npc_spells WHERE name = 'Shaman Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Remove Curse' AND sn.classes10 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 38, 53, 2),
((SELECT id FROM npc_spells WHERE name = 'Shaman Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Abolish Disease' AND sn.classes10 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 48, 51, 2),
((SELECT id FROM npc_spells WHERE name = 'Shaman Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Disinfecting Aura' AND sn.classes10 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 52, 84, 2),
((SELECT id FROM npc_spells WHERE name = 'Shaman Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Blood of Nadox' AND sn.classes10 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 52, 84, 2),
((SELECT id FROM npc_spells WHERE name = 'Shaman Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Remove Greater Curse' AND sn.classes10 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 54, 255, 2),

((SELECT id FROM npc_spells WHERE name = 'Beastlord Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Cure Disease' AND sn.classes15 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 4, 44, 2),
((SELECT id FROM npc_spells WHERE name = 'Beastlord Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Cure Poison' AND sn.classes15 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 13, 60, 2),
((SELECT id FROM npc_spells WHERE name = 'Beastlord Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Counteract Disease' AND sn.classes15 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 45, 62, 2),
((SELECT id FROM npc_spells WHERE name = 'Beastlord Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Counteract Poison' AND sn.classes15 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 61, 255, 2),
((SELECT id FROM npc_spells WHERE name = 'Beastlord Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Abolish Disease' AND sn.classes15 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 63, 255, 2);


-- Level > 70
-- REPLACE INTO npc_spells_entries (npc_spells_id, spellid, type, minlevel, maxlevel, priority) VALUES
-- ((SELECT id FROM npc_spells WHERE name = 'Cleric Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Expunge Corruption' AND sn.classes2 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 74, 78, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Cleric Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Expunge Corruption Rk. II' AND sn.classes2 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 74, 78, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Cleric Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Expunge Corruption Rk. III' AND sn.classes2 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 74, 78, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Cleric Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Abolish Corruption' AND sn.classes2 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 84, 255, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Cleric Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Abolish Corruption Rk. II' AND sn.classes2 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 84, 255, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Cleric Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Abolish Corruption Rk. III' AND sn.classes2 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 84, 255, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Cleric Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Purified Blood' AND sn.classes2 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 84, 255, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Cleric Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Purified Blood Rk. II' AND sn.classes2 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 84, 255, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Cleric Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Purified Blood Rk. III' AND sn.classes2 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 84, 255, 2),

-- ((SELECT id FROM npc_spells WHERE name = 'Paladin Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Devoted Purity' AND sn.classes3 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 81, 255, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Paladin Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Devoted Purity Rk. II' AND sn.classes3 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 81, 255, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Paladin Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Devoted Purity Rk. III' AND sn.classes3 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 81, 255, 2),

-- ((SELECT id FROM npc_spells WHERE name = 'Ranger Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Potameid Salve' AND sn.classes4 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 73, 77, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Ranger Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Potameid Salve Rk. II' AND sn.classes4 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 73, 77, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Ranger Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Potameid Salve Rk. III' AND sn.classes4 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 73, 77, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Ranger Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Potameid Balm' AND sn.classes4 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 78, 82, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Ranger Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Potameid Balm Rk. II' AND sn.classes4 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 78, 82, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Ranger Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Potameid Balm Rk. III' AND sn.classes4 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 78, 82, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Ranger Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Burynai Balm' AND sn.classes4 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 83, 87, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Ranger Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Burynai Balm Rk. II' AND sn.classes4 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 83, 87, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Ranger Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Burynai Balm Rk. III' AND sn.classes4 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 83, 87, 2),

-- ((SELECT id FROM npc_spells WHERE name = 'Druid Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Cure Corruption' AND sn.classes6 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 71, 83, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Druid Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Cure Corruption Rk. II' AND sn.classes6 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 71, 83, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Druid Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Cure Corruption Rk. III' AND sn.classes6 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 71, 83, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Druid Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Purified Blood' AND sn.classes6 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 84, 88, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Druid Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Purified Blood Rk. II' AND sn.classes6 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 84, 88, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Druid Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Purified Blood Rk. III' AND sn.classes6 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 84, 88, 2),

-- ((SELECT id FROM npc_spells WHERE name = 'Bard Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Minohten\'s Purifying Panpipes' AND sn.classes8 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 74, 78, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Bard Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Minohten\'s Purifying Panpipes Rk. II' AND sn.classes8 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 74, 78, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Bard Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Minohten\'s Purifying Panpipes Rk. III' AND sn.classes8 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 74, 78, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Bard Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Minohten\'s Purifying Panpipes' AND sn.classes8 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 79, 83, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Bard Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Minohten\'s Purifying Panpipes Rk. II' AND sn.classes8 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 79, 83, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Bard Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Minohten\'s Purifying Panpipes Rk. III' AND sn.classes8 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 79, 83, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Bard Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Firiona\'s Blessed Clarinet' AND sn.classes8 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 84, 85, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Bard Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Firiona\'s Blessed Clarinet Rk.II' AND sn.classes8 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 84, 85, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Bard Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Firiona\'s Blessed Clarinet Rk.III' AND sn.classes8 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 84, 85, 2),

-- ((SELECT id FROM npc_spells WHERE name = 'Shaman Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Cure Corruption' AND sn.classes10 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 72, 73, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Shaman Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Cure Corruption Rk. II' AND sn.classes10 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 72, 73, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Shaman Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Cure Corruption Rk. III' AND sn.classes10 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 72, 73, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Shaman Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Chant of the Napaea' AND sn.classes10 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 74, 78, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Shaman Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Chant of the Napaea Rk. II' AND sn.classes10 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 74, 78, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Shaman Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Chant of the Napaea Rk. III' AND sn.classes10 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 74, 78, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Shaman Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Chant of the Darkvine' AND sn.classes10 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 79, 83, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Shaman Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Chant of the Darkvine Rk. II' AND sn.classes10 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 79, 83, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Shaman Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Chant of the Darkvine Rk. III' AND sn.classes10 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 79, 83, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Shaman Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Chant of the Burynai' AND sn.classes10 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 84, 88, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Shaman Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Chant of the Burynai Rk. II' AND sn.classes10 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 84, 88, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Shaman Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Chant of the Burynai Rk. III' AND sn.classes10 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 84, 88, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Shaman Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Blood of Avoling' AND sn.classes10 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 85, 89, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Shaman Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Blood of Avoling Rk. II' AND sn.classes10 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 85, 89, 2),
-- ((SELECT id FROM npc_spells WHERE name = 'Shaman Bot'), (SELECT sn.id FROM spells_new sn, items i WHERE sn.name = 'Blood of Avoling Rk. III' AND sn.classes10 < 254 AND sn.id = i.scrolleffect ORDER BY sn.id DESC LIMIT 1), 32768, 85, 89, 2);