scorpio Posted January 2, 2014 Share Posted January 2, 2014 I guess some unintended interaction between SCS/SR/atweaks? I was pressing the wrong key to screen-cap so don't have some of the other screenies I intended to take, but this one shows it well enough. Lavok cast summon cacofiend, it summoned an Arcanoloth (Never seen/heard of this in vanilla BG2) - looked like a human wizard sprite in-game. He's just been unsummoned in that screenshot, anyways he destroyed lavok and 2 of the 4 wraiths Lavok summoned too. Neither Lavok nor the wraiths attacked the arcanaloth, but he did a number on them! It was actually pretty cool, so I cannot complain, but it's going to suck if the rest of the fiends in the game act-up against their masters. Edit: I summoned a generic mage to test it out: "mage14a" The Cornugon attacks her immediately i used atweaks after SCS, and used the option to alter all mod-added fiends. Link to comment
Wisp Posted January 2, 2014 Share Posted January 2, 2014 It'd be an aTweaks bug, but I can't reproduce this. Can you post the contents of your weidu.log? Link to comment
scorpio Posted January 2, 2014 Author Share Posted January 2, 2014 Sure: // Log of Currently Installed WeiDU Mods // The top of the file is the 'oldest' mod // ~TP2_File~ #language_number #component_number // [subcomponent Name -> ] Component Name [ : Version] ~SETUP-BWS.TP2~ #0 #0 // 20131203 - Updated by Silent ~SETUP-BWFIXPACK.TP2~ #0 #0 // BiG-World-Fixpack-master.zip ~SETUP-BWTRIMPACK.TP2~ #0 #0 // BiG World Trimpack v13.0.2.7z ~SETUP-BWINSTALLPACK.TP2~ #0 #0 // BiG World Installpack v13.0.6.7z ~TOBEX/TOBEX.TP2~ #0 #100 // TobEx - Core: Beta 0026 ~TOBEX/TOBEX.TP2~ #0 #101 // Apply Concentration Check On Damage [WIP]: Beta 0026 ~TOBEX/TOBEX.TP2~ #0 #102 // Awaken On Damage: Beta 0026 ~TOBEX/TOBEX.TP2~ #0 #105 // No Spell Interruption On Zero Damage: Beta 0026 ~TOBEX/TOBEX.TP2~ #0 #109 // Disable Experience Boost: Beta 0026 ~TOBEX/TOBEX.TP2~ #0 #111 // Disable Silence On Charm: Beta 0026 ~TOBEX/TOBEX.TP2~ #0 #112 // Level One Proficiency Restrictions: Beta 0026 ~TOBEX/TOBEX.TP2~ #0 #113 // Remain Hidden On Pickpocket Success [C]: Beta 0026 ~TOBEX/TOBEX.TP2~ #0 #114 // Rest Spawns Advance Time: Beta 0026 ~TOBEX/TOBEX.TP2~ #0 #115 // Dialogue Greeting Subtitles: Beta 0026 ~TOBEX/TOBEX.TP2~ #0 #116 // Enable Animation Attack Sounds: Beta 0026 ~TOBEX/TOBEX.TP2~ #0 #118 // Subtitles For Standard Soundsets: Beta 0026 ~TOBEX/TOBEX.TP2~ #0 #120 // Drop Inventory on Disintegrate: Beta 0026 ~TOBEX/TOBEX.TP2~ #0 #121 // Drop Inventory on Frozen Death: Beta 0026 ~TOBEX/TOBEX.TP2~ #0 #122 // Drop Inventory on Stone Death: Beta 0026 ~TOBEX/TOBEX.TP2~ #0 #123 // Enable Auto-Pause On All Screens: Beta 0026 ~TOBEX/TOBEX.TP2~ #0 #124 // Make All Attack Animations Genuine Attacks: Beta 0026 ~SETUP-ASCENSION.TP2~ #0 #0 // Ascension v1.41 (requires ToB): v1.4.24 BWP Fix ~SETUP-ASCENSION.TP2~ #0 #1 // Tougher Abazigal (optional, requires ToB): v1.4.24 BWP Fix ~SETUP-ASCENSION.TP2~ #0 #2 // Original Tougher Demogorgon (optional, requires ToB): v1.4.24 BWP Fix ~SETUP-ASCENSION.TP2~ #0 #3 // Tougher Gromnir (optional, requires ToB): v1.4.24 BWP Fix ~SETUP-ASCENSION.TP2~ #0 #4 // Tougher Illasera (optional, requires ToB): v1.4.24 BWP Fix ~SETUP-ASCENSION.TP2~ #0 #5 // Tougher Yaga-Shura (optional, requires ToB): v1.4.24 BWP Fix ~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #0 #0 // BG2 Fixpack - Core Fixes: v10 ~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #0 #1000 // BG2 Fixpack - Game Text Update -> GTU Light (by Wisp): v10 ~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #0 #3 // BETA Core Fixes (please check the readme!): v10 ~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #0 #100 // Party Gets XP for Sending Keldorn to Reconcile With Maria: v10 ~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #0 #101 // Improved Spell Animations: v10 ~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #0 #102 // Cromwell's Forging Actually Takes a Day: v10 ~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #0 #103 // Mixed-Use Dagger Fixes: v10 ~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #0 #104 // Ghreyfain's Holy Symbol Fixes: v10 ~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #0 #106 // Giants Receive Penalties When Attacking Halflings, Dwarves, and Gnomes: v10 ~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #0 #107 // Remove Dual-Classing Restriction from Archers and Stalkers: v10 ~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #0 #108 // Remove Second Attribute Bonus for Evil Path in Wrath Hell Trial: v10 ~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #0 #109 // Corrected Summoned Demon Behavior: v10 ~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #0 #110 // Additional Script Fixes: v10 ~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #0 #111 // Bard Song Fixes: v10 ~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #0 #112 // Wizard Slayers Cause Miscast Magic on Ranged Attacks: v10 ~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #0 #113 // Additional Alignment Fixes: v10 ~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #0 #114 // Change Free Action to Protect Against Stun: v10 ~1PP/1PP.TP2~ #0 #101 // 1ppv4: Core paperdolls: v4.1.0 BWP Fix ~1PP/1PP.TP2~ #0 #200 // 1ppv4: Core content patches: v4.1.0 BWP Fix ~ITEM_REV/ITEM_REV.TP2~ #0 #0 // Item Revisions by Demivrgvs: V3 Beta 1.16 ~ITEM_REV/ITEM_REV.TP2~ #0 #1 // Masterwork Weapons: V3 Beta 1.16 ~TOA/SETUP-TOA.TP2~ #1 #1 // Tales of Anegh (Weidu): v2.4 ~TOA/SETUP-TOA.TP2~ #1 #10 // Creature Balancing: v2.4 ~TOA/SETUP-TOA.TP2~ #1 #20 // AREA Balancing: v2.4 ~TOA/SETUP-TOA.TP2~ #1 #30 // Dialog & Script Balancing: v2.4 ~TOA/SETUP-TOA.TP2~ #1 #40 // Stores Balancing: v2.4 ~TOA/SETUP-TOA.TP2~ #1 #50 // Item Balancing: v2.4 ~GBTHFKP/GBTHFKP.TP2~ #0 #0 // Expanded Thief Stronghold: v2.20 ~C#SB_SILBER/SETUP-C#SB_SILBER.TP2~ #0 #0 // Adalon's Blood - Modification for BGII by Gandalf the white: 13 ~TOD/SETUP-TOD.TP2~ #0 #0 // Tower Of Deception Mod (Requires Throne Of Bhaal): v3.3.1 BWP Fix ~TOD/SETUP-TOD.TP2~ #0 #1 // Improved Astral Shard Guardian: v3.3.1 BWP Fix ~TOD/SETUP-TOD.TP2~ #0 #2 // Encounter with Ustrain: v3.3.1 BWP Fix ~DC/SETUP-DC.TP2~ #0 #0 // Dungeon Crawl: v7 ~ASSASSINATIONS/SETUP-ASSASSINATIONS.TP2~ #0 #0 // Assassinations mod for Baldur's Gate II: v10 ~BACKBRYNNLAW/SETUP-BACKBRYNNLAW.TP2~ #0 #0 // Back to Brynnlaw mod for Baldur's Gate II: v3 ~SELLSWORDS/SETUP-SELLSWORDS.TP2~ #0 #0 // The Sellswords mod for Baldur's Gate II: v3 ~TOTDG/SETUP-TOTDG.TP2~ #0 #0 // Colours of Infinity: Tales of the Deep Gardens: v10.0 BWP Fix ~TOTDG/SETUP-TOTDG.TP2~ #0 #1 // NPC Reactions (Aerie, Viconia, Jaheira, Anomen, Haer'Dalis, Keldorn): v10.0 BWP Fix ~TOTDG/SETUP-TOTDG.TP2~ #0 #2 // Add Deep Gardens to the Worldmap - suggested component. If this component can't be installed due to incompatibilities, skip it.: v10.0 BWP Fix ~INNERSHADE/SETUP-INNERSHADE.TP2~ #0 #0 // Colours of Infinity: Innershade: v6.0 BWP Fix ~INNERSHADE/SETUP-INNERSHADE.TP2~ #0 #2 // Talks for original Bioware NPCs: v6.0 BWP Fix ~INNERSHADE/SETUP-INNERSHADE.TP2~ #0 #6 // Add Innershade to Worldmap (You *must* pick one of these components, otherwise the mod won't run as it should.) -> Add Innershade to BP-BGT-Worldmap.: v6.0 BWP Fix ~WHITEQUEEN/WHITEQUEEN.TP2~ #0 #0 // Colours of Infinity - The White Queen ~ISNF/ISNF.TP2~ #0 #0 // Colours of Infinity: I Shall Never Forget ~EILISTRAEE/SETUP-EILISTRAEE.TP2~ #0 #0 // Eilistraee's Song ~EILISTRAEE/SETUP-EILISTRAEE.TP2~ #0 #2 // Worldmap addition -> Add Eilistraee's Clearing to BP-BGT-Worldmap ~DQ/SETUP-DQ.TP2~ #0 #0 // Core Files: Fishing for Trouble by Yovaneth: v2.4 ~BW_HERBS_BG2/SETUP-BW_HERBS_BG2.TP2~ #0 #0 // Herbs and Potions Add-in for BG2 by Baronius: v1.0.5 ~SETUP-AMBER.TP2~ #0 #0 // Amber the NPC MOD for BGII:SoA: v4 BWP Fix ~TASHIA/SETUP-TASHIA.TP2~ #0 #0 // Tashia NPC Mod -> Full version (ToB required): v1.4 BWP Fix ~TASHIA/SETUP-TASHIA.TP2~ #0 #2 // Tashia Add-on Pack by Bri and Lord Ernie (English only, Tashia ToB Required) -> Action Style dialogues: v1.4 BWP Fix ~SETUP-KIVAN.TP2~ #0 #0 // Kivan of Shilmista: v13 BWP Fix ~SETUP-KIVAN.TP2~ #0 #2 // Select Deheriana's Class -> Wild Mage: v13 BWP Fix ~SETUP-KIVAN.TP2~ #0 #6 // Select Kivan's Portrait -> Install Herd's Alternative Portrait for Kivan.: v13 BWP Fix ~SETUP-KIVAN.TP2~ #0 #7 // Install ToB Portion of the Mod: v13 BWP Fix ~SETUP-FADE.TP2~ #0 #0 // Fade: An NPC for Baldur's Gate II: v3 BWP Fix ~SETUP-KIDO.TP2~ #0 #0 // Kido the Jester (Requires Throne of Bhaal): v7.0 BWP Fix ~SETUP-KIDO.TP2~ #0 #3 // Which of Kido's portraits do you wish to install? -> Kido's old portraits (of version 1.0 till 2.1)?: v7.0 BWP Fix ~SETUP-VALEN.TP2~ #0 #0 // Valen: v45 BWP Fix ~XAN/SETUP-XAN.TP2~ #0 #0 // Xan NPC MOD for Baldur's Gate II: v12 ~XAN/SETUP-XAN.TP2~ #0 #3 // Install alternate class for Xan? -> Change Xan's class to Sorcerer: v12 ~XAN/SETUP-XAN.TP2~ #0 #5 // BG1-style flaming swords: v12 ~XANBG2VOICE/SETUP-XANBG2VOICE.TP2~ #0 #0 // Xan's BG2 voice for BG1, v2 ~YASRAENA/SETUP-YASRAENA.TP2~ #0 #0 // Yasraena (BG2:SoA & TOB NPC) created by nethrin & Sillara of the Tamari: v14 ~XULAYE/XULAYE.TP2~ #0 #0 // Xulaye NPC Mod for BG2:SoA: v1.2 ~XULAYE/XULAYE.TP2~ #0 #1 // Xulaye's Player Initiated Dialogues: v1.2 ~XULAYE/XULAYE.TP2~ #0 #2 // Korgan Fights at the Pits: v1.2 ~TYRISFLARE/SETUP-TYRISFLARE.TP2~ #0 #0 // Tyris Flare NPC: v6 BWP Fix ~VARSHOON/SETUP-VARSHOON.TP2~ #0 #0 // Varshoon - an illithid NPC for BG2 ~VARSHOON/SETUP-VARSHOON.TP2~ #0 #1 // New paperdoll for illithids (inventory illustration) ~ISRA_BG2/ISRA_BG2.TP2~ #0 #0 // Isra for BGII: v2.1 ~DEARNISE/SETUP-DEARNISE.TP2~ #0 #0 // de'Arnise Romance for Baldur's Gate II: v4 ~SETUP-BANTERPACK.TP2~ #0 #0 // Pocket Plane Banter Pack for BG2: Shadows of Amn: V14 ~SETUP-BANTERPACK.TP2~ #0 #2 // Pocket Plane Banter Pack for BG2: Throne of Bhaal: V14 ~IEPBANTERS/SETUP-IEPBANTERS.TP2~ #0 #0 // Extended NPC-NPC Interaction SoA: V4.2 ~IEPBANTERS/SETUP-IEPBANTERS.TP2~ #0 #1 // Extended Minsc/Aerie Interaction ToB: V4.2 ~IEPBANTERS/SETUP-IEPBANTERS.TP2~ #0 #2 // Imoen "Retrospection" dialogue for BGII: ToB: V4.2 ~IEPBANTERS/SETUP-IEPBANTERS.TP2~ #0 #3 // Wake-Up dialogue for Anomen Romance (By David Gaider with additions from Kulyok): V4.2 ~IEPBANTERS/SETUP-IEPBANTERS.TP2~ #0 #4 // NPC Conflict Revisions: V4.2 ~IEPBANTERS/SETUP-IEPBANTERS.TP2~ #0 #5 // Restored Aerie/Jaheira/Anomen interjection in Underdark: V4.2 ~VICONIA/SETUP-VICONIA.TP2~ #0 #0 // Viconia Friendship: v3.3 ~MAZZY/SETUP-MAZZY.TP2~ #0 #0 // Mazzy Friendship: v2.2 BWP Fix ~YOSHIMO/YOSHIMO.TP2~ #0 #0 // Yoshimo Friendship Mod for BGII: SoA: 2.2 ~JANQUEST/SETUP-JANQUEST.TP2~ #1 #0 // Jan's Extended Quest ~KORGAN/SETUP-KORGAN.TP2~ #1 #0 // Korgan's Redemption ~IMOENFRIENDSHIP/IMOENFRIENDSHIP.TP2~ #0 #0 // Imoen Friendship: 2.1 ~LAVALYGAR/LAVALYGAR.TP2~ #0 #0 // LaValygar - new talks with Valygar Corthala ~SAREVOKFRIENDSHIP/SAREVOKFRIENDSHIP.TP2~ #0 #0 // Sarevok Friendship for BGII: ToB: 1 ~QUALLOFIX/SETUP-QUALLOFIX.TP2~ #0 #0 // Let the cadaver crawler live: 1.14 ~LUCY/SETUP-LUCY.TP2~ #0 #0 // Lucy the Wyvern: v4 ~ZALNOYA/SETUP-ZALNOYA.TP2~ #0 #0 // Zalnoya and the Shadow Thieves ~ZALNOYA/SETUP-ZALNOYA.TP2~ #0 #1 // Standard vampire encounters fix ~SETUP-UB.TP2~ #0 #0 // The Kidnapping of Boo by Cliffette: v23 ~SETUP-UB.TP2~ #0 #1 // The Suna Seni/Valygar Relationship: v23 ~SETUP-UB.TP2~ #0 #2 // Kalah and What He Was Promised: v23 ~SETUP-UB.TP2~ #0 #4 // Gorje Hilldark and the Extended Illithium Quest: v23 ~SETUP-UB.TP2~ #0 #5 // The Pai'Na/Spider's Bane Quest: v23 ~SETUP-UB.TP2~ #0 #6 // Restored Crooked Crane Inn: v23 ~SETUP-UB.TP2~ #0 #7 // Restored Encounters: v23 ~SETUP-UB.TP2~ #0 #8 // Artemis Entreri in Bodhi's Lair: v23 ~SETUP-UB.TP2~ #0 #9 // Corrected "Xzar's Creations": v23 ~SETUP-UB.TP2~ #0 #10 // Restored Hell Minions, by SimDing0: v23 ~SETUP-UB.TP2~ #0 #12 // Item Restorations: v23 ~SETUP-UB.TP2~ #0 #16 // Corrected BAMs and Scripts: v23 ~SETUP-UB.TP2~ #0 #17 // Corrected Character Names and Biographies: v23 ~SETUP-UB.TP2~ #0 #18 // Restored Minor Dialogs: v23 ~SETUP-UB.TP2~ #0 #19 // Restored Bhaalspawn Powers, by David Gaider: v23 ~SETUP-UB.TP2~ #0 #21 // Throne of Bhaal Minor Restorations: v23 ~SETUP-UB.TP2~ #0 #25 // The Murder of Acton Balthis, by Kulyok: v23 ~FADINGPROMISES/SETUP-FADINGPROMISES.TP2~ #0 #0 // Fading Promises: v7 BWP fix ~SPELL_REV/SETUP-SPELL_REV.TP2~ #0 #0 // Spell Revisions: v3.1 (Hotfix 02) ~SPELL_REV/SETUP-SPELL_REV.TP2~ #0 #10 // Deva and Planetar Animations: v3.1 (Hotfix 02) ~SPELL_REV/SETUP-SPELL_REV.TP2~ #0 #20 // Mirror Image Fix: v3.1 (Hotfix 02) ~SPELL_REV/SETUP-SPELL_REV.TP2~ #0 #30 // Dispel Magic Fix: v3.1 (Hotfix 02) ~SPELL_REV/SETUP-SPELL_REV.TP2~ #0 #40 // Cure Sleep Fix: v3.1 (Hotfix 02) ~SETUP-RES_FIXER.TP2~ #0 #0 // Resource Fixer: v1 ~SETUP-D0QUESTPACK.TP2~ #0 #11 // Improved Oasis II -> IO2 Dialogue & Combat Enhancement: v2.3 (Feb 14, 2010) BWP Fix ~SETUP-TACTICS.TP2~ #0 #1 // The Ritual (requires ToB): v25; Lol's Update to v26 ~SETUP-TACTICS.TP2~ #0 #32 // Mike Barnes' Improved North Forest: v25; Lol's Update to v26 ~SETUP-TURNABOUT.TP2~ #0 #0 // Ascension: Turnabout: BWP Fix ~SETUP-TURNABOUT.TP2~ #0 #1 // Balthazar Epilogue Portrait, by Cliffette: BWP Fix ~WHEELS/SETUP-WHEELS.TP2~ #0 #0 // The Wheels of Prophecy: v3 ~HOMEWARDBOUND/SETUP-HOMEWARDBOUND.TP2~ #0 #0 // Homeward Bound: v7 - 25 April, 2010 ~HOMEWARDBOUND/SETUP-HOMEWARDBOUND.TP2~ #0 #1 // Romances end due to separation -> Homeward Bound does *not* kill BioWare romances: v7 - 25 April, 2010 ~SETUP-KETO.TP2~ #0 #0 // Keto-SOA NPC V2 ~RE/SETUP-RE.TP2~ #0 #0 // Aerie, Anomen, Jaheira and Viconia React to Romantic Encounters: v8 ~RE/SETUP-RE.TP2~ #0 #1 // Storms and Lightning, by berelinde (Weathermistress Ada, adult content): v8 ~RE/SETUP-RE.TP2~ #0 #2 // Aimi's Magic, by berelinde (adult content): v8 ~RE/SETUP-RE.TP2~ #0 #3 // Anishai's Deft Hands, by cmorgan: v8 ~RE/SETUP-RE.TP2~ #0 #4 // An Evening with Aran, by Kulyok: v8 ~RE/SETUP-RE.TP2~ #0 #5 // Bjornin's Desire, by jastey (adult content): v8 ~RE/SETUP-RE.TP2~ #0 #6 // Bodhi's Allure, by Kulyok (adult content): v8 ~RE/SETUP-RE.TP2~ #0 #7 // Trademeet with Guildmistress Busya, by magrat: v8 ~RE/SETUP-RE.TP2~ #0 #8 // The Gambling Cambion, by Kulyok: v8 ~RE/SETUP-RE.TP2~ #0 #9 // Chanelle's Gifts, by cmorgan (adult content): v8 ~RE/SETUP-RE.TP2~ #0 #10 // A Night with Coran, by magrat: v8 ~RE/SETUP-RE.TP2~ #0 #11 // Cyric's Test, by Kulyok: v8 ~RE/SETUP-RE.TP2~ #0 #12 // A Tryst with a Pirate Lord, by Kulyok (Desharik, adult content): v8 ~RE/SETUP-RE.TP2~ #0 #13 // A Lonely Dryad, by Kulyok (adult content): v8 ~RE/SETUP-RE.TP2~ #0 #14 // Edwin's Softer Side, by Kulyok: v8 ~RE/SETUP-RE.TP2~ #0 #15 // Eldoth' Exploits, by Kulyok: v8 ~RE/SETUP-RE.TP2~ #0 #16 // Elhan's Expansion, by Kulyok: v8 ~RE/SETUP-RE.TP2~ #0 #17 // Firkraag's Unsheathed Sword: v8 ~RE/SETUP-RE.TP2~ #0 #18 // Gaelan's Contract, by Evaine Dian: v8 ~RE/SETUP-RE.TP2~ #0 #19 // A Walk with Garren Windspear, by Kulyok: v8 ~RE/SETUP-RE.TP2~ #0 #20 // Enter Haer'Dalis, by Kulyok: v8 ~RE/SETUP-RE.TP2~ #0 #21 // Hendak's Heart, by jastey: v8 ~RE/SETUP-RE.TP2~ #0 #22 // Ilona, a Merchant's Daughter, by Kulyok: v8 ~RE/SETUP-RE.TP2~ #0 #23 // Jarlaxle's Fascinations, by Catseye: v8 ~RE/SETUP-RE.TP2~ #0 #24 // A Night with Lais in Imnesvale, by Kulyok: v8 ~RE/SETUP-RE.TP2~ #0 #25 // Laran's Promise, by berelinde (adult content): v8 ~RE/SETUP-RE.TP2~ #0 #26 // The Love Song of Logan, Lord Coprith, by Ajnos: v8 ~RE/SETUP-RE.TP2~ #0 #27 // Mekrath and Nymphology, by Kulyok: v8 ~RE/SETUP-RE.TP2~ #0 #28 // Mira's Special Stock, by berelinde: v8 ~RE/SETUP-RE.TP2~ #0 #29 // Noober Returns, by cmorgan: v8 ~RE/SETUP-RE.TP2~ #0 #30 // Rebecca the Gypsy, by Kulyok: v8 ~RE/SETUP-RE.TP2~ #0 #31 // Renal Bloodscalp: A Dangerous Affair, by cmorgan (adult content): v8 ~RE/SETUP-RE.TP2~ #0 #32 // Old Ribald's Speciality, by Evaine Dian: v8 ~RE/SETUP-RE.TP2~ #0 #33 // Sir Ryan Trawl, by Kulyok: v8 ~RE/SETUP-RE.TP2~ #0 #34 // Saemon, a Pirate, by Kulyok (adult content): v8 ~RE/SETUP-RE.TP2~ #0 #35 // Dreaming of Sendai, by Kulyok: v8 ~RE/SETUP-RE.TP2~ #0 #36 // Sheri the Bardess, by cmorgan (adult content): v8 ~RE/SETUP-RE.TP2~ #0 #37 // Solaufein in the Lust Chambers, by jastey: v8 ~RE/SETUP-RE.TP2~ #0 #38 // Phaere's Reward, by berelinde (Talak, pleasure slave, adult content): v8 ~RE/SETUP-RE.TP2~ #0 #39 // Spell Research with Teos, by Kulyok: v8 ~RE/SETUP-RE.TP2~ #0 #40 // A fling with Yoshimo, by Kulyok: v8 ~RE/SETUP-RE.TP2~ #0 #41 // Isabelle's Fears, by gertjanvh (adult content): v8 ~RE/SETUP-RE.TP2~ #0 #42 // Anne's Rescue, by gertjanvh (adult content): v8 ~RE/SETUP-RE.TP2~ #0 #43 // The Queen, by Domi: v8 ~RE/SETUP-RE.TP2~ #0 #44 // Valygar Romance, by Kulyok: v8 ~RE/SETUP-RE.TP2~ #0 #45 // Rehearsal with Chandra, by Western Paladin: v8 ~RE/SETUP-RE.TP2~ #0 #46 // Goldander Blackenrock: After a Party, by magrat: v8 ~RE/SETUP-RE.TP2~ #0 #47 // A Chat with Viekang, by magrat: v8 ~RE/SETUP-RE.TP2~ #0 #48 // Bravery or Folly? by Aeryn (Sarevok, adult content): v8 ~RE/SETUP-RE.TP2~ #0 #49 // Blame the Moon, by Aeryn (Cernd): v8 ~RE/SETUP-RE.TP2~ #0 #50 // Cernick's Confession, by Cal Jones: v8 ~RE/SETUP-RE.TP2~ #0 #51 // Valygar Romance ToB, by Kulyok: v8 ~RE/SETUP-RE.TP2~ #0 #52 // Minsc. Takes. A Bath, by Thimblerig: v8 ~RE/SETUP-RE.TP2~ #0 #53 // Nizidramanii'yt's Vanity, by Thimblerig: v8 ~SETUP-D0QUESTPACK.TP2~ #0 #6 // Alternative Harper/Xzar Plot: v2.3 (Feb 14, 2010) BWP Fix ~SETUP-D0QUESTPACK.TP2~ #0 #7 // Extended Reynald Sequence: v2.3 (Feb 14, 2010) BWP Fix ~SETUP-D0QUESTPACK.TP2~ #0 #8 // Intrigue In The Copper Coronet: v2.3 (Feb 14, 2010) BWP Fix ~SETUP-D0QUESTPACK.TP2~ #0 #9 // Rahul Kanakia's Potion Quest: v2.3 (Feb 14, 2010) BWP Fix ~SETUP-D0QUESTPACK.TP2~ #0 #10 // Revised Hell Trials: v2.3 (Feb 14, 2010) BWP Fix ~SETUP-D0QUESTPACK.TP2~ #0 #13 // Saving Sanik In Brynnlaw: v2.3 (Feb 14, 2010) BWP Fix ~SETUP-D0QUESTPACK.TP2~ #0 #14 // Burglary Of The Bookkeeper: v2.3 (Feb 14, 2010) BWP Fix ~SETUP-D0QUESTPACK.TP2~ #0 #15 // New Fate For The Dryads' Acorns: v2.3 (Feb 14, 2010) BWP Fix ~SETUP-D0QUESTPACK.TP2~ #0 #16 // The Tragedy Of Besamen: v2.3 (Feb 14, 2010) BWP Fix ~SETUP-D0QUESTPACK.TP2~ #0 #17 // Further Slaver Involvement: v2.3 (Feb 14, 2010) BWP Fix ~SETUP-D0QUESTPACK.TP2~ #0 #18 // Sending The Solamnic Knights Home: v2.3 (Feb 14, 2010) BWP Fix ~SETUP-D0QUESTPACK.TP2~ #0 #19 // Nazariel The Lich: v2.3 (Feb 14, 2010) BWP Fix ~SETUP-D0QUESTPACK.TP2~ #0 #20 // Reward Negotiation: v2.3 (Feb 14, 2010) BWP Fix ~SETUP-D0QUESTPACK.TP2~ #0 #21 // Infernal Thievery: v2.3 (Feb 14, 2010) BWP Fix ~CROSSMODBG2/SETUP-CROSSMODBG2.TP2~ #0 #0 // Crossmod Banter Pack for Shadows of Amn: v14 ~CROSSMODBG2/SETUP-CROSSMODBG2.TP2~ #0 #1 // Crossmod Banter Pack for Throne of Bhaal: v14 ~CROSSMODBG2/SETUP-CROSSMODBG2.TP2~ #0 #2 // Crossmod Romance Conflicts: v14 ~SPELL_REV/SETUP-SPELL_REV.TP2~ #0 #60 // Update Spellbooks of Joinable NPCs: v3.1 (Hotfix 02) ~X0BLACK/X0BLACK.TP2~ #0 #0 // Install Blackguard fighter kit: v1.01 ~RR/SETUP-RR.TP2~ #0 #0 // Proper dual-wielding implementation for Thieves and Bards: v4.66 ~RR/SETUP-RR.TP2~ #0 #1 // Thief kit revisions: v4.66 ~RR/SETUP-RR.TP2~ #0 #3 // Proper racial adjustments for thieving skills: v4.66 ~RR/SETUP-RR.TP2~ #0 #4 // Bard kit revisions: v4.66 ~RR/SETUP-RR.TP2~ #0 #6 // Proper spell progression for Bards: v4.66 ~RR/SETUP-RR.TP2~ #0 #7 // Additional equipment for Thieves and Bards: v4.66 ~RR/SETUP-RR.TP2~ #0 #8 // Upgradeable Equipment: v4.66 ~RR/SETUP-RR.TP2~ #0 #9 // Revised Thievery -> Use PnP thievery potions and prevent their effects from stacking: v4.66 ~RR/SETUP-RR.TP2~ #0 #11 // Chosen of Cyric encounter: v4.66 ~ITEM_REV/ITEM_REV.TP2~ #0 #1020 // Potion Revisions: V3 Beta 1.16 ~ITEM_REV/ITEM_REV.TP2~ #0 #1030 // Store Revisions: V3 Beta 1.16 ~ITEM_REV/ITEM_REV.TP2~ #0 #8 // Heavy Armor Encumbrance -> Dexterity Penalties: V3 Beta 1.16 ~ITEM_REV/ITEM_REV.TP2~ #0 #1050 // Revised Armor Bonuses: V3 Beta 1.16 ~ITEM_REV/ITEM_REV.TP2~ #0 #10 // Revised Shield Bonuses: V3 Beta 1.16 ~ITEM_REV/ITEM_REV.TP2~ #0 #11 // Dual Wielding Changes for Light and Heavy Weapons: V3 Beta 1.16 ~ITEM_REV/ITEM_REV.TP2~ #0 #12 // Items of Protection Can Be Worn with Magical Armor: V3 Beta 1.16 ~ITEM_REV/ITEM_REV.TP2~ #0 #13 // Halberds Can Slash, Too: V3 Beta 1.16 ~ITEM_REV/ITEM_REV.TP2~ #0 #1093 // Remove Weapon Restrictions from Multi-classed Divine Spellcasters -> Clerics and Druids, With Halved Specialization: V3 Beta 1.16 ~ITEM_REV/ITEM_REV.TP2~ #0 #15 // PnP Equipment for Druids -> Druids Only: V3 Beta 1.16 ~ITEM_REV/ITEM_REV.TP2~ #0 #1070 // Thieves Can Use Wands: V3 Beta 1.16 ~ITEM_REV/ITEM_REV.TP2~ #0 #17 // Weapon Changes: V3 Beta 1.16 ~ITEM_REV/ITEM_REV.TP2~ #0 #18 // Backstabbing Penalties for Inappropriate Weapons -> Backstabbing Penalties Only: V3 Beta 1.16 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #1000 // Initialise mod (all other components require this): v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #2010 // More consistent Breach spell (always affects liches and rakshasas; doesn't penetrate Spell Turning): v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #2020 // Antimagic attacks penetrate improved invisibility: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #2110 // Reduce the power of Inquisitors' Dispel Magic -> Inquisitors dispel at 1.5 x their level (not twice their level): v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #2160 // Add an extra copy of some hard-to-find spell scrolls: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #2170 // True Sight/True Seeing spells protect from magical blindness: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #3041 // Reduce the number of Arrows of Dispelling in stores -> Stores sell a maximum of 5 Arrows of Dispelling: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #4000 // Faster Bears: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #4010 // Grant large, flying, non-solid or similar creatures protection from Web and Entangle: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #4030 // Improved shapeshifting: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #4040 // Make party members less likely to die irreversibly: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #4051 // Decrease the rate at which reputation improves -> Reputation increases at about 1/2 the normal rate: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #4160 // Increase the price of a license to practise magic in Athkatla -> License costs 10,000 gp: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #4171 // Increase the price asked by Gaelan Bayle -> Gaelan wants 60,000 gold pieces: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #4180 // Make Freedom scrolls available earlier: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #4210 // Randomise the maze in Watcher's Keep: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #4230 // Delay the arrival of the "bonus merchants" in the Adventurers' Mart and the Copper Coronet: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #5000 // Ease-of-use party AI: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #5010 // Move Boo into Minsc's pack: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #5020 // Remove the blur graphic effect from the Cloak of Displacement: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #5030 // Remove animation from the Cloak of Mirroring (leave it for other spells and effects that use the same graphic): v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #5900 // Initialise AI components (required for all tactical and AI components): v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #6000 // Smarter general AI: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #6010 // Better calls for help: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #6020 // Add high-level abilities (HLAs) to spellcasters -> Only selected spellcasters in Throne of Bhaal get HLAs: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #6032 // Smarter Mages -> Mages never cast short-duration spells instantly at start of combat: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #6042 // Smarter Priests -> Priests never cast short-duration spells instantly at start of combat: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #6101 // Potions for NPCs -> One third of the potions dropped by slain enemies break and are lost: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #6200 // Improved Spiders: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #6500 // Improved golems: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #6511 // Improved fiends -> Fiends have normal hit points: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #6521 // Smarter genies -> Genies have normal hit points: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #6531 // Smarter celestials -> Celestials have normal hit points: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #6540 // Smarter dragons -> Dragons have a substantial hit point increase: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #6553 // Smarter beholders -> Don't give beholder rays any chance of burning through spell protections; beholder antimagic removes defences and prevents casting but does not block harmful spells (original game behaviour): v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #6562 // Smarter mind flayers -> Illithids have only original-game resistances; Illithids cannot see invisible enemies (matches original game): v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #6570 // Smarter githyanki: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #6580 // Improved Vampires: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #6590 // Smarter Throne of Bhaal final villain: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #6800 // Smarter Illasera: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #6810 // Smarter Gromnir: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #6820 // Smarter Yaga-Shura: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #6830 // Smarter Abazigal: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #6840 // Give Ascension versions of Irenicus and Sendai SCSII scripts and abilities: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #6850 // Give Ascension demons SCSII scripts and abilities: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #8000 // Make the starting dungeon slightly harder: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #8010 // Improved Shade Lord: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #8020 // Spellcasting Demiliches: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #8030 // More resilient trolls: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #8050 // Improved Random Encounters: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #8060 // Improved de'Arnise Keep ("Tactics Remix") -> Spirit trolls have the same powers as in the original game: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #8070 // Improved Unseeing Eye: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #8080 // Improved Bodhi (Tactics Remix) -> "Toned-down" version of the original Tactics Improved Bodhi, with SCSII scripting: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #8100 // Improved battle with Irenicus in Spellhold: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #8110 // Improved Sahuagin: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #8120 // Improved Beholder hive (adapted from Quest Pack): v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #8130 // Prevent resting in the Illithid city: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #8140 // Slightly Improved Drow -> Upgrade Ust Natha's defences: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #8150 // Slightly Improved Watcher's Keep: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #8160 // Improved Fire Giant temple: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #8170 // Enhanced Sendai's Enclave: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #8180 // Improved Abazigal's Lair: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #8190 // Improved Minor Encounters: v28 ~BG2_TWEAKS/SETUP-BG2_TWEAKS.TP2~ #0 #60 // Weapon Animation Tweaks: v14 ~BG2_TWEAKS/SETUP-BG2_TWEAKS.TP2~ #0 #80 // Restore SoA Load Screen Logo (ToB Only): v14 ~BG2_TWEAKS/SETUP-BG2_TWEAKS.TP2~ #0 #110 // Icon Improvements: v14 ~BG2_TWEAKS/SETUP-BG2_TWEAKS.TP2~ #0 #130 // Force All Dialogue to Pause Game: v14 ~BG2_TWEAKS/SETUP-BG2_TWEAKS.TP2~ #0 #1010 // More Interjections: v14 ~BG2_TWEAKS/SETUP-BG2_TWEAKS.TP2~ #0 #1020 // Alter HP Triggers for NPC Wounded Dialogues: v14 ~BG2_TWEAKS/SETUP-BG2_TWEAKS.TP2~ #0 #1040 // Improved Athkatlan City Guard: v14 ~BG2_TWEAKS/SETUP-BG2_TWEAKS.TP2~ #0 #1080 // Add Bags of Holding: v14 ~BG2_TWEAKS/SETUP-BG2_TWEAKS.TP2~ #0 #1120 // Stores Sell Higher Stacks of Items: v14 ~BG2_TWEAKS/SETUP-BG2_TWEAKS.TP2~ #0 #1161 // Multiple Strongholds (Baldurdash) -> Keep Class Restrictions: v14 ~BG2_TWEAKS/SETUP-BG2_TWEAKS.TP2~ #0 #1220 // Allow Cromwell to Upgrade Watcher's Keep Items: v14 ~BG2_TWEAKS/SETUP-BG2_TWEAKS.TP2~ #0 #2040 // Universal Clubs: v14 ~BG2_TWEAKS/SETUP-BG2_TWEAKS.TP2~ #0 #2192 // Limit Ability of Storekeepers to Identify Items -> Hybrid of Both Methods: v14 ~BG2_TWEAKS/SETUP-BG2_TWEAKS.TP2~ #0 #2330 // Remove Delay for Magical Traps (Ardanis/GeN1e): v14 ~BG2_TWEAKS/SETUP-BG2_TWEAKS.TP2~ #0 #3060 // Remove "You Must Gather Your Party..." Sound (Weimer): v14 ~BG2_TWEAKS/SETUP-BG2_TWEAKS.TP2~ #0 #3070 // Change Effect of Reputation on Store Prices -> Low Reputation Store Discount (Sabre): v14 ~BG2_TWEAKS/SETUP-BG2_TWEAKS.TP2~ #0 #3080 // Unlimited Ammo Stacking: v14 ~BG2_TWEAKS/SETUP-BG2_TWEAKS.TP2~ #0 #3090 // Unlimited Gem and Jewelry Stacking: v14 ~BG2_TWEAKS/SETUP-BG2_TWEAKS.TP2~ #0 #3100 // Unlimited Potion Stacking: v14 ~BG2_TWEAKS/SETUP-BG2_TWEAKS.TP2~ #0 #3110 // Unlimited Scroll Stacking: v14 ~BG2_TWEAKS/SETUP-BG2_TWEAKS.TP2~ #0 #3121 // Happy Patch (Party NPCs do not complain about reputation) -> NPCs Can Be Angry About Reputation but Never Leave (Salk): v14 ~BG2_TWEAKS/SETUP-BG2_TWEAKS.TP2~ #0 #3125 // Neutral Characters Make Happy Comments at Mid-Range Reputation: v14 ~BG2_TWEAKS/SETUP-BG2_TWEAKS.TP2~ #0 #3183 // Romance Cheats: v14 ~BG2_TWEAKS/SETUP-BG2_TWEAKS.TP2~ #0 #4010 // Improved Fate Spirit Summoning: v14 ~BG2_TWEAKS/SETUP-BG2_TWEAKS.TP2~ #0 #4031 // Consistent Stats: Edwin -> Use BG2 Values: v14 ~BG2_TWEAKS/SETUP-BG2_TWEAKS.TP2~ #0 #4041 // Consistent Stats: Jaheira -> Use BG2 Values: v14 ~BG2_TWEAKS/SETUP-BG2_TWEAKS.TP2~ #0 #4061 // Consistent Stats: Minsc -> Use BG2 Values: v14 ~BG2_TWEAKS/SETUP-BG2_TWEAKS.TP2~ #0 #4071 // Consistent Stats: Viconia -> Use BG2 Values: v14 ~BG2_TWEAKS/SETUP-BG2_TWEAKS.TP2~ #0 #4100 // Change Korgan to Neutral Evil: v14 ~SETUP-TURAMBAR_FIXES_TWEAKS.TP2~ #0 #12 // Inactive creatures fix: v1.8.1 ~SETUP-TURAMBAR_FIXES_TWEAKS.TP2~ #0 #15 // Creature fixes: v1.8.1 ~SETUP-TURAMBAR_FIXES_TWEAKS.TP2~ #0 #17 // Fix Anomen's proficiencies: v1.8.1 ~SETUP-TURAMBAR_FIXES_TWEAKS.TP2~ #0 #1060 // Other compatibility fixes: v1.8.1 ~SETUP-TURAMBAR_FIXES_TWEAKS.TP2~ #0 #2010 // Enhanced Nalia's ring: v1.8.1 ~1PP/1PP.TP2~ #0 #103 // 1ppv4: Extended palette entries -> Full install (recommended): v4.1.0 BWP Fix ~1PP/1PP.TP2~ #0 #104 // 1ppv4: GUI additions for BGII: v4.1.0 BWP Fix ~1PP/1PP.TP2~ #0 #105 // 1ppv4: Avatar fixes: v4.1.0 BWP Fix ~1PP/1PP.TP2~ #0 #106 // 1ppv4: Female Dwarves -> Separate Avatars for Female Dwarves - Baldur's Gate II: v4.1.0 BWP Fix ~1PP/1PP.TP2~ #0 #111 // 1ppv4: Thieves Galore -> BGII - Unique Thief Avatars: v4.1.0 BWP Fix ~1PP/1PP.TP2~ #0 #113 // 1ppv4: Smart Avatar & Armour Switching: v4.1.0 BWP Fix ~1PP/1PP.TP2~ #0 #114 // 1ppv4: Softer Spell Effects: v4.1.0 BWP Fix ~1PP/1PP.TP2~ #0 #201 // 1ppv4: Consistent spell and scroll icons: v4.1.0 BWP Fix ~1PP/1PP.TP2~ #0 #203 // 1ppv4: Restored flame sword animations: v4.1.0 BWP Fix ~1PP/1PP.TP2~ #0 #204 // 1ppv4: Colourable Quarterstaves: v4.1.0 BWP Fix ~1PP/1PP.TP2~ #0 #207 // 1ppv4: Wizards' Staves (core): v4.1.0 BWP Fix ~1PP/1PP.TP2~ #0 #209 // 1ppv4: Attachable wings (core): v4.1.0 BWP Fix ~1PP/1PP.TP2~ #0 #210 // 1ppv4: Increased paperdoll object variety (core): v4.1.0 BWP Fix ~1PP/1PP.TP2~ #0 #400 // 1ppv4: Core updates and item patches: v4.1.0 BWP Fix ~1PP/1PP.TP2~ #0 #401 // 1ppv4: Improved projectile effects: v4.1.0 BWP Fix ~1PP/1PP.TP2~ #0 #300 // 1ppv4: Fixed animations for solars and elementals: v4.1.0 BWP Fix ~1PP/1PP.TP2~ #0 #301 // 1ppv4: Miscellaneous content fixes: v4.1.0 BWP Fix ~ATWEAKS/SETUP-ATWEAKS.TP2~ #0 #100 // Restore innate infravision to Half-Orc characters: v4.22 ~ATWEAKS/SETUP-ATWEAKS.TP2~ #0 #101 // Prevent skeletal and incorporeal undead from being affected by Illithids' Devour Brain attack: v4.22 ~ATWEAKS/SETUP-ATWEAKS.TP2~ #0 #115 // Allow Mages to scribe memorized spells onto scrolls -> Scrolls can be scribed everywhere: v4.22 ~ATWEAKS/SETUP-ATWEAKS.TP2~ #0 #120 // Restore innate disease immunity to Paladins: v4.22 ~ATWEAKS/SETUP-ATWEAKS.TP2~ #0 #125 // Rangers' Animal Empathy improves with experience: v4.22 ~ATWEAKS/SETUP-ATWEAKS.TP2~ #0 #130 // Additional racial traits for Dwarves: v4.22 ~ATWEAKS/SETUP-ATWEAKS.TP2~ #0 #140 // Additional racial traits for Gnomes: v4.22 ~ATWEAKS/SETUP-ATWEAKS.TP2~ #0 #152 // PnP Fiends -> Mod-added fiends are also affected: v4.22 ~ATWEAKS/SETUP-ATWEAKS.TP2~ #0 #156 // Fiendish gating: v4.22 ~ATWEAKS/SETUP-ATWEAKS.TP2~ #0 #160 // PnP Undead: v4.22 ~ATWEAKS/SETUP-ATWEAKS.TP2~ #0 #180 // PnP Mephits: v4.22 ~ATWEAKS/SETUP-ATWEAKS.TP2~ #0 #185 // PnP Fey creatures: v4.22 ~ATWEAKS/SETUP-ATWEAKS.TP2~ #0 #190 // PnP Elementals: v4.22 ~ATWEAKS/SETUP-ATWEAKS.TP2~ #0 #191 // Increase the Hit Dice of Elemental Princes: v4.22 ~ATWEAKS/SETUP-ATWEAKS.TP2~ #0 #200 // Allow Breach to take down Stoneskin effects applied by items: v4.22 ~ATWEAKS/SETUP-ATWEAKS.TP2~ #0 #201 // Instant casting for warrior innates: v4.22 ~ATWEAKS/SETUP-ATWEAKS.TP2~ #0 #202 // Revised Bhaalpowers -> Enhance the Bhaalpowers and standardize their casting time: v4.22 ~ATWEAKS/SETUP-ATWEAKS.TP2~ #0 #218 // Regain Bhaalpowers in ToB: v4.22 ~ATWEAKS/SETUP-ATWEAKS.TP2~ #0 #210 // Restore the Dispel Magic vulnerability to Nishruu and Hakeashars: v4.22 ~ATWEAKS/SETUP-ATWEAKS.TP2~ #0 #212 // Make alignment detection spells more accurate: v4.22 ~ATWEAKS/SETUP-ATWEAKS.TP2~ #0 #213 // Expanded saving throw bonus tables for Dwarves, Gnomes and Halflings: v4.22 ~ATWEAKS/SETUP-ATWEAKS.TP2~ #0 #216 // Bard songs break invisibility -> Only the Jester song breaks invisibility: v4.22 ~ATWEAKS/SETUP-ATWEAKS.TP2~ #0 #261 // Altered XP rewards from locks, traps and scrolls -> Improved (lowered) XP rewards from locks, traps and scrolls: v4.22 ~ATWEAKS/SETUP-ATWEAKS.TP2~ #0 #270 // Unbiased quest rewards: v4.22 ~ATWEAKS/SETUP-ATWEAKS.TP2~ #0 #220 // Simple Thief script: v4.22 ~ATWEAKS/SETUP-ATWEAKS.TP2~ #0 #230 // Simple Bard script: v4.22 ~ATWEAKS/SETUP-ATWEAKS.TP2~ #0 #239 // Simple Cleric/Paladin script: v4.22 ~ATWEAKS/SETUP-ATWEAKS.TP2~ #0 #324 // Use Icewind Dale's Dimension Door animation -> Fast animation speed, shorter delay between animation start and creature appearance/disappearance: v4.22 ~ATWEAKS/SETUP-ATWEAKS.TP2~ #0 #301 // Change the appearance of Valygar's armor: v4.22 ~ATWEAKS/SETUP-ATWEAKS.TP2~ #0 #302 // Change the appearance of the Robe of Vecna: v4.22 ~ATWEAKS/SETUP-ATWEAKS.TP2~ #0 #310 // Distinctive creature coloring: v4.22 ~ATWEAKS/SETUP-ATWEAKS.TP2~ #0 #315 // Distinctive creature soundsets: v4.22 ~ATWEAKS/SETUP-ATWEAKS.TP2~ #0 #510 // Expanded temple services: v4.22 ~ATWEAKS/SETUP-ATWEAKS.TP2~ #0 #999 // BG2-style icons for aTweaks content: v4.22 ~RR/SETUP-RR.TP2~ #0 #2 // Thief High Level Ability revisions: v4.66 ~RR/SETUP-RR.TP2~ #0 #5 // Bard High Level Ability revisions: v4.66 ~RR/SETUP-RR.TP2~ #0 #12 // Shadow Thief Improvements: v4.66 ~RR/SETUP-RR.TP2~ #0 #999 // BG2-style icons for RR content: v4.66 ~AURORA/SETUP-AURORA.TP2~ #0 #0 // Aurora's Shoes and Boots: v5a BWP Fix ~SETUP-AURPATCH.TP2~ #0 #0 // Aurora Patch: v5.1 ~RANDOMISER/RANDOMISER.TP2~ #0 #1100 // Randomise items -> Mode 1: Randomise with in-game scripts. No items are lost: v6.8 ~RANDOMISER/RANDOMISER.TP2~ #0 #9000 // Cespenar can forge SoA items: v6.8 ~RANDOMISER/RANDOMISER.TP2~ #0 #10210 // Duergar merchants: v6.8 ~CONTAIN/SETUP-CONTAIN.TP2~ #0 #10 // Unique Containers -> Unique icons and names: v3 ~INFINITYANIMATIONS/SETUP-INFINITYANIMATIONS.TP2~ #0 #0 // Infinity Animations: v5 BWP Fix ~INFINITYANIMATIONS/SETUP-INFINITYANIMATIONS.TP2~ #0 #25 // Humanoid Animation Fixes: v5 BWP Fix ~INFINITYANIMATIONS/SETUP-INFINITYANIMATIONS.TP2~ #0 #50 // Distinctive Genies: v5 BWP Fix ~INFINITYANIMATIONS/SETUP-INFINITYANIMATIONS.TP2~ #0 #100 // Distinctive Fiends: v5 BWP Fix ~INFINITYANIMATIONS/SETUP-INFINITYANIMATIONS.TP2~ #0 #150 // Pit Fiends -> All get the NWN animation: v5 BWP Fix ~INFINITYANIMATIONS/SETUP-INFINITYANIMATIONS.TP2~ #0 #210 // Cambion/Isair Animation -> All cambions: v5 BWP Fix ~INFINITYANIMATIONS/SETUP-INFINITYANIMATIONS.TP2~ #0 #260 // Alu-Fiend/Madae Animation -> All alu-fiends: v5 BWP Fix ~INFINITYANIMATIONS/SETUP-INFINITYANIMATIONS.TP2~ #0 #400 // Distinctive Undead: v5 BWP Fix ~INFINITYANIMATIONS/SETUP-INFINITYANIMATIONS.TP2~ #0 #410 // Skeleton Warriors -> Barrow Wight animation: v5 BWP Fix ~INFINITYANIMATIONS/SETUP-INFINITYANIMATIONS.TP2~ #0 #450 // Seer Animation -> Some beggars and slaves: v5 BWP Fix ~INFINITYANIMATIONS/SETUP-INFINITYANIMATIONS.TP2~ #0 #500 // More Base Animations: v5 BWP Fix ~INFINITYANIMATIONS/SETUP-INFINITYANIMATIONS.TP2~ #0 #550 // More Icewind Dale Animations: v5 BWP Fix ~INFINITYANIMATIONS/SETUP-INFINITYANIMATIONS.TP2~ #0 #600 // More Icewind Dale II Animations: v5 BWP Fix ~INFINITYANIMATIONS/SETUP-INFINITYANIMATIONS.TP2~ #0 #650 // More Neverwinter Nights Animations: v5 BWP Fix ~INFINITYANIMATIONS/SETUP-INFINITYANIMATIONS.TP2~ #0 #9000 // Fix Areas -> Creature References: v5 BWP Fix ~VECNA/SETUP-VECNA.TP2~ #0 #0 // Vecna: v23 BWP Fix ~PAINTBG/PAINTBG.TP2~ #0 #0 // PaintBG: make portraits available via 'portraits' directory ~PAINTBG/PAINTBG.TP2~ #0 #2 // Portraits for PC (BG2/BGT) -> PaintBG: Override old PC portraits with new the selection (suggested) ~PAINTBG/PAINTBG.TP2~ #0 #6 // PaintBG: Install all BG1-only NPC portraits for BG2 (should affect most mods that bring back NPCs from BG1) ~PAINTBG/PAINTBG.TP2~ #0 #7 // PaintBG: Aerie -> Lighter Aerie, with smaller eyes ~PAINTBG/PAINTBG.TP2~ #0 #20 // PaintBG: Edwina (female Edwin) ~PAINTBG/PAINTBG.TP2~ #0 #28 // PaintBG: Imoen -> Imoen with a crafty smile ~PAINTBG/PAINTBG.TP2~ #0 #31 // PaintBG: Jan ~PAINTBG/PAINTBG.TP2~ #0 #42 // PaintBG: Minsc -> Minsc (with tattoo) ~PAINTBG/PAINTBG.TP2~ #0 #44 // PaintBG: Nalia ~PAINTBG/PAINTBG.TP2~ #0 #48 // PaintBG: Sarevok -> Sarevok without glowing eyes ~PAINTBG/PAINTBG.TP2~ #0 #54 // PaintBG: Valygar ~PAINTBG/PAINTBG.TP2~ #0 #55 // PaintBG: Viconia -> Original Viconia; with a hood ~PAINTBG/PAINTBG.TP2~ #0 #58 // PaintBG: Xan (BG2 NPC mod) ~PAINTBG/PAINTBG.TP2~ #0 #61 // PaintBG: Yoshimo -> Yoshimo with oriental hairstyle; partially shaved ~PAINTBG/PAINTBG.TP2~ #0 #63 // PaintBG: Extra portraits (Bodhi, Jon, Ellesime and ToB characters) - affects LR Jon, TS Bodhi and Ascension Balthazar ~PAINTBG/PAINTBG.TP2~ #0 #68 // PaintBG: Fade mod NPC ~PAINTBG/PAINTBG.TP2~ #0 #73 // PaintBG: Weimer's Valen mod NPC ~PAINTBG/PAINTBG.TP2~ #0 #74 // PaintBG: Xulaye mod NPC ~PAINTBG/PAINTBG.TP2~ #0 #81 // PaintBG: Isra mod NPC ~PAINTBG/PAINTBG.TP2~ #0 #85 // PaintBG: Varshoon mod NPC ~SETUP-BP-BGT-WORLDMAP.TP2~ #0 #0 // Worldmap for Baldur's Gate - including colored Baldur's Gate map icons: v9.0.2 ~SETUP-BP-BGT-WORLDMAP.TP2~ #0 #1 // Worldmap for Throne of Bhaal -> Use new Worldmap for Throne of Bhaal as well: v9.0.2 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #4200 // Retrieve Dropped Items from Hell: v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #4240 // Treat mages' and priests' High-Level Abilities as innate abilities rather than memorisable spells (each may be taken only once): v28 ~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #8090 // Party's items are taken from them in Spellhold: v28 ~SETUP-POISON_EFFECT_SUPPLEMENT.TP2~ #0 #0 // Poison Effect Supplement for ToBEx (has no effect if ToBEx is not present) ~LOLFIXER.TP2~ #0 #0 // Area Stuff - MAJESTIC Area Fixer: 16082013 ~LOLFIXER.TP2~ #0 #1 // Creature Stuff - Creature Resource Fixer (res_fixer for ALL CREATURES): 16082013 ~LOLFIXER.TP2~ #0 #2 // Creature Stuff - Inventory Unborker (removes spurious references to the item table): 16082013 ~LOLFIXER.TP2~ #0 #3 // Creature Stuff - Inventory Cleaner (removes items that don't exist and converts them into already present items where applicable): 16082013 ~LOLFIXER.TP2~ #0 #4 // Creature Stuff - Inventory Overhauler (moves invalid but equippable items to inventory and equips anything in the inventory to a free slot): 16082013 ~LOLFIXER.TP2~ #0 #5 // Creature Stuff - MAJESTIC Creature Fixer: 16082013 ~LOLFIXER.TP2~ #0 #6 // Creature Stuff - Duplicate Creature Effect Remover: 16082013 ~LOLFIXER.TP2~ #0 #7 // Item Stuff - Item Resource Fixer (res_fixer for ALL ITEMS): 16082013 ~LOLFIXER.TP2~ #0 #8 // Item Stuff - MAJESTIC Item Fixer: 16082013 ~LOLFIXER.TP2~ #0 #9 // Item Stuff - Portrait Icon Assigner: 16082013 ~LOLFIXER.TP2~ #0 #10 // Item Stuff - Proper Immunity Assigner: 16082013 ~LOLFIXER.TP2~ #0 #11 // Item Stuff - Duplicate Item Effect Remover: 16082013 ~LOLFIXER.TP2~ #0 #12 // Item Stuff - MAJESTIC Item Checker: 16082013 ~LOLFIXER.TP2~ #0 #13 // Spell Stuff - Spell Resource Fixer (res_fixer for ALL THE SPELLS): 16082013 ~LOLFIXER.TP2~ #0 #14 // Spell Stuff - MAJESTIC Spell Fixer: 16082013 ~LOLFIXER.TP2~ #0 #15 // Store Stuff - MAJESTIC Store Fixer: 16082013 ~GENERALIZED_BIFFING/GENERALIZED_BIFFING.TP2~ #0 #0 // Generalized Biffing: v2.2 ~WIDESCREEN/WIDESCREEN.TP2~ #0 #0 // Widescreen Mod -> for the original Infinity Engine (CHOOSE THIS!): Widescreen Mod v3.02 // Recently Uninstalled: ~SETUP-BWS_FINAL.TP2~ #0 #0 // Make quick-logged WeiDU-entries visible Link to comment
scorpio Posted January 2, 2014 Author Share Posted January 2, 2014 I'm trying to test whether it's just the cacofiend spell or all fiend spells, so summoned in "mage20" but now I get a crash after he casts a few spells. Not sure what spell it is that might be causing it, if that is even the issue... Any idea on what I could chase up within nearinfinity or somesuch to track down the cause? The error messages mean nothing to me. Link to comment
Wisp Posted January 2, 2014 Share Posted January 2, 2014 The crash is likely due to another bug in aTweaks, which resulted in Gate attempting to summon non-existent creatures. I suppose I should post a hotfix for that issue so it can be resolved without upgrading aTweaks (though that is another way). Link to comment
scorpio Posted January 2, 2014 Author Share Posted January 2, 2014 Okay, thanks. Anything I can do to fix things on my end? Bear in mind the game is biffed up, so i doubt I can run any weidu stuff over it without borking things, but I guess I could change the gate spell and what it summons in NearInfinity? Just guessing. It probably is gate, as I got him to 'Summon Fiend' and it didn't crash. Also, the Nycaloths (sp?) that were summoned didn't seem to attack the mage, so perhaps it just cacofiend that is bugged out. Then again, they see through invis and were therefore probably prioritizing my party over the mage perhaps. Need to test more, but hard when it keeps crashing. One other thing, the mage casts Wish and says "i wish for time itself to become my servant!" but NOTHING happens. I'm guessing there's supposed to be a timestop? The genie is unselectable, doesn't say anything, stays for a few rounds and then disappears. Seems a dud spell. Happened every time now, as he casts that as a first spell pretty much. Link to comment
Wisp Posted January 2, 2014 Share Posted January 2, 2014 Anything I can do to fix things on my end? Bear in mind the game is biffed up, so i doubt I can run any weidu stuff over it without borking things, but I guess I could change the gate spell and what it summons in NearInfinity? Just guessing. Having biffed the game is not a problem. You can download the hotfix here. One other thing, the mage casts Wish and says "i wish for time itself to become my servant!" but NOTHING happens. I'm guessing there's supposed to be a timestop? The genie is unselectable, doesn't say anything, stays for a few rounds and then disappears. Seems a dud spell. Happened every time now, as he casts that as a first spell pretty much. Well, at least that one is not my fault. Link to comment
scorpio Posted January 2, 2014 Author Share Posted January 2, 2014 Thanks so much, and I really appreciate that you found your way to this thread at all, and so quick too! The nycaloths seem to be fine btw, they summon a heck of a lot of undead ghasts (seems a forcespell script, and it fills up the screen pretty quick) but they don't attack the mage who summoned them. I'll see how gate reacts if I get it working now. Edit: Gate working now, thanks again! Link to comment
scorpio Posted January 2, 2014 Author Share Posted January 2, 2014 The Ultroloth from the gate also seems to not attack the summoner, just like with the nycaloth from the summon fiend spell. I guess the cacofiend spell must be the issue and not a general issue with all fiend summons? Any other fiend spells I'm forgetting about? Link to comment
Wisp Posted January 2, 2014 Share Posted January 2, 2014 The nycaloths seem to be fine btw, they summon a heck of a lot of undead ghasts (seems a forcespell script, and it fills up the screen pretty quick) but they don't attack the mage who summoned them. Nycaloths can cast Animate Dead at will, but they should only do so while they are not in melee range, and they should somewhat reliably teleport into melee range. Is this not happening? I guess the cacofiend spell must be the issue and not a general issue with all fiend summons? Can you check the file dw#cacof.spl in NI? It should, through some EFF files, lead to the creatures fl#nabsu.cre, fl#arcsu.cre and fl#corsu.cre. Does it? Does each creature have a script with the corresponding name (e.g., fl#arcsu.bcs)? Link to comment
scorpio Posted January 2, 2014 Author Share Posted January 2, 2014 The mage20 can cast 5 summon fiend spells, and they pretty quickly fill the screen up with at least 2-3 castings each, so that's probably what it is. There needs to be a cap on such fiend amounts (5 is too many!) and/or cap on the summons from the fiends for balance and fun. They don't really teleport into range, and are happy to summon away. The sheer amount of ghasts is probably blocking them for a viable spot. I'm not sure mage20 actually makes an appearance in the game so it might be a moot point. If other mages have that many summon fiend spells though it is going to suck down the line... The files are fine, the spl indeed leads to an ability which is linked to the 3 EFFs which in turn lead to (let's take the MASK_LCNEUTRAL EFF of the 3 for an example) DW#SUMYA.EFF for example, which contains a link to resource FL#ARCSU.CRE (Arcanaloth), which then has FL#ARCSU.BCS (quoted below). IF HasItem("dw#sumfi",Myself) // No such index THEN RESPONSE #100 DestroyItem("dw#sumfi") // No such index Continue() END IF StateCheck(Myself,STATE_REALLY_DEAD) THEN RESPONSE #100 NoAction() END IF !InActiveArea(Myself) !See([ANYONE]) THEN RESPONSE #100 NoAction() END IF !GlobalTimerNotExpired("flCast","LOCALS") OR(2) AreaCheck("AR3004") AreaCheck("AR3008") THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",TEN_TURNS) END IF Global("flDecideMinorSequencer","LOCALS",0) THEN RESPONSE #100 SetGlobal("flDecideMinorSequencer","LOCALS",1) RESPONSE #100 SetGlobal("flDecideMinorSequencer","LOCALS",2) END IF Global("flContingency","LOCALS",0) THEN RESPONSE #100 DisplayStringHead(Myself,25942) // Contingency ReallyForceSpell(Myself,WIZARD_IMPROVED_INVISIBILITY) SetGlobal("flContingency","LOCALS",1) RESPONSE #100 DisplayStringHead(Myself,25942) // Contingency ReallyForceSpell(Myself,WIZARD_MINOR_GLOBE_OF_INVULNERABILITY) SetGlobal("flContingency","LOCALS",2) RESPONSE #100 DisplayStringHead(Myself,25942) // Contingency ReallyForceSpell(Myself,WIZARD_STONE_SKIN) SetGlobal("flContingency","LOCALS",3) RESPONSE #100 DisplayStringHead(Myself,25942) // Contingency ReallyForceSpell(Myself,WIZARD_PROTECTION_FROM_COLD) SetGlobal("flContingency","LOCALS",4) RESPONSE #100 DisplayStringHead(Myself,25942) // Contingency ReallyForceSpell(Myself,WIZARD_MELF_METEOR) SetGlobal("flContingency","LOCALS",5) RESPONSE #100 DisplayStringHead(Myself,25942) // Contingency ReallyForceSpell(Myself,WIZARD_FIRE_SHIELD_BLUE) SetGlobal("flContingency","LOCALS",6) END IF !GlobalTimerNotExpired("RR#Help","LOCALS") See(NearestEnemyOf(Myself)) THEN RESPONSE #100 SetGlobalTimer("RR#Help","LOCALS",TWO_ROUNDS) GlobalShout(5827) Continue() END IF !GlobalTimerNotExpired("RR#Cast","LOCALS") Allegiance(Myself,GOODCUTOFF) !Range(NearestEnemyOf(Myself),20) Heard([GOODCUTOFF.0.DEMONIC.0.0.0.MASK_CHAOTIC],5827) InMyArea(LastHeardBy(Myself)) !Range(LastHeardBy(Myself),12) !StateCheck(LastHeardBy(Myself),STATE_REALLY_DEAD) THEN RESPONSE #100 SetGlobalTimer("RR#Cast","LOCALS",ONE_ROUND) ForceSpellRES("RR#TELWE",LastHeardBy(Myself)) // Teleport Without Error END IF !GlobalTimerNotExpired("RR#Cast","LOCALS") Allegiance(Myself,EVILCUTOFF) !Range(NearestEnemyOf(Myself),20) Heard([EVILCUTOFF.0.DEMONIC.0.0.0.MASK_CHAOTIC],5827) InMyArea(LastHeardBy(Myself)) !Range(LastHeardBy(Myself),12) !StateCheck(LastHeardBy(Myself),STATE_REALLY_DEAD) THEN RESPONSE #100 SetGlobalTimer("RR#Cast","LOCALS",ONE_ROUND) ForceSpellRES("RR#TELWE",LastHeardBy(Myself)) // Teleport Without Error END IF See(LastAttackerOf(Myself)) !GlobalTimerNotExpired("flCast","LOCALS") Exists(LastAttackerOf(Myself)) !Range(LastAttackerOf(Myself),6) InMyArea(LastAttackerOf(Myself)) OR(2) !Allegiance(LastAttackerOf(Myself),GOODCUTOFF) !Allegiance(Myself,GOODCUTOFF) !StateCheck(LastAttackerOf(Myself),STATE_REALLY_DEAD) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(LastAttackerOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(LastAttackerOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(LastAttackerOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(LastAttackerOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(LastAttackerOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",LastAttackerOf(Myself)) // Mordenkainen's Sword !CheckStatGT(LastAttackerOf(Myself),99,RESISTSLASHING) !CheckStatGT(LastAttackerOf(Myself),0,PROTECTION_FROM_EVIL) !HasItemEquipedReal("staf11",LastAttackerOf(Myself)) // Staff of the Magi +5 !HasItemEquiped("wa2amu",LastAttackerOf(Myself)) // Sensate Amulet !See(NearestEnemyOf(Myself)) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#TELWE",LastAttackerOf(Myself)) // Teleport Without Error END IF !GlobalTimerNotExpired("flCast","LOCALS") OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(SixthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",SixthNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(SixthNearestEnemyOf(Myself),99,RESISTSLASHING) StateCheck(SixthNearestEnemyOf(Myself),RZ_STATE_VULNERABLE) !Range(SixthNearestEnemyOf(Myself),6) See(SixthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(FifthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",FifthNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(FifthNearestEnemyOf(Myself),99,RESISTSLASHING) StateCheck(FifthNearestEnemyOf(Myself),RZ_STATE_VULNERABLE) !Range(FifthNearestEnemyOf(Myself),6) See(FifthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(FourthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",FourthNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(FourthNearestEnemyOf(Myself),99,RESISTSLASHING) StateCheck(FourthNearestEnemyOf(Myself),RZ_STATE_VULNERABLE) !Range(FourthNearestEnemyOf(Myself),6) See(FourthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(ThirdNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",ThirdNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(ThirdNearestEnemyOf(Myself),99,RESISTSLASHING) StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_VULNERABLE) !Range(ThirdNearestEnemyOf(Myself),6) See(ThirdNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(SecondNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",SecondNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(SecondNearestEnemyOf(Myself),99,RESISTSLASHING) StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_VULNERABLE) !Range(SecondNearestEnemyOf(Myself),6) See(SecondNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(NearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",NearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(NearestEnemyOf(Myself),99,RESISTSLASHING) StateCheck(NearestEnemyOf(Myself),RZ_STATE_VULNERABLE) !Range(NearestEnemyOf(Myself),6) See(NearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(LastSeenBy(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(LastSeenBy(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(LastSeenBy(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(LastSeenBy(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(LastSeenBy(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",LastSeenBy(Myself)) // Mordenkainen's Sword !CheckStatGT(LastSeenBy(Myself),99,RESISTSLASHING) StateCheck(LastSeenBy(Myself),RZ_STATE_VULNERABLE) !Range(LastSeenBy(Myself),6) See(LastSeenBy(Myself)) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#TELWE",LastSeenBy(Myself)) // Teleport Without Error END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_STONE_SKIN) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !CheckStatGT(Myself,0,STONESKINS) !GlobalTimerNotExpired("flStone","LOCALS") OR(4) CheckStatGT(Myself,0,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("sw2h10",NearestEnemyOf(Myself)) // Carsomyr +4 StateCheck(NearestEnemyOf(Myself),RZ_STATE_VULNERABLE) !Range(NearestEnemyOf(Myself),10) OR(4) CheckStatGT(Myself,0,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("sw2h19",NearestEnemyOf(Myself)) // Carsomyr +5 StateCheck(NearestEnemyOf(Myself),RZ_STATE_VULNERABLE) !Range(NearestEnemyOf(Myself),10) OR(4) CheckStatGT(Myself,0,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("sw2h10",SecondNearestEnemyOf(Myself)) // Carsomyr +4 StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_VULNERABLE) !Range(SecondNearestEnemyOf(Myself),10) OR(4) CheckStatGT(Myself,0,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("sw2h19",SecondNearestEnemyOf(Myself)) // Carsomyr +5 StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_VULNERABLE) !Range(SecondNearestEnemyOf(Myself),10) OR(4) CheckStatGT(Myself,0,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("sw2h10",ThirdNearestEnemyOf(Myself)) // Carsomyr +4 StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_VULNERABLE) !Range(ThirdNearestEnemyOf(Myself),10) OR(4) CheckStatGT(Myself,0,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("sw2h19",ThirdNearestEnemyOf(Myself)) // Carsomyr +5 StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_VULNERABLE) !Range(ThirdNearestEnemyOf(Myself),10) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) Spell(Myself,WIZARD_STONE_SKIN) SetGlobalTimer("flStone","LOCALS",8) END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_PROTECTION_FROM_COLD) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !CheckStatGT(Myself,0,RESISTCOLD) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) Spell(Myself,WIZARD_PROTECTION_FROM_COLD) RESPONSE #50 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_MELF_METEOR) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !HasItem("melfmet",Myself) // Melf's Minute Meteor !Range(NearestEnemyOf(Myself),5) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) Spell(Myself,WIZARD_MELF_METEOR) RESPONSE #50 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_MIRROR_IMAGE) See(NearestEnemyOf(Myself)) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !CheckStatGT(NearestEnemyOf(Myself),0,TRUE_SIGHT) !CheckStatGT(SecondNearestEnemyOf(Myself),0,TRUE_SIGHT) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,TRUE_SIGHT) !CheckStatGT(FourthNearestEnemyOf(Myself),0,TRUE_SIGHT) !CheckStatGT(FifthNearestEnemyOf(Myself),0,TRUE_SIGHT) !CheckStatGT(SixthNearestEnemyOf(Myself),0,TRUE_SIGHT) !CheckStatGT(SeventhNearestEnemyOf(Myself),0,TRUE_SIGHT) !CheckStatGT(EighthNearestEnemyOf(Myself),0,TRUE_SIGHT) !CheckStatGT(NinthNearestEnemyOf(Myself),0,TRUE_SIGHT) !CheckStatGT(TenthNearestEnemyOf(Myself),0,TRUE_SIGHT) !CheckStatGT(NearestEnemyOfType([0.0.0.LONG_BOW]),0,TRUE_SIGHT) !CheckStatGT(SecondNearestEnemyOfType([0.0.0.LONG_BOW]),0,TRUE_SIGHT) !CheckStatGT(NearestEnemyOfType([0.0.0.CLERIC_ALL]),0,TRUE_SIGHT) !CheckStatGT(SecondNearestEnemyOfType([0.0.0.CLERIC_ALL]),0,TRUE_SIGHT) !CheckStatGT(NearestEnemyOfType([0.0.0.BARD_ALL]),0,TRUE_SIGHT) !CheckStatGT(NearestEnemyOfType([0.0.0.CLERIC_RANGER]),0,TRUE_SIGHT) !CheckStatGT(NearestEnemyOfType([0.0.0.DRUID_ALL]),0,TRUE_SIGHT) !CheckStatGT(SecondNearestEnemyOfType([0.0.0.DRUID_ALL]),0,TRUE_SIGHT) !StateCheck(Myself,STATE_MIRRORIMAGE) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) Spell(Myself,WIZARD_MIRROR_IMAGE) RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_SECRET_WORD) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(NearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) !StateCheck(NearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) OR(5) CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_IMMUNITY) CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) CheckStat(NearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) CheckStatGT(NearestEnemyOf(Myself),0,MINORGLOBE) !Race(NearestEnemyOf(Myself),RAKSHASA) !Race(NearestEnemyOf(Myself),LICH) See(NearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_SECRET_WORD) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(ThirdNearestEnemyOfType([0.0.0.DRUID_ALL]),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOfType([0.0.0.DRUID_ALL]),0,HELD) !StateCheck(ThirdNearestEnemyOfType([0.0.0.DRUID_ALL]),STATE_STONE_DEATH) !CheckStatGT(ThirdNearestEnemyOfType([0.0.0.DRUID_ALL]),0,WIZARD_SPELL_TRAP) OR(5) CheckStatGT(ThirdNearestEnemyOfType([0.0.0.DRUID_ALL]),0,WIZARD_SPELL_IMMUNITY) CheckStatGT(ThirdNearestEnemyOfType([0.0.0.DRUID_ALL]),0,WIZARD_SPELL_DEFLECTION) CheckStatGT(ThirdNearestEnemyOfType([0.0.0.DRUID_ALL]),0,WIZARD_SPELL_TURNING) CheckStat(ThirdNearestEnemyOfType([0.0.0.DRUID_ALL]),1,CLERIC_SHIELD_OF_THE_ARCHONS) CheckStatGT(ThirdNearestEnemyOfType([0.0.0.DRUID_ALL]),0,MINORGLOBE) !Race(ThirdNearestEnemyOfType([0.0.0.DRUID_ALL]),RAKSHASA) !Race(ThirdNearestEnemyOfType([0.0.0.DRUID_ALL]),LICH) See(ThirdNearestEnemyOfType([0.0.0.DRUID_ALL])) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_SECRET_WORD) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(ThirdNearestEnemyOfType([0.0.0.CLERIC_RANGER]),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOfType([0.0.0.CLERIC_RANGER]),0,HELD) !StateCheck(ThirdNearestEnemyOfType([0.0.0.CLERIC_RANGER]),STATE_STONE_DEATH) !CheckStatGT(ThirdNearestEnemyOfType([0.0.0.CLERIC_RANGER]),0,WIZARD_SPELL_TRAP) OR(5) CheckStatGT(ThirdNearestEnemyOfType([0.0.0.CLERIC_RANGER]),0,WIZARD_SPELL_IMMUNITY) CheckStatGT(ThirdNearestEnemyOfType([0.0.0.CLERIC_RANGER]),0,WIZARD_SPELL_DEFLECTION) CheckStatGT(ThirdNearestEnemyOfType([0.0.0.CLERIC_RANGER]),0,WIZARD_SPELL_TURNING) CheckStat(ThirdNearestEnemyOfType([0.0.0.CLERIC_RANGER]),1,CLERIC_SHIELD_OF_THE_ARCHONS) CheckStatGT(ThirdNearestEnemyOfType([0.0.0.CLERIC_RANGER]),0,MINORGLOBE) !Race(ThirdNearestEnemyOfType([0.0.0.CLERIC_RANGER]),RAKSHASA) !Race(ThirdNearestEnemyOfType([0.0.0.CLERIC_RANGER]),LICH) See(ThirdNearestEnemyOfType([0.0.0.CLERIC_RANGER])) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_SECRET_WORD) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(ThirdNearestEnemyOfType([0.0.0.CLERIC_ALL]),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOfType([0.0.0.CLERIC_ALL]),0,HELD) !StateCheck(ThirdNearestEnemyOfType([0.0.0.CLERIC_ALL]),STATE_STONE_DEATH) !CheckStatGT(ThirdNearestEnemyOfType([0.0.0.CLERIC_ALL]),0,WIZARD_SPELL_TRAP) OR(5) CheckStatGT(ThirdNearestEnemyOfType([0.0.0.CLERIC_ALL]),0,WIZARD_SPELL_IMMUNITY) CheckStatGT(ThirdNearestEnemyOfType([0.0.0.CLERIC_ALL]),0,WIZARD_SPELL_DEFLECTION) CheckStatGT(ThirdNearestEnemyOfType([0.0.0.CLERIC_ALL]),0,WIZARD_SPELL_TURNING) CheckStat(ThirdNearestEnemyOfType([0.0.0.CLERIC_ALL]),1,CLERIC_SHIELD_OF_THE_ARCHONS) CheckStatGT(ThirdNearestEnemyOfType([0.0.0.CLERIC_ALL]),0,MINORGLOBE) !Race(ThirdNearestEnemyOfType([0.0.0.CLERIC_ALL]),RAKSHASA) !Race(ThirdNearestEnemyOfType([0.0.0.CLERIC_ALL]),LICH) See(ThirdNearestEnemyOfType([0.0.0.CLERIC_ALL])) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_SECRET_WORD) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(ThirdNearestEnemyOfType([0.0.0.LONG_BOW]),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOfType([0.0.0.LONG_BOW]),0,HELD) !StateCheck(ThirdNearestEnemyOfType([0.0.0.LONG_BOW]),STATE_STONE_DEATH) !CheckStatGT(ThirdNearestEnemyOfType([0.0.0.LONG_BOW]),0,WIZARD_SPELL_TRAP) OR(5) CheckStatGT(ThirdNearestEnemyOfType([0.0.0.LONG_BOW]),0,WIZARD_SPELL_IMMUNITY) CheckStatGT(ThirdNearestEnemyOfType([0.0.0.LONG_BOW]),0,WIZARD_SPELL_DEFLECTION) CheckStatGT(ThirdNearestEnemyOfType([0.0.0.LONG_BOW]),0,WIZARD_SPELL_TURNING) CheckStat(ThirdNearestEnemyOfType([0.0.0.LONG_BOW]),1,CLERIC_SHIELD_OF_THE_ARCHONS) CheckStatGT(ThirdNearestEnemyOfType([0.0.0.LONG_BOW]),0,MINORGLOBE) !Race(ThirdNearestEnemyOfType([0.0.0.LONG_BOW]),RAKSHASA) !Race(ThirdNearestEnemyOfType([0.0.0.LONG_BOW]),LICH) See(ThirdNearestEnemyOfType([0.0.0.LONG_BOW])) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_SECRET_WORD) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(SecondNearestEnemyOfType([0.0.0.DRUID_ALL]),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOfType([0.0.0.DRUID_ALL]),0,HELD) !StateCheck(SecondNearestEnemyOfType([0.0.0.DRUID_ALL]),STATE_STONE_DEATH) !CheckStatGT(SecondNearestEnemyOfType([0.0.0.DRUID_ALL]),0,WIZARD_SPELL_TRAP) OR(5) CheckStatGT(SecondNearestEnemyOfType([0.0.0.DRUID_ALL]),0,WIZARD_SPELL_IMMUNITY) CheckStatGT(SecondNearestEnemyOfType([0.0.0.DRUID_ALL]),0,WIZARD_SPELL_DEFLECTION) CheckStatGT(SecondNearestEnemyOfType([0.0.0.DRUID_ALL]),0,WIZARD_SPELL_TURNING) CheckStat(SecondNearestEnemyOfType([0.0.0.DRUID_ALL]),1,CLERIC_SHIELD_OF_THE_ARCHONS) CheckStatGT(SecondNearestEnemyOfType([0.0.0.DRUID_ALL]),0,MINORGLOBE) !Race(SecondNearestEnemyOfType([0.0.0.DRUID_ALL]),RAKSHASA) !Race(SecondNearestEnemyOfType([0.0.0.DRUID_ALL]),LICH) See(SecondNearestEnemyOfType([0.0.0.DRUID_ALL])) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_SECRET_WORD) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(SecondNearestEnemyOfType([0.0.0.CLERIC_RANGER]),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOfType([0.0.0.CLERIC_RANGER]),0,HELD) !StateCheck(SecondNearestEnemyOfType([0.0.0.CLERIC_RANGER]),STATE_STONE_DEATH) !CheckStatGT(SecondNearestEnemyOfType([0.0.0.CLERIC_RANGER]),0,WIZARD_SPELL_TRAP) OR(5) CheckStatGT(SecondNearestEnemyOfType([0.0.0.CLERIC_RANGER]),0,WIZARD_SPELL_IMMUNITY) CheckStatGT(SecondNearestEnemyOfType([0.0.0.CLERIC_RANGER]),0,WIZARD_SPELL_DEFLECTION) CheckStatGT(SecondNearestEnemyOfType([0.0.0.CLERIC_RANGER]),0,WIZARD_SPELL_TURNING) CheckStat(SecondNearestEnemyOfType([0.0.0.CLERIC_RANGER]),1,CLERIC_SHIELD_OF_THE_ARCHONS) CheckStatGT(SecondNearestEnemyOfType([0.0.0.CLERIC_RANGER]),0,MINORGLOBE) !Race(SecondNearestEnemyOfType([0.0.0.CLERIC_RANGER]),RAKSHASA) !Race(SecondNearestEnemyOfType([0.0.0.CLERIC_RANGER]),LICH) See(SecondNearestEnemyOfType([0.0.0.CLERIC_RANGER])) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_SECRET_WORD) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(SecondNearestEnemyOfType([0.0.0.CLERIC_ALL]),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOfType([0.0.0.CLERIC_ALL]),0,HELD) !StateCheck(SecondNearestEnemyOfType([0.0.0.CLERIC_ALL]),STATE_STONE_DEATH) !CheckStatGT(SecondNearestEnemyOfType([0.0.0.CLERIC_ALL]),0,WIZARD_SPELL_TRAP) OR(5) CheckStatGT(SecondNearestEnemyOfType([0.0.0.CLERIC_ALL]),0,WIZARD_SPELL_IMMUNITY) CheckStatGT(SecondNearestEnemyOfType([0.0.0.CLERIC_ALL]),0,WIZARD_SPELL_DEFLECTION) CheckStatGT(SecondNearestEnemyOfType([0.0.0.CLERIC_ALL]),0,WIZARD_SPELL_TURNING) CheckStat(SecondNearestEnemyOfType([0.0.0.CLERIC_ALL]),1,CLERIC_SHIELD_OF_THE_ARCHONS) CheckStatGT(SecondNearestEnemyOfType([0.0.0.CLERIC_ALL]),0,MINORGLOBE) !Race(SecondNearestEnemyOfType([0.0.0.CLERIC_ALL]),RAKSHASA) !Race(SecondNearestEnemyOfType([0.0.0.CLERIC_ALL]),LICH) See(SecondNearestEnemyOfType([0.0.0.CLERIC_ALL])) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_SECRET_WORD) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(SecondNearestEnemyOfType([0.0.0.LONG_BOW]),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOfType([0.0.0.LONG_BOW]),0,HELD) !StateCheck(SecondNearestEnemyOfType([0.0.0.LONG_BOW]),STATE_STONE_DEATH) !CheckStatGT(SecondNearestEnemyOfType([0.0.0.LONG_BOW]),0,WIZARD_SPELL_TRAP) OR(5) CheckStatGT(SecondNearestEnemyOfType([0.0.0.LONG_BOW]),0,WIZARD_SPELL_IMMUNITY) CheckStatGT(SecondNearestEnemyOfType([0.0.0.LONG_BOW]),0,WIZARD_SPELL_DEFLECTION) CheckStatGT(SecondNearestEnemyOfType([0.0.0.LONG_BOW]),0,WIZARD_SPELL_TURNING) CheckStat(SecondNearestEnemyOfType([0.0.0.LONG_BOW]),1,CLERIC_SHIELD_OF_THE_ARCHONS) CheckStatGT(SecondNearestEnemyOfType([0.0.0.LONG_BOW]),0,MINORGLOBE) !Race(SecondNearestEnemyOfType([0.0.0.LONG_BOW]),RAKSHASA) !Race(SecondNearestEnemyOfType([0.0.0.LONG_BOW]),LICH) See(SecondNearestEnemyOfType([0.0.0.LONG_BOW])) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_SECRET_WORD) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(NearestEnemyOfType([0.0.0.DRUID_ALL]),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOfType([0.0.0.DRUID_ALL]),0,HELD) !StateCheck(NearestEnemyOfType([0.0.0.DRUID_ALL]),STATE_STONE_DEATH) !CheckStatGT(NearestEnemyOfType([0.0.0.DRUID_ALL]),0,WIZARD_SPELL_TRAP) OR(5) CheckStatGT(NearestEnemyOfType([0.0.0.DRUID_ALL]),0,WIZARD_SPELL_IMMUNITY) CheckStatGT(NearestEnemyOfType([0.0.0.DRUID_ALL]),0,WIZARD_SPELL_DEFLECTION) CheckStatGT(NearestEnemyOfType([0.0.0.DRUID_ALL]),0,WIZARD_SPELL_TURNING) CheckStat(NearestEnemyOfType([0.0.0.DRUID_ALL]),1,CLERIC_SHIELD_OF_THE_ARCHONS) CheckStatGT(NearestEnemyOfType([0.0.0.DRUID_ALL]),0,MINORGLOBE) !Race(NearestEnemyOfType([0.0.0.DRUID_ALL]),RAKSHASA) !Race(NearestEnemyOfType([0.0.0.DRUID_ALL]),LICH) See(NearestEnemyOfType([0.0.0.DRUID_ALL])) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_SECRET_WORD) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(NearestEnemyOfType([0.0.0.CLERIC_RANGER]),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOfType([0.0.0.CLERIC_RANGER]),0,HELD) !StateCheck(NearestEnemyOfType([0.0.0.CLERIC_RANGER]),STATE_STONE_DEATH) !CheckStatGT(NearestEnemyOfType([0.0.0.CLERIC_RANGER]),0,WIZARD_SPELL_TRAP) OR(5) CheckStatGT(NearestEnemyOfType([0.0.0.CLERIC_RANGER]),0,WIZARD_SPELL_IMMUNITY) CheckStatGT(NearestEnemyOfType([0.0.0.CLERIC_RANGER]),0,WIZARD_SPELL_DEFLECTION) CheckStatGT(NearestEnemyOfType([0.0.0.CLERIC_RANGER]),0,WIZARD_SPELL_TURNING) CheckStat(NearestEnemyOfType([0.0.0.CLERIC_RANGER]),1,CLERIC_SHIELD_OF_THE_ARCHONS) CheckStatGT(NearestEnemyOfType([0.0.0.CLERIC_RANGER]),0,MINORGLOBE) !Race(NearestEnemyOfType([0.0.0.CLERIC_RANGER]),RAKSHASA) !Race(NearestEnemyOfType([0.0.0.CLERIC_RANGER]),LICH) See(NearestEnemyOfType([0.0.0.CLERIC_RANGER])) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_SECRET_WORD) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(NearestEnemyOfType([0.0.0.CLERIC_ALL]),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOfType([0.0.0.CLERIC_ALL]),0,HELD) !StateCheck(NearestEnemyOfType([0.0.0.CLERIC_ALL]),STATE_STONE_DEATH) !CheckStatGT(NearestEnemyOfType([0.0.0.CLERIC_ALL]),0,WIZARD_SPELL_TRAP) OR(5) CheckStatGT(NearestEnemyOfType([0.0.0.CLERIC_ALL]),0,WIZARD_SPELL_IMMUNITY) CheckStatGT(NearestEnemyOfType([0.0.0.CLERIC_ALL]),0,WIZARD_SPELL_DEFLECTION) CheckStatGT(NearestEnemyOfType([0.0.0.CLERIC_ALL]),0,WIZARD_SPELL_TURNING) CheckStat(NearestEnemyOfType([0.0.0.CLERIC_ALL]),1,CLERIC_SHIELD_OF_THE_ARCHONS) CheckStatGT(NearestEnemyOfType([0.0.0.CLERIC_ALL]),0,MINORGLOBE) !Race(NearestEnemyOfType([0.0.0.CLERIC_ALL]),RAKSHASA) !Race(NearestEnemyOfType([0.0.0.CLERIC_ALL]),LICH) See(NearestEnemyOfType([0.0.0.CLERIC_ALL])) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_SECRET_WORD) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(NearestEnemyOfType([0.0.0.LONG_BOW]),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOfType([0.0.0.LONG_BOW]),0,HELD) !StateCheck(NearestEnemyOfType([0.0.0.LONG_BOW]),STATE_STONE_DEATH) !CheckStatGT(NearestEnemyOfType([0.0.0.LONG_BOW]),0,WIZARD_SPELL_TRAP) OR(5) CheckStatGT(NearestEnemyOfType([0.0.0.LONG_BOW]),0,WIZARD_SPELL_IMMUNITY) CheckStatGT(NearestEnemyOfType([0.0.0.LONG_BOW]),0,WIZARD_SPELL_DEFLECTION) CheckStatGT(NearestEnemyOfType([0.0.0.LONG_BOW]),0,WIZARD_SPELL_TURNING) CheckStat(NearestEnemyOfType([0.0.0.LONG_BOW]),1,CLERIC_SHIELD_OF_THE_ARCHONS) CheckStatGT(NearestEnemyOfType([0.0.0.LONG_BOW]),0,MINORGLOBE) !Race(NearestEnemyOfType([0.0.0.LONG_BOW]),RAKSHASA) !Race(NearestEnemyOfType([0.0.0.LONG_BOW]),LICH) See(NearestEnemyOfType([0.0.0.LONG_BOW])) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_SECRET_WORD) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(LastSeenBy(Myself),RZ_STATE_DISABLED) !CheckStatGT(LastSeenBy(Myself),0,HELD) !StateCheck(LastSeenBy(Myself),STATE_STONE_DEATH) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TRAP) OR(5) CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_IMMUNITY) CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_DEFLECTION) CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TURNING) CheckStat(LastSeenBy(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) CheckStatGT(LastSeenBy(Myself),0,MINORGLOBE) !Race(LastSeenBy(Myself),RAKSHASA) !Race(LastSeenBy(Myself),LICH) See(LastSeenBy(Myself)) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) Spell(LastSeenBy(Myself),WIZARD_SECRET_WORD) RESPONSE #33 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_BREACH) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SixthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(SixthNearestEnemyOf(Myself),1,WIZARD_SPELL_IMMUNITY) !StateCheck(SixthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SixthNearestEnemyOf(Myself),0,HELD) !StateCheck(SixthNearestEnemyOf(Myself),STATE_STONE_DEATH) OR(5) CheckStatGT(SixthNearestEnemyOf(Myself),0,TRUE_SIGHT) CheckStatGT(SixthNearestEnemyOf(Myself),0,STONESKINS) CheckStatGT(SixthNearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) CheckStatGT(SixthNearestEnemyOf(Myself),0,CLERIC_FREE_ACTION) CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_RESIST_FEAR) !Race(SixthNearestEnemyOf(Myself),RAKSHASA) !Race(SixthNearestEnemyOf(Myself),LICH) See(SixthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_BREACH) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FifthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(FifthNearestEnemyOf(Myself),1,WIZARD_SPELL_IMMUNITY) !StateCheck(FifthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FifthNearestEnemyOf(Myself),0,HELD) !StateCheck(FifthNearestEnemyOf(Myself),STATE_STONE_DEATH) OR(5) CheckStatGT(FifthNearestEnemyOf(Myself),0,TRUE_SIGHT) CheckStatGT(FifthNearestEnemyOf(Myself),0,STONESKINS) CheckStatGT(FifthNearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) CheckStatGT(FifthNearestEnemyOf(Myself),0,CLERIC_FREE_ACTION) CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_RESIST_FEAR) !Race(FifthNearestEnemyOf(Myself),RAKSHASA) !Race(FifthNearestEnemyOf(Myself),LICH) See(FifthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_BREACH) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FourthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(FourthNearestEnemyOf(Myself),1,WIZARD_SPELL_IMMUNITY) !StateCheck(FourthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FourthNearestEnemyOf(Myself),0,HELD) !StateCheck(FourthNearestEnemyOf(Myself),STATE_STONE_DEATH) OR(5) CheckStatGT(FourthNearestEnemyOf(Myself),0,TRUE_SIGHT) CheckStatGT(FourthNearestEnemyOf(Myself),0,STONESKINS) CheckStatGT(FourthNearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) CheckStatGT(FourthNearestEnemyOf(Myself),0,CLERIC_FREE_ACTION) CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_RESIST_FEAR) !Race(FourthNearestEnemyOf(Myself),RAKSHASA) !Race(FourthNearestEnemyOf(Myself),LICH) See(FourthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_BREACH) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(ThirdNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(ThirdNearestEnemyOf(Myself),1,WIZARD_SPELL_IMMUNITY) !StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_STONE_DEATH) OR(5) CheckStatGT(ThirdNearestEnemyOf(Myself),0,TRUE_SIGHT) CheckStatGT(ThirdNearestEnemyOf(Myself),0,STONESKINS) CheckStatGT(ThirdNearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) CheckStatGT(ThirdNearestEnemyOf(Myself),0,CLERIC_FREE_ACTION) CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_RESIST_FEAR) !Race(ThirdNearestEnemyOf(Myself),RAKSHASA) !Race(ThirdNearestEnemyOf(Myself),LICH) See(ThirdNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_BREACH) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SecondNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(SecondNearestEnemyOf(Myself),1,WIZARD_SPELL_IMMUNITY) !StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) !StateCheck(SecondNearestEnemyOf(Myself),STATE_STONE_DEATH) OR(5) CheckStatGT(SecondNearestEnemyOf(Myself),0,TRUE_SIGHT) CheckStatGT(SecondNearestEnemyOf(Myself),0,STONESKINS) CheckStatGT(SecondNearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) CheckStatGT(SecondNearestEnemyOf(Myself),0,CLERIC_FREE_ACTION) CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_RESIST_FEAR) !Race(SecondNearestEnemyOf(Myself),RAKSHASA) !Race(SecondNearestEnemyOf(Myself),LICH) See(SecondNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_BREACH) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(NearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(NearestEnemyOf(Myself),1,WIZARD_SPELL_IMMUNITY) !StateCheck(NearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) !StateCheck(NearestEnemyOf(Myself),STATE_STONE_DEATH) OR(5) CheckStatGT(NearestEnemyOf(Myself),0,TRUE_SIGHT) CheckStatGT(NearestEnemyOf(Myself),0,STONESKINS) CheckStatGT(NearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) CheckStatGT(NearestEnemyOf(Myself),0,CLERIC_FREE_ACTION) CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_RESIST_FEAR) !Race(NearestEnemyOf(Myself),RAKSHASA) !Race(NearestEnemyOf(Myself),LICH) See(NearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_BREACH) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(LastSeenBy(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(LastSeenBy(Myself),1,WIZARD_SPELL_IMMUNITY) !StateCheck(LastSeenBy(Myself),RZ_STATE_DISABLED) !CheckStatGT(LastSeenBy(Myself),0,HELD) !StateCheck(LastSeenBy(Myself),STATE_STONE_DEATH) OR(5) CheckStatGT(LastSeenBy(Myself),0,TRUE_SIGHT) CheckStatGT(LastSeenBy(Myself),0,STONESKINS) CheckStatGT(LastSeenBy(Myself),0,CLERIC_CHAOTIC_COMMANDS) CheckStatGT(LastSeenBy(Myself),0,CLERIC_FREE_ACTION) CheckStatGT(LastSeenBy(Myself),0,WIZARD_RESIST_FEAR) !Race(LastSeenBy(Myself),RAKSHASA) !Race(LastSeenBy(Myself),LICH) See(LastSeenBy(Myself)) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) Spell(LastSeenBy(Myself),WIZARD_BREACH) RESPONSE #33 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_GREATER_MALISON) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(SixthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SixthNearestEnemyOf(Myself),0,HELD) !StateCheck(SixthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SixthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(SixthNearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !Race(SixthNearestEnemyOf(Myself),RAKSHASA) !Race(SixthNearestEnemyOf(Myself),LICH) See(SixthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_GREATER_MALISON) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(FifthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FifthNearestEnemyOf(Myself),0,HELD) !StateCheck(FifthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FifthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(FifthNearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !Race(FifthNearestEnemyOf(Myself),RAKSHASA) !Race(FifthNearestEnemyOf(Myself),LICH) See(FifthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_GREATER_MALISON) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(FourthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FourthNearestEnemyOf(Myself),0,HELD) !StateCheck(FourthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FourthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(FourthNearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !Race(FourthNearestEnemyOf(Myself),RAKSHASA) !Race(FourthNearestEnemyOf(Myself),LICH) See(FourthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_GREATER_MALISON) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(ThirdNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(ThirdNearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !Race(ThirdNearestEnemyOf(Myself),RAKSHASA) !Race(ThirdNearestEnemyOf(Myself),LICH) See(ThirdNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_GREATER_MALISON) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) !StateCheck(SecondNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SecondNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(SecondNearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !Race(SecondNearestEnemyOf(Myself),RAKSHASA) !Race(SecondNearestEnemyOf(Myself),LICH) See(SecondNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_GREATER_MALISON) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(NearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) !StateCheck(NearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(NearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(NearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !Race(NearestEnemyOf(Myself),RAKSHASA) !Race(NearestEnemyOf(Myself),LICH) See(NearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_GREATER_MALISON) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(LastSeenBy(Myself),RZ_STATE_DISABLED) !CheckStatGT(LastSeenBy(Myself),0,HELD) !StateCheck(LastSeenBy(Myself),STATE_STONE_DEATH) !CheckStatGT(LastSeenBy(Myself),50,RESISTMAGIC) !CheckStat(LastSeenBy(Myself),4,WIZARD_SPELL_IMMUNITY) !Race(LastSeenBy(Myself),RAKSHASA) !Race(LastSeenBy(Myself),LICH) See(LastSeenBy(Myself)) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) Spell(LastSeenBy(Myself),WIZARD_GREATER_MALISON) RESPONSE #33 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_CHAOS) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(SixthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SixthNearestEnemyOf(Myself),0,HELD) !StateCheck(SixthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SixthNearestEnemyOf(Myself),50,RESISTMAGIC) !General(SixthNearestEnemyOf(Myself),UNDEAD) !Race(SixthNearestEnemyOf(Myself),SLIME) !Race(SixthNearestEnemyOf(Myself),DEMONIC) !Race(SixthNearestEnemyOf(Myself),TROLL) !Race(SixthNearestEnemyOf(Myself),UMBERHULK) !CheckStatGT(SixthNearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(SixthNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItem("ipsion",SixthNearestEnemyOf(Myself)) // Greenstone Amulet !HasItemEquiped("leat20",SixthNearestEnemyOf(Myself)) // Aeger's Hide +3 !HasItemEquiped("shld25",SixthNearestEnemyOf(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("sw1h54",SixthNearestEnemyOf(Myself)) // The Equalizer +4 !HasItemEquipedReal("sw2h14",SixthNearestEnemyOf(Myself)) // Lilarcor +3 !HasItemEquipedReal("sw2h21",SixthNearestEnemyOf(Myself)) // Psion's Blade +4 !CheckStat(SixthNearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !Race(SixthNearestEnemyOf(Myself),RAKSHASA) See(SixthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_CHAOS) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(FifthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FifthNearestEnemyOf(Myself),0,HELD) !StateCheck(FifthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FifthNearestEnemyOf(Myself),50,RESISTMAGIC) !General(FifthNearestEnemyOf(Myself),UNDEAD) !Race(FifthNearestEnemyOf(Myself),SLIME) !Race(FifthNearestEnemyOf(Myself),DEMONIC) !Race(FifthNearestEnemyOf(Myself),TROLL) !Race(FifthNearestEnemyOf(Myself),UMBERHULK) !CheckStatGT(FifthNearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(FifthNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItem("ipsion",FifthNearestEnemyOf(Myself)) // Greenstone Amulet !HasItemEquiped("leat20",FifthNearestEnemyOf(Myself)) // Aeger's Hide +3 !HasItemEquiped("shld25",FifthNearestEnemyOf(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("sw1h54",FifthNearestEnemyOf(Myself)) // The Equalizer +4 !HasItemEquipedReal("sw2h14",FifthNearestEnemyOf(Myself)) // Lilarcor +3 !HasItemEquipedReal("sw2h21",FifthNearestEnemyOf(Myself)) // Psion's Blade +4 !CheckStat(FifthNearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !Race(FifthNearestEnemyOf(Myself),RAKSHASA) See(FifthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_CHAOS) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(FourthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FourthNearestEnemyOf(Myself),0,HELD) !StateCheck(FourthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FourthNearestEnemyOf(Myself),50,RESISTMAGIC) !General(FourthNearestEnemyOf(Myself),UNDEAD) !Race(FourthNearestEnemyOf(Myself),SLIME) !Race(FourthNearestEnemyOf(Myself),DEMONIC) !Race(FourthNearestEnemyOf(Myself),TROLL) !Race(FourthNearestEnemyOf(Myself),UMBERHULK) !CheckStatGT(FourthNearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(FourthNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItem("ipsion",FourthNearestEnemyOf(Myself)) // Greenstone Amulet !HasItemEquiped("leat20",FourthNearestEnemyOf(Myself)) // Aeger's Hide +3 !HasItemEquiped("shld25",FourthNearestEnemyOf(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("sw1h54",FourthNearestEnemyOf(Myself)) // The Equalizer +4 !HasItemEquipedReal("sw2h14",FourthNearestEnemyOf(Myself)) // Lilarcor +3 !HasItemEquipedReal("sw2h21",FourthNearestEnemyOf(Myself)) // Psion's Blade +4 !CheckStat(FourthNearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !Race(FourthNearestEnemyOf(Myself),RAKSHASA) See(FourthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_CHAOS) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(ThirdNearestEnemyOf(Myself),50,RESISTMAGIC) !General(ThirdNearestEnemyOf(Myself),UNDEAD) !Race(ThirdNearestEnemyOf(Myself),SLIME) !Race(ThirdNearestEnemyOf(Myself),DEMONIC) !Race(ThirdNearestEnemyOf(Myself),TROLL) !Race(ThirdNearestEnemyOf(Myself),UMBERHULK) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(ThirdNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItem("ipsion",ThirdNearestEnemyOf(Myself)) // Greenstone Amulet !HasItemEquiped("leat20",ThirdNearestEnemyOf(Myself)) // Aeger's Hide +3 !HasItemEquiped("shld25",ThirdNearestEnemyOf(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("sw1h54",ThirdNearestEnemyOf(Myself)) // The Equalizer +4 !HasItemEquipedReal("sw2h14",ThirdNearestEnemyOf(Myself)) // Lilarcor +3 !HasItemEquipedReal("sw2h21",ThirdNearestEnemyOf(Myself)) // Psion's Blade +4 !CheckStat(ThirdNearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !Race(ThirdNearestEnemyOf(Myself),RAKSHASA) See(ThirdNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_CHAOS) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) !StateCheck(SecondNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SecondNearestEnemyOf(Myself),50,RESISTMAGIC) !General(SecondNearestEnemyOf(Myself),UNDEAD) !Race(SecondNearestEnemyOf(Myself),SLIME) !Race(SecondNearestEnemyOf(Myself),DEMONIC) !Race(SecondNearestEnemyOf(Myself),TROLL) !Race(SecondNearestEnemyOf(Myself),UMBERHULK) !CheckStatGT(SecondNearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(SecondNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItem("ipsion",SecondNearestEnemyOf(Myself)) // Greenstone Amulet !HasItemEquiped("leat20",SecondNearestEnemyOf(Myself)) // Aeger's Hide +3 !HasItemEquiped("shld25",SecondNearestEnemyOf(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("sw1h54",SecondNearestEnemyOf(Myself)) // The Equalizer +4 !HasItemEquipedReal("sw2h14",SecondNearestEnemyOf(Myself)) // Lilarcor +3 !HasItemEquipedReal("sw2h21",SecondNearestEnemyOf(Myself)) // Psion's Blade +4 !CheckStat(SecondNearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !Race(SecondNearestEnemyOf(Myself),RAKSHASA) See(SecondNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_CHAOS) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(NearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) !StateCheck(NearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(NearestEnemyOf(Myself),50,RESISTMAGIC) !General(NearestEnemyOf(Myself),UNDEAD) !Race(NearestEnemyOf(Myself),SLIME) !Race(NearestEnemyOf(Myself),DEMONIC) !Race(NearestEnemyOf(Myself),TROLL) !Race(NearestEnemyOf(Myself),UMBERHULK) !CheckStatGT(NearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(NearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItem("ipsion",NearestEnemyOf(Myself)) // Greenstone Amulet !HasItemEquiped("leat20",NearestEnemyOf(Myself)) // Aeger's Hide +3 !HasItemEquiped("shld25",NearestEnemyOf(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("sw1h54",NearestEnemyOf(Myself)) // The Equalizer +4 !HasItemEquipedReal("sw2h14",NearestEnemyOf(Myself)) // Lilarcor +3 !HasItemEquipedReal("sw2h21",NearestEnemyOf(Myself)) // Psion's Blade +4 !CheckStat(NearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !Race(NearestEnemyOf(Myself),RAKSHASA) See(NearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_CHAOS) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(LastSeenBy(Myself),RZ_STATE_DISABLED) !CheckStatGT(LastSeenBy(Myself),0,HELD) !StateCheck(LastSeenBy(Myself),STATE_STONE_DEATH) !CheckStatGT(LastSeenBy(Myself),50,RESISTMAGIC) !General(LastSeenBy(Myself),UNDEAD) !Race(LastSeenBy(Myself),SLIME) !Race(LastSeenBy(Myself),DEMONIC) !Race(LastSeenBy(Myself),TROLL) !Race(LastSeenBy(Myself),UMBERHULK) !CheckStatGT(LastSeenBy(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(LastSeenBy(Myself),1,SCRIPTINGSTATE4) !HasItem("ipsion",LastSeenBy(Myself)) // Greenstone Amulet !HasItemEquiped("leat20",LastSeenBy(Myself)) // Aeger's Hide +3 !HasItemEquiped("shld25",LastSeenBy(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("sw1h54",LastSeenBy(Myself)) // The Equalizer +4 !HasItemEquipedReal("sw2h14",LastSeenBy(Myself)) // Lilarcor +3 !HasItemEquipedReal("sw2h21",LastSeenBy(Myself)) // Psion's Blade +4 !CheckStat(LastSeenBy(Myself),4,WIZARD_SPELL_IMMUNITY) !Race(LastSeenBy(Myself),RAKSHASA) See(LastSeenBy(Myself)) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) Spell(LastSeenBy(Myself),WIZARD_CHAOS) RESPONSE #50 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_CHAIN_LIGHTNING) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(SixthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SixthNearestEnemyOf(Myself),0,HELD) !StateCheck(SixthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SixthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(SixthNearestEnemyOf(Myself),50,RESISTELECTRICITY) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SixthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(SixthNearestEnemyOf(Myself),6,WIZARD_SPELL_IMMUNITY) !HasItemEquiped("clck24",SixthNearestEnemyOf(Myself)) // Stormlord's Cloak !HasItemEquiped("clck26",SixthNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(SixthNearestEnemyOf(Myself),RAKSHASA) See(SixthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_CHAIN_LIGHTNING) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(FifthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FifthNearestEnemyOf(Myself),0,HELD) !StateCheck(FifthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FifthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(FifthNearestEnemyOf(Myself),50,RESISTELECTRICITY) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FifthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(FifthNearestEnemyOf(Myself),6,WIZARD_SPELL_IMMUNITY) !HasItemEquiped("clck24",FifthNearestEnemyOf(Myself)) // Stormlord's Cloak !HasItemEquiped("clck26",FifthNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(FifthNearestEnemyOf(Myself),RAKSHASA) See(FifthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_CHAIN_LIGHTNING) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(FourthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FourthNearestEnemyOf(Myself),0,HELD) !StateCheck(FourthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FourthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(FourthNearestEnemyOf(Myself),50,RESISTELECTRICITY) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FourthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(FourthNearestEnemyOf(Myself),6,WIZARD_SPELL_IMMUNITY) !HasItemEquiped("clck24",FourthNearestEnemyOf(Myself)) // Stormlord's Cloak !HasItemEquiped("clck26",FourthNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(FourthNearestEnemyOf(Myself),RAKSHASA) See(FourthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_CHAIN_LIGHTNING) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(ThirdNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(ThirdNearestEnemyOf(Myself),50,RESISTELECTRICITY) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(ThirdNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(ThirdNearestEnemyOf(Myself),6,WIZARD_SPELL_IMMUNITY) !HasItemEquiped("clck24",ThirdNearestEnemyOf(Myself)) // Stormlord's Cloak !HasItemEquiped("clck26",ThirdNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(ThirdNearestEnemyOf(Myself),RAKSHASA) See(ThirdNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_CHAIN_LIGHTNING) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) !StateCheck(SecondNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SecondNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(SecondNearestEnemyOf(Myself),50,RESISTELECTRICITY) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SecondNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(SecondNearestEnemyOf(Myself),6,WIZARD_SPELL_IMMUNITY) !HasItemEquiped("clck24",SecondNearestEnemyOf(Myself)) // Stormlord's Cloak !HasItemEquiped("clck26",SecondNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(SecondNearestEnemyOf(Myself),RAKSHASA) See(SecondNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_CHAIN_LIGHTNING) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(NearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) !StateCheck(NearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(NearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(NearestEnemyOf(Myself),50,RESISTELECTRICITY) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(NearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(NearestEnemyOf(Myself),6,WIZARD_SPELL_IMMUNITY) !HasItemEquiped("clck24",NearestEnemyOf(Myself)) // Stormlord's Cloak !HasItemEquiped("clck26",NearestEnemyOf(Myself)) // Cloak of Mirroring !Race(NearestEnemyOf(Myself),RAKSHASA) See(NearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_CHAIN_LIGHTNING) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(LastSeenBy(Myself),RZ_STATE_DISABLED) !CheckStatGT(LastSeenBy(Myself),0,HELD) !StateCheck(LastSeenBy(Myself),STATE_STONE_DEATH) !CheckStatGT(LastSeenBy(Myself),50,RESISTMAGIC) !CheckStatGT(LastSeenBy(Myself),50,RESISTELECTRICITY) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(LastSeenBy(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(LastSeenBy(Myself),6,WIZARD_SPELL_IMMUNITY) !HasItemEquiped("clck24",LastSeenBy(Myself)) // Stormlord's Cloak !HasItemEquiped("clck26",LastSeenBy(Myself)) // Cloak of Mirroring !Race(LastSeenBy(Myself),RAKSHASA) See(LastSeenBy(Myself)) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) Spell(LastSeenBy(Myself),WIZARD_CHAIN_LIGHTNING) RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_DOMINATION) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(SixthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SixthNearestEnemyOf(Myself),0,HELD) !StateCheck(SixthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SixthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SixthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(SixthNearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !General(SixthNearestEnemyOf(Myself),UNDEAD) !Race(SixthNearestEnemyOf(Myself),ELF) !Race(SixthNearestEnemyOf(Myself),GOLEM) !Race(SixthNearestEnemyOf(Myself),SLIME) !Race(SixthNearestEnemyOf(Myself),DEMONIC) !Race(SixthNearestEnemyOf(Myself),TROLL) !Class(SixthNearestEnemyOf(Myself),MONK) !Kit(SixthNearestEnemyOf(Myself),INQUISITOR) !Kit(SixthNearestEnemyOf(Myself),CAVALIER) !CheckStatGT(SixthNearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(SixthNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("helm06",SixthNearestEnemyOf(Myself)) // Helm of Charm Protection !HasItemEquiped("ipsion",SixthNearestEnemyOf(Myself)) // Greenstone Amulet !HasItemEquipedReal("miscbc",SixthNearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("npchan",SixthNearestEnemyOf(Myself)) // Corthala Family Armor +3 !HasItemEquiped("shld25",SixthNearestEnemyOf(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("sper07",SixthNearestEnemyOf(Myself)) // Spear of the Unicorn +2 !HasItemEquipedReal("staf11",SixthNearestEnemyOf(Myself)) // Staff of the Magi +5 !HasItemEquipedReal("sw1h35",SixthNearestEnemyOf(Myself)) // Adjatha The Drinker +2 !HasItemEquipedReal("sw1h54",SixthNearestEnemyOf(Myself)) // The Equalizer +4 !HasItemEquipedReal("sw2h14",SixthNearestEnemyOf(Myself)) // Lilarcor +3 OR(2) !Gender(SixthNearestEnemyOf(Myself),SUMMONED) !Gender(SixthNearestEnemyOf(Myself),20) !Race(SixthNearestEnemyOf(Myself),RAKSHASA) See(SixthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_DOMINATION) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(FifthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FifthNearestEnemyOf(Myself),0,HELD) !StateCheck(FifthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FifthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FifthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(FifthNearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !General(FifthNearestEnemyOf(Myself),UNDEAD) !Race(FifthNearestEnemyOf(Myself),ELF) !Race(FifthNearestEnemyOf(Myself),GOLEM) !Race(FifthNearestEnemyOf(Myself),SLIME) !Race(FifthNearestEnemyOf(Myself),DEMONIC) !Race(FifthNearestEnemyOf(Myself),TROLL) !Class(FifthNearestEnemyOf(Myself),MONK) !Kit(FifthNearestEnemyOf(Myself),INQUISITOR) !Kit(FifthNearestEnemyOf(Myself),CAVALIER) !CheckStatGT(FifthNearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(FifthNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("helm06",FifthNearestEnemyOf(Myself)) // Helm of Charm Protection !HasItemEquiped("ipsion",FifthNearestEnemyOf(Myself)) // Greenstone Amulet !HasItemEquipedReal("miscbc",FifthNearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("npchan",FifthNearestEnemyOf(Myself)) // Corthala Family Armor +3 !HasItemEquiped("shld25",FifthNearestEnemyOf(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("sper07",FifthNearestEnemyOf(Myself)) // Spear of the Unicorn +2 !HasItemEquipedReal("staf11",FifthNearestEnemyOf(Myself)) // Staff of the Magi +5 !HasItemEquipedReal("sw1h35",FifthNearestEnemyOf(Myself)) // Adjatha The Drinker +2 !HasItemEquipedReal("sw1h54",FifthNearestEnemyOf(Myself)) // The Equalizer +4 !HasItemEquipedReal("sw2h14",FifthNearestEnemyOf(Myself)) // Lilarcor +3 OR(2) !Gender(FifthNearestEnemyOf(Myself),SUMMONED) !Gender(FifthNearestEnemyOf(Myself),20) !Race(FifthNearestEnemyOf(Myself),RAKSHASA) See(FifthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_DOMINATION) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(FourthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FourthNearestEnemyOf(Myself),0,HELD) !StateCheck(FourthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FourthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FourthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(FourthNearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !General(FourthNearestEnemyOf(Myself),UNDEAD) !Race(FourthNearestEnemyOf(Myself),ELF) !Race(FourthNearestEnemyOf(Myself),GOLEM) !Race(FourthNearestEnemyOf(Myself),SLIME) !Race(FourthNearestEnemyOf(Myself),DEMONIC) !Race(FourthNearestEnemyOf(Myself),TROLL) !Class(FourthNearestEnemyOf(Myself),MONK) !Kit(FourthNearestEnemyOf(Myself),INQUISITOR) !Kit(FourthNearestEnemyOf(Myself),CAVALIER) !CheckStatGT(FourthNearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(FourthNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("helm06",FourthNearestEnemyOf(Myself)) // Helm of Charm Protection !HasItemEquiped("ipsion",FourthNearestEnemyOf(Myself)) // Greenstone Amulet !HasItemEquipedReal("miscbc",FourthNearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("npchan",FourthNearestEnemyOf(Myself)) // Corthala Family Armor +3 !HasItemEquiped("shld25",FourthNearestEnemyOf(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("sper07",FourthNearestEnemyOf(Myself)) // Spear of the Unicorn +2 !HasItemEquipedReal("staf11",FourthNearestEnemyOf(Myself)) // Staff of the Magi +5 !HasItemEquipedReal("sw1h35",FourthNearestEnemyOf(Myself)) // Adjatha The Drinker +2 !HasItemEquipedReal("sw1h54",FourthNearestEnemyOf(Myself)) // The Equalizer +4 !HasItemEquipedReal("sw2h14",FourthNearestEnemyOf(Myself)) // Lilarcor +3 OR(2) !Gender(FourthNearestEnemyOf(Myself),SUMMONED) !Gender(FourthNearestEnemyOf(Myself),20) !Race(FourthNearestEnemyOf(Myself),RAKSHASA) See(FourthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_DOMINATION) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(ThirdNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(ThirdNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(ThirdNearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !General(ThirdNearestEnemyOf(Myself),UNDEAD) !Race(ThirdNearestEnemyOf(Myself),ELF) !Race(ThirdNearestEnemyOf(Myself),GOLEM) !Race(ThirdNearestEnemyOf(Myself),SLIME) !Race(ThirdNearestEnemyOf(Myself),DEMONIC) !Race(ThirdNearestEnemyOf(Myself),TROLL) !Class(ThirdNearestEnemyOf(Myself),MONK) !Kit(ThirdNearestEnemyOf(Myself),INQUISITOR) !Kit(ThirdNearestEnemyOf(Myself),CAVALIER) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(ThirdNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("helm06",ThirdNearestEnemyOf(Myself)) // Helm of Charm Protection !HasItemEquiped("ipsion",ThirdNearestEnemyOf(Myself)) // Greenstone Amulet !HasItemEquipedReal("miscbc",ThirdNearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("npchan",ThirdNearestEnemyOf(Myself)) // Corthala Family Armor +3 !HasItemEquiped("shld25",ThirdNearestEnemyOf(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("sper07",ThirdNearestEnemyOf(Myself)) // Spear of the Unicorn +2 !HasItemEquipedReal("staf11",ThirdNearestEnemyOf(Myself)) // Staff of the Magi +5 !HasItemEquipedReal("sw1h35",ThirdNearestEnemyOf(Myself)) // Adjatha The Drinker +2 !HasItemEquipedReal("sw1h54",ThirdNearestEnemyOf(Myself)) // The Equalizer +4 !HasItemEquipedReal("sw2h14",ThirdNearestEnemyOf(Myself)) // Lilarcor +3 OR(2) !Gender(ThirdNearestEnemyOf(Myself),SUMMONED) !Gender(ThirdNearestEnemyOf(Myself),20) !Race(ThirdNearestEnemyOf(Myself),RAKSHASA) See(ThirdNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_DOMINATION) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) !StateCheck(SecondNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SecondNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SecondNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(SecondNearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !General(SecondNearestEnemyOf(Myself),UNDEAD) !Race(SecondNearestEnemyOf(Myself),ELF) !Race(SecondNearestEnemyOf(Myself),GOLEM) !Race(SecondNearestEnemyOf(Myself),SLIME) !Race(SecondNearestEnemyOf(Myself),DEMONIC) !Race(SecondNearestEnemyOf(Myself),TROLL) !Class(SecondNearestEnemyOf(Myself),MONK) !Kit(SecondNearestEnemyOf(Myself),INQUISITOR) !Kit(SecondNearestEnemyOf(Myself),CAVALIER) !CheckStatGT(SecondNearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(SecondNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("helm06",SecondNearestEnemyOf(Myself)) // Helm of Charm Protection !HasItemEquiped("ipsion",SecondNearestEnemyOf(Myself)) // Greenstone Amulet !HasItemEquipedReal("miscbc",SecondNearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("npchan",SecondNearestEnemyOf(Myself)) // Corthala Family Armor +3 !HasItemEquiped("shld25",SecondNearestEnemyOf(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("sper07",SecondNearestEnemyOf(Myself)) // Spear of the Unicorn +2 !HasItemEquipedReal("staf11",SecondNearestEnemyOf(Myself)) // Staff of the Magi +5 !HasItemEquipedReal("sw1h35",SecondNearestEnemyOf(Myself)) // Adjatha The Drinker +2 !HasItemEquipedReal("sw1h54",SecondNearestEnemyOf(Myself)) // The Equalizer +4 !HasItemEquipedReal("sw2h14",SecondNearestEnemyOf(Myself)) // Lilarcor +3 OR(2) !Gender(SecondNearestEnemyOf(Myself),SUMMONED) !Gender(SecondNearestEnemyOf(Myself),20) !Race(SecondNearestEnemyOf(Myself),RAKSHASA) See(SecondNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_DOMINATION) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(NearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) !StateCheck(NearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(NearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(NearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(NearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !General(NearestEnemyOf(Myself),UNDEAD) !Race(NearestEnemyOf(Myself),ELF) !Race(NearestEnemyOf(Myself),GOLEM) !Race(NearestEnemyOf(Myself),SLIME) !Race(NearestEnemyOf(Myself),DEMONIC) !Race(NearestEnemyOf(Myself),TROLL) !Class(NearestEnemyOf(Myself),MONK) !Kit(NearestEnemyOf(Myself),INQUISITOR) !Kit(NearestEnemyOf(Myself),CAVALIER) !CheckStatGT(NearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(NearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("helm06",NearestEnemyOf(Myself)) // Helm of Charm Protection !HasItemEquiped("ipsion",NearestEnemyOf(Myself)) // Greenstone Amulet !HasItemEquipedReal("miscbc",NearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("npchan",NearestEnemyOf(Myself)) // Corthala Family Armor +3 !HasItemEquiped("shld25",NearestEnemyOf(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("sper07",NearestEnemyOf(Myself)) // Spear of the Unicorn +2 !HasItemEquipedReal("staf11",NearestEnemyOf(Myself)) // Staff of the Magi +5 !HasItemEquipedReal("sw1h35",NearestEnemyOf(Myself)) // Adjatha The Drinker +2 !HasItemEquipedReal("sw1h54",NearestEnemyOf(Myself)) // The Equalizer +4 !HasItemEquipedReal("sw2h14",NearestEnemyOf(Myself)) // Lilarcor +3 OR(2) !Gender(NearestEnemyOf(Myself),SUMMONED) !Gender(NearestEnemyOf(Myself),20) !Race(NearestEnemyOf(Myself),RAKSHASA) See(NearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_DOMINATION) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(LastSeenBy(Myself),RZ_STATE_DISABLED) !CheckStatGT(LastSeenBy(Myself),0,HELD) !StateCheck(LastSeenBy(Myself),STATE_STONE_DEATH) !CheckStatGT(LastSeenBy(Myself),50,RESISTMAGIC) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(LastSeenBy(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(LastSeenBy(Myself),4,WIZARD_SPELL_IMMUNITY) !General(LastSeenBy(Myself),UNDEAD) !Race(LastSeenBy(Myself),ELF) !Race(LastSeenBy(Myself),GOLEM) !Race(LastSeenBy(Myself),SLIME) !Race(LastSeenBy(Myself),DEMONIC) !Race(LastSeenBy(Myself),TROLL) !Class(LastSeenBy(Myself),MONK) !Kit(LastSeenBy(Myself),INQUISITOR) !Kit(LastSeenBy(Myself),CAVALIER) !CheckStatGT(LastSeenBy(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(LastSeenBy(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("helm06",LastSeenBy(Myself)) // Helm of Charm Protection !HasItemEquiped("ipsion",LastSeenBy(Myself)) // Greenstone Amulet !HasItemEquipedReal("miscbc",LastSeenBy(Myself)) // Blackrazor +3 !HasItemEquiped("npchan",LastSeenBy(Myself)) // Corthala Family Armor +3 !HasItemEquiped("shld25",LastSeenBy(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("sper07",LastSeenBy(Myself)) // Spear of the Unicorn +2 !HasItemEquipedReal("staf11",LastSeenBy(Myself)) // Staff of the Magi +5 !HasItemEquipedReal("sw1h35",LastSeenBy(Myself)) // Adjatha The Drinker +2 !HasItemEquipedReal("sw1h54",LastSeenBy(Myself)) // The Equalizer +4 !HasItemEquipedReal("sw2h14",LastSeenBy(Myself)) // Lilarcor +3 OR(2) !Gender(LastSeenBy(Myself),SUMMONED) !Gender(LastSeenBy(Myself),20) !Race(LastSeenBy(Myself),RAKSHASA) See(LastSeenBy(Myself)) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) Spell(LastSeenBy(Myself),WIZARD_DOMINATION) RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_HOLD_MONSTER) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(SixthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SixthNearestEnemyOf(Myself),0,HELD) !StateCheck(SixthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SixthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SixthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(SixthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(SixthNearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !General(SixthNearestEnemyOf(Myself),UNDEAD) !Race(SixthNearestEnemyOf(Myself),GOLEM) !Race(SixthNearestEnemyOf(Myself),SLIME) !Race(SixthNearestEnemyOf(Myself),TROLL) !Kit(SixthNearestEnemyOf(Myself),UNDEADHUNTER) !Kit(SixthNearestEnemyOf(Myself),INQUISITOR) !CheckStatGT(SixthNearestEnemyOf(Myself),0,CLERIC_FREE_ACTION) !CheckStatGT(SixthNearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(SixthNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("shld25",SixthNearestEnemyOf(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("blun30",SixthNearestEnemyOf(Myself)) // Flail of Ages +5 !HasItemEquiped("ipsion",SixthNearestEnemyOf(Myself)) // Greenstone Amulet !HasItemEquiped("npplat",SixthNearestEnemyOf(Myself)) // Firecam Full Plate Mail +2 !HasItemEquiped("ring09",SixthNearestEnemyOf(Myself)) // Ring of Free Action !HasItemEquipedReal("sper12",SixthNearestEnemyOf(Myself)) // Ixil's Spike +5 !HasItemEquipedReal("sw1h27",SixthNearestEnemyOf(Myself)) // Arbane's Sword +2 OR(2) !Gender(SixthNearestEnemyOf(Myself),SUMMONED) !Gender(SixthNearestEnemyOf(Myself),20) !Race(SixthNearestEnemyOf(Myself),RAKSHASA) See(SixthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_HOLD_MONSTER) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(FifthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FifthNearestEnemyOf(Myself),0,HELD) !StateCheck(FifthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FifthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FifthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(FifthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(FifthNearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !General(FifthNearestEnemyOf(Myself),UNDEAD) !Race(FifthNearestEnemyOf(Myself),GOLEM) !Race(FifthNearestEnemyOf(Myself),SLIME) !Race(FifthNearestEnemyOf(Myself),TROLL) !Kit(FifthNearestEnemyOf(Myself),UNDEADHUNTER) !Kit(FifthNearestEnemyOf(Myself),INQUISITOR) !CheckStatGT(FifthNearestEnemyOf(Myself),0,CLERIC_FREE_ACTION) !CheckStatGT(FifthNearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(FifthNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("shld25",FifthNearestEnemyOf(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("blun30",FifthNearestEnemyOf(Myself)) // Flail of Ages +5 !HasItemEquiped("ipsion",FifthNearestEnemyOf(Myself)) // Greenstone Amulet !HasItemEquiped("npplat",FifthNearestEnemyOf(Myself)) // Firecam Full Plate Mail +2 !HasItemEquiped("ring09",FifthNearestEnemyOf(Myself)) // Ring of Free Action !HasItemEquipedReal("sper12",FifthNearestEnemyOf(Myself)) // Ixil's Spike +5 !HasItemEquipedReal("sw1h27",FifthNearestEnemyOf(Myself)) // Arbane's Sword +2 OR(2) !Gender(FifthNearestEnemyOf(Myself),SUMMONED) !Gender(FifthNearestEnemyOf(Myself),20) !Race(FifthNearestEnemyOf(Myself),RAKSHASA) See(FifthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_HOLD_MONSTER) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(FourthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FourthNearestEnemyOf(Myself),0,HELD) !StateCheck(FourthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FourthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FourthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(FourthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(FourthNearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !General(FourthNearestEnemyOf(Myself),UNDEAD) !Race(FourthNearestEnemyOf(Myself),GOLEM) !Race(FourthNearestEnemyOf(Myself),SLIME) !Race(FourthNearestEnemyOf(Myself),TROLL) !Kit(FourthNearestEnemyOf(Myself),UNDEADHUNTER) !Kit(FourthNearestEnemyOf(Myself),INQUISITOR) !CheckStatGT(FourthNearestEnemyOf(Myself),0,CLERIC_FREE_ACTION) !CheckStatGT(FourthNearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(FourthNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("shld25",FourthNearestEnemyOf(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("blun30",FourthNearestEnemyOf(Myself)) // Flail of Ages +5 !HasItemEquiped("ipsion",FourthNearestEnemyOf(Myself)) // Greenstone Amulet !HasItemEquiped("npplat",FourthNearestEnemyOf(Myself)) // Firecam Full Plate Mail +2 !HasItemEquiped("ring09",FourthNearestEnemyOf(Myself)) // Ring of Free Action !HasItemEquipedReal("sper12",FourthNearestEnemyOf(Myself)) // Ixil's Spike +5 !HasItemEquipedReal("sw1h27",FourthNearestEnemyOf(Myself)) // Arbane's Sword +2 OR(2) !Gender(FourthNearestEnemyOf(Myself),SUMMONED) !Gender(FourthNearestEnemyOf(Myself),20) !Race(FourthNearestEnemyOf(Myself),RAKSHASA) See(FourthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_HOLD_MONSTER) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(ThirdNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(ThirdNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(ThirdNearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !General(ThirdNearestEnemyOf(Myself),UNDEAD) !Race(ThirdNearestEnemyOf(Myself),GOLEM) !Race(ThirdNearestEnemyOf(Myself),SLIME) !Race(ThirdNearestEnemyOf(Myself),TROLL) !Kit(ThirdNearestEnemyOf(Myself),UNDEADHUNTER) !Kit(ThirdNearestEnemyOf(Myself),INQUISITOR) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,CLERIC_FREE_ACTION) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(ThirdNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("shld25",ThirdNearestEnemyOf(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("blun30",ThirdNearestEnemyOf(Myself)) // Flail of Ages +5 !HasItemEquiped("ipsion",ThirdNearestEnemyOf(Myself)) // Greenstone Amulet !HasItemEquiped("npplat",ThirdNearestEnemyOf(Myself)) // Firecam Full Plate Mail +2 !HasItemEquiped("ring09",ThirdNearestEnemyOf(Myself)) // Ring of Free Action !HasItemEquipedReal("sper12",ThirdNearestEnemyOf(Myself)) // Ixil's Spike +5 !HasItemEquipedReal("sw1h27",ThirdNearestEnemyOf(Myself)) // Arbane's Sword +2 OR(2) !Gender(ThirdNearestEnemyOf(Myself),SUMMONED) !Gender(ThirdNearestEnemyOf(Myself),20) !Race(ThirdNearestEnemyOf(Myself),RAKSHASA) See(ThirdNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_HOLD_MONSTER) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) !StateCheck(SecondNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SecondNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SecondNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(SecondNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(SecondNearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !General(SecondNearestEnemyOf(Myself),UNDEAD) !Race(SecondNearestEnemyOf(Myself),GOLEM) !Race(SecondNearestEnemyOf(Myself),SLIME) !Race(SecondNearestEnemyOf(Myself),TROLL) !Kit(SecondNearestEnemyOf(Myself),UNDEADHUNTER) !Kit(SecondNearestEnemyOf(Myself),INQUISITOR) !CheckStatGT(SecondNearestEnemyOf(Myself),0,CLERIC_FREE_ACTION) !CheckStatGT(SecondNearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(SecondNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("shld25",SecondNearestEnemyOf(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("blun30",SecondNearestEnemyOf(Myself)) // Flail of Ages +5 !HasItemEquiped("ipsion",SecondNearestEnemyOf(Myself)) // Greenstone Amulet !HasItemEquiped("npplat",SecondNearestEnemyOf(Myself)) // Firecam Full Plate Mail +2 !HasItemEquiped("ring09",SecondNearestEnemyOf(Myself)) // Ring of Free Action !HasItemEquipedReal("sper12",SecondNearestEnemyOf(Myself)) // Ixil's Spike +5 !HasItemEquipedReal("sw1h27",SecondNearestEnemyOf(Myself)) // Arbane's Sword +2 OR(2) !Gender(SecondNearestEnemyOf(Myself),SUMMONED) !Gender(SecondNearestEnemyOf(Myself),20) !Race(SecondNearestEnemyOf(Myself),RAKSHASA) See(SecondNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_HOLD_MONSTER) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(NearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) !StateCheck(NearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(NearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(NearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(NearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(NearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !General(NearestEnemyOf(Myself),UNDEAD) !Race(NearestEnemyOf(Myself),GOLEM) !Race(NearestEnemyOf(Myself),SLIME) !Race(NearestEnemyOf(Myself),TROLL) !Kit(NearestEnemyOf(Myself),UNDEADHUNTER) !Kit(NearestEnemyOf(Myself),INQUISITOR) !CheckStatGT(NearestEnemyOf(Myself),0,CLERIC_FREE_ACTION) !CheckStatGT(NearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(NearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("shld25",NearestEnemyOf(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("blun30",NearestEnemyOf(Myself)) // Flail of Ages +5 !HasItemEquiped("ipsion",NearestEnemyOf(Myself)) // Greenstone Amulet !HasItemEquiped("npplat",NearestEnemyOf(Myself)) // Firecam Full Plate Mail +2 !HasItemEquiped("ring09",NearestEnemyOf(Myself)) // Ring of Free Action !HasItemEquipedReal("sper12",NearestEnemyOf(Myself)) // Ixil's Spike +5 !HasItemEquipedReal("sw1h27",NearestEnemyOf(Myself)) // Arbane's Sword +2 OR(2) !Gender(NearestEnemyOf(Myself),SUMMONED) !Gender(NearestEnemyOf(Myself),20) !Race(NearestEnemyOf(Myself),RAKSHASA) See(NearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_HOLD_MONSTER) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(LastSeenBy(Myself),RZ_STATE_DISABLED) !CheckStatGT(LastSeenBy(Myself),0,HELD) !StateCheck(LastSeenBy(Myself),STATE_STONE_DEATH) !CheckStatGT(LastSeenBy(Myself),50,RESISTMAGIC) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(LastSeenBy(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(LastSeenBy(Myself),0,MINORGLOBE) !CheckStat(LastSeenBy(Myself),4,WIZARD_SPELL_IMMUNITY) !General(LastSeenBy(Myself),UNDEAD) !Race(LastSeenBy(Myself),GOLEM) !Race(LastSeenBy(Myself),SLIME) !Race(LastSeenBy(Myself),TROLL) !Kit(LastSeenBy(Myself),UNDEADHUNTER) !Kit(LastSeenBy(Myself),INQUISITOR) !CheckStatGT(LastSeenBy(Myself),0,CLERIC_FREE_ACTION) !CheckStatGT(LastSeenBy(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(LastSeenBy(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("shld25",LastSeenBy(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("blun30",LastSeenBy(Myself)) // Flail of Ages +5 !HasItemEquiped("ipsion",LastSeenBy(Myself)) // Greenstone Amulet !HasItemEquiped("npplat",LastSeenBy(Myself)) // Firecam Full Plate Mail +2 !HasItemEquiped("ring09",LastSeenBy(Myself)) // Ring of Free Action !HasItemEquipedReal("sper12",LastSeenBy(Myself)) // Ixil's Spike +5 !HasItemEquipedReal("sw1h27",LastSeenBy(Myself)) // Arbane's Sword +2 OR(2) !Gender(LastSeenBy(Myself),SUMMONED) !Gender(LastSeenBy(Myself),20) !Race(LastSeenBy(Myself),RAKSHASA) See(LastSeenBy(Myself)) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) Spell(LastSeenBy(Myself),WIZARD_HOLD_MONSTER) RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") !StateCheck(SixthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SixthNearestEnemyOf(Myself),0,HELD) !StateCheck(SixthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SixthNearestEnemyOf(Myself),75,RESISTMAGIC) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SixthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(SixthNearestEnemyOf(Myself),8,WIZARD_SPELL_IMMUNITY) Range(SixthNearestEnemyOf(Myself),5) CheckStatGT(SixthNearestEnemyOf(Myself),3,SAVEVSSPELL) !Race(SixthNearestEnemyOf(Myself),GIANT) !Race(SixthNearestEnemyOf(Myself),DRAGON) !Race(SixthNearestEnemyOf(Myself),DEMONIC) !Class(SixthNearestEnemyOf(Myself),ELEMENTAL_EARTH) !Class(SixthNearestEnemyOf(Myself),ELEMENTAL_FIRE) !Class(SixthNearestEnemyOf(Myself),ELEMENTAL_AIR) !Name("finmel01",SixthNearestEnemyOf(Myself)) // Melissan !Race(SixthNearestEnemyOf(Myself),RAKSHASA) !Race(SixthNearestEnemyOf(Myself),LICH) See(SixthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") !StateCheck(FifthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FifthNearestEnemyOf(Myself),0,HELD) !StateCheck(FifthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FifthNearestEnemyOf(Myself),75,RESISTMAGIC) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FifthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(FifthNearestEnemyOf(Myself),8,WIZARD_SPELL_IMMUNITY) Range(FifthNearestEnemyOf(Myself),5) CheckStatGT(FifthNearestEnemyOf(Myself),3,SAVEVSSPELL) !Race(FifthNearestEnemyOf(Myself),GIANT) !Race(FifthNearestEnemyOf(Myself),DRAGON) !Race(FifthNearestEnemyOf(Myself),DEMONIC) !Class(FifthNearestEnemyOf(Myself),ELEMENTAL_EARTH) !Class(FifthNearestEnemyOf(Myself),ELEMENTAL_FIRE) !Class(FifthNearestEnemyOf(Myself),ELEMENTAL_AIR) !Name("finmel01",FifthNearestEnemyOf(Myself)) // Melissan !Race(FifthNearestEnemyOf(Myself),RAKSHASA) !Race(FifthNearestEnemyOf(Myself),LICH) See(FifthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") !StateCheck(FourthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FourthNearestEnemyOf(Myself),0,HELD) !StateCheck(FourthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FourthNearestEnemyOf(Myself),75,RESISTMAGIC) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FourthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(FourthNearestEnemyOf(Myself),8,WIZARD_SPELL_IMMUNITY) Range(FourthNearestEnemyOf(Myself),5) CheckStatGT(FourthNearestEnemyOf(Myself),3,SAVEVSSPELL) !Race(FourthNearestEnemyOf(Myself),GIANT) !Race(FourthNearestEnemyOf(Myself),DRAGON) !Race(FourthNearestEnemyOf(Myself),DEMONIC) !Class(FourthNearestEnemyOf(Myself),ELEMENTAL_EARTH) !Class(FourthNearestEnemyOf(Myself),ELEMENTAL_FIRE) !Class(FourthNearestEnemyOf(Myself),ELEMENTAL_AIR) !Name("finmel01",FourthNearestEnemyOf(Myself)) // Melissan !Race(FourthNearestEnemyOf(Myself),RAKSHASA) !Race(FourthNearestEnemyOf(Myself),LICH) See(FourthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") !StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(ThirdNearestEnemyOf(Myself),75,RESISTMAGIC) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(ThirdNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(ThirdNearestEnemyOf(Myself),8,WIZARD_SPELL_IMMUNITY) Range(ThirdNearestEnemyOf(Myself),5) CheckStatGT(ThirdNearestEnemyOf(Myself),3,SAVEVSSPELL) !Race(ThirdNearestEnemyOf(Myself),GIANT) !Race(ThirdNearestEnemyOf(Myself),DRAGON) !Race(ThirdNearestEnemyOf(Myself),DEMONIC) !Class(ThirdNearestEnemyOf(Myself),ELEMENTAL_EARTH) !Class(ThirdNearestEnemyOf(Myself),ELEMENTAL_FIRE) !Class(ThirdNearestEnemyOf(Myself),ELEMENTAL_AIR) !Name("finmel01",ThirdNearestEnemyOf(Myself)) // Melissan !Race(ThirdNearestEnemyOf(Myself),RAKSHASA) !Race(ThirdNearestEnemyOf(Myself),LICH) See(ThirdNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") !StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) !StateCheck(SecondNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SecondNearestEnemyOf(Myself),75,RESISTMAGIC) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SecondNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(SecondNearestEnemyOf(Myself),8,WIZARD_SPELL_IMMUNITY) Range(SecondNearestEnemyOf(Myself),5) CheckStatGT(SecondNearestEnemyOf(Myself),3,SAVEVSSPELL) !Race(SecondNearestEnemyOf(Myself),GIANT) !Race(SecondNearestEnemyOf(Myself),DRAGON) !Race(SecondNearestEnemyOf(Myself),DEMONIC) !Class(SecondNearestEnemyOf(Myself),ELEMENTAL_EARTH) !Class(SecondNearestEnemyOf(Myself),ELEMENTAL_FIRE) !Class(SecondNearestEnemyOf(Myself),ELEMENTAL_AIR) !Name("finmel01",SecondNearestEnemyOf(Myself)) // Melissan !Race(SecondNearestEnemyOf(Myself),RAKSHASA) !Race(SecondNearestEnemyOf(Myself),LICH) See(SecondNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") !StateCheck(NearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) !StateCheck(NearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(NearestEnemyOf(Myself),75,RESISTMAGIC) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(NearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(NearestEnemyOf(Myself),8,WIZARD_SPELL_IMMUNITY) Range(NearestEnemyOf(Myself),5) CheckStatGT(NearestEnemyOf(Myself),3,SAVEVSSPELL) !Race(NearestEnemyOf(Myself),GIANT) !Race(NearestEnemyOf(Myself),DRAGON) !Race(NearestEnemyOf(Myself),DEMONIC) !Class(NearestEnemyOf(Myself),ELEMENTAL_EARTH) !Class(NearestEnemyOf(Myself),ELEMENTAL_FIRE) !Class(NearestEnemyOf(Myself),ELEMENTAL_AIR) !Name("finmel01",NearestEnemyOf(Myself)) // Melissan !Race(NearestEnemyOf(Myself),RAKSHASA) !Race(NearestEnemyOf(Myself),LICH) See(NearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") !StateCheck(LastSeenBy(Myself),RZ_STATE_DISABLED) !CheckStatGT(LastSeenBy(Myself),0,HELD) !StateCheck(LastSeenBy(Myself),STATE_STONE_DEATH) !CheckStatGT(LastSeenBy(Myself),75,RESISTMAGIC) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(LastSeenBy(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(LastSeenBy(Myself),8,WIZARD_SPELL_IMMUNITY) Range(LastSeenBy(Myself),5) CheckStatGT(LastSeenBy(Myself),3,SAVEVSSPELL) !Race(LastSeenBy(Myself),GIANT) !Race(LastSeenBy(Myself),DRAGON) !Race(LastSeenBy(Myself),DEMONIC) !Class(LastSeenBy(Myself),ELEMENTAL_EARTH) !Class(LastSeenBy(Myself),ELEMENTAL_FIRE) !Class(LastSeenBy(Myself),ELEMENTAL_AIR) !Name("finmel01",LastSeenBy(Myself)) // Melissan !Race(LastSeenBy(Myself),RAKSHASA) !Race(LastSeenBy(Myself),LICH) See(LastSeenBy(Myself)) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("fl#telki",LastSeenBy(Myself)) // Telekinesis RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") Global("flMinorSequencer","LOCALS",0) Global("flDecideMinorSequencer","LOCALS",1) !StateCheck(SixthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SixthNearestEnemyOf(Myself),0,HELD) !StateCheck(SixthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SixthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SixthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(SixthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(SixthNearestEnemyOf(Myself),2,WIZARD_SPELL_IMMUNITY) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !CheckStatGT(SixthNearestEnemyOf(Myself),75,RESISTACID) !HasItemEquiped("clck26",SixthNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(SixthNearestEnemyOf(Myself),RAKSHASA) !Race(SixthNearestEnemyOf(Myself),LICH) See(SixthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") Global("flMinorSequencer","LOCALS",0) Global("flDecideMinorSequencer","LOCALS",1) !StateCheck(FifthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FifthNearestEnemyOf(Myself),0,HELD) !StateCheck(FifthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FifthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FifthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(FifthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(FifthNearestEnemyOf(Myself),2,WIZARD_SPELL_IMMUNITY) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !CheckStatGT(FifthNearestEnemyOf(Myself),75,RESISTACID) !HasItemEquiped("clck26",FifthNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(FifthNearestEnemyOf(Myself),RAKSHASA) !Race(FifthNearestEnemyOf(Myself),LICH) See(FifthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") Global("flMinorSequencer","LOCALS",0) Global("flDecideMinorSequencer","LOCALS",1) !StateCheck(FourthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FourthNearestEnemyOf(Myself),0,HELD) !StateCheck(FourthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FourthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FourthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(FourthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(FourthNearestEnemyOf(Myself),2,WIZARD_SPELL_IMMUNITY) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !CheckStatGT(FourthNearestEnemyOf(Myself),75,RESISTACID) !HasItemEquiped("clck26",FourthNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(FourthNearestEnemyOf(Myself),RAKSHASA) !Race(FourthNearestEnemyOf(Myself),LICH) See(FourthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") Global("flMinorSequencer","LOCALS",0) Global("flDecideMinorSequencer","LOCALS",1) !StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(ThirdNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(ThirdNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(ThirdNearestEnemyOf(Myself),2,WIZARD_SPELL_IMMUNITY) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !CheckStatGT(ThirdNearestEnemyOf(Myself),75,RESISTACID) !HasItemEquiped("clck26",ThirdNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(ThirdNearestEnemyOf(Myself),RAKSHASA) !Race(ThirdNearestEnemyOf(Myself),LICH) See(ThirdNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") Global("flMinorSequencer","LOCALS",0) Global("flDecideMinorSequencer","LOCALS",1) !StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) !StateCheck(SecondNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SecondNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SecondNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(SecondNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(SecondNearestEnemyOf(Myself),2,WIZARD_SPELL_IMMUNITY) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !CheckStatGT(SecondNearestEnemyOf(Myself),75,RESISTACID) !HasItemEquiped("clck26",SecondNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(SecondNearestEnemyOf(Myself),RAKSHASA) !Race(SecondNearestEnemyOf(Myself),LICH) See(SecondNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") Global("flMinorSequencer","LOCALS",0) Global("flDecideMinorSequencer","LOCALS",1) !StateCheck(NearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) !StateCheck(NearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(NearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(NearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(NearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(NearestEnemyOf(Myself),2,WIZARD_SPELL_IMMUNITY) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !CheckStatGT(NearestEnemyOf(Myself),75,RESISTACID) !HasItemEquiped("clck26",NearestEnemyOf(Myself)) // Cloak of Mirroring !Race(NearestEnemyOf(Myself),RAKSHASA) !Race(NearestEnemyOf(Myself),LICH) See(NearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") Global("flMinorSequencer","LOCALS",0) Global("flDecideMinorSequencer","LOCALS",1) !StateCheck(LastSeenBy(Myself),RZ_STATE_DISABLED) !CheckStatGT(LastSeenBy(Myself),0,HELD) !StateCheck(LastSeenBy(Myself),STATE_STONE_DEATH) !CheckStatGT(LastSeenBy(Myself),50,RESISTMAGIC) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(LastSeenBy(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(LastSeenBy(Myself),0,MINORGLOBE) !CheckStat(LastSeenBy(Myself),2,WIZARD_SPELL_IMMUNITY) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !CheckStatGT(LastSeenBy(Myself),75,RESISTACID) !HasItemEquiped("clck26",LastSeenBy(Myself)) // Cloak of Mirroring !Race(LastSeenBy(Myself),RAKSHASA) !Race(LastSeenBy(Myself),LICH) See(LastSeenBy(Myself)) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) SetGlobal("flMinorSequencer","LOCALS",1) DisplayStringHead(Myself,5013) // Minor Sequencer SetSequence(SEQ_CAST) ReallyForceSpell(LastSeenBy(Myself),WIZARD_MELF_ACID_ARROW) ReallyForceSpell(LastSeenBy(Myself),WIZARD_MELF_ACID_ARROW) RESPONSE #50 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") Global("flMinorSequencer","LOCALS",0) Global("flDecideMinorSequencer","LOCALS",2) !StateCheck(SixthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SixthNearestEnemyOf(Myself),0,HELD) !StateCheck(SixthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SixthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SixthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(SixthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(SixthNearestEnemyOf(Myself),6,WIZARD_SPELL_IMMUNITY) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !CheckStatGT(SixthNearestEnemyOf(Myself),75,MAGICDAMAGERESISTANCE) !HasItemEquiped("clck26",SixthNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(SixthNearestEnemyOf(Myself),RAKSHASA) !Race(SixthNearestEnemyOf(Myself),LICH) See(SixthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") Global("flMinorSequencer","LOCALS",0) Global("flDecideMinorSequencer","LOCALS",2) !StateCheck(FifthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FifthNearestEnemyOf(Myself),0,HELD) !StateCheck(FifthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FifthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FifthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(FifthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(FifthNearestEnemyOf(Myself),6,WIZARD_SPELL_IMMUNITY) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !CheckStatGT(FifthNearestEnemyOf(Myself),75,MAGICDAMAGERESISTANCE) !HasItemEquiped("clck26",FifthNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(FifthNearestEnemyOf(Myself),RAKSHASA) !Race(FifthNearestEnemyOf(Myself),LICH) See(FifthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") Global("flMinorSequencer","LOCALS",0) Global("flDecideMinorSequencer","LOCALS",2) !StateCheck(FourthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FourthNearestEnemyOf(Myself),0,HELD) !StateCheck(FourthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FourthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FourthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(FourthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(FourthNearestEnemyOf(Myself),6,WIZARD_SPELL_IMMUNITY) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !CheckStatGT(FourthNearestEnemyOf(Myself),75,MAGICDAMAGERESISTANCE) !HasItemEquiped("clck26",FourthNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(FourthNearestEnemyOf(Myself),RAKSHASA) !Race(FourthNearestEnemyOf(Myself),LICH) See(FourthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") Global("flMinorSequencer","LOCALS",0) Global("flDecideMinorSequencer","LOCALS",2) !StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(ThirdNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(ThirdNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(ThirdNearestEnemyOf(Myself),6,WIZARD_SPELL_IMMUNITY) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !CheckStatGT(ThirdNearestEnemyOf(Myself),75,MAGICDAMAGERESISTANCE) !HasItemEquiped("clck26",ThirdNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(ThirdNearestEnemyOf(Myself),RAKSHASA) !Race(ThirdNearestEnemyOf(Myself),LICH) See(ThirdNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") Global("flMinorSequencer","LOCALS",0) Global("flDecideMinorSequencer","LOCALS",2) !StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) !StateCheck(SecondNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SecondNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SecondNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(SecondNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(SecondNearestEnemyOf(Myself),6,WIZARD_SPELL_IMMUNITY) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !CheckStatGT(SecondNearestEnemyOf(Myself),75,MAGICDAMAGERESISTANCE) !HasItemEquiped("clck26",SecondNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(SecondNearestEnemyOf(Myself),RAKSHASA) !Race(SecondNearestEnemyOf(Myself),LICH) See(SecondNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") Global("flMinorSequencer","LOCALS",0) Global("flDecideMinorSequencer","LOCALS",2) !StateCheck(NearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) !StateCheck(NearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(NearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(NearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(NearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(NearestEnemyOf(Myself),6,WIZARD_SPELL_IMMUNITY) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !CheckStatGT(NearestEnemyOf(Myself),75,MAGICDAMAGERESISTANCE) !HasItemEquiped("clck26",NearestEnemyOf(Myself)) // Cloak of Mirroring !Race(NearestEnemyOf(Myself),RAKSHASA) !Race(NearestEnemyOf(Myself),LICH) See(NearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") Global("flMinorSequencer","LOCALS",0) Global("flDecideMinorSequencer","LOCALS",2) !StateCheck(LastSeenBy(Myself),RZ_STATE_DISABLED) !CheckStatGT(LastSeenBy(Myself),0,HELD) !StateCheck(LastSeenBy(Myself),STATE_STONE_DEATH) !CheckStatGT(LastSeenBy(Myself),50,RESISTMAGIC) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(LastSeenBy(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(LastSeenBy(Myself),0,MINORGLOBE) !CheckStat(LastSeenBy(Myself),6,WIZARD_SPELL_IMMUNITY) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !CheckStatGT(LastSeenBy(Myself),75,MAGICDAMAGERESISTANCE) !HasItemEquiped("clck26",LastSeenBy(Myself)) // Cloak of Mirroring !Race(LastSeenBy(Myself),RAKSHASA) !Race(LastSeenBy(Myself),LICH) See(LastSeenBy(Myself)) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) SetGlobal("flMinorSequencer","LOCALS",1) DisplayStringHead(Myself,5013) // Minor Sequencer SetSequence(SEQ_CAST) ReallyForceSpell(LastSeenBy(Myself),WIZARD_MAGIC_MISSILE) ReallyForceSpell(LastSeenBy(Myself),WIZARD_MAGIC_MISSILE) RESPONSE #50 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_FLAME_ARROW) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(SixthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SixthNearestEnemyOf(Myself),0,HELD) !StateCheck(SixthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SixthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(SixthNearestEnemyOf(Myself),2,WIZARD_SPELL_IMMUNITY) !CheckStatGT(SixthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SixthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(SixthNearestEnemyOf(Myself),50,RESISTFIRE) !HasItemEquiped("clck26",SixthNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(SixthNearestEnemyOf(Myself),RAKSHASA) !Race(SixthNearestEnemyOf(Myself),LICH) See(SixthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_FLAME_ARROW) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(FifthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FifthNearestEnemyOf(Myself),0,HELD) !StateCheck(FifthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FifthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(FifthNearestEnemyOf(Myself),2,WIZARD_SPELL_IMMUNITY) !CheckStatGT(FifthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FifthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(FifthNearestEnemyOf(Myself),50,RESISTFIRE) !HasItemEquiped("clck26",FifthNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(FifthNearestEnemyOf(Myself),RAKSHASA) !Race(FifthNearestEnemyOf(Myself),LICH) See(FifthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_FLAME_ARROW) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(FourthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FourthNearestEnemyOf(Myself),0,HELD) !StateCheck(FourthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FourthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(FourthNearestEnemyOf(Myself),2,WIZARD_SPELL_IMMUNITY) !CheckStatGT(FourthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FourthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(FourthNearestEnemyOf(Myself),50,RESISTFIRE) !HasItemEquiped("clck26",FourthNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(FourthNearestEnemyOf(Myself),RAKSHASA) !Race(FourthNearestEnemyOf(Myself),LICH) See(FourthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_FLAME_ARROW) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(ThirdNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(ThirdNearestEnemyOf(Myself),2,WIZARD_SPELL_IMMUNITY) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(ThirdNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(ThirdNearestEnemyOf(Myself),50,RESISTFIRE) !HasItemEquiped("clck26",ThirdNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(ThirdNearestEnemyOf(Myself),RAKSHASA) !Race(ThirdNearestEnemyOf(Myself),LICH) See(ThirdNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_FLAME_ARROW) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) !StateCheck(SecondNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SecondNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(SecondNearestEnemyOf(Myself),2,WIZARD_SPELL_IMMUNITY) !CheckStatGT(SecondNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SecondNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(SecondNearestEnemyOf(Myself),50,RESISTFIRE) !HasItemEquiped("clck26",SecondNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(SecondNearestEnemyOf(Myself),RAKSHASA) !Race(SecondNearestEnemyOf(Myself),LICH) See(SecondNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_FLAME_ARROW) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(NearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) !StateCheck(NearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(NearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(NearestEnemyOf(Myself),2,WIZARD_SPELL_IMMUNITY) !CheckStatGT(NearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(NearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(NearestEnemyOf(Myself),50,RESISTFIRE) !HasItemEquiped("clck26",NearestEnemyOf(Myself)) // Cloak of Mirroring !Race(NearestEnemyOf(Myself),RAKSHASA) !Race(NearestEnemyOf(Myself),LICH) See(NearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_FLAME_ARROW) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(LastSeenBy(Myself),RZ_STATE_DISABLED) !CheckStatGT(LastSeenBy(Myself),0,HELD) !StateCheck(LastSeenBy(Myself),STATE_STONE_DEATH) !CheckStatGT(LastSeenBy(Myself),50,RESISTMAGIC) !CheckStat(LastSeenBy(Myself),2,WIZARD_SPELL_IMMUNITY) !CheckStatGT(LastSeenBy(Myself),0,MINORGLOBE) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(LastSeenBy(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(LastSeenBy(Myself),50,RESISTFIRE) !HasItemEquiped("clck26",LastSeenBy(Myself)) // Cloak of Mirroring !Race(LastSeenBy(Myself),RAKSHASA) !Race(LastSeenBy(Myself),LICH) See(LastSeenBy(Myself)) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) Spell(LastSeenBy(Myself),WIZARD_FLAME_ARROW) RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") See(NearestEnemyOf(Myself)) !Range(NearestEnemyOf(Myself),5) THEN RESPONSE #50 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("fl#adead",NearestEnemyOf(Myself)) // Animate Dead RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") See(SecondNearestEnemyOf(Myself)) !Range(SecondNearestEnemyOf(Myself),5) THEN RESPONSE #50 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("fl#adead",SecondNearestEnemyOf(Myself)) // Animate Dead RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") See(ThirdNearestEnemyOf(Myself)) !Range(ThirdNearestEnemyOf(Myself),5) THEN RESPONSE #50 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("fl#adead",ThirdNearestEnemyOf(Myself)) // Animate Dead RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_HORROR) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(SixthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SixthNearestEnemyOf(Myself),0,HELD) !StateCheck(SixthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SixthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(SixthNearestEnemyOf(Myself),7,WIZARD_SPELL_IMMUNITY) !CheckStatGT(SixthNearestEnemyOf(Myself),0,MINORGLOBE) !General(SixthNearestEnemyOf(Myself),UNDEAD) !Race(SixthNearestEnemyOf(Myself),SLIME) !Race(SixthNearestEnemyOf(Myself),GOLEM) !Race(SixthNearestEnemyOf(Myself),DEMONIC) !Race(SixthNearestEnemyOf(Myself),TROLL) !Kit(SixthNearestEnemyOf(Myself),CAVALIER) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_RESIST_FEAR) !CheckStat(SixthNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("CLCK30",SixthNearestEnemyOf(Myself)) // Cloak of Bravery !HasItemEquipedReal("SW1H32",SixthNearestEnemyOf(Myself)) // Dragonslayer +3 !HasItemEquipedReal("MISCBC",SixthNearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("RR#HELMD",SixthNearestEnemyOf(Myself)) // Dead Man's Face !Race(SixthNearestEnemyOf(Myself),RAKSHASA) See(SixthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_HORROR) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(FifthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FifthNearestEnemyOf(Myself),0,HELD) !StateCheck(FifthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FifthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(FifthNearestEnemyOf(Myself),7,WIZARD_SPELL_IMMUNITY) !CheckStatGT(FifthNearestEnemyOf(Myself),0,MINORGLOBE) !General(FifthNearestEnemyOf(Myself),UNDEAD) !Race(FifthNearestEnemyOf(Myself),SLIME) !Race(FifthNearestEnemyOf(Myself),GOLEM) !Race(FifthNearestEnemyOf(Myself),DEMONIC) !Race(FifthNearestEnemyOf(Myself),TROLL) !Kit(FifthNearestEnemyOf(Myself),CAVALIER) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_RESIST_FEAR) !CheckStat(FifthNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("CLCK30",FifthNearestEnemyOf(Myself)) // Cloak of Bravery !HasItemEquipedReal("SW1H32",FifthNearestEnemyOf(Myself)) // Dragonslayer +3 !HasItemEquipedReal("MISCBC",FifthNearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("RR#HELMD",FifthNearestEnemyOf(Myself)) // Dead Man's Face !Race(FifthNearestEnemyOf(Myself),RAKSHASA) See(FifthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_HORROR) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(FourthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FourthNearestEnemyOf(Myself),0,HELD) !StateCheck(FourthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FourthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(FourthNearestEnemyOf(Myself),7,WIZARD_SPELL_IMMUNITY) !CheckStatGT(FourthNearestEnemyOf(Myself),0,MINORGLOBE) !General(FourthNearestEnemyOf(Myself),UNDEAD) !Race(FourthNearestEnemyOf(Myself),SLIME) !Race(FourthNearestEnemyOf(Myself),GOLEM) !Race(FourthNearestEnemyOf(Myself),DEMONIC) !Race(FourthNearestEnemyOf(Myself),TROLL) !Kit(FourthNearestEnemyOf(Myself),CAVALIER) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_RESIST_FEAR) !CheckStat(FourthNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("CLCK30",FourthNearestEnemyOf(Myself)) // Cloak of Bravery !HasItemEquipedReal("SW1H32",FourthNearestEnemyOf(Myself)) // Dragonslayer +3 !HasItemEquipedReal("MISCBC",FourthNearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("RR#HELMD",FourthNearestEnemyOf(Myself)) // Dead Man's Face !Race(FourthNearestEnemyOf(Myself),RAKSHASA) See(FourthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_HORROR) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(ThirdNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(ThirdNearestEnemyOf(Myself),7,WIZARD_SPELL_IMMUNITY) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,MINORGLOBE) !General(ThirdNearestEnemyOf(Myself),UNDEAD) !Race(ThirdNearestEnemyOf(Myself),SLIME) !Race(ThirdNearestEnemyOf(Myself),GOLEM) !Race(ThirdNearestEnemyOf(Myself),DEMONIC) !Race(ThirdNearestEnemyOf(Myself),TROLL) !Kit(ThirdNearestEnemyOf(Myself),CAVALIER) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_RESIST_FEAR) !CheckStat(ThirdNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("CLCK30",ThirdNearestEnemyOf(Myself)) // Cloak of Bravery !HasItemEquipedReal("SW1H32",ThirdNearestEnemyOf(Myself)) // Dragonslayer +3 !HasItemEquipedReal("MISCBC",ThirdNearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("RR#HELMD",ThirdNearestEnemyOf(Myself)) // Dead Man's Face !Race(ThirdNearestEnemyOf(Myself),RAKSHASA) See(ThirdNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_HORROR) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) !StateCheck(SecondNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SecondNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(SecondNearestEnemyOf(Myself),7,WIZARD_SPELL_IMMUNITY) !CheckStatGT(SecondNearestEnemyOf(Myself),0,MINORGLOBE) !General(SecondNearestEnemyOf(Myself),UNDEAD) !Race(SecondNearestEnemyOf(Myself),SLIME) !Race(SecondNearestEnemyOf(Myself),GOLEM) !Race(SecondNearestEnemyOf(Myself),DEMONIC) !Race(SecondNearestEnemyOf(Myself),TROLL) !Kit(SecondNearestEnemyOf(Myself),CAVALIER) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_RESIST_FEAR) !CheckStat(SecondNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("CLCK30",SecondNearestEnemyOf(Myself)) // Cloak of Bravery !HasItemEquipedReal("SW1H32",SecondNearestEnemyOf(Myself)) // Dragonslayer +3 !HasItemEquipedReal("MISCBC",SecondNearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("RR#HELMD",SecondNearestEnemyOf(Myself)) // Dead Man's Face !Race(SecondNearestEnemyOf(Myself),RAKSHASA) See(SecondNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_HORROR) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(NearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) !StateCheck(NearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(NearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(NearestEnemyOf(Myself),7,WIZARD_SPELL_IMMUNITY) !CheckStatGT(NearestEnemyOf(Myself),0,MINORGLOBE) !General(NearestEnemyOf(Myself),UNDEAD) !Race(NearestEnemyOf(Myself),SLIME) !Race(NearestEnemyOf(Myself),GOLEM) !Race(NearestEnemyOf(Myself),DEMONIC) !Race(NearestEnemyOf(Myself),TROLL) !Kit(NearestEnemyOf(Myself),CAVALIER) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_RESIST_FEAR) !CheckStat(NearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("CLCK30",NearestEnemyOf(Myself)) // Cloak of Bravery !HasItemEquipedReal("SW1H32",NearestEnemyOf(Myself)) // Dragonslayer +3 !HasItemEquipedReal("MISCBC",NearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("RR#HELMD",NearestEnemyOf(Myself)) // Dead Man's Face !Race(NearestEnemyOf(Myself),RAKSHASA) See(NearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_HORROR) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(LastSeenBy(Myself),RZ_STATE_DISABLED) !CheckStatGT(LastSeenBy(Myself),0,HELD) !StateCheck(LastSeenBy(Myself),STATE_STONE_DEATH) !CheckStatGT(LastSeenBy(Myself),50,RESISTMAGIC) !CheckStat(LastSeenBy(Myself),7,WIZARD_SPELL_IMMUNITY) !CheckStatGT(LastSeenBy(Myself),0,MINORGLOBE) !General(LastSeenBy(Myself),UNDEAD) !Race(LastSeenBy(Myself),SLIME) !Race(LastSeenBy(Myself),GOLEM) !Race(LastSeenBy(Myself),DEMONIC) !Race(LastSeenBy(Myself),TROLL) !Kit(LastSeenBy(Myself),CAVALIER) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_RESIST_FEAR) !CheckStat(LastSeenBy(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("CLCK30",LastSeenBy(Myself)) // Cloak of Bravery !HasItemEquipedReal("SW1H32",LastSeenBy(Myself)) // Dragonslayer +3 !HasItemEquipedReal("MISCBC",LastSeenBy(Myself)) // Blackrazor +3 !HasItemEquiped("RR#HELMD",LastSeenBy(Myself)) // Dead Man's Face !Race(LastSeenBy(Myself),RAKSHASA) See(LastSeenBy(Myself)) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) Spell(LastSeenBy(Myself),WIZARD_HORROR) RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_MELF_ACID_ARROW) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(SixthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SixthNearestEnemyOf(Myself),0,HELD) !StateCheck(SixthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SixthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(SixthNearestEnemyOf(Myself),2,WIZARD_SPELL_IMMUNITY) !CheckStatGT(SixthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SixthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(SixthNearestEnemyOf(Myself),50,RESISTACID) !HasItemEquiped("clck26",SixthNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(SixthNearestEnemyOf(Myself),RAKSHASA) !Race(SixthNearestEnemyOf(Myself),LICH) See(SixthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_MELF_ACID_ARROW) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(FifthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FifthNearestEnemyOf(Myself),0,HELD) !StateCheck(FifthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FifthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(FifthNearestEnemyOf(Myself),2,WIZARD_SPELL_IMMUNITY) !CheckStatGT(FifthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FifthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(FifthNearestEnemyOf(Myself),50,RESISTACID) !HasItemEquiped("clck26",FifthNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(FifthNearestEnemyOf(Myself),RAKSHASA) !Race(FifthNearestEnemyOf(Myself),LICH) See(FifthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_MELF_ACID_ARROW) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(FourthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FourthNearestEnemyOf(Myself),0,HELD) !StateCheck(FourthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FourthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(FourthNearestEnemyOf(Myself),2,WIZARD_SPELL_IMMUNITY) !CheckStatGT(FourthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FourthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(FourthNearestEnemyOf(Myself),50,RESISTACID) !HasItemEquiped("clck26",FourthNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(FourthNearestEnemyOf(Myself),RAKSHASA) !Race(FourthNearestEnemyOf(Myself),LICH) See(FourthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_MELF_ACID_ARROW) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(ThirdNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(ThirdNearestEnemyOf(Myself),2,WIZARD_SPELL_IMMUNITY) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(ThirdNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(ThirdNearestEnemyOf(Myself),50,RESISTACID) !HasItemEquiped("clck26",ThirdNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(ThirdNearestEnemyOf(Myself),RAKSHASA) !Race(ThirdNearestEnemyOf(Myself),LICH) See(ThirdNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_MELF_ACID_ARROW) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) !StateCheck(SecondNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SecondNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(SecondNearestEnemyOf(Myself),2,WIZARD_SPELL_IMMUNITY) !CheckStatGT(SecondNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SecondNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(SecondNearestEnemyOf(Myself),50,RESISTACID) !HasItemEquiped("clck26",SecondNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(SecondNearestEnemyOf(Myself),RAKSHASA) !Race(SecondNearestEnemyOf(Myself),LICH) See(SecondNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_MELF_ACID_ARROW) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(NearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) !StateCheck(NearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(NearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(NearestEnemyOf(Myself),2,WIZARD_SPELL_IMMUNITY) !CheckStatGT(NearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(NearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(NearestEnemyOf(Myself),50,RESISTACID) !HasItemEquiped("clck26",NearestEnemyOf(Myself)) // Cloak of Mirroring !Race(NearestEnemyOf(Myself),RAKSHASA) !Race(NearestEnemyOf(Myself),LICH) See(NearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_MELF_ACID_ARROW) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(LastSeenBy(Myself),RZ_STATE_DISABLED) !CheckStatGT(LastSeenBy(Myself),0,HELD) !StateCheck(LastSeenBy(Myself),STATE_STONE_DEATH) !CheckStatGT(LastSeenBy(Myself),50,RESISTMAGIC) !CheckStat(LastSeenBy(Myself),2,WIZARD_SPELL_IMMUNITY) !CheckStatGT(LastSeenBy(Myself),0,MINORGLOBE) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(LastSeenBy(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(LastSeenBy(Myself),50,RESISTACID) !HasItemEquiped("clck26",LastSeenBy(Myself)) // Cloak of Mirroring !Race(LastSeenBy(Myself),RAKSHASA) !Race(LastSeenBy(Myself),LICH) See(LastSeenBy(Myself)) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) Spell(LastSeenBy(Myself),WIZARD_MELF_ACID_ARROW) RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") See(NearestEnemyOf(Myself)) !StateCheck(NearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) !StateCheck(NearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(NearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(NearestEnemyOf(Myself),5,WIZARD_SPELL_IMMUNITY) !General(NearestEnemyOf(Myself),UNDEAD) !Race(NearestEnemyOf(Myself),SLIME) !Race(NearestEnemyOf(Myself),GOLEM) !Race(NearestEnemyOf(Myself),DEMONIC) !Race(NearestEnemyOf(Myself),TROLL) !Kit(NearestEnemyOf(Myself),CAVALIER) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_RESIST_FEAR) !CheckStat(NearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("CLCK30",NearestEnemyOf(Myself)) // Cloak of Bravery !HasItemEquipedReal("SW1H32",NearestEnemyOf(Myself)) // Dragonslayer +3 !HasItemEquipedReal("MISCBC",NearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("RR#HELMD",NearestEnemyOf(Myself)) // Dead Man's Face Range(NearestEnemyOf(Myself),20) Global("fl#FearCone","LOCALS",0) !Race(NearestEnemyOf(Myself),RAKSHASA) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("fl#cnefr",NearestEnemyOf(Myself)) // Fear IncrementGlobal("fl#FearCone","LOCALS",1) RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") See(SecondNearestEnemyOf(Myself)) !StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) !StateCheck(SecondNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SecondNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(SecondNearestEnemyOf(Myself),5,WIZARD_SPELL_IMMUNITY) !General(SecondNearestEnemyOf(Myself),UNDEAD) !Race(SecondNearestEnemyOf(Myself),SLIME) !Race(SecondNearestEnemyOf(Myself),GOLEM) !Race(SecondNearestEnemyOf(Myself),DEMONIC) !Race(SecondNearestEnemyOf(Myself),TROLL) !Kit(SecondNearestEnemyOf(Myself),CAVALIER) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_RESIST_FEAR) !CheckStat(SecondNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("CLCK30",SecondNearestEnemyOf(Myself)) // Cloak of Bravery !HasItemEquipedReal("SW1H32",SecondNearestEnemyOf(Myself)) // Dragonslayer +3 !HasItemEquipedReal("MISCBC",SecondNearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("RR#HELMD",SecondNearestEnemyOf(Myself)) // Dead Man's Face Range(SecondNearestEnemyOf(Myself),20) Global("fl#FearCone","LOCALS",0) !Race(SecondNearestEnemyOf(Myself),RAKSHASA) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("fl#cnefr",SecondNearestEnemyOf(Myself)) // Fear IncrementGlobal("fl#FearCone","LOCALS",1) RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") See(ThirdNearestEnemyOf(Myself)) !StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(ThirdNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(ThirdNearestEnemyOf(Myself),5,WIZARD_SPELL_IMMUNITY) !General(ThirdNearestEnemyOf(Myself),UNDEAD) !Race(ThirdNearestEnemyOf(Myself),SLIME) !Race(ThirdNearestEnemyOf(Myself),GOLEM) !Race(ThirdNearestEnemyOf(Myself),DEMONIC) !Race(ThirdNearestEnemyOf(Myself),TROLL) !Kit(ThirdNearestEnemyOf(Myself),CAVALIER) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_RESIST_FEAR) !CheckStat(ThirdNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("CLCK30",ThirdNearestEnemyOf(Myself)) // Cloak of Bravery !HasItemEquipedReal("SW1H32",ThirdNearestEnemyOf(Myself)) // Dragonslayer +3 !HasItemEquipedReal("MISCBC",ThirdNearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("RR#HELMD",ThirdNearestEnemyOf(Myself)) // Dead Man's Face Range(ThirdNearestEnemyOf(Myself),20) Global("fl#FearCone","LOCALS",0) !Race(ThirdNearestEnemyOf(Myself),RAKSHASA) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("fl#cnefr",ThirdNearestEnemyOf(Myself)) // Fear IncrementGlobal("fl#FearCone","LOCALS",1) RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") See(FourthNearestEnemyOf(Myself)) !StateCheck(FourthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FourthNearestEnemyOf(Myself),0,HELD) !StateCheck(FourthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FourthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(FourthNearestEnemyOf(Myself),5,WIZARD_SPELL_IMMUNITY) !General(FourthNearestEnemyOf(Myself),UNDEAD) !Race(FourthNearestEnemyOf(Myself),SLIME) !Race(FourthNearestEnemyOf(Myself),GOLEM) !Race(FourthNearestEnemyOf(Myself),DEMONIC) !Race(FourthNearestEnemyOf(Myself),TROLL) !Kit(FourthNearestEnemyOf(Myself),CAVALIER) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_RESIST_FEAR) !CheckStat(FourthNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("CLCK30",FourthNearestEnemyOf(Myself)) // Cloak of Bravery !HasItemEquipedReal("SW1H32",FourthNearestEnemyOf(Myself)) // Dragonslayer +3 !HasItemEquipedReal("MISCBC",FourthNearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("RR#HELMD",FourthNearestEnemyOf(Myself)) // Dead Man's Face Range(FourthNearestEnemyOf(Myself),20) Global("fl#FearCone","LOCALS",0) !Race(FourthNearestEnemyOf(Myself),RAKSHASA) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("fl#cnefr",FourthNearestEnemyOf(Myself)) // Fear IncrementGlobal("fl#FearCone","LOCALS",1) RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") See(FifthNearestEnemyOf(Myself)) !StateCheck(FifthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FifthNearestEnemyOf(Myself),0,HELD) !StateCheck(FifthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FifthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(FifthNearestEnemyOf(Myself),5,WIZARD_SPELL_IMMUNITY) !General(FifthNearestEnemyOf(Myself),UNDEAD) !Race(FifthNearestEnemyOf(Myself),SLIME) !Race(FifthNearestEnemyOf(Myself),GOLEM) !Race(FifthNearestEnemyOf(Myself),DEMONIC) !Race(FifthNearestEnemyOf(Myself),TROLL) !Kit(FifthNearestEnemyOf(Myself),CAVALIER) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_RESIST_FEAR) !CheckStat(FifthNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("CLCK30",FifthNearestEnemyOf(Myself)) // Cloak of Bravery !HasItemEquipedReal("SW1H32",FifthNearestEnemyOf(Myself)) // Dragonslayer +3 !HasItemEquipedReal("MISCBC",FifthNearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("RR#HELMD",FifthNearestEnemyOf(Myself)) // Dead Man's Face Range(FifthNearestEnemyOf(Myself),20) Global("fl#FearCone","LOCALS",0) !Race(FifthNearestEnemyOf(Myself),RAKSHASA) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("fl#cnefr",FifthNearestEnemyOf(Myself)) // Fear IncrementGlobal("fl#FearCone","LOCALS",1) RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") See(SixthNearestEnemyOf(Myself)) !StateCheck(SixthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SixthNearestEnemyOf(Myself),0,HELD) !StateCheck(SixthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SixthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(SixthNearestEnemyOf(Myself),5,WIZARD_SPELL_IMMUNITY) !General(SixthNearestEnemyOf(Myself),UNDEAD) !Race(SixthNearestEnemyOf(Myself),SLIME) !Race(SixthNearestEnemyOf(Myself),GOLEM) !Race(SixthNearestEnemyOf(Myself),DEMONIC) !Race(SixthNearestEnemyOf(Myself),TROLL) !Kit(SixthNearestEnemyOf(Myself),CAVALIER) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_RESIST_FEAR) !CheckStat(SixthNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("CLCK30",SixthNearestEnemyOf(Myself)) // Cloak of Bravery !HasItemEquipedReal("SW1H32",SixthNearestEnemyOf(Myself)) // Dragonslayer +3 !HasItemEquipedReal("MISCBC",SixthNearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("RR#HELMD",SixthNearestEnemyOf(Myself)) // Dead Man's Face Range(SixthNearestEnemyOf(Myself),20) Global("fl#FearCone","LOCALS",0) !Race(SixthNearestEnemyOf(Myself),RAKSHASA) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("fl#cnefr",SixthNearestEnemyOf(Myself)) // Fear IncrementGlobal("fl#FearCone","LOCALS",1) RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") See(NearestEnemyOfType([0.0.TROLL])) !CheckStatGT(NearestEnemyOfType([0.0.TROLL]),99,RESISTFIRE) !CheckStatGT(NearestEnemyOfType([0.0.TROLL]),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(NearestEnemyOfType([0.0.TROLL]),0,WIZARD_SPELL_TURNING) !CheckStatGT(NearestEnemyOfType([0.0.TROLL]),0,WIZARD_SPELL_TRAP) !CheckStat(NearestEnemyOfType([0.0.TROLL]),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(NearestEnemyOfType([0.0.TROLL]),0,MINORGLOBE) !StateCheck(NearestEnemyOfType([0.0.TROLL]),STATE_NOT_VISIBLE) HPLT(NearestEnemyOfType([0.0.TROLL]),15) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#PFLAM",NearestEnemyOfType([0.0.TROLL])) // Produce Flame RESPONSE #50 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") See(SecondNearestEnemyOfType([0.0.TROLL])) !CheckStatGT(SecondNearestEnemyOfType([0.0.TROLL]),99,RESISTFIRE) !CheckStatGT(SecondNearestEnemyOfType([0.0.TROLL]),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SecondNearestEnemyOfType([0.0.TROLL]),0,WIZARD_SPELL_TURNING) !CheckStatGT(SecondNearestEnemyOfType([0.0.TROLL]),0,WIZARD_SPELL_TRAP) !CheckStat(SecondNearestEnemyOfType([0.0.TROLL]),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(SecondNearestEnemyOfType([0.0.TROLL]),0,MINORGLOBE) !StateCheck(SecondNearestEnemyOfType([0.0.TROLL]),STATE_NOT_VISIBLE) HPLT(SecondNearestEnemyOfType([0.0.TROLL]),15) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#PFLAM",SecondNearestEnemyOfType([0.0.TROLL])) // Produce Flame RESPONSE #50 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") See(ThirdNearestEnemyOfType([0.0.TROLL])) !CheckStatGT(ThirdNearestEnemyOfType([0.0.TROLL]),99,RESISTFIRE) !CheckStatGT(ThirdNearestEnemyOfType([0.0.TROLL]),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(ThirdNearestEnemyOfType([0.0.TROLL]),0,WIZARD_SPELL_TURNING) !CheckStatGT(ThirdNearestEnemyOfType([0.0.TROLL]),0,WIZARD_SPELL_TRAP) !CheckStat(ThirdNearestEnemyOfType([0.0.TROLL]),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(ThirdNearestEnemyOfType([0.0.TROLL]),0,MINORGLOBE) !StateCheck(ThirdNearestEnemyOfType([0.0.TROLL]),STATE_NOT_VISIBLE) HPLT(ThirdNearestEnemyOfType([0.0.TROLL]),15) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#PFLAM",ThirdNearestEnemyOfType([0.0.TROLL])) // Produce Flame RESPONSE #50 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") See(FourthNearestEnemyOfType([0.0.TROLL])) !CheckStatGT(FourthNearestEnemyOfType([0.0.TROLL]),99,RESISTFIRE) !CheckStatGT(FourthNearestEnemyOfType([0.0.TROLL]),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FourthNearestEnemyOfType([0.0.TROLL]),0,WIZARD_SPELL_TURNING) !CheckStatGT(FourthNearestEnemyOfType([0.0.TROLL]),0,WIZARD_SPELL_TRAP) !CheckStat(FourthNearestEnemyOfType([0.0.TROLL]),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(FourthNearestEnemyOfType([0.0.TROLL]),0,MINORGLOBE) !StateCheck(FourthNearestEnemyOfType([0.0.TROLL]),STATE_NOT_VISIBLE) HPLT(FourthNearestEnemyOfType([0.0.TROLL]),15) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#PFLAM",FourthNearestEnemyOfType([0.0.TROLL])) // Produce Flame RESPONSE #50 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") See(FifthNearestEnemyOfType([0.0.TROLL])) !CheckStatGT(FifthNearestEnemyOfType([0.0.TROLL]),99,RESISTFIRE) !CheckStatGT(FifthNearestEnemyOfType([0.0.TROLL]),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FifthNearestEnemyOfType([0.0.TROLL]),0,WIZARD_SPELL_TURNING) !CheckStatGT(FifthNearestEnemyOfType([0.0.TROLL]),0,WIZARD_SPELL_TRAP) !CheckStat(FifthNearestEnemyOfType([0.0.TROLL]),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(FifthNearestEnemyOfType([0.0.TROLL]),0,MINORGLOBE) !StateCheck(FifthNearestEnemyOfType([0.0.TROLL]),STATE_NOT_VISIBLE) HPLT(FifthNearestEnemyOfType([0.0.TROLL]),15) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#PFLAM",FifthNearestEnemyOfType([0.0.TROLL])) // Produce Flame RESPONSE #50 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") See(SixthNearestEnemyOfType([0.0.TROLL])) !CheckStatGT(SixthNearestEnemyOfType([0.0.TROLL]),99,RESISTFIRE) !CheckStatGT(SixthNearestEnemyOfType([0.0.TROLL]),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SixthNearestEnemyOfType([0.0.TROLL]),0,WIZARD_SPELL_TURNING) !CheckStatGT(SixthNearestEnemyOfType([0.0.TROLL]),0,WIZARD_SPELL_TRAP) !CheckStat(SixthNearestEnemyOfType([0.0.TROLL]),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(SixthNearestEnemyOfType([0.0.TROLL]),0,MINORGLOBE) !StateCheck(SixthNearestEnemyOfType([0.0.TROLL]),STATE_NOT_VISIBLE) HPLT(SixthNearestEnemyOfType([0.0.TROLL]),15) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#PFLAM",SixthNearestEnemyOfType([0.0.TROLL])) // Produce Flame RESPONSE #50 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_CHROMATIC_ORB) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(SixthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SixthNearestEnemyOf(Myself),0,HELD) !StateCheck(SixthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SixthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(SixthNearestEnemyOf(Myself),6,WIZARD_SPELL_IMMUNITY) !CheckStatGT(SixthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SixthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !General(SixthNearestEnemyOf(Myself),UNDEAD) !Race(SixthNearestEnemyOf(Myself),SLIME) !CheckStatGT(SixthNearestEnemyOf(Myself),0,SCRIPTINGSTATE2) !HasItemEquiped("clck26",SixthNearestEnemyOf(Myself)) // Cloak of Mirroring !HasItemEquiped("sw1h71",SixthNearestEnemyOf(Myself)) // Hindo's Doom +4 CheckStat(SixthNearestEnemyOf(Myself),1,RESISTMISSILE) !Race(SixthNearestEnemyOf(Myself),RAKSHASA) !Race(SixthNearestEnemyOf(Myself),LICH) See(SixthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_CHROMATIC_ORB) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(FifthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FifthNearestEnemyOf(Myself),0,HELD) !StateCheck(FifthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FifthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(FifthNearestEnemyOf(Myself),6,WIZARD_SPELL_IMMUNITY) !CheckStatGT(FifthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FifthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !General(FifthNearestEnemyOf(Myself),UNDEAD) !Race(FifthNearestEnemyOf(Myself),SLIME) !CheckStatGT(FifthNearestEnemyOf(Myself),0,SCRIPTINGSTATE2) !HasItemEquiped("clck26",FifthNearestEnemyOf(Myself)) // Cloak of Mirroring !HasItemEquiped("sw1h71",FifthNearestEnemyOf(Myself)) // Hindo's Doom +4 CheckStat(FifthNearestEnemyOf(Myself),1,RESISTMISSILE) !Race(FifthNearestEnemyOf(Myself),RAKSHASA) !Race(FifthNearestEnemyOf(Myself),LICH) See(FifthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_CHROMATIC_ORB) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(FourthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FourthNearestEnemyOf(Myself),0,HELD) !StateCheck(FourthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FourthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(FourthNearestEnemyOf(Myself),6,WIZARD_SPELL_IMMUNITY) !CheckStatGT(FourthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FourthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !General(FourthNearestEnemyOf(Myself),UNDEAD) !Race(FourthNearestEnemyOf(Myself),SLIME) !CheckStatGT(FourthNearestEnemyOf(Myself),0,SCRIPTINGSTATE2) !HasItemEquiped("clck26",FourthNearestEnemyOf(Myself)) // Cloak of Mirroring !HasItemEquiped("sw1h71",FourthNearestEnemyOf(Myself)) // Hindo's Doom +4 CheckStat(FourthNearestEnemyOf(Myself),1,RESISTMISSILE) !Race(FourthNearestEnemyOf(Myself),RAKSHASA) !Race(FourthNearestEnemyOf(Myself),LICH) See(FourthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_CHROMATIC_ORB) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(ThirdNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(ThirdNearestEnemyOf(Myself),6,WIZARD_SPELL_IMMUNITY) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(ThirdNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !General(ThirdNearestEnemyOf(Myself),UNDEAD) !Race(ThirdNearestEnemyOf(Myself),SLIME) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,SCRIPTINGSTATE2) !HasItemEquiped("clck26",ThirdNearestEnemyOf(Myself)) // Cloak of Mirroring !HasItemEquiped("sw1h71",ThirdNearestEnemyOf(Myself)) // Hindo's Doom +4 CheckStat(ThirdNearestEnemyOf(Myself),1,RESISTMISSILE) !Race(ThirdNearestEnemyOf(Myself),RAKSHASA) !Race(ThirdNearestEnemyOf(Myself),LICH) See(ThirdNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_CHROMATIC_ORB) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) !StateCheck(SecondNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SecondNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(SecondNearestEnemyOf(Myself),6,WIZARD_SPELL_IMMUNITY) !CheckStatGT(SecondNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SecondNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !General(SecondNearestEnemyOf(Myself),UNDEAD) !Race(SecondNearestEnemyOf(Myself),SLIME) !CheckStatGT(SecondNearestEnemyOf(Myself),0,SCRIPTINGSTATE2) !HasItemEquiped("clck26",SecondNearestEnemyOf(Myself)) // Cloak of Mirroring !HasItemEquiped("sw1h71",SecondNearestEnemyOf(Myself)) // Hindo's Doom +4 CheckStat(SecondNearestEnemyOf(Myself),1,RESISTMISSILE) !Race(SecondNearestEnemyOf(Myself),RAKSHASA) !Race(SecondNearestEnemyOf(Myself),LICH) See(SecondNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_CHROMATIC_ORB) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(NearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) !StateCheck(NearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(NearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(NearestEnemyOf(Myself),6,WIZARD_SPELL_IMMUNITY) !CheckStatGT(NearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(NearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !General(NearestEnemyOf(Myself),UNDEAD) !Race(NearestEnemyOf(Myself),SLIME) !CheckStatGT(NearestEnemyOf(Myself),0,SCRIPTINGSTATE2) !HasItemEquiped("clck26",NearestEnemyOf(Myself)) // Cloak of Mirroring !HasItemEquiped("sw1h71",NearestEnemyOf(Myself)) // Hindo's Doom +4 CheckStat(NearestEnemyOf(Myself),1,RESISTMISSILE) !Race(NearestEnemyOf(Myself),RAKSHASA) !Race(NearestEnemyOf(Myself),LICH) See(NearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_CHROMATIC_ORB) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(LastSeenBy(Myself),RZ_STATE_DISABLED) !CheckStatGT(LastSeenBy(Myself),0,HELD) !StateCheck(LastSeenBy(Myself),STATE_STONE_DEATH) !CheckStatGT(LastSeenBy(Myself),50,RESISTMAGIC) !CheckStat(LastSeenBy(Myself),6,WIZARD_SPELL_IMMUNITY) !CheckStatGT(LastSeenBy(Myself),0,MINORGLOBE) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(LastSeenBy(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !General(LastSeenBy(Myself),UNDEAD) !Race(LastSeenBy(Myself),SLIME) !CheckStatGT(LastSeenBy(Myself),0,SCRIPTINGSTATE2) !HasItemEquiped("clck26",LastSeenBy(Myself)) // Cloak of Mirroring !HasItemEquiped("sw1h71",LastSeenBy(Myself)) // Hindo's Doom +4 CheckStat(LastSeenBy(Myself),1,RESISTMISSILE) !Race(LastSeenBy(Myself),RAKSHASA) !Race(LastSeenBy(Myself),LICH) See(LastSeenBy(Myself)) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) Spell(LastSeenBy(Myself),WIZARD_CHROMATIC_ORB) RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_BLINDNESS) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(SixthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SixthNearestEnemyOf(Myself),0,HELD) !StateCheck(SixthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SixthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(SixthNearestEnemyOf(Myself),5,WIZARD_SPELL_IMMUNITY) !CheckStatGT(SixthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SixthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !General(SixthNearestEnemyOf(Myself),UNDEAD) !Race(SixthNearestEnemyOf(Myself),SLIME) !Race(SixthNearestEnemyOf(Myself),DEMONIC) !HasItemEquiped("NPMISC1",SixthNearestEnemyOf(Myself)) // Jansen Spectroscopes !HasItemEquiped("RR#HEL02",SixthNearestEnemyOf(Myself)) // Cowl of Acuity !StateCheck(SixthNearestEnemyOf(Myself),STATE_BLIND) !Race(SixthNearestEnemyOf(Myself),RAKSHASA) !Race(SixthNearestEnemyOf(Myself),LICH) See(SixthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_BLINDNESS) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(FifthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FifthNearestEnemyOf(Myself),0,HELD) !StateCheck(FifthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FifthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(FifthNearestEnemyOf(Myself),5,WIZARD_SPELL_IMMUNITY) !CheckStatGT(FifthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FifthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !General(FifthNearestEnemyOf(Myself),UNDEAD) !Race(FifthNearestEnemyOf(Myself),SLIME) !Race(FifthNearestEnemyOf(Myself),DEMONIC) !HasItemEquiped("NPMISC1",FifthNearestEnemyOf(Myself)) // Jansen Spectroscopes !HasItemEquiped("RR#HEL02",FifthNearestEnemyOf(Myself)) // Cowl of Acuity !StateCheck(FifthNearestEnemyOf(Myself),STATE_BLIND) !Race(FifthNearestEnemyOf(Myself),RAKSHASA) !Race(FifthNearestEnemyOf(Myself),LICH) See(FifthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_BLINDNESS) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(FourthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FourthNearestEnemyOf(Myself),0,HELD) !StateCheck(FourthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FourthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(FourthNearestEnemyOf(Myself),5,WIZARD_SPELL_IMMUNITY) !CheckStatGT(FourthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FourthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !General(FourthNearestEnemyOf(Myself),UNDEAD) !Race(FourthNearestEnemyOf(Myself),SLIME) !Race(FourthNearestEnemyOf(Myself),DEMONIC) !HasItemEquiped("NPMISC1",FourthNearestEnemyOf(Myself)) // Jansen Spectroscopes !HasItemEquiped("RR#HEL02",FourthNearestEnemyOf(Myself)) // Cowl of Acuity !StateCheck(FourthNearestEnemyOf(Myself),STATE_BLIND) !Race(FourthNearestEnemyOf(Myself),RAKSHASA) !Race(FourthNearestEnemyOf(Myself),LICH) See(FourthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_BLINDNESS) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(ThirdNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(ThirdNearestEnemyOf(Myself),5,WIZARD_SPELL_IMMUNITY) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(ThirdNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !General(ThirdNearestEnemyOf(Myself),UNDEAD) !Race(ThirdNearestEnemyOf(Myself),SLIME) !Race(ThirdNearestEnemyOf(Myself),DEMONIC) !HasItemEquiped("NPMISC1",ThirdNearestEnemyOf(Myself)) // Jansen Spectroscopes !HasItemEquiped("RR#HEL02",ThirdNearestEnemyOf(Myself)) // Cowl of Acuity !StateCheck(ThirdNearestEnemyOf(Myself),STATE_BLIND) !Race(ThirdNearestEnemyOf(Myself),RAKSHASA) !Race(ThirdNearestEnemyOf(Myself),LICH) See(ThirdNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_BLINDNESS) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) !StateCheck(SecondNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SecondNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(SecondNearestEnemyOf(Myself),5,WIZARD_SPELL_IMMUNITY) !CheckStatGT(SecondNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SecondNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !General(SecondNearestEnemyOf(Myself),UNDEAD) !Race(SecondNearestEnemyOf(Myself),SLIME) !Race(SecondNearestEnemyOf(Myself),DEMONIC) !HasItemEquiped("NPMISC1",SecondNearestEnemyOf(Myself)) // Jansen Spectroscopes !HasItemEquiped("RR#HEL02",SecondNearestEnemyOf(Myself)) // Cowl of Acuity !StateCheck(SecondNearestEnemyOf(Myself),STATE_BLIND) !Race(SecondNearestEnemyOf(Myself),RAKSHASA) !Race(SecondNearestEnemyOf(Myself),LICH) See(SecondNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_BLINDNESS) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(NearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) !StateCheck(NearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(NearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(NearestEnemyOf(Myself),5,WIZARD_SPELL_IMMUNITY) !CheckStatGT(NearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(NearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !General(NearestEnemyOf(Myself),UNDEAD) !Race(NearestEnemyOf(Myself),SLIME) !Race(NearestEnemyOf(Myself),DEMONIC) !HasItemEquiped("NPMISC1",NearestEnemyOf(Myself)) // Jansen Spectroscopes !HasItemEquiped("RR#HEL02",NearestEnemyOf(Myself)) // Cowl of Acuity !StateCheck(NearestEnemyOf(Myself),STATE_BLIND) !Race(NearestEnemyOf(Myself),RAKSHASA) !Race(NearestEnemyOf(Myself),LICH) See(NearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_BLINDNESS) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(LastSeenBy(Myself),RZ_STATE_DISABLED) !CheckStatGT(LastSeenBy(Myself),0,HELD) !StateCheck(LastSeenBy(Myself),STATE_STONE_DEATH) !CheckStatGT(LastSeenBy(Myself),50,RESISTMAGIC) !CheckStat(LastSeenBy(Myself),5,WIZARD_SPELL_IMMUNITY) !CheckStatGT(LastSeenBy(Myself),0,MINORGLOBE) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(LastSeenBy(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !General(LastSeenBy(Myself),UNDEAD) !Race(LastSeenBy(Myself),SLIME) !Race(LastSeenBy(Myself),DEMONIC) !HasItemEquiped("NPMISC1",LastSeenBy(Myself)) // Jansen Spectroscopes !HasItemEquiped("RR#HEL02",LastSeenBy(Myself)) // Cowl of Acuity !StateCheck(LastSeenBy(Myself),STATE_BLIND) !Race(LastSeenBy(Myself),RAKSHASA) !Race(LastSeenBy(Myself),LICH) See(LastSeenBy(Myself)) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) Spell(LastSeenBy(Myself),WIZARD_BLINDNESS) RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_SPOOK) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(SixthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SixthNearestEnemyOf(Myself),0,HELD) !StateCheck(SixthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SixthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(SixthNearestEnemyOf(Myself),5,WIZARD_SPELL_IMMUNITY) !CheckStatGT(SixthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SixthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !General(SixthNearestEnemyOf(Myself),UNDEAD) !Race(SixthNearestEnemyOf(Myself),SLIME) !Race(SixthNearestEnemyOf(Myself),GOLEM) !Race(SixthNearestEnemyOf(Myself),DEMONIC) !Race(SixthNearestEnemyOf(Myself),TROLL) !Kit(SixthNearestEnemyOf(Myself),CAVALIER) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_RESIST_FEAR) !CheckStat(SixthNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("CLCK30",SixthNearestEnemyOf(Myself)) // Cloak of Bravery !HasItemEquipedReal("SW1H32",SixthNearestEnemyOf(Myself)) // Dragonslayer +3 !HasItemEquipedReal("MISCBC",SixthNearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("RR#HELMD",SixthNearestEnemyOf(Myself)) // Dead Man's Face !Race(SixthNearestEnemyOf(Myself),RAKSHASA) See(SixthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_SPOOK) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(FifthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FifthNearestEnemyOf(Myself),0,HELD) !StateCheck(FifthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FifthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(FifthNearestEnemyOf(Myself),5,WIZARD_SPELL_IMMUNITY) !CheckStatGT(FifthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FifthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !General(FifthNearestEnemyOf(Myself),UNDEAD) !Race(FifthNearestEnemyOf(Myself),SLIME) !Race(FifthNearestEnemyOf(Myself),GOLEM) !Race(FifthNearestEnemyOf(Myself),DEMONIC) !Race(FifthNearestEnemyOf(Myself),TROLL) !Kit(FifthNearestEnemyOf(Myself),CAVALIER) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_RESIST_FEAR) !CheckStat(FifthNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("CLCK30",FifthNearestEnemyOf(Myself)) // Cloak of Bravery !HasItemEquipedReal("SW1H32",FifthNearestEnemyOf(Myself)) // Dragonslayer +3 !HasItemEquipedReal("MISCBC",FifthNearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("RR#HELMD",FifthNearestEnemyOf(Myself)) // Dead Man's Face !Race(FifthNearestEnemyOf(Myself),RAKSHASA) See(FifthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_SPOOK) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(FourthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FourthNearestEnemyOf(Myself),0,HELD) !StateCheck(FourthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FourthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(FourthNearestEnemyOf(Myself),5,WIZARD_SPELL_IMMUNITY) !CheckStatGT(FourthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FourthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !General(FourthNearestEnemyOf(Myself),UNDEAD) !Race(FourthNearestEnemyOf(Myself),SLIME) !Race(FourthNearestEnemyOf(Myself),GOLEM) !Race(FourthNearestEnemyOf(Myself),DEMONIC) !Race(FourthNearestEnemyOf(Myself),TROLL) !Kit(FourthNearestEnemyOf(Myself),CAVALIER) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_RESIST_FEAR) !CheckStat(FourthNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("CLCK30",FourthNearestEnemyOf(Myself)) // Cloak of Bravery !HasItemEquipedReal("SW1H32",FourthNearestEnemyOf(Myself)) // Dragonslayer +3 !HasItemEquipedReal("MISCBC",FourthNearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("RR#HELMD",FourthNearestEnemyOf(Myself)) // Dead Man's Face !Race(FourthNearestEnemyOf(Myself),RAKSHASA) See(FourthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_SPOOK) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(ThirdNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(ThirdNearestEnemyOf(Myself),5,WIZARD_SPELL_IMMUNITY) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(ThirdNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !General(ThirdNearestEnemyOf(Myself),UNDEAD) !Race(ThirdNearestEnemyOf(Myself),SLIME) !Race(ThirdNearestEnemyOf(Myself),GOLEM) !Race(ThirdNearestEnemyOf(Myself),DEMONIC) !Race(ThirdNearestEnemyOf(Myself),TROLL) !Kit(ThirdNearestEnemyOf(Myself),CAVALIER) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_RESIST_FEAR) !CheckStat(ThirdNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("CLCK30",ThirdNearestEnemyOf(Myself)) // Cloak of Bravery !HasItemEquipedReal("SW1H32",ThirdNearestEnemyOf(Myself)) // Dragonslayer +3 !HasItemEquipedReal("MISCBC",ThirdNearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("RR#HELMD",ThirdNearestEnemyOf(Myself)) // Dead Man's Face !Race(ThirdNearestEnemyOf(Myself),RAKSHASA) See(ThirdNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_SPOOK) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) !StateCheck(SecondNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SecondNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(SecondNearestEnemyOf(Myself),5,WIZARD_SPELL_IMMUNITY) !CheckStatGT(SecondNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SecondNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !General(SecondNearestEnemyOf(Myself),UNDEAD) !Race(SecondNearestEnemyOf(Myself),SLIME) !Race(SecondNearestEnemyOf(Myself),GOLEM) !Race(SecondNearestEnemyOf(Myself),DEMONIC) !Race(SecondNearestEnemyOf(Myself),TROLL) !Kit(SecondNearestEnemyOf(Myself),CAVALIER) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_RESIST_FEAR) !CheckStat(SecondNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("CLCK30",SecondNearestEnemyOf(Myself)) // Cloak of Bravery !HasItemEquipedReal("SW1H32",SecondNearestEnemyOf(Myself)) // Dragonslayer +3 !HasItemEquipedReal("MISCBC",SecondNearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("RR#HELMD",SecondNearestEnemyOf(Myself)) // Dead Man's Face !Race(SecondNearestEnemyOf(Myself),RAKSHASA) See(SecondNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_SPOOK) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(NearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) !StateCheck(NearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(NearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(NearestEnemyOf(Myself),5,WIZARD_SPELL_IMMUNITY) !CheckStatGT(NearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(NearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !General(NearestEnemyOf(Myself),UNDEAD) !Race(NearestEnemyOf(Myself),SLIME) !Race(NearestEnemyOf(Myself),GOLEM) !Race(NearestEnemyOf(Myself),DEMONIC) !Race(NearestEnemyOf(Myself),TROLL) !Kit(NearestEnemyOf(Myself),CAVALIER) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_RESIST_FEAR) !CheckStat(NearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("CLCK30",NearestEnemyOf(Myself)) // Cloak of Bravery !HasItemEquipedReal("SW1H32",NearestEnemyOf(Myself)) // Dragonslayer +3 !HasItemEquipedReal("MISCBC",NearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("RR#HELMD",NearestEnemyOf(Myself)) // Dead Man's Face !Race(NearestEnemyOf(Myself),RAKSHASA) See(NearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_SPOOK) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(LastSeenBy(Myself),RZ_STATE_DISABLED) !CheckStatGT(LastSeenBy(Myself),0,HELD) !StateCheck(LastSeenBy(Myself),STATE_STONE_DEATH) !CheckStatGT(LastSeenBy(Myself),50,RESISTMAGIC) !CheckStat(LastSeenBy(Myself),5,WIZARD_SPELL_IMMUNITY) !CheckStatGT(LastSeenBy(Myself),0,MINORGLOBE) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(LastSeenBy(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !General(LastSeenBy(Myself),UNDEAD) !Race(LastSeenBy(Myself),SLIME) !Race(LastSeenBy(Myself),GOLEM) !Race(LastSeenBy(Myself),DEMONIC) !Race(LastSeenBy(Myself),TROLL) !Kit(LastSeenBy(Myself),CAVALIER) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_RESIST_FEAR) !CheckStat(LastSeenBy(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("CLCK30",LastSeenBy(Myself)) // Cloak of Bravery !HasItemEquipedReal("SW1H32",LastSeenBy(Myself)) // Dragonslayer +3 !HasItemEquipedReal("MISCBC",LastSeenBy(Myself)) // Blackrazor +3 !HasItemEquiped("RR#HELMD",LastSeenBy(Myself)) // Dead Man's Face !Race(LastSeenBy(Myself),RAKSHASA) See(LastSeenBy(Myself)) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) Spell(LastSeenBy(Myself),WIZARD_SPOOK) RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") !StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(ThirdNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(ThirdNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(ThirdNearestEnemyOf(Myself),1,WIZARD_SPELL_IMMUNITY) !General(ThirdNearestEnemyOf(Myself),UNDEAD) !Race(ThirdNearestEnemyOf(Myself),DEMONIC) !Race(ThirdNearestEnemyOf(Myself),GOLEM) !Race(ThirdNearestEnemyOf(Myself),ELEMENTAL) !Race(ThirdNearestEnemyOf(Myself),SLIME) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_DISEASED) !HasItemEquiped("ring39",ThirdNearestEnemyOf(Myself)) // Ring of Kangaxx !HasItemEquiped("misc8j",ThirdNearestEnemyOf(Myself)) // Boots of the West Range(ThirdNearestEnemyOf(Myself),2) !Race(ThirdNearestEnemyOf(Myself),RAKSHASA) See(ThirdNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") !StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) !StateCheck(SecondNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SecondNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SecondNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(SecondNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(SecondNearestEnemyOf(Myself),1,WIZARD_SPELL_IMMUNITY) !General(SecondNearestEnemyOf(Myself),UNDEAD) !Race(SecondNearestEnemyOf(Myself),DEMONIC) !Race(SecondNearestEnemyOf(Myself),GOLEM) !Race(SecondNearestEnemyOf(Myself),ELEMENTAL) !Race(SecondNearestEnemyOf(Myself),SLIME) !StateCheck(SecondNearestEnemyOf(Myself),STATE_DISEASED) !HasItemEquiped("ring39",SecondNearestEnemyOf(Myself)) // Ring of Kangaxx !HasItemEquiped("misc8j",SecondNearestEnemyOf(Myself)) // Boots of the West Range(SecondNearestEnemyOf(Myself),2) !Race(SecondNearestEnemyOf(Myself),RAKSHASA) See(SecondNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") !StateCheck(NearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) !StateCheck(NearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(NearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(NearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(NearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(NearestEnemyOf(Myself),1,WIZARD_SPELL_IMMUNITY) !General(NearestEnemyOf(Myself),UNDEAD) !Race(NearestEnemyOf(Myself),DEMONIC) !Race(NearestEnemyOf(Myself),GOLEM) !Race(NearestEnemyOf(Myself),ELEMENTAL) !Race(NearestEnemyOf(Myself),SLIME) !StateCheck(NearestEnemyOf(Myself),STATE_DISEASED) !HasItemEquiped("ring39",NearestEnemyOf(Myself)) // Ring of Kangaxx !HasItemEquiped("misc8j",NearestEnemyOf(Myself)) // Boots of the West Range(NearestEnemyOf(Myself),2) !Race(NearestEnemyOf(Myself),RAKSHASA) See(NearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") !StateCheck(LastSeenBy(Myself),RZ_STATE_DISABLED) !CheckStatGT(LastSeenBy(Myself),0,HELD) !StateCheck(LastSeenBy(Myself),STATE_STONE_DEATH) !CheckStatGT(LastSeenBy(Myself),50,RESISTMAGIC) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(LastSeenBy(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(LastSeenBy(Myself),0,MINORGLOBE) !CheckStat(LastSeenBy(Myself),1,WIZARD_SPELL_IMMUNITY) !General(LastSeenBy(Myself),UNDEAD) !Race(LastSeenBy(Myself),DEMONIC) !Race(LastSeenBy(Myself),GOLEM) !Race(LastSeenBy(Myself),ELEMENTAL) !Race(LastSeenBy(Myself),SLIME) !StateCheck(LastSeenBy(Myself),STATE_DISEASED) !HasItemEquiped("ring39",LastSeenBy(Myself)) // Ring of Kangaxx !HasItemEquiped("misc8j",LastSeenBy(Myself)) // Boots of the West Range(LastSeenBy(Myself),2) !Race(LastSeenBy(Myself),RAKSHASA) See(LastSeenBy(Myself)) THEN RESPONSE #70 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("fl#csdis",LastSeenBy(Myself)) // Cause Disease RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") !StateCheck(SixthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SixthNearestEnemyOf(Myself),0,HELD) !StateCheck(SixthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SixthNearestEnemyOf(Myself),75,RESISTMAGIC) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SixthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(SixthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(SixthNearestEnemyOf(Myself),6,WIZARD_SPELL_IMMUNITY) !Race(SixthNearestEnemyOf(Myself),LICH) !Race(SixthNearestEnemyOf(Myself),RAKSHASA) !HasItemEquiped("clck26",SixthNearestEnemyOf(Myself)) // Cloak of Mirroring See(SixthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") !StateCheck(FifthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FifthNearestEnemyOf(Myself),0,HELD) !StateCheck(FifthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FifthNearestEnemyOf(Myself),75,RESISTMAGIC) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FifthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(FifthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(FifthNearestEnemyOf(Myself),6,WIZARD_SPELL_IMMUNITY) !Race(FifthNearestEnemyOf(Myself),LICH) !Race(FifthNearestEnemyOf(Myself),RAKSHASA) !HasItemEquiped("clck26",FifthNearestEnemyOf(Myself)) // Cloak of Mirroring See(FifthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") !StateCheck(FourthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FourthNearestEnemyOf(Myself),0,HELD) !StateCheck(FourthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FourthNearestEnemyOf(Myself),75,RESISTMAGIC) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FourthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(FourthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(FourthNearestEnemyOf(Myself),6,WIZARD_SPELL_IMMUNITY) !Race(FourthNearestEnemyOf(Myself),LICH) !Race(FourthNearestEnemyOf(Myself),RAKSHASA) !HasItemEquiped("clck26",FourthNearestEnemyOf(Myself)) // Cloak of Mirroring See(FourthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") !StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(ThirdNearestEnemyOf(Myself),75,RESISTMAGIC) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(ThirdNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(ThirdNearestEnemyOf(Myself),6,WIZARD_SPELL_IMMUNITY) !Race(ThirdNearestEnemyOf(Myself),LICH) !Race(ThirdNearestEnemyOf(Myself),RAKSHASA) !HasItemEquiped("clck26",ThirdNearestEnemyOf(Myself)) // Cloak of Mirroring See(ThirdNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") !StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) !StateCheck(SecondNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SecondNearestEnemyOf(Myself),75,RESISTMAGIC) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SecondNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(SecondNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(SecondNearestEnemyOf(Myself),6,WIZARD_SPELL_IMMUNITY) !Race(SecondNearestEnemyOf(Myself),LICH) !Race(SecondNearestEnemyOf(Myself),RAKSHASA) !HasItemEquiped("clck26",SecondNearestEnemyOf(Myself)) // Cloak of Mirroring See(SecondNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") !StateCheck(NearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) !StateCheck(NearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(NearestEnemyOf(Myself),75,RESISTMAGIC) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(NearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(NearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(NearestEnemyOf(Myself),6,WIZARD_SPELL_IMMUNITY) !Race(NearestEnemyOf(Myself),LICH) !Race(NearestEnemyOf(Myself),RAKSHASA) !HasItemEquiped("clck26",NearestEnemyOf(Myself)) // Cloak of Mirroring See(NearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") !StateCheck(LastSeenBy(Myself),RZ_STATE_DISABLED) !CheckStatGT(LastSeenBy(Myself),0,HELD) !StateCheck(LastSeenBy(Myself),STATE_STONE_DEATH) !CheckStatGT(LastSeenBy(Myself),75,RESISTMAGIC) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(LastSeenBy(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(LastSeenBy(Myself),0,MINORGLOBE) !CheckStat(LastSeenBy(Myself),6,WIZARD_SPELL_IMMUNITY) !Race(LastSeenBy(Myself),LICH) !Race(LastSeenBy(Myself),RAKSHASA) !HasItemEquiped("clck26",LastSeenBy(Myself)) // Cloak of Mirroring See(LastSeenBy(Myself)) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#WI112",LastSeenBy(Myself)) // Magic Missile RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") General(SixthNearestEnemyOf(Myself),HUMANOID) !Race(SixthNearestEnemyOf(Myself),RAKSHASA) CheckStatGT(SixthNearestEnemyOf(Myself),5,SAVEVSSPELL) !StateCheck(SixthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SixthNearestEnemyOf(Myself),0,HELD) !StateCheck(SixthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SixthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SixthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(SixthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(SixthNearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !General(SixthNearestEnemyOf(Myself),UNDEAD) !Race(SixthNearestEnemyOf(Myself),ELF) !Race(SixthNearestEnemyOf(Myself),GOLEM) !Race(SixthNearestEnemyOf(Myself),SLIME) !Race(SixthNearestEnemyOf(Myself),DEMONIC) !Race(SixthNearestEnemyOf(Myself),TROLL) !Class(SixthNearestEnemyOf(Myself),MONK) !Kit(SixthNearestEnemyOf(Myself),INQUISITOR) !Kit(SixthNearestEnemyOf(Myself),CAVALIER) !CheckStatGT(SixthNearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(SixthNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("helm06",SixthNearestEnemyOf(Myself)) // Helm of Charm Protection !HasItemEquiped("ipsion",SixthNearestEnemyOf(Myself)) // Greenstone Amulet !HasItemEquipedReal("miscbc",SixthNearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("npchan",SixthNearestEnemyOf(Myself)) // Corthala Family Armor +3 !HasItemEquiped("shld25",SixthNearestEnemyOf(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("sper07",SixthNearestEnemyOf(Myself)) // Spear of the Unicorn +2 !HasItemEquipedReal("staf11",SixthNearestEnemyOf(Myself)) // Staff of the Magi +5 !HasItemEquipedReal("sw1h35",SixthNearestEnemyOf(Myself)) // Adjatha The Drinker +2 !HasItemEquipedReal("sw1h54",SixthNearestEnemyOf(Myself)) // The Equalizer +4 !HasItemEquipedReal("sw2h14",SixthNearestEnemyOf(Myself)) // Lilarcor +3 See(SixthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") General(FifthNearestEnemyOf(Myself),HUMANOID) !Race(FifthNearestEnemyOf(Myself),RAKSHASA) CheckStatGT(FifthNearestEnemyOf(Myself),5,SAVEVSSPELL) !StateCheck(FifthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FifthNearestEnemyOf(Myself),0,HELD) !StateCheck(FifthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FifthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FifthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(FifthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(FifthNearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !General(FifthNearestEnemyOf(Myself),UNDEAD) !Race(FifthNearestEnemyOf(Myself),ELF) !Race(FifthNearestEnemyOf(Myself),GOLEM) !Race(FifthNearestEnemyOf(Myself),SLIME) !Race(FifthNearestEnemyOf(Myself),DEMONIC) !Race(FifthNearestEnemyOf(Myself),TROLL) !Class(FifthNearestEnemyOf(Myself),MONK) !Kit(FifthNearestEnemyOf(Myself),INQUISITOR) !Kit(FifthNearestEnemyOf(Myself),CAVALIER) !CheckStatGT(FifthNearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(FifthNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("helm06",FifthNearestEnemyOf(Myself)) // Helm of Charm Protection !HasItemEquiped("ipsion",FifthNearestEnemyOf(Myself)) // Greenstone Amulet !HasItemEquipedReal("miscbc",FifthNearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("npchan",FifthNearestEnemyOf(Myself)) // Corthala Family Armor +3 !HasItemEquiped("shld25",FifthNearestEnemyOf(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("sper07",FifthNearestEnemyOf(Myself)) // Spear of the Unicorn +2 !HasItemEquipedReal("staf11",FifthNearestEnemyOf(Myself)) // Staff of the Magi +5 !HasItemEquipedReal("sw1h35",FifthNearestEnemyOf(Myself)) // Adjatha The Drinker +2 !HasItemEquipedReal("sw1h54",FifthNearestEnemyOf(Myself)) // The Equalizer +4 !HasItemEquipedReal("sw2h14",FifthNearestEnemyOf(Myself)) // Lilarcor +3 See(FifthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") General(FourthNearestEnemyOf(Myself),HUMANOID) !Race(FourthNearestEnemyOf(Myself),RAKSHASA) CheckStatGT(FourthNearestEnemyOf(Myself),5,SAVEVSSPELL) !StateCheck(FourthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FourthNearestEnemyOf(Myself),0,HELD) !StateCheck(FourthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FourthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FourthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(FourthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(FourthNearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !General(FourthNearestEnemyOf(Myself),UNDEAD) !Race(FourthNearestEnemyOf(Myself),ELF) !Race(FourthNearestEnemyOf(Myself),GOLEM) !Race(FourthNearestEnemyOf(Myself),SLIME) !Race(FourthNearestEnemyOf(Myself),DEMONIC) !Race(FourthNearestEnemyOf(Myself),TROLL) !Class(FourthNearestEnemyOf(Myself),MONK) !Kit(FourthNearestEnemyOf(Myself),INQUISITOR) !Kit(FourthNearestEnemyOf(Myself),CAVALIER) !CheckStatGT(FourthNearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(FourthNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("helm06",FourthNearestEnemyOf(Myself)) // Helm of Charm Protection !HasItemEquiped("ipsion",FourthNearestEnemyOf(Myself)) // Greenstone Amulet !HasItemEquipedReal("miscbc",FourthNearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("npchan",FourthNearestEnemyOf(Myself)) // Corthala Family Armor +3 !HasItemEquiped("shld25",FourthNearestEnemyOf(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("sper07",FourthNearestEnemyOf(Myself)) // Spear of the Unicorn +2 !HasItemEquipedReal("staf11",FourthNearestEnemyOf(Myself)) // Staff of the Magi +5 !HasItemEquipedReal("sw1h35",FourthNearestEnemyOf(Myself)) // Adjatha The Drinker +2 !HasItemEquipedReal("sw1h54",FourthNearestEnemyOf(Myself)) // The Equalizer +4 !HasItemEquipedReal("sw2h14",FourthNearestEnemyOf(Myself)) // Lilarcor +3 See(FourthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") General(ThirdNearestEnemyOf(Myself),HUMANOID) !Race(ThirdNearestEnemyOf(Myself),RAKSHASA) CheckStatGT(ThirdNearestEnemyOf(Myself),5,SAVEVSSPELL) !StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(ThirdNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(ThirdNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(ThirdNearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !General(ThirdNearestEnemyOf(Myself),UNDEAD) !Race(ThirdNearestEnemyOf(Myself),ELF) !Race(ThirdNearestEnemyOf(Myself),GOLEM) !Race(ThirdNearestEnemyOf(Myself),SLIME) !Race(ThirdNearestEnemyOf(Myself),DEMONIC) !Race(ThirdNearestEnemyOf(Myself),TROLL) !Class(ThirdNearestEnemyOf(Myself),MONK) !Kit(ThirdNearestEnemyOf(Myself),INQUISITOR) !Kit(ThirdNearestEnemyOf(Myself),CAVALIER) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(ThirdNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("helm06",ThirdNearestEnemyOf(Myself)) // Helm of Charm Protection !HasItemEquiped("ipsion",ThirdNearestEnemyOf(Myself)) // Greenstone Amulet !HasItemEquipedReal("miscbc",ThirdNearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("npchan",ThirdNearestEnemyOf(Myself)) // Corthala Family Armor +3 !HasItemEquiped("shld25",ThirdNearestEnemyOf(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("sper07",ThirdNearestEnemyOf(Myself)) // Spear of the Unicorn +2 !HasItemEquipedReal("staf11",ThirdNearestEnemyOf(Myself)) // Staff of the Magi +5 !HasItemEquipedReal("sw1h35",ThirdNearestEnemyOf(Myself)) // Adjatha The Drinker +2 !HasItemEquipedReal("sw1h54",ThirdNearestEnemyOf(Myself)) // The Equalizer +4 !HasItemEquipedReal("sw2h14",ThirdNearestEnemyOf(Myself)) // Lilarcor +3 See(ThirdNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") General(SecondNearestEnemyOf(Myself),HUMANOID) !Race(SecondNearestEnemyOf(Myself),RAKSHASA) CheckStatGT(SecondNearestEnemyOf(Myself),5,SAVEVSSPELL) !StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) !StateCheck(SecondNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SecondNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SecondNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(SecondNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(SecondNearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !General(SecondNearestEnemyOf(Myself),UNDEAD) !Race(SecondNearestEnemyOf(Myself),ELF) !Race(SecondNearestEnemyOf(Myself),GOLEM) !Race(SecondNearestEnemyOf(Myself),SLIME) !Race(SecondNearestEnemyOf(Myself),DEMONIC) !Race(SecondNearestEnemyOf(Myself),TROLL) !Class(SecondNearestEnemyOf(Myself),MONK) !Kit(SecondNearestEnemyOf(Myself),INQUISITOR) !Kit(SecondNearestEnemyOf(Myself),CAVALIER) !CheckStatGT(SecondNearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(SecondNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("helm06",SecondNearestEnemyOf(Myself)) // Helm of Charm Protection !HasItemEquiped("ipsion",SecondNearestEnemyOf(Myself)) // Greenstone Amulet !HasItemEquipedReal("miscbc",SecondNearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("npchan",SecondNearestEnemyOf(Myself)) // Corthala Family Armor +3 !HasItemEquiped("shld25",SecondNearestEnemyOf(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("sper07",SecondNearestEnemyOf(Myself)) // Spear of the Unicorn +2 !HasItemEquipedReal("staf11",SecondNearestEnemyOf(Myself)) // Staff of the Magi +5 !HasItemEquipedReal("sw1h35",SecondNearestEnemyOf(Myself)) // Adjatha The Drinker +2 !HasItemEquipedReal("sw1h54",SecondNearestEnemyOf(Myself)) // The Equalizer +4 !HasItemEquipedReal("sw2h14",SecondNearestEnemyOf(Myself)) // Lilarcor +3 See(SecondNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") General(NearestEnemyOf(Myself),HUMANOID) !Race(NearestEnemyOf(Myself),RAKSHASA) CheckStatGT(NearestEnemyOf(Myself),5,SAVEVSSPELL) !StateCheck(NearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) !StateCheck(NearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(NearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(NearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(NearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(NearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !General(NearestEnemyOf(Myself),UNDEAD) !Race(NearestEnemyOf(Myself),ELF) !Race(NearestEnemyOf(Myself),GOLEM) !Race(NearestEnemyOf(Myself),SLIME) !Race(NearestEnemyOf(Myself),DEMONIC) !Race(NearestEnemyOf(Myself),TROLL) !Class(NearestEnemyOf(Myself),MONK) !Kit(NearestEnemyOf(Myself),INQUISITOR) !Kit(NearestEnemyOf(Myself),CAVALIER) !CheckStatGT(NearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(NearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("helm06",NearestEnemyOf(Myself)) // Helm of Charm Protection !HasItemEquiped("ipsion",NearestEnemyOf(Myself)) // Greenstone Amulet !HasItemEquipedReal("miscbc",NearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("npchan",NearestEnemyOf(Myself)) // Corthala Family Armor +3 !HasItemEquiped("shld25",NearestEnemyOf(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("sper07",NearestEnemyOf(Myself)) // Spear of the Unicorn +2 !HasItemEquipedReal("staf11",NearestEnemyOf(Myself)) // Staff of the Magi +5 !HasItemEquipedReal("sw1h35",NearestEnemyOf(Myself)) // Adjatha The Drinker +2 !HasItemEquipedReal("sw1h54",NearestEnemyOf(Myself)) // The Equalizer +4 !HasItemEquipedReal("sw2h14",NearestEnemyOf(Myself)) // Lilarcor +3 See(NearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") General(LastSeenBy(Myself),HUMANOID) !Race(LastSeenBy(Myself),RAKSHASA) CheckStatGT(LastSeenBy(Myself),5,SAVEVSSPELL) !StateCheck(LastSeenBy(Myself),RZ_STATE_DISABLED) !CheckStatGT(LastSeenBy(Myself),0,HELD) !StateCheck(LastSeenBy(Myself),STATE_STONE_DEATH) !CheckStatGT(LastSeenBy(Myself),50,RESISTMAGIC) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(LastSeenBy(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(LastSeenBy(Myself),0,MINORGLOBE) !CheckStat(LastSeenBy(Myself),4,WIZARD_SPELL_IMMUNITY) !General(LastSeenBy(Myself),UNDEAD) !Race(LastSeenBy(Myself),ELF) !Race(LastSeenBy(Myself),GOLEM) !Race(LastSeenBy(Myself),SLIME) !Race(LastSeenBy(Myself),DEMONIC) !Race(LastSeenBy(Myself),TROLL) !Class(LastSeenBy(Myself),MONK) !Kit(LastSeenBy(Myself),INQUISITOR) !Kit(LastSeenBy(Myself),CAVALIER) !CheckStatGT(LastSeenBy(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(LastSeenBy(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("helm06",LastSeenBy(Myself)) // Helm of Charm Protection !HasItemEquiped("ipsion",LastSeenBy(Myself)) // Greenstone Amulet !HasItemEquipedReal("miscbc",LastSeenBy(Myself)) // Blackrazor +3 !HasItemEquiped("npchan",LastSeenBy(Myself)) // Corthala Family Armor +3 !HasItemEquiped("shld25",LastSeenBy(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("sper07",LastSeenBy(Myself)) // Spear of the Unicorn +2 !HasItemEquipedReal("staf11",LastSeenBy(Myself)) // Staff of the Magi +5 !HasItemEquipedReal("sw1h35",LastSeenBy(Myself)) // Adjatha The Drinker +2 !HasItemEquipedReal("sw1h54",LastSeenBy(Myself)) // The Equalizer +4 !HasItemEquipedReal("sw2h14",LastSeenBy(Myself)) // Lilarcor +3 See(LastSeenBy(Myself)) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#WI104",LastSeenBy(Myself)) // Charm Person RESPONSE #100 Continue() END IF See(NearestEnemyOf(Myself)) HasItem("melfmet",Myself) // Melf's Minute Meteor !StateCheck(NearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) !StateCheck(NearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(NearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(NearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(NearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(NearestEnemyOf(Myself),75,RESISTPIERCING) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(NearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",NearestEnemyOf(Myself)) // Mordenkainen's Sword OR(2) CheckStatLT(NearestEnemyOf(Myself),100,RESISTFIRE) !CheckStatGT(NearestEnemyOf(Myself),0,STONESKINS) OR(5) Class(NearestEnemyOf(Myself),LONG_BOW) Class(NearestEnemyOf(Myself),BARD_ALL) Class(NearestEnemyOf(Myself),CLERIC_ALL) Class(NearestEnemyOf(Myself),CLERIC_RANGER) Class(NearestEnemyOf(Myself),DRUID_ALL) THEN RESPONSE #100 AttackOneRound(NearestEnemyOf(Myself)) END IF See(SecondNearestEnemyOf(Myself)) HasItem("melfmet",Myself) // Melf's Minute Meteor !StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) !StateCheck(SecondNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SecondNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SecondNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(SecondNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(SecondNearestEnemyOf(Myself),75,RESISTPIERCING) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(SecondNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",SecondNearestEnemyOf(Myself)) // Mordenkainen's Sword OR(2) CheckStatLT(SecondNearestEnemyOf(Myself),100,RESISTFIRE) !CheckStatGT(SecondNearestEnemyOf(Myself),0,STONESKINS) OR(5) Class(SecondNearestEnemyOf(Myself),LONG_BOW) Class(SecondNearestEnemyOf(Myself),BARD_ALL) Class(SecondNearestEnemyOf(Myself),CLERIC_ALL) Class(SecondNearestEnemyOf(Myself),CLERIC_RANGER) Class(SecondNearestEnemyOf(Myself),DRUID_ALL) THEN RESPONSE #100 AttackOneRound(SecondNearestEnemyOf(Myself)) END IF See(ThirdNearestEnemyOf(Myself)) HasItem("melfmet",Myself) // Melf's Minute Meteor !StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(ThirdNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(ThirdNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(ThirdNearestEnemyOf(Myself),75,RESISTPIERCING) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(ThirdNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",ThirdNearestEnemyOf(Myself)) // Mordenkainen's Sword OR(2) CheckStatLT(ThirdNearestEnemyOf(Myself),100,RESISTFIRE) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,STONESKINS) OR(5) Class(ThirdNearestEnemyOf(Myself),LONG_BOW) Class(ThirdNearestEnemyOf(Myself),BARD_ALL) Class(ThirdNearestEnemyOf(Myself),CLERIC_ALL) Class(ThirdNearestEnemyOf(Myself),CLERIC_RANGER) Class(ThirdNearestEnemyOf(Myself),DRUID_ALL) THEN RESPONSE #100 AttackOneRound(ThirdNearestEnemyOf(Myself)) END IF See(FourthNearestEnemyOf(Myself)) HasItem("melfmet",Myself) // Melf's Minute Meteor !StateCheck(FourthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FourthNearestEnemyOf(Myself),0,HELD) !StateCheck(FourthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FourthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FourthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(FourthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(FourthNearestEnemyOf(Myself),75,RESISTPIERCING) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(FourthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",FourthNearestEnemyOf(Myself)) // Mordenkainen's Sword OR(2) CheckStatLT(FourthNearestEnemyOf(Myself),100,RESISTFIRE) !CheckStatGT(FourthNearestEnemyOf(Myself),0,STONESKINS) OR(5) Class(FourthNearestEnemyOf(Myself),LONG_BOW) Class(FourthNearestEnemyOf(Myself),BARD_ALL) Class(FourthNearestEnemyOf(Myself),CLERIC_ALL) Class(FourthNearestEnemyOf(Myself),CLERIC_RANGER) Class(FourthNearestEnemyOf(Myself),DRUID_ALL) THEN RESPONSE #100 AttackOneRound(FourthNearestEnemyOf(Myself)) END IF See(FifthNearestEnemyOf(Myself)) HasItem("melfmet",Myself) // Melf's Minute Meteor !StateCheck(FifthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FifthNearestEnemyOf(Myself),0,HELD) !StateCheck(FifthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FifthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FifthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(FifthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(FifthNearestEnemyOf(Myself),75,RESISTPIERCING) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(FifthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",FifthNearestEnemyOf(Myself)) // Mordenkainen's Sword OR(2) CheckStatLT(FifthNearestEnemyOf(Myself),100,RESISTFIRE) !CheckStatGT(FifthNearestEnemyOf(Myself),0,STONESKINS) OR(5) Class(FifthNearestEnemyOf(Myself),LONG_BOW) Class(FifthNearestEnemyOf(Myself),BARD_ALL) Class(FifthNearestEnemyOf(Myself),CLERIC_ALL) Class(FifthNearestEnemyOf(Myself),CLERIC_RANGER) Class(FifthNearestEnemyOf(Myself),DRUID_ALL) THEN RESPONSE #100 AttackOneRound(FifthNearestEnemyOf(Myself)) END IF See(SixthNearestEnemyOf(Myself)) HasItem("melfmet",Myself) // Melf's Minute Meteor !StateCheck(SixthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SixthNearestEnemyOf(Myself),0,HELD) !StateCheck(SixthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SixthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SixthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(SixthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(SixthNearestEnemyOf(Myself),75,RESISTPIERCING) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(SixthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",SixthNearestEnemyOf(Myself)) // Mordenkainen's Sword OR(2) CheckStatLT(SixthNearestEnemyOf(Myself),100,RESISTFIRE) !CheckStatGT(SixthNearestEnemyOf(Myself),0,STONESKINS) OR(5) Class(SixthNearestEnemyOf(Myself),LONG_BOW) Class(SixthNearestEnemyOf(Myself),BARD_ALL) Class(SixthNearestEnemyOf(Myself),CLERIC_ALL) Class(SixthNearestEnemyOf(Myself),CLERIC_RANGER) Class(SixthNearestEnemyOf(Myself),DRUID_ALL) THEN RESPONSE #100 AttackOneRound(SixthNearestEnemyOf(Myself)) END IF See(NearestEnemyOf(Myself)) HasItem("melfmet",Myself) // Melf's Minute Meteor !StateCheck(NearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) !StateCheck(NearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(NearestEnemyOf(Myself),75,RESISTPIERCING) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(NearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",NearestEnemyOf(Myself)) // Mordenkainen's Sword THEN RESPONSE #100 AttackOneRound(NearestEnemyOf(Myself)) END IF See(SecondNearestEnemyOf(Myself)) HasItem("melfmet",Myself) // Melf's Minute Meteor !StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) !StateCheck(SecondNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SecondNearestEnemyOf(Myself),75,RESISTPIERCING) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(SecondNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",SecondNearestEnemyOf(Myself)) // Mordenkainen's Sword THEN RESPONSE #100 AttackOneRound(SecondNearestEnemyOf(Myself)) END IF See(ThirdNearestEnemyOf(Myself)) HasItem("melfmet",Myself) // Melf's Minute Meteor !StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(ThirdNearestEnemyOf(Myself),75,RESISTPIERCING) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(ThirdNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",ThirdNearestEnemyOf(Myself)) // Mordenkainen's Sword THEN RESPONSE #100 AttackOneRound(ThirdNearestEnemyOf(Myself)) END IF See(FourthNearestEnemyOf(Myself)) HasItem("melfmet",Myself) // Melf's Minute Meteor !StateCheck(FourthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FourthNearestEnemyOf(Myself),0,HELD) !StateCheck(FourthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FourthNearestEnemyOf(Myself),75,RESISTPIERCING) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(FourthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",FourthNearestEnemyOf(Myself)) // Mordenkainen's Sword THEN RESPONSE #100 AttackOneRound(FourthNearestEnemyOf(Myself)) END IF See(FifthNearestEnemyOf(Myself)) HasItem("melfmet",Myself) // Melf's Minute Meteor !StateCheck(FifthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FifthNearestEnemyOf(Myself),0,HELD) !StateCheck(FifthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FifthNearestEnemyOf(Myself),75,RESISTPIERCING) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(FifthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",FifthNearestEnemyOf(Myself)) // Mordenkainen's Sword THEN RESPONSE #100 AttackOneRound(FifthNearestEnemyOf(Myself)) END IF See(SixthNearestEnemyOf(Myself)) HasItem("melfmet",Myself) // Melf's Minute Meteor !StateCheck(SixthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SixthNearestEnemyOf(Myself),0,HELD) !StateCheck(SixthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SixthNearestEnemyOf(Myself),75,RESISTPIERCING) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(SixthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",SixthNearestEnemyOf(Myself)) // Mordenkainen's Sword THEN RESPONSE #100 AttackOneRound(SixthNearestEnemyOf(Myself)) END IF See(NearestEnemyOf(Myself)) HasItem("melfmet",Myself) // Melf's Minute Meteor !CheckStatGT(NearestEnemyOf(Myself),99,RESISTPIERCING) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(NearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",NearestEnemyOf(Myself)) // Mordenkainen's Sword THEN RESPONSE #100 AttackOneRound(NearestEnemyOf(Myself)) END IF See(SecondNearestEnemyOf(Myself)) HasItem("melfmet",Myself) // Melf's Minute Meteor !CheckStatGT(SecondNearestEnemyOf(Myself),99,RESISTPIERCING) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(SecondNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",SecondNearestEnemyOf(Myself)) // Mordenkainen's Sword THEN RESPONSE #100 AttackOneRound(SecondNearestEnemyOf(Myself)) END IF See(ThirdNearestEnemyOf(Myself)) HasItem("melfmet",Myself) // Melf's Minute Meteor !CheckStatGT(ThirdNearestEnemyOf(Myself),99,RESISTPIERCING) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(ThirdNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",ThirdNearestEnemyOf(Myself)) // Mordenkainen's Sword THEN RESPONSE #100 AttackOneRound(ThirdNearestEnemyOf(Myself)) END IF See(FourthNearestEnemyOf(Myself)) HasItem("melfmet",Myself) // Melf's Minute Meteor !CheckStatGT(FourthNearestEnemyOf(Myself),99,RESISTPIERCING) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(FourthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",FourthNearestEnemyOf(Myself)) // Mordenkainen's Sword THEN RESPONSE #100 AttackOneRound(FourthNearestEnemyOf(Myself)) END IF See(FifthNearestEnemyOf(Myself)) HasItem("melfmet",Myself) // Melf's Minute Meteor !CheckStatGT(FifthNearestEnemyOf(Myself),99,RESISTPIERCING) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(FifthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",FifthNearestEnemyOf(Myself)) // Mordenkainen's Sword THEN RESPONSE #100 AttackOneRound(FifthNearestEnemyOf(Myself)) END IF See(SixthNearestEnemyOf(Myself)) HasItem("melfmet",Myself) // Melf's Minute Meteor !CheckStatGT(SixthNearestEnemyOf(Myself),99,RESISTPIERCING) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(SixthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",SixthNearestEnemyOf(Myself)) // Mordenkainen's Sword THEN RESPONSE #100 AttackOneRound(SixthNearestEnemyOf(Myself)) END IF See(NearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(NearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",NearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(NearestEnemyOf(Myself),99,RESISTSLASHING) StateCheck(NearestEnemyOf(Myself),RZ_STATE_VULNERABLE) THEN RESPONSE #100 AttackOneRound(NearestEnemyOf(Myself)) END IF See(SecondNearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(SecondNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",SecondNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(SecondNearestEnemyOf(Myself),99,RESISTSLASHING) StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_VULNERABLE) THEN RESPONSE #100 AttackOneRound(SecondNearestEnemyOf(Myself)) END IF See(ThirdNearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(ThirdNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",ThirdNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(ThirdNearestEnemyOf(Myself),99,RESISTSLASHING) StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_VULNERABLE) THEN RESPONSE #100 AttackOneRound(ThirdNearestEnemyOf(Myself)) END IF See(FourthNearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(FourthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",FourthNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(FourthNearestEnemyOf(Myself),99,RESISTSLASHING) StateCheck(FourthNearestEnemyOf(Myself),RZ_STATE_VULNERABLE) THEN RESPONSE #100 AttackOneRound(FourthNearestEnemyOf(Myself)) END IF See(FifthNearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(FifthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",FifthNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(FifthNearestEnemyOf(Myself),99,RESISTSLASHING) StateCheck(FifthNearestEnemyOf(Myself),RZ_STATE_VULNERABLE) THEN RESPONSE #100 AttackOneRound(FifthNearestEnemyOf(Myself)) END IF See(SixthNearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(SixthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",SixthNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(SixthNearestEnemyOf(Myself),99,RESISTSLASHING) StateCheck(SixthNearestEnemyOf(Myself),RZ_STATE_VULNERABLE) THEN RESPONSE #100 AttackOneRound(SixthNearestEnemyOf(Myself)) END IF !GlobalTimerNotExpired("flCast","LOCALS") See(NearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(NearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",NearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(NearestEnemyOf(Myself),99,RESISTSLASHING) !CheckStatGT(NearestEnemyOf(Myself),0,STONESKINS) !StateCheck(NearestEnemyOf(Myself),STATE_MIRRORIMAGE) !StateCheck(NearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) !StateCheck(NearestEnemyOf(Myself),STATE_STONE_DEATH) !Range(NearestEnemyOf(Myself),5) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#TELWE",NearestEnemyOf(Myself)) // Teleport Without Error END IF !GlobalTimerNotExpired("flCast","LOCALS") See(SecondNearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(SecondNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",SecondNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(SecondNearestEnemyOf(Myself),99,RESISTSLASHING) !CheckStatGT(SecondNearestEnemyOf(Myself),0,STONESKINS) !StateCheck(SecondNearestEnemyOf(Myself),STATE_MIRRORIMAGE) !StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) !StateCheck(SecondNearestEnemyOf(Myself),STATE_STONE_DEATH) !Range(SecondNearestEnemyOf(Myself),5) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#TELWE",SecondNearestEnemyOf(Myself)) // Teleport Without Error END IF !GlobalTimerNotExpired("flCast","LOCALS") See(ThirdNearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(ThirdNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",ThirdNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(ThirdNearestEnemyOf(Myself),99,RESISTSLASHING) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,STONESKINS) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_MIRRORIMAGE) !StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_STONE_DEATH) !Range(ThirdNearestEnemyOf(Myself),5) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#TELWE",ThirdNearestEnemyOf(Myself)) // Teleport Without Error END IF !GlobalTimerNotExpired("flCast","LOCALS") See(FourthNearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(FourthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",FourthNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(FourthNearestEnemyOf(Myself),99,RESISTSLASHING) !CheckStatGT(FourthNearestEnemyOf(Myself),0,STONESKINS) !StateCheck(FourthNearestEnemyOf(Myself),STATE_MIRRORIMAGE) !StateCheck(FourthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FourthNearestEnemyOf(Myself),0,HELD) !StateCheck(FourthNearestEnemyOf(Myself),STATE_STONE_DEATH) !Range(FourthNearestEnemyOf(Myself),5) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#TELWE",FourthNearestEnemyOf(Myself)) // Teleport Without Error END IF !GlobalTimerNotExpired("flCast","LOCALS") See(FifthNearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(FifthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",FifthNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(FifthNearestEnemyOf(Myself),99,RESISTSLASHING) !CheckStatGT(FifthNearestEnemyOf(Myself),0,STONESKINS) !StateCheck(FifthNearestEnemyOf(Myself),STATE_MIRRORIMAGE) !StateCheck(FifthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FifthNearestEnemyOf(Myself),0,HELD) !StateCheck(FifthNearestEnemyOf(Myself),STATE_STONE_DEATH) !Range(FifthNearestEnemyOf(Myself),5) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#TELWE",FifthNearestEnemyOf(Myself)) // Teleport Without Error END IF !GlobalTimerNotExpired("flCast","LOCALS") See(SixthNearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(SixthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",SixthNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(SixthNearestEnemyOf(Myself),99,RESISTSLASHING) !CheckStatGT(SixthNearestEnemyOf(Myself),0,STONESKINS) !StateCheck(SixthNearestEnemyOf(Myself),STATE_MIRRORIMAGE) !StateCheck(SixthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SixthNearestEnemyOf(Myself),0,HELD) !StateCheck(SixthNearestEnemyOf(Myself),STATE_STONE_DEATH) !Range(SixthNearestEnemyOf(Myself),5) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#TELWE",SixthNearestEnemyOf(Myself)) // Teleport Without Error END IF See(NearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(NearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",NearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(NearestEnemyOf(Myself),99,RESISTSLASHING) !CheckStatGT(NearestEnemyOf(Myself),0,STONESKINS) !StateCheck(NearestEnemyOf(Myself),STATE_MIRRORIMAGE) !StateCheck(NearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) !StateCheck(NearestEnemyOf(Myself),STATE_STONE_DEATH) THEN RESPONSE #100 AttackOneRound(NearestEnemyOf(Myself)) END IF See(SecondNearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(SecondNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",SecondNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(SecondNearestEnemyOf(Myself),99,RESISTSLASHING) !CheckStatGT(SecondNearestEnemyOf(Myself),0,STONESKINS) !StateCheck(SecondNearestEnemyOf(Myself),STATE_MIRRORIMAGE) !StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) !StateCheck(SecondNearestEnemyOf(Myself),STATE_STONE_DEATH) THEN RESPONSE #100 AttackOneRound(SecondNearestEnemyOf(Myself)) END IF See(ThirdNearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(ThirdNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",ThirdNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(ThirdNearestEnemyOf(Myself),99,RESISTSLASHING) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,STONESKINS) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_MIRRORIMAGE) !StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_STONE_DEATH) THEN RESPONSE #100 AttackOneRound(ThirdNearestEnemyOf(Myself)) END IF See(FourthNearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(FourthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",FourthNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(FourthNearestEnemyOf(Myself),99,RESISTSLASHING) !CheckStatGT(FourthNearestEnemyOf(Myself),0,STONESKINS) !StateCheck(FourthNearestEnemyOf(Myself),STATE_MIRRORIMAGE) !StateCheck(FourthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FourthNearestEnemyOf(Myself),0,HELD) !StateCheck(FourthNearestEnemyOf(Myself),STATE_STONE_DEATH) THEN RESPONSE #100 AttackOneRound(FourthNearestEnemyOf(Myself)) END IF See(FifthNearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(FifthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",FifthNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(FifthNearestEnemyOf(Myself),99,RESISTSLASHING) !CheckStatGT(FifthNearestEnemyOf(Myself),0,STONESKINS) !StateCheck(FifthNearestEnemyOf(Myself),STATE_MIRRORIMAGE) !StateCheck(FifthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FifthNearestEnemyOf(Myself),0,HELD) !StateCheck(FifthNearestEnemyOf(Myself),STATE_STONE_DEATH) THEN RESPONSE #100 AttackOneRound(FifthNearestEnemyOf(Myself)) END IF See(SixthNearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(SixthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",SixthNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(SixthNearestEnemyOf(Myself),99,RESISTSLASHING) !CheckStatGT(SixthNearestEnemyOf(Myself),0,STONESKINS) !StateCheck(SixthNearestEnemyOf(Myself),STATE_MIRRORIMAGE) !StateCheck(SixthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SixthNearestEnemyOf(Myself),0,HELD) !StateCheck(SixthNearestEnemyOf(Myself),STATE_STONE_DEATH) THEN RESPONSE #100 AttackOneRound(SixthNearestEnemyOf(Myself)) END IF !GlobalTimerNotExpired("flCast","LOCALS") See(NearestEnemyOf(Myself)) !StateCheck(NearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) !StateCheck(NearestEnemyOf(Myself),STATE_STONE_DEATH) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(NearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",NearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(NearestEnemyOf(Myself),99,RESISTSLASHING) !Range(NearestEnemyOf(Myself),5) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#TELWE",NearestEnemyOf(Myself)) // Teleport Without Error END IF !GlobalTimerNotExpired("flCast","LOCALS") See(SecondNearestEnemyOf(Myself)) !StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) !StateCheck(SecondNearestEnemyOf(Myself),STATE_STONE_DEATH) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(SecondNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",SecondNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(SecondNearestEnemyOf(Myself),99,RESISTSLASHING) !Range(SecondNearestEnemyOf(Myself),5) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#TELWE",SecondNearestEnemyOf(Myself)) // Teleport Without Error END IF !GlobalTimerNotExpired("flCast","LOCALS") See(ThirdNearestEnemyOf(Myself)) !StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_STONE_DEATH) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(ThirdNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",ThirdNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(ThirdNearestEnemyOf(Myself),99,RESISTSLASHING) !Range(ThirdNearestEnemyOf(Myself),5) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#TELWE",ThirdNearestEnemyOf(Myself)) // Teleport Without Error END IF !GlobalTimerNotExpired("flCast","LOCALS") See(FourthNearestEnemyOf(Myself)) !StateCheck(FourthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FourthNearestEnemyOf(Myself),0,HELD) !StateCheck(FourthNearestEnemyOf(Myself),STATE_STONE_DEATH) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(FourthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",FourthNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(FourthNearestEnemyOf(Myself),99,RESISTSLASHING) !Range(FourthNearestEnemyOf(Myself),5) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#TELWE",FourthNearestEnemyOf(Myself)) // Teleport Without Error END IF !GlobalTimerNotExpired("flCast","LOCALS") See(FifthNearestEnemyOf(Myself)) !StateCheck(FifthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FifthNearestEnemyOf(Myself),0,HELD) !StateCheck(FifthNearestEnemyOf(Myself),STATE_STONE_DEATH) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(FifthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",FifthNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(FifthNearestEnemyOf(Myself),99,RESISTSLASHING) !Range(FifthNearestEnemyOf(Myself),5) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#TELWE",FifthNearestEnemyOf(Myself)) // Teleport Without Error END IF !GlobalTimerNotExpired("flCast","LOCALS") See(SixthNearestEnemyOf(Myself)) !StateCheck(SixthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SixthNearestEnemyOf(Myself),0,HELD) !StateCheck(SixthNearestEnemyOf(Myself),STATE_STONE_DEATH) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(SixthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",SixthNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(SixthNearestEnemyOf(Myself),99,RESISTSLASHING) !Range(SixthNearestEnemyOf(Myself),5) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#TELWE",SixthNearestEnemyOf(Myself)) // Teleport Without Error END IF See(NearestEnemyOf(Myself)) !StateCheck(NearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) !StateCheck(NearestEnemyOf(Myself),STATE_STONE_DEATH) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(NearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",NearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(NearestEnemyOf(Myself),99,RESISTSLASHING) THEN RESPONSE #100 AttackOneRound(NearestEnemyOf(Myself)) END IF See(SecondNearestEnemyOf(Myself)) !StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) !StateCheck(SecondNearestEnemyOf(Myself),STATE_STONE_DEATH) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(SecondNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",SecondNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(SecondNearestEnemyOf(Myself),99,RESISTSLASHING) THEN RESPONSE #100 AttackOneRound(SecondNearestEnemyOf(Myself)) END IF See(ThirdNearestEnemyOf(Myself)) !StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_STONE_DEATH) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(ThirdNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",ThirdNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(ThirdNearestEnemyOf(Myself),99,RESISTSLASHING) THEN RESPONSE #100 AttackOneRound(ThirdNearestEnemyOf(Myself)) END IF See(FourthNearestEnemyOf(Myself)) !StateCheck(FourthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FourthNearestEnemyOf(Myself),0,HELD) !StateCheck(FourthNearestEnemyOf(Myself),STATE_STONE_DEATH) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(FourthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",FourthNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(FourthNearestEnemyOf(Myself),99,RESISTSLASHING) THEN RESPONSE #100 AttackOneRound(FourthNearestEnemyOf(Myself)) END IF See(FifthNearestEnemyOf(Myself)) !StateCheck(FifthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FifthNearestEnemyOf(Myself),0,HELD) !StateCheck(FifthNearestEnemyOf(Myself),STATE_STONE_DEATH) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(FifthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",FifthNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(FifthNearestEnemyOf(Myself),99,RESISTSLASHING) THEN RESPONSE #100 AttackOneRound(FifthNearestEnemyOf(Myself)) END IF See(SixthNearestEnemyOf(Myself)) !StateCheck(SixthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SixthNearestEnemyOf(Myself),0,HELD) !StateCheck(SixthNearestEnemyOf(Myself),STATE_STONE_DEATH) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(SixthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",SixthNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(SixthNearestEnemyOf(Myself),99,RESISTSLASHING) THEN RESPONSE #100 AttackOneRound(SixthNearestEnemyOf(Myself)) END IF !GlobalTimerNotExpired("flCast","LOCALS") See(NearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(NearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",NearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(NearestEnemyOf(Myself),99,RESISTSLASHING) !Range(NearestEnemyOf(Myself),5) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#TELWE",NearestEnemyOf(Myself)) // Teleport Without Error END IF !GlobalTimerNotExpired("flCast","LOCALS") See(SecondNearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(SecondNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",SecondNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(SecondNearestEnemyOf(Myself),99,RESISTSLASHING) !Range(SecondNearestEnemyOf(Myself),5) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#TELWE",SecondNearestEnemyOf(Myself)) // Teleport Without Error END IF !GlobalTimerNotExpired("flCast","LOCALS") See(ThirdNearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(ThirdNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",ThirdNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(ThirdNearestEnemyOf(Myself),99,RESISTSLASHING) !Range(ThirdNearestEnemyOf(Myself),5) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#TELWE",ThirdNearestEnemyOf(Myself)) // Teleport Without Error END IF !GlobalTimerNotExpired("flCast","LOCALS") See(FourthNearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(FourthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",FourthNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(FourthNearestEnemyOf(Myself),99,RESISTSLASHING) !Range(FourthNearestEnemyOf(Myself),5) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#TELWE",FourthNearestEnemyOf(Myself)) // Teleport Without Error END IF !GlobalTimerNotExpired("flCast","LOCALS") See(FifthNearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(FifthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",FifthNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(FifthNearestEnemyOf(Myself),99,RESISTSLASHING) !Range(FifthNearestEnemyOf(Myself),5) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#TELWE",FifthNearestEnemyOf(Myself)) // Teleport Without Error END IF !GlobalTimerNotExpired("flCast","LOCALS") See(SixthNearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(SixthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",SixthNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(SixthNearestEnemyOf(Myself),99,RESISTSLASHING) !Range(SixthNearestEnemyOf(Myself),5) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#TELWE",SixthNearestEnemyOf(Myself)) // Teleport Without Error END IF See(NearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(NearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",NearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(NearestEnemyOf(Myself),99,RESISTSLASHING) THEN RESPONSE #100 AttackOneRound(NearestEnemyOf(Myself)) END IF See(SecondNearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(SecondNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",SecondNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(SecondNearestEnemyOf(Myself),99,RESISTSLASHING) THEN RESPONSE #100 AttackOneRound(SecondNearestEnemyOf(Myself)) END IF See(ThirdNearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(ThirdNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",ThirdNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(ThirdNearestEnemyOf(Myself),99,RESISTSLASHING) THEN RESPONSE #100 AttackOneRound(ThirdNearestEnemyOf(Myself)) END IF See(FourthNearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(FourthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",FourthNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(FourthNearestEnemyOf(Myself),99,RESISTSLASHING) THEN RESPONSE #100 AttackOneRound(FourthNearestEnemyOf(Myself)) END IF See(FifthNearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(FifthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",FifthNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(FifthNearestEnemyOf(Myself),99,RESISTSLASHING) THEN RESPONSE #100 AttackOneRound(FifthNearestEnemyOf(Myself)) END IF See(SixthNearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(SixthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",SixthNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(SixthNearestEnemyOf(Myself),99,RESISTSLASHING) THEN RESPONSE #100 AttackOneRound(SixthNearestEnemyOf(Myself)) END IF !GlobalTimerNotExpired("flCast","LOCALS") !StateCheck(Myself,STATE_INVISIBLE) !CheckStatGT(NearestEnemyOf(Myself),0,TRUE_SIGHT) !CheckStatGT(SecondNearestEnemyOf(Myself),0,TRUE_SIGHT) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,TRUE_SIGHT) !CheckStatGT(FourthNearestEnemyOf(Myself),0,TRUE_SIGHT) !CheckStatGT(FifthNearestEnemyOf(Myself),0,TRUE_SIGHT) !CheckStatGT(SixthNearestEnemyOf(Myself),0,TRUE_SIGHT) !CheckStatGT(SeventhNearestEnemyOf(Myself),0,TRUE_SIGHT) !CheckStatGT(EighthNearestEnemyOf(Myself),0,TRUE_SIGHT) !CheckStatGT(NinthNearestEnemyOf(Myself),0,TRUE_SIGHT) !CheckStatGT(TenthNearestEnemyOf(Myself),0,TRUE_SIGHT) !CheckStatGT(NearestEnemyOfType([0.0.0.LONG_BOW]),0,TRUE_SIGHT) !CheckStatGT(SecondNearestEnemyOfType([0.0.0.LONG_BOW]),0,TRUE_SIGHT) !CheckStatGT(NearestEnemyOfType([0.0.0.CLERIC_ALL]),0,TRUE_SIGHT) !CheckStatGT(SecondNearestEnemyOfType([0.0.0.CLERIC_ALL]),0,TRUE_SIGHT) !CheckStatGT(NearestEnemyOfType([0.0.0.BARD_ALL]),0,TRUE_SIGHT) !CheckStatGT(NearestEnemyOfType([0.0.0.CLERIC_RANGER]),0,TRUE_SIGHT) !CheckStatGT(NearestEnemyOfType([0.0.0.DRUID_ALL]),0,TRUE_SIGHT) !CheckStatGT(SecondNearestEnemyOfType([0.0.0.DRUID_ALL]),0,TRUE_SIGHT) !Global("dvgldust","LOCALS",1) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#WI206",Myself) // Invisibility RESPONSE #25 Continue() END IF Global("RR#NOPND","GLOBAL",0) Allegiance(Myself,EVILCUTOFF) !AreaType(OUTDOOR) !Range(NearestEnemyOf(Myself),30) Range(NearestDoor,15) OpenState(NearestDoor,FALSE) THEN RESPONSE #100 MoveToObject(NearestDoor) OpenDoor(NearestDoor) END IF ActionListEmpty() THEN RESPONSE #100 RandomWalkContinuous() END Edit: Here's what it typically looks like: Link to comment
scorpio Posted January 2, 2014 Author Share Posted January 2, 2014 Hmm, I'm not sure whether dw#cacof.spl is being used... If I open up the mage14a or Lavok01 CREs, and open up the cacofiend spell they have memorized (SPWI707.SPL) and follow its LCNEUTRAL EFF, that then has FL#SARCA.EFF (NOT DW#SUMYA.EFF) and that itn turn has FL#SARCA.CRE (Arcanaloth) (NOT FL#ARCSU.CRE), which then has FL#SARCA.BCS (NOT FL#ARCSU.BCS). Here is FL#SARCA.BCS: IF Die() Global("fl#EACheck","LOCALS",1) Global("fl#XP","LOCALS",0) THEN RESPONSE #100 SetGlobal("fl#XP","LOCALS",1) AddexperienceParty(20000) END IF HasItem("dw#sumfi",Myself) // No such index THEN RESPONSE #100 DestroyItem("dw#sumfi") // No such index Continue() END IF Global("fl#EACheck","LOCALS",0) Allegiance(LastSummonerOf(Myself),GOODCUTOFF) THEN RESPONSE #100 SetInterrupt(FALSE) SetGlobal("fl#EACheck","LOCALS",2) DialogInterrupt(FALSE) LeaveParty() ChangeEnemyAlly(Myself,ALLY) SetInterrupt(TRUE) END IF Global("fl#EACheck","LOCALS",0) OR(2) Allegiance(LastSummonerOf(Myself),EVILCUTOFF) !Exists(LastSummonerOf(Myself)) THEN RESPONSE #100 SetInterrupt(FALSE) SetGlobal("fl#EACheck","LOCALS",1) Enemy() SetInterrupt(TRUE) END IF Global("fl#EACheck","LOCALS",2) Global("fl#Hostile","LOCALS",1) Allegiance(Myself,EVILCUTOFF) !See([PC]) THEN RESPONSE #100 SetInterrupt(FALSE) LeaveParty() ChangeEnemyAlly(Myself,ALLY) SetGlobal("fl#Hostile","LOCALS",0) SetInterrupt(TRUE) END IF Global("fl#EACheck","LOCALS",2) Global("fl#Hostile","LOCALS",0) !Allegiance(Myself,EVILCUTOFF) See([PC]) THEN RESPONSE #100 SetInterrupt(FALSE) SetGlobal("fl#Hostile","LOCALS",1) Enemy() SetInterrupt(TRUE) END IF See(LastSummonerOf(Myself)) Global("fl#Summoner","LOCALS",0) Exists(LastSummonerOf(Myself)) Allegiance(Myself,EVILCUTOFF) Allegiance(LastSummonerOf(Myself),GOODCUTOFF) !CheckStatGT(LastSummonerOf(Myself),0,PROTECTION_FROM_EVIL) !HasItemEquipedReal("staf11",LastSummonerOf(Myself)) // Staff of the Magi +5 !HasItemEquiped("wa2amu",LastSummonerOf(Myself)) // Sensate Amulet !StateCheck(LastSummonerOf(Myself),STATE_REALLY_DEAD) !StateCheck(Myself,STATE_INVISIBLE) THEN RESPONSE #100 SetInterrupt(FALSE) SetGlobal("fl#Summoner","LOCALS",1) FaceObject(LastSummonerOf(Myself)) DisplayStringHead(Myself,166931) // Foolish mortal! You have unleashed powers far beyond your comprehension by summoning me here. SetInterrupt(TRUE) END IF StateCheck(Myself,STATE_REALLY_DEAD) THEN RESPONSE #100 NoAction() END IF !InActiveArea(Myself) !See([ANYONE]) THEN RESPONSE #100 NoAction() END IF !GlobalTimerNotExpired("flCast","LOCALS") OR(2) AreaCheck("AR3004") AreaCheck("AR3008") THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",TEN_TURNS) END IF Global("flDecideMinorSequencer","LOCALS",0) THEN RESPONSE #100 SetGlobal("flDecideMinorSequencer","LOCALS",1) RESPONSE #100 SetGlobal("flDecideMinorSequencer","LOCALS",2) END IF Global("flContingency","LOCALS",0) THEN RESPONSE #100 DisplayStringHead(Myself,25942) // Contingency ReallyForceSpell(Myself,WIZARD_IMPROVED_INVISIBILITY) SetGlobal("flContingency","LOCALS",1) RESPONSE #100 DisplayStringHead(Myself,25942) // Contingency ReallyForceSpell(Myself,WIZARD_MINOR_GLOBE_OF_INVULNERABILITY) SetGlobal("flContingency","LOCALS",2) RESPONSE #100 DisplayStringHead(Myself,25942) // Contingency ReallyForceSpell(Myself,WIZARD_STONE_SKIN) SetGlobal("flContingency","LOCALS",3) RESPONSE #100 DisplayStringHead(Myself,25942) // Contingency ReallyForceSpell(Myself,WIZARD_PROTECTION_FROM_COLD) SetGlobal("flContingency","LOCALS",4) RESPONSE #100 DisplayStringHead(Myself,25942) // Contingency ReallyForceSpell(Myself,WIZARD_MELF_METEOR) SetGlobal("flContingency","LOCALS",5) RESPONSE #100 DisplayStringHead(Myself,25942) // Contingency ReallyForceSpell(Myself,WIZARD_FIRE_SHIELD_BLUE) SetGlobal("flContingency","LOCALS",6) END IF !GlobalTimerNotExpired("flCast","LOCALS") Allegiance(Myself,GOODCUTOFF) AttackedBy([GOODCUTOFF],DEFAULT) CheckStatGT(LastAttackerOf(Myself),0,PROTECTION_FROM_EVIL) !See(NearestEnemyOf(Myself)) THEN RESPONSE #100 SetInterrupt(FALSE) DisplayStringHead(Myself,166917) // Bah, mortals are ever fools! SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#TELAW",Myself) // Teleport Without Error SetInterrupt(TRUE) END IF !GlobalTimerNotExpired("RR#Help","LOCALS") See(NearestEnemyOf(Myself)) THEN RESPONSE #100 SetGlobalTimer("RR#Help","LOCALS",TWO_ROUNDS) GlobalShout(5827) Continue() END IF !GlobalTimerNotExpired("RR#Cast","LOCALS") Allegiance(Myself,GOODCUTOFF) !Range(NearestEnemyOf(Myself),20) Heard([GOODCUTOFF.0.DEMONIC.0.0.0.MASK_CHAOTIC],5827) InMyArea(LastHeardBy(Myself)) !Range(LastHeardBy(Myself),12) !StateCheck(LastHeardBy(Myself),STATE_REALLY_DEAD) THEN RESPONSE #100 SetGlobalTimer("RR#Cast","LOCALS",ONE_ROUND) ForceSpellRES("RR#TELWE",LastHeardBy(Myself)) // Teleport Without Error END IF !GlobalTimerNotExpired("RR#Cast","LOCALS") Allegiance(Myself,EVILCUTOFF) !Range(NearestEnemyOf(Myself),20) Heard([EVILCUTOFF.0.DEMONIC.0.0.0.MASK_CHAOTIC],5827) InMyArea(LastHeardBy(Myself)) !Range(LastHeardBy(Myself),12) !StateCheck(LastHeardBy(Myself),STATE_REALLY_DEAD) THEN RESPONSE #100 SetGlobalTimer("RR#Cast","LOCALS",ONE_ROUND) ForceSpellRES("RR#TELWE",LastHeardBy(Myself)) // Teleport Without Error END IF See(LastAttackerOf(Myself)) !GlobalTimerNotExpired("flCast","LOCALS") Exists(LastAttackerOf(Myself)) !Range(LastAttackerOf(Myself),6) InMyArea(LastAttackerOf(Myself)) OR(2) !Allegiance(LastAttackerOf(Myself),GOODCUTOFF) !Allegiance(Myself,GOODCUTOFF) !StateCheck(LastAttackerOf(Myself),STATE_REALLY_DEAD) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(LastAttackerOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(LastAttackerOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(LastAttackerOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(LastAttackerOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(LastAttackerOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",LastAttackerOf(Myself)) // Mordenkainen's Sword !CheckStatGT(LastAttackerOf(Myself),99,RESISTSLASHING) !CheckStatGT(LastAttackerOf(Myself),0,PROTECTION_FROM_EVIL) !HasItemEquipedReal("staf11",LastAttackerOf(Myself)) // Staff of the Magi +5 !HasItemEquiped("wa2amu",LastAttackerOf(Myself)) // Sensate Amulet !See(NearestEnemyOf(Myself)) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#TELWE",LastAttackerOf(Myself)) // Teleport Without Error END IF !GlobalTimerNotExpired("flCast","LOCALS") OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(SixthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",SixthNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(SixthNearestEnemyOf(Myself),99,RESISTSLASHING) StateCheck(SixthNearestEnemyOf(Myself),RZ_STATE_VULNERABLE) !Range(SixthNearestEnemyOf(Myself),6) See(SixthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(FifthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",FifthNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(FifthNearestEnemyOf(Myself),99,RESISTSLASHING) StateCheck(FifthNearestEnemyOf(Myself),RZ_STATE_VULNERABLE) !Range(FifthNearestEnemyOf(Myself),6) See(FifthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(FourthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",FourthNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(FourthNearestEnemyOf(Myself),99,RESISTSLASHING) StateCheck(FourthNearestEnemyOf(Myself),RZ_STATE_VULNERABLE) !Range(FourthNearestEnemyOf(Myself),6) See(FourthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(ThirdNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",ThirdNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(ThirdNearestEnemyOf(Myself),99,RESISTSLASHING) StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_VULNERABLE) !Range(ThirdNearestEnemyOf(Myself),6) See(ThirdNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(SecondNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",SecondNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(SecondNearestEnemyOf(Myself),99,RESISTSLASHING) StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_VULNERABLE) !Range(SecondNearestEnemyOf(Myself),6) See(SecondNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(NearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",NearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(NearestEnemyOf(Myself),99,RESISTSLASHING) StateCheck(NearestEnemyOf(Myself),RZ_STATE_VULNERABLE) !Range(NearestEnemyOf(Myself),6) See(NearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(LastSeenBy(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(LastSeenBy(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(LastSeenBy(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(LastSeenBy(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(LastSeenBy(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",LastSeenBy(Myself)) // Mordenkainen's Sword !CheckStatGT(LastSeenBy(Myself),99,RESISTSLASHING) StateCheck(LastSeenBy(Myself),RZ_STATE_VULNERABLE) !Range(LastSeenBy(Myself),6) See(LastSeenBy(Myself)) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#TELWE",LastSeenBy(Myself)) // Teleport Without Error END IF !GlobalTimerNotExpired("fl#Taunt","LOCALS") !GlobalTimerNotExpired("flCast","LOCALS") !StateCheck(Myself,STATE_INVISIBLE) !See(NearestEnemyOf(Myself)) See([0.HUMANOID.0.INNOCENT]) !Range(LastSeenBy(Myself),8) THEN RESPONSE #40 SetInterrupt(FALSE) SetGlobalTimer("fl#Taunt","LOCALS",TWO_ROUNDS) ForceSpellRES("RR#TELWE",LastSeenBy(Myself)) // Teleport Without Error SetGlobalTimer("flCast","LOCALS",ONE_ROUND) DisplayStringHead(Myself,166942) // Mortal, your soul is mine! ApplySpellRES("RR#FEAR",LastSeenBy(Myself)) // No such index DisplayStringHead(LastSeenBy(Myself),166943) // Aaaaiiiieeee! SetInterrupt(TRUE) RESPONSE #30 SetInterrupt(FALSE) SetGlobalTimer("fl#Taunt","LOCALS",TWO_ROUNDS) ForceSpellRES("RR#TELWE",LastSeenBy(Myself)) // Teleport Without Error SetGlobalTimer("flCast","LOCALS",ONE_ROUND) DisplayStringHead(Myself,166944) // Your existence has come to an end, mortal. ApplySpellRES("RR#FEAR",LastSeenBy(Myself)) // No such index DisplayStringHead(LastSeenBy(Myself),166945) // N-No, don't harm me, please! SetInterrupt(TRUE) RESPONSE #30 SetInterrupt(FALSE) SetGlobalTimer("fl#Taunt","LOCALS",TWO_ROUNDS) ForceSpellRES("RR#TELWE",LastSeenBy(Myself)) // Teleport Without Error SetGlobalTimer("flCast","LOCALS",ONE_ROUND) DisplayStringHead(Myself,166946) // Delicious mortal, your suffering will be beyond your wildest imagination. ApplySpellRES("RR#FEAR",LastSeenBy(Myself)) // No such index DisplayStringHead(LastSeenBy(Myself),166947) // Gods...No, please! SetInterrupt(TRUE) END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_STONE_SKIN) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !CheckStatGT(Myself,0,STONESKINS) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) Spell(Myself,WIZARD_STONE_SKIN) END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_PROTECTION_FROM_COLD) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !CheckStatGT(Myself,0,RESISTCOLD) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) Spell(Myself,WIZARD_PROTECTION_FROM_COLD) RESPONSE #50 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_MELF_METEOR) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !HasItem("melfmet",Myself) // Melf's Minute Meteor !Range(NearestEnemyOf(Myself),5) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) Spell(Myself,WIZARD_MELF_METEOR) RESPONSE #50 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_MIRROR_IMAGE) See(NearestEnemyOf(Myself)) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !CheckStatGT(NearestEnemyOf(Myself),0,TRUE_SIGHT) !CheckStatGT(SecondNearestEnemyOf(Myself),0,TRUE_SIGHT) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,TRUE_SIGHT) !CheckStatGT(FourthNearestEnemyOf(Myself),0,TRUE_SIGHT) !CheckStatGT(FifthNearestEnemyOf(Myself),0,TRUE_SIGHT) !CheckStatGT(SixthNearestEnemyOf(Myself),0,TRUE_SIGHT) !CheckStatGT(SeventhNearestEnemyOf(Myself),0,TRUE_SIGHT) !CheckStatGT(EighthNearestEnemyOf(Myself),0,TRUE_SIGHT) !CheckStatGT(NinthNearestEnemyOf(Myself),0,TRUE_SIGHT) !CheckStatGT(TenthNearestEnemyOf(Myself),0,TRUE_SIGHT) !CheckStatGT(NearestEnemyOfType([0.0.0.LONG_BOW]),0,TRUE_SIGHT) !CheckStatGT(SecondNearestEnemyOfType([0.0.0.LONG_BOW]),0,TRUE_SIGHT) !CheckStatGT(NearestEnemyOfType([0.0.0.CLERIC_ALL]),0,TRUE_SIGHT) !CheckStatGT(SecondNearestEnemyOfType([0.0.0.CLERIC_ALL]),0,TRUE_SIGHT) !CheckStatGT(NearestEnemyOfType([0.0.0.BARD_ALL]),0,TRUE_SIGHT) !CheckStatGT(NearestEnemyOfType([0.0.0.CLERIC_RANGER]),0,TRUE_SIGHT) !CheckStatGT(NearestEnemyOfType([0.0.0.DRUID_ALL]),0,TRUE_SIGHT) !CheckStatGT(SecondNearestEnemyOfType([0.0.0.DRUID_ALL]),0,TRUE_SIGHT) !StateCheck(Myself,STATE_MIRRORIMAGE) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) Spell(Myself,WIZARD_MIRROR_IMAGE) RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_SECRET_WORD) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(NearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) !StateCheck(NearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) OR(5) CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_IMMUNITY) CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) CheckStat(NearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) CheckStatGT(NearestEnemyOf(Myself),0,MINORGLOBE) !Race(NearestEnemyOf(Myself),RAKSHASA) !Race(NearestEnemyOf(Myself),LICH) See(NearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_SECRET_WORD) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(ThirdNearestEnemyOfType([0.0.0.DRUID_ALL]),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOfType([0.0.0.DRUID_ALL]),0,HELD) !StateCheck(ThirdNearestEnemyOfType([0.0.0.DRUID_ALL]),STATE_STONE_DEATH) !CheckStatGT(ThirdNearestEnemyOfType([0.0.0.DRUID_ALL]),0,WIZARD_SPELL_TRAP) OR(5) CheckStatGT(ThirdNearestEnemyOfType([0.0.0.DRUID_ALL]),0,WIZARD_SPELL_IMMUNITY) CheckStatGT(ThirdNearestEnemyOfType([0.0.0.DRUID_ALL]),0,WIZARD_SPELL_DEFLECTION) CheckStatGT(ThirdNearestEnemyOfType([0.0.0.DRUID_ALL]),0,WIZARD_SPELL_TURNING) CheckStat(ThirdNearestEnemyOfType([0.0.0.DRUID_ALL]),1,CLERIC_SHIELD_OF_THE_ARCHONS) CheckStatGT(ThirdNearestEnemyOfType([0.0.0.DRUID_ALL]),0,MINORGLOBE) !Race(ThirdNearestEnemyOfType([0.0.0.DRUID_ALL]),RAKSHASA) !Race(ThirdNearestEnemyOfType([0.0.0.DRUID_ALL]),LICH) See(ThirdNearestEnemyOfType([0.0.0.DRUID_ALL])) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_SECRET_WORD) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(ThirdNearestEnemyOfType([0.0.0.CLERIC_RANGER]),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOfType([0.0.0.CLERIC_RANGER]),0,HELD) !StateCheck(ThirdNearestEnemyOfType([0.0.0.CLERIC_RANGER]),STATE_STONE_DEATH) !CheckStatGT(ThirdNearestEnemyOfType([0.0.0.CLERIC_RANGER]),0,WIZARD_SPELL_TRAP) OR(5) CheckStatGT(ThirdNearestEnemyOfType([0.0.0.CLERIC_RANGER]),0,WIZARD_SPELL_IMMUNITY) CheckStatGT(ThirdNearestEnemyOfType([0.0.0.CLERIC_RANGER]),0,WIZARD_SPELL_DEFLECTION) CheckStatGT(ThirdNearestEnemyOfType([0.0.0.CLERIC_RANGER]),0,WIZARD_SPELL_TURNING) CheckStat(ThirdNearestEnemyOfType([0.0.0.CLERIC_RANGER]),1,CLERIC_SHIELD_OF_THE_ARCHONS) CheckStatGT(ThirdNearestEnemyOfType([0.0.0.CLERIC_RANGER]),0,MINORGLOBE) !Race(ThirdNearestEnemyOfType([0.0.0.CLERIC_RANGER]),RAKSHASA) !Race(ThirdNearestEnemyOfType([0.0.0.CLERIC_RANGER]),LICH) See(ThirdNearestEnemyOfType([0.0.0.CLERIC_RANGER])) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_SECRET_WORD) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(ThirdNearestEnemyOfType([0.0.0.CLERIC_ALL]),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOfType([0.0.0.CLERIC_ALL]),0,HELD) !StateCheck(ThirdNearestEnemyOfType([0.0.0.CLERIC_ALL]),STATE_STONE_DEATH) !CheckStatGT(ThirdNearestEnemyOfType([0.0.0.CLERIC_ALL]),0,WIZARD_SPELL_TRAP) OR(5) CheckStatGT(ThirdNearestEnemyOfType([0.0.0.CLERIC_ALL]),0,WIZARD_SPELL_IMMUNITY) CheckStatGT(ThirdNearestEnemyOfType([0.0.0.CLERIC_ALL]),0,WIZARD_SPELL_DEFLECTION) CheckStatGT(ThirdNearestEnemyOfType([0.0.0.CLERIC_ALL]),0,WIZARD_SPELL_TURNING) CheckStat(ThirdNearestEnemyOfType([0.0.0.CLERIC_ALL]),1,CLERIC_SHIELD_OF_THE_ARCHONS) CheckStatGT(ThirdNearestEnemyOfType([0.0.0.CLERIC_ALL]),0,MINORGLOBE) !Race(ThirdNearestEnemyOfType([0.0.0.CLERIC_ALL]),RAKSHASA) !Race(ThirdNearestEnemyOfType([0.0.0.CLERIC_ALL]),LICH) See(ThirdNearestEnemyOfType([0.0.0.CLERIC_ALL])) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_SECRET_WORD) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(ThirdNearestEnemyOfType([0.0.0.LONG_BOW]),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOfType([0.0.0.LONG_BOW]),0,HELD) !StateCheck(ThirdNearestEnemyOfType([0.0.0.LONG_BOW]),STATE_STONE_DEATH) !CheckStatGT(ThirdNearestEnemyOfType([0.0.0.LONG_BOW]),0,WIZARD_SPELL_TRAP) OR(5) CheckStatGT(ThirdNearestEnemyOfType([0.0.0.LONG_BOW]),0,WIZARD_SPELL_IMMUNITY) CheckStatGT(ThirdNearestEnemyOfType([0.0.0.LONG_BOW]),0,WIZARD_SPELL_DEFLECTION) CheckStatGT(ThirdNearestEnemyOfType([0.0.0.LONG_BOW]),0,WIZARD_SPELL_TURNING) CheckStat(ThirdNearestEnemyOfType([0.0.0.LONG_BOW]),1,CLERIC_SHIELD_OF_THE_ARCHONS) CheckStatGT(ThirdNearestEnemyOfType([0.0.0.LONG_BOW]),0,MINORGLOBE) !Race(ThirdNearestEnemyOfType([0.0.0.LONG_BOW]),RAKSHASA) !Race(ThirdNearestEnemyOfType([0.0.0.LONG_BOW]),LICH) See(ThirdNearestEnemyOfType([0.0.0.LONG_BOW])) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_SECRET_WORD) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(SecondNearestEnemyOfType([0.0.0.DRUID_ALL]),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOfType([0.0.0.DRUID_ALL]),0,HELD) !StateCheck(SecondNearestEnemyOfType([0.0.0.DRUID_ALL]),STATE_STONE_DEATH) !CheckStatGT(SecondNearestEnemyOfType([0.0.0.DRUID_ALL]),0,WIZARD_SPELL_TRAP) OR(5) CheckStatGT(SecondNearestEnemyOfType([0.0.0.DRUID_ALL]),0,WIZARD_SPELL_IMMUNITY) CheckStatGT(SecondNearestEnemyOfType([0.0.0.DRUID_ALL]),0,WIZARD_SPELL_DEFLECTION) CheckStatGT(SecondNearestEnemyOfType([0.0.0.DRUID_ALL]),0,WIZARD_SPELL_TURNING) CheckStat(SecondNearestEnemyOfType([0.0.0.DRUID_ALL]),1,CLERIC_SHIELD_OF_THE_ARCHONS) CheckStatGT(SecondNearestEnemyOfType([0.0.0.DRUID_ALL]),0,MINORGLOBE) !Race(SecondNearestEnemyOfType([0.0.0.DRUID_ALL]),RAKSHASA) !Race(SecondNearestEnemyOfType([0.0.0.DRUID_ALL]),LICH) See(SecondNearestEnemyOfType([0.0.0.DRUID_ALL])) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_SECRET_WORD) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(SecondNearestEnemyOfType([0.0.0.CLERIC_RANGER]),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOfType([0.0.0.CLERIC_RANGER]),0,HELD) !StateCheck(SecondNearestEnemyOfType([0.0.0.CLERIC_RANGER]),STATE_STONE_DEATH) !CheckStatGT(SecondNearestEnemyOfType([0.0.0.CLERIC_RANGER]),0,WIZARD_SPELL_TRAP) OR(5) CheckStatGT(SecondNearestEnemyOfType([0.0.0.CLERIC_RANGER]),0,WIZARD_SPELL_IMMUNITY) CheckStatGT(SecondNearestEnemyOfType([0.0.0.CLERIC_RANGER]),0,WIZARD_SPELL_DEFLECTION) CheckStatGT(SecondNearestEnemyOfType([0.0.0.CLERIC_RANGER]),0,WIZARD_SPELL_TURNING) CheckStat(SecondNearestEnemyOfType([0.0.0.CLERIC_RANGER]),1,CLERIC_SHIELD_OF_THE_ARCHONS) CheckStatGT(SecondNearestEnemyOfType([0.0.0.CLERIC_RANGER]),0,MINORGLOBE) !Race(SecondNearestEnemyOfType([0.0.0.CLERIC_RANGER]),RAKSHASA) !Race(SecondNearestEnemyOfType([0.0.0.CLERIC_RANGER]),LICH) See(SecondNearestEnemyOfType([0.0.0.CLERIC_RANGER])) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_SECRET_WORD) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(SecondNearestEnemyOfType([0.0.0.CLERIC_ALL]),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOfType([0.0.0.CLERIC_ALL]),0,HELD) !StateCheck(SecondNearestEnemyOfType([0.0.0.CLERIC_ALL]),STATE_STONE_DEATH) !CheckStatGT(SecondNearestEnemyOfType([0.0.0.CLERIC_ALL]),0,WIZARD_SPELL_TRAP) OR(5) CheckStatGT(SecondNearestEnemyOfType([0.0.0.CLERIC_ALL]),0,WIZARD_SPELL_IMMUNITY) CheckStatGT(SecondNearestEnemyOfType([0.0.0.CLERIC_ALL]),0,WIZARD_SPELL_DEFLECTION) CheckStatGT(SecondNearestEnemyOfType([0.0.0.CLERIC_ALL]),0,WIZARD_SPELL_TURNING) CheckStat(SecondNearestEnemyOfType([0.0.0.CLERIC_ALL]),1,CLERIC_SHIELD_OF_THE_ARCHONS) CheckStatGT(SecondNearestEnemyOfType([0.0.0.CLERIC_ALL]),0,MINORGLOBE) !Race(SecondNearestEnemyOfType([0.0.0.CLERIC_ALL]),RAKSHASA) !Race(SecondNearestEnemyOfType([0.0.0.CLERIC_ALL]),LICH) See(SecondNearestEnemyOfType([0.0.0.CLERIC_ALL])) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_SECRET_WORD) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(SecondNearestEnemyOfType([0.0.0.LONG_BOW]),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOfType([0.0.0.LONG_BOW]),0,HELD) !StateCheck(SecondNearestEnemyOfType([0.0.0.LONG_BOW]),STATE_STONE_DEATH) !CheckStatGT(SecondNearestEnemyOfType([0.0.0.LONG_BOW]),0,WIZARD_SPELL_TRAP) OR(5) CheckStatGT(SecondNearestEnemyOfType([0.0.0.LONG_BOW]),0,WIZARD_SPELL_IMMUNITY) CheckStatGT(SecondNearestEnemyOfType([0.0.0.LONG_BOW]),0,WIZARD_SPELL_DEFLECTION) CheckStatGT(SecondNearestEnemyOfType([0.0.0.LONG_BOW]),0,WIZARD_SPELL_TURNING) CheckStat(SecondNearestEnemyOfType([0.0.0.LONG_BOW]),1,CLERIC_SHIELD_OF_THE_ARCHONS) CheckStatGT(SecondNearestEnemyOfType([0.0.0.LONG_BOW]),0,MINORGLOBE) !Race(SecondNearestEnemyOfType([0.0.0.LONG_BOW]),RAKSHASA) !Race(SecondNearestEnemyOfType([0.0.0.LONG_BOW]),LICH) See(SecondNearestEnemyOfType([0.0.0.LONG_BOW])) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_SECRET_WORD) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(NearestEnemyOfType([0.0.0.DRUID_ALL]),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOfType([0.0.0.DRUID_ALL]),0,HELD) !StateCheck(NearestEnemyOfType([0.0.0.DRUID_ALL]),STATE_STONE_DEATH) !CheckStatGT(NearestEnemyOfType([0.0.0.DRUID_ALL]),0,WIZARD_SPELL_TRAP) OR(5) CheckStatGT(NearestEnemyOfType([0.0.0.DRUID_ALL]),0,WIZARD_SPELL_IMMUNITY) CheckStatGT(NearestEnemyOfType([0.0.0.DRUID_ALL]),0,WIZARD_SPELL_DEFLECTION) CheckStatGT(NearestEnemyOfType([0.0.0.DRUID_ALL]),0,WIZARD_SPELL_TURNING) CheckStat(NearestEnemyOfType([0.0.0.DRUID_ALL]),1,CLERIC_SHIELD_OF_THE_ARCHONS) CheckStatGT(NearestEnemyOfType([0.0.0.DRUID_ALL]),0,MINORGLOBE) !Race(NearestEnemyOfType([0.0.0.DRUID_ALL]),RAKSHASA) !Race(NearestEnemyOfType([0.0.0.DRUID_ALL]),LICH) See(NearestEnemyOfType([0.0.0.DRUID_ALL])) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_SECRET_WORD) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(NearestEnemyOfType([0.0.0.CLERIC_RANGER]),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOfType([0.0.0.CLERIC_RANGER]),0,HELD) !StateCheck(NearestEnemyOfType([0.0.0.CLERIC_RANGER]),STATE_STONE_DEATH) !CheckStatGT(NearestEnemyOfType([0.0.0.CLERIC_RANGER]),0,WIZARD_SPELL_TRAP) OR(5) CheckStatGT(NearestEnemyOfType([0.0.0.CLERIC_RANGER]),0,WIZARD_SPELL_IMMUNITY) CheckStatGT(NearestEnemyOfType([0.0.0.CLERIC_RANGER]),0,WIZARD_SPELL_DEFLECTION) CheckStatGT(NearestEnemyOfType([0.0.0.CLERIC_RANGER]),0,WIZARD_SPELL_TURNING) CheckStat(NearestEnemyOfType([0.0.0.CLERIC_RANGER]),1,CLERIC_SHIELD_OF_THE_ARCHONS) CheckStatGT(NearestEnemyOfType([0.0.0.CLERIC_RANGER]),0,MINORGLOBE) !Race(NearestEnemyOfType([0.0.0.CLERIC_RANGER]),RAKSHASA) !Race(NearestEnemyOfType([0.0.0.CLERIC_RANGER]),LICH) See(NearestEnemyOfType([0.0.0.CLERIC_RANGER])) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_SECRET_WORD) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(NearestEnemyOfType([0.0.0.CLERIC_ALL]),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOfType([0.0.0.CLERIC_ALL]),0,HELD) !StateCheck(NearestEnemyOfType([0.0.0.CLERIC_ALL]),STATE_STONE_DEATH) !CheckStatGT(NearestEnemyOfType([0.0.0.CLERIC_ALL]),0,WIZARD_SPELL_TRAP) OR(5) CheckStatGT(NearestEnemyOfType([0.0.0.CLERIC_ALL]),0,WIZARD_SPELL_IMMUNITY) CheckStatGT(NearestEnemyOfType([0.0.0.CLERIC_ALL]),0,WIZARD_SPELL_DEFLECTION) CheckStatGT(NearestEnemyOfType([0.0.0.CLERIC_ALL]),0,WIZARD_SPELL_TURNING) CheckStat(NearestEnemyOfType([0.0.0.CLERIC_ALL]),1,CLERIC_SHIELD_OF_THE_ARCHONS) CheckStatGT(NearestEnemyOfType([0.0.0.CLERIC_ALL]),0,MINORGLOBE) !Race(NearestEnemyOfType([0.0.0.CLERIC_ALL]),RAKSHASA) !Race(NearestEnemyOfType([0.0.0.CLERIC_ALL]),LICH) See(NearestEnemyOfType([0.0.0.CLERIC_ALL])) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_SECRET_WORD) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(NearestEnemyOfType([0.0.0.LONG_BOW]),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOfType([0.0.0.LONG_BOW]),0,HELD) !StateCheck(NearestEnemyOfType([0.0.0.LONG_BOW]),STATE_STONE_DEATH) !CheckStatGT(NearestEnemyOfType([0.0.0.LONG_BOW]),0,WIZARD_SPELL_TRAP) OR(5) CheckStatGT(NearestEnemyOfType([0.0.0.LONG_BOW]),0,WIZARD_SPELL_IMMUNITY) CheckStatGT(NearestEnemyOfType([0.0.0.LONG_BOW]),0,WIZARD_SPELL_DEFLECTION) CheckStatGT(NearestEnemyOfType([0.0.0.LONG_BOW]),0,WIZARD_SPELL_TURNING) CheckStat(NearestEnemyOfType([0.0.0.LONG_BOW]),1,CLERIC_SHIELD_OF_THE_ARCHONS) CheckStatGT(NearestEnemyOfType([0.0.0.LONG_BOW]),0,MINORGLOBE) !Race(NearestEnemyOfType([0.0.0.LONG_BOW]),RAKSHASA) !Race(NearestEnemyOfType([0.0.0.LONG_BOW]),LICH) See(NearestEnemyOfType([0.0.0.LONG_BOW])) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_SECRET_WORD) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(LastSeenBy(Myself),RZ_STATE_DISABLED) !CheckStatGT(LastSeenBy(Myself),0,HELD) !StateCheck(LastSeenBy(Myself),STATE_STONE_DEATH) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TRAP) OR(5) CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_IMMUNITY) CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_DEFLECTION) CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TURNING) CheckStat(LastSeenBy(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) CheckStatGT(LastSeenBy(Myself),0,MINORGLOBE) !Race(LastSeenBy(Myself),RAKSHASA) !Race(LastSeenBy(Myself),LICH) See(LastSeenBy(Myself)) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) Spell(LastSeenBy(Myself),WIZARD_SECRET_WORD) RESPONSE #33 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_BREACH) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SixthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(SixthNearestEnemyOf(Myself),1,WIZARD_SPELL_IMMUNITY) !StateCheck(SixthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SixthNearestEnemyOf(Myself),0,HELD) !StateCheck(SixthNearestEnemyOf(Myself),STATE_STONE_DEATH) OR(5) CheckStatGT(SixthNearestEnemyOf(Myself),0,TRUE_SIGHT) CheckStatGT(SixthNearestEnemyOf(Myself),0,STONESKINS) CheckStatGT(SixthNearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) CheckStatGT(SixthNearestEnemyOf(Myself),0,CLERIC_FREE_ACTION) CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_RESIST_FEAR) !Race(SixthNearestEnemyOf(Myself),RAKSHASA) !Race(SixthNearestEnemyOf(Myself),LICH) See(SixthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_BREACH) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FifthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(FifthNearestEnemyOf(Myself),1,WIZARD_SPELL_IMMUNITY) !StateCheck(FifthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FifthNearestEnemyOf(Myself),0,HELD) !StateCheck(FifthNearestEnemyOf(Myself),STATE_STONE_DEATH) OR(5) CheckStatGT(FifthNearestEnemyOf(Myself),0,TRUE_SIGHT) CheckStatGT(FifthNearestEnemyOf(Myself),0,STONESKINS) CheckStatGT(FifthNearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) CheckStatGT(FifthNearestEnemyOf(Myself),0,CLERIC_FREE_ACTION) CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_RESIST_FEAR) !Race(FifthNearestEnemyOf(Myself),RAKSHASA) !Race(FifthNearestEnemyOf(Myself),LICH) See(FifthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_BREACH) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FourthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(FourthNearestEnemyOf(Myself),1,WIZARD_SPELL_IMMUNITY) !StateCheck(FourthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FourthNearestEnemyOf(Myself),0,HELD) !StateCheck(FourthNearestEnemyOf(Myself),STATE_STONE_DEATH) OR(5) CheckStatGT(FourthNearestEnemyOf(Myself),0,TRUE_SIGHT) CheckStatGT(FourthNearestEnemyOf(Myself),0,STONESKINS) CheckStatGT(FourthNearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) CheckStatGT(FourthNearestEnemyOf(Myself),0,CLERIC_FREE_ACTION) CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_RESIST_FEAR) !Race(FourthNearestEnemyOf(Myself),RAKSHASA) !Race(FourthNearestEnemyOf(Myself),LICH) See(FourthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_BREACH) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(ThirdNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(ThirdNearestEnemyOf(Myself),1,WIZARD_SPELL_IMMUNITY) !StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_STONE_DEATH) OR(5) CheckStatGT(ThirdNearestEnemyOf(Myself),0,TRUE_SIGHT) CheckStatGT(ThirdNearestEnemyOf(Myself),0,STONESKINS) CheckStatGT(ThirdNearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) CheckStatGT(ThirdNearestEnemyOf(Myself),0,CLERIC_FREE_ACTION) CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_RESIST_FEAR) !Race(ThirdNearestEnemyOf(Myself),RAKSHASA) !Race(ThirdNearestEnemyOf(Myself),LICH) See(ThirdNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_BREACH) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SecondNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(SecondNearestEnemyOf(Myself),1,WIZARD_SPELL_IMMUNITY) !StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) !StateCheck(SecondNearestEnemyOf(Myself),STATE_STONE_DEATH) OR(5) CheckStatGT(SecondNearestEnemyOf(Myself),0,TRUE_SIGHT) CheckStatGT(SecondNearestEnemyOf(Myself),0,STONESKINS) CheckStatGT(SecondNearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) CheckStatGT(SecondNearestEnemyOf(Myself),0,CLERIC_FREE_ACTION) CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_RESIST_FEAR) !Race(SecondNearestEnemyOf(Myself),RAKSHASA) !Race(SecondNearestEnemyOf(Myself),LICH) See(SecondNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_BREACH) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(NearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(NearestEnemyOf(Myself),1,WIZARD_SPELL_IMMUNITY) !StateCheck(NearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) !StateCheck(NearestEnemyOf(Myself),STATE_STONE_DEATH) OR(5) CheckStatGT(NearestEnemyOf(Myself),0,TRUE_SIGHT) CheckStatGT(NearestEnemyOf(Myself),0,STONESKINS) CheckStatGT(NearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) CheckStatGT(NearestEnemyOf(Myself),0,CLERIC_FREE_ACTION) CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_RESIST_FEAR) !Race(NearestEnemyOf(Myself),RAKSHASA) !Race(NearestEnemyOf(Myself),LICH) See(NearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_BREACH) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(LastSeenBy(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(LastSeenBy(Myself),1,WIZARD_SPELL_IMMUNITY) !StateCheck(LastSeenBy(Myself),RZ_STATE_DISABLED) !CheckStatGT(LastSeenBy(Myself),0,HELD) !StateCheck(LastSeenBy(Myself),STATE_STONE_DEATH) OR(5) CheckStatGT(LastSeenBy(Myself),0,TRUE_SIGHT) CheckStatGT(LastSeenBy(Myself),0,STONESKINS) CheckStatGT(LastSeenBy(Myself),0,CLERIC_CHAOTIC_COMMANDS) CheckStatGT(LastSeenBy(Myself),0,CLERIC_FREE_ACTION) CheckStatGT(LastSeenBy(Myself),0,WIZARD_RESIST_FEAR) !Race(LastSeenBy(Myself),RAKSHASA) !Race(LastSeenBy(Myself),LICH) See(LastSeenBy(Myself)) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) Spell(LastSeenBy(Myself),WIZARD_BREACH) RESPONSE #33 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_GREATER_MALISON) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(SixthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SixthNearestEnemyOf(Myself),0,HELD) !StateCheck(SixthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SixthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(SixthNearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !Race(SixthNearestEnemyOf(Myself),RAKSHASA) !Race(SixthNearestEnemyOf(Myself),LICH) See(SixthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_GREATER_MALISON) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(FifthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FifthNearestEnemyOf(Myself),0,HELD) !StateCheck(FifthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FifthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(FifthNearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !Race(FifthNearestEnemyOf(Myself),RAKSHASA) !Race(FifthNearestEnemyOf(Myself),LICH) See(FifthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_GREATER_MALISON) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(FourthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FourthNearestEnemyOf(Myself),0,HELD) !StateCheck(FourthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FourthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(FourthNearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !Race(FourthNearestEnemyOf(Myself),RAKSHASA) !Race(FourthNearestEnemyOf(Myself),LICH) See(FourthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_GREATER_MALISON) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(ThirdNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(ThirdNearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !Race(ThirdNearestEnemyOf(Myself),RAKSHASA) !Race(ThirdNearestEnemyOf(Myself),LICH) See(ThirdNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_GREATER_MALISON) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) !StateCheck(SecondNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SecondNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(SecondNearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !Race(SecondNearestEnemyOf(Myself),RAKSHASA) !Race(SecondNearestEnemyOf(Myself),LICH) See(SecondNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_GREATER_MALISON) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(NearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) !StateCheck(NearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(NearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(NearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !Race(NearestEnemyOf(Myself),RAKSHASA) !Race(NearestEnemyOf(Myself),LICH) See(NearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_GREATER_MALISON) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(LastSeenBy(Myself),RZ_STATE_DISABLED) !CheckStatGT(LastSeenBy(Myself),0,HELD) !StateCheck(LastSeenBy(Myself),STATE_STONE_DEATH) !CheckStatGT(LastSeenBy(Myself),50,RESISTMAGIC) !CheckStat(LastSeenBy(Myself),4,WIZARD_SPELL_IMMUNITY) !Race(LastSeenBy(Myself),RAKSHASA) !Race(LastSeenBy(Myself),LICH) See(LastSeenBy(Myself)) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) Spell(LastSeenBy(Myself),WIZARD_GREATER_MALISON) RESPONSE #33 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_CHAOS) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(SixthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SixthNearestEnemyOf(Myself),0,HELD) !StateCheck(SixthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SixthNearestEnemyOf(Myself),50,RESISTMAGIC) !General(SixthNearestEnemyOf(Myself),UNDEAD) !Race(SixthNearestEnemyOf(Myself),SLIME) !Race(SixthNearestEnemyOf(Myself),DEMONIC) !Race(SixthNearestEnemyOf(Myself),TROLL) !Race(SixthNearestEnemyOf(Myself),UMBERHULK) !CheckStatGT(SixthNearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(SixthNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItem("ipsion",SixthNearestEnemyOf(Myself)) // Greenstone Amulet !HasItemEquiped("leat20",SixthNearestEnemyOf(Myself)) // Aeger's Hide +3 !HasItemEquiped("shld25",SixthNearestEnemyOf(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("sw1h54",SixthNearestEnemyOf(Myself)) // The Equalizer +4 !HasItemEquipedReal("sw2h14",SixthNearestEnemyOf(Myself)) // Lilarcor +3 !HasItemEquipedReal("sw2h21",SixthNearestEnemyOf(Myself)) // Psion's Blade +4 !CheckStat(SixthNearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !Race(SixthNearestEnemyOf(Myself),RAKSHASA) See(SixthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_CHAOS) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(FifthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FifthNearestEnemyOf(Myself),0,HELD) !StateCheck(FifthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FifthNearestEnemyOf(Myself),50,RESISTMAGIC) !General(FifthNearestEnemyOf(Myself),UNDEAD) !Race(FifthNearestEnemyOf(Myself),SLIME) !Race(FifthNearestEnemyOf(Myself),DEMONIC) !Race(FifthNearestEnemyOf(Myself),TROLL) !Race(FifthNearestEnemyOf(Myself),UMBERHULK) !CheckStatGT(FifthNearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(FifthNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItem("ipsion",FifthNearestEnemyOf(Myself)) // Greenstone Amulet !HasItemEquiped("leat20",FifthNearestEnemyOf(Myself)) // Aeger's Hide +3 !HasItemEquiped("shld25",FifthNearestEnemyOf(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("sw1h54",FifthNearestEnemyOf(Myself)) // The Equalizer +4 !HasItemEquipedReal("sw2h14",FifthNearestEnemyOf(Myself)) // Lilarcor +3 !HasItemEquipedReal("sw2h21",FifthNearestEnemyOf(Myself)) // Psion's Blade +4 !CheckStat(FifthNearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !Race(FifthNearestEnemyOf(Myself),RAKSHASA) See(FifthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_CHAOS) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(FourthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FourthNearestEnemyOf(Myself),0,HELD) !StateCheck(FourthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FourthNearestEnemyOf(Myself),50,RESISTMAGIC) !General(FourthNearestEnemyOf(Myself),UNDEAD) !Race(FourthNearestEnemyOf(Myself),SLIME) !Race(FourthNearestEnemyOf(Myself),DEMONIC) !Race(FourthNearestEnemyOf(Myself),TROLL) !Race(FourthNearestEnemyOf(Myself),UMBERHULK) !CheckStatGT(FourthNearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(FourthNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItem("ipsion",FourthNearestEnemyOf(Myself)) // Greenstone Amulet !HasItemEquiped("leat20",FourthNearestEnemyOf(Myself)) // Aeger's Hide +3 !HasItemEquiped("shld25",FourthNearestEnemyOf(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("sw1h54",FourthNearestEnemyOf(Myself)) // The Equalizer +4 !HasItemEquipedReal("sw2h14",FourthNearestEnemyOf(Myself)) // Lilarcor +3 !HasItemEquipedReal("sw2h21",FourthNearestEnemyOf(Myself)) // Psion's Blade +4 !CheckStat(FourthNearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !Race(FourthNearestEnemyOf(Myself),RAKSHASA) See(FourthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_CHAOS) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(ThirdNearestEnemyOf(Myself),50,RESISTMAGIC) !General(ThirdNearestEnemyOf(Myself),UNDEAD) !Race(ThirdNearestEnemyOf(Myself),SLIME) !Race(ThirdNearestEnemyOf(Myself),DEMONIC) !Race(ThirdNearestEnemyOf(Myself),TROLL) !Race(ThirdNearestEnemyOf(Myself),UMBERHULK) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(ThirdNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItem("ipsion",ThirdNearestEnemyOf(Myself)) // Greenstone Amulet !HasItemEquiped("leat20",ThirdNearestEnemyOf(Myself)) // Aeger's Hide +3 !HasItemEquiped("shld25",ThirdNearestEnemyOf(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("sw1h54",ThirdNearestEnemyOf(Myself)) // The Equalizer +4 !HasItemEquipedReal("sw2h14",ThirdNearestEnemyOf(Myself)) // Lilarcor +3 !HasItemEquipedReal("sw2h21",ThirdNearestEnemyOf(Myself)) // Psion's Blade +4 !CheckStat(ThirdNearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !Race(ThirdNearestEnemyOf(Myself),RAKSHASA) See(ThirdNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_CHAOS) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) !StateCheck(SecondNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SecondNearestEnemyOf(Myself),50,RESISTMAGIC) !General(SecondNearestEnemyOf(Myself),UNDEAD) !Race(SecondNearestEnemyOf(Myself),SLIME) !Race(SecondNearestEnemyOf(Myself),DEMONIC) !Race(SecondNearestEnemyOf(Myself),TROLL) !Race(SecondNearestEnemyOf(Myself),UMBERHULK) !CheckStatGT(SecondNearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(SecondNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItem("ipsion",SecondNearestEnemyOf(Myself)) // Greenstone Amulet !HasItemEquiped("leat20",SecondNearestEnemyOf(Myself)) // Aeger's Hide +3 !HasItemEquiped("shld25",SecondNearestEnemyOf(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("sw1h54",SecondNearestEnemyOf(Myself)) // The Equalizer +4 !HasItemEquipedReal("sw2h14",SecondNearestEnemyOf(Myself)) // Lilarcor +3 !HasItemEquipedReal("sw2h21",SecondNearestEnemyOf(Myself)) // Psion's Blade +4 !CheckStat(SecondNearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !Race(SecondNearestEnemyOf(Myself),RAKSHASA) See(SecondNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_CHAOS) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(NearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) !StateCheck(NearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(NearestEnemyOf(Myself),50,RESISTMAGIC) !General(NearestEnemyOf(Myself),UNDEAD) !Race(NearestEnemyOf(Myself),SLIME) !Race(NearestEnemyOf(Myself),DEMONIC) !Race(NearestEnemyOf(Myself),TROLL) !Race(NearestEnemyOf(Myself),UMBERHULK) !CheckStatGT(NearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(NearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItem("ipsion",NearestEnemyOf(Myself)) // Greenstone Amulet !HasItemEquiped("leat20",NearestEnemyOf(Myself)) // Aeger's Hide +3 !HasItemEquiped("shld25",NearestEnemyOf(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("sw1h54",NearestEnemyOf(Myself)) // The Equalizer +4 !HasItemEquipedReal("sw2h14",NearestEnemyOf(Myself)) // Lilarcor +3 !HasItemEquipedReal("sw2h21",NearestEnemyOf(Myself)) // Psion's Blade +4 !CheckStat(NearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !Race(NearestEnemyOf(Myself),RAKSHASA) See(NearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_CHAOS) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(LastSeenBy(Myself),RZ_STATE_DISABLED) !CheckStatGT(LastSeenBy(Myself),0,HELD) !StateCheck(LastSeenBy(Myself),STATE_STONE_DEATH) !CheckStatGT(LastSeenBy(Myself),50,RESISTMAGIC) !General(LastSeenBy(Myself),UNDEAD) !Race(LastSeenBy(Myself),SLIME) !Race(LastSeenBy(Myself),DEMONIC) !Race(LastSeenBy(Myself),TROLL) !Race(LastSeenBy(Myself),UMBERHULK) !CheckStatGT(LastSeenBy(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(LastSeenBy(Myself),1,SCRIPTINGSTATE4) !HasItem("ipsion",LastSeenBy(Myself)) // Greenstone Amulet !HasItemEquiped("leat20",LastSeenBy(Myself)) // Aeger's Hide +3 !HasItemEquiped("shld25",LastSeenBy(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("sw1h54",LastSeenBy(Myself)) // The Equalizer +4 !HasItemEquipedReal("sw2h14",LastSeenBy(Myself)) // Lilarcor +3 !HasItemEquipedReal("sw2h21",LastSeenBy(Myself)) // Psion's Blade +4 !CheckStat(LastSeenBy(Myself),4,WIZARD_SPELL_IMMUNITY) !Race(LastSeenBy(Myself),RAKSHASA) See(LastSeenBy(Myself)) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) Spell(LastSeenBy(Myself),WIZARD_CHAOS) RESPONSE #50 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_CHAIN_LIGHTNING) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(SixthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SixthNearestEnemyOf(Myself),0,HELD) !StateCheck(SixthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SixthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(SixthNearestEnemyOf(Myself),50,RESISTELECTRICITY) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SixthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(SixthNearestEnemyOf(Myself),6,WIZARD_SPELL_IMMUNITY) !HasItemEquiped("clck24",SixthNearestEnemyOf(Myself)) // Stormlord's Cloak !HasItemEquiped("clck26",SixthNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(SixthNearestEnemyOf(Myself),RAKSHASA) See(SixthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_CHAIN_LIGHTNING) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(FifthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FifthNearestEnemyOf(Myself),0,HELD) !StateCheck(FifthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FifthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(FifthNearestEnemyOf(Myself),50,RESISTELECTRICITY) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FifthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(FifthNearestEnemyOf(Myself),6,WIZARD_SPELL_IMMUNITY) !HasItemEquiped("clck24",FifthNearestEnemyOf(Myself)) // Stormlord's Cloak !HasItemEquiped("clck26",FifthNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(FifthNearestEnemyOf(Myself),RAKSHASA) See(FifthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_CHAIN_LIGHTNING) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(FourthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FourthNearestEnemyOf(Myself),0,HELD) !StateCheck(FourthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FourthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(FourthNearestEnemyOf(Myself),50,RESISTELECTRICITY) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FourthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(FourthNearestEnemyOf(Myself),6,WIZARD_SPELL_IMMUNITY) !HasItemEquiped("clck24",FourthNearestEnemyOf(Myself)) // Stormlord's Cloak !HasItemEquiped("clck26",FourthNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(FourthNearestEnemyOf(Myself),RAKSHASA) See(FourthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_CHAIN_LIGHTNING) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(ThirdNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(ThirdNearestEnemyOf(Myself),50,RESISTELECTRICITY) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(ThirdNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(ThirdNearestEnemyOf(Myself),6,WIZARD_SPELL_IMMUNITY) !HasItemEquiped("clck24",ThirdNearestEnemyOf(Myself)) // Stormlord's Cloak !HasItemEquiped("clck26",ThirdNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(ThirdNearestEnemyOf(Myself),RAKSHASA) See(ThirdNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_CHAIN_LIGHTNING) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) !StateCheck(SecondNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SecondNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(SecondNearestEnemyOf(Myself),50,RESISTELECTRICITY) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SecondNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(SecondNearestEnemyOf(Myself),6,WIZARD_SPELL_IMMUNITY) !HasItemEquiped("clck24",SecondNearestEnemyOf(Myself)) // Stormlord's Cloak !HasItemEquiped("clck26",SecondNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(SecondNearestEnemyOf(Myself),RAKSHASA) See(SecondNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_CHAIN_LIGHTNING) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(NearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) !StateCheck(NearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(NearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(NearestEnemyOf(Myself),50,RESISTELECTRICITY) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(NearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(NearestEnemyOf(Myself),6,WIZARD_SPELL_IMMUNITY) !HasItemEquiped("clck24",NearestEnemyOf(Myself)) // Stormlord's Cloak !HasItemEquiped("clck26",NearestEnemyOf(Myself)) // Cloak of Mirroring !Race(NearestEnemyOf(Myself),RAKSHASA) See(NearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_CHAIN_LIGHTNING) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(LastSeenBy(Myself),RZ_STATE_DISABLED) !CheckStatGT(LastSeenBy(Myself),0,HELD) !StateCheck(LastSeenBy(Myself),STATE_STONE_DEATH) !CheckStatGT(LastSeenBy(Myself),50,RESISTMAGIC) !CheckStatGT(LastSeenBy(Myself),50,RESISTELECTRICITY) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(LastSeenBy(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(LastSeenBy(Myself),6,WIZARD_SPELL_IMMUNITY) !HasItemEquiped("clck24",LastSeenBy(Myself)) // Stormlord's Cloak !HasItemEquiped("clck26",LastSeenBy(Myself)) // Cloak of Mirroring !Race(LastSeenBy(Myself),RAKSHASA) See(LastSeenBy(Myself)) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) Spell(LastSeenBy(Myself),WIZARD_CHAIN_LIGHTNING) RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_DOMINATION) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(SixthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SixthNearestEnemyOf(Myself),0,HELD) !StateCheck(SixthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SixthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SixthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(SixthNearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !General(SixthNearestEnemyOf(Myself),UNDEAD) !Race(SixthNearestEnemyOf(Myself),ELF) !Race(SixthNearestEnemyOf(Myself),GOLEM) !Race(SixthNearestEnemyOf(Myself),SLIME) !Race(SixthNearestEnemyOf(Myself),DEMONIC) !Race(SixthNearestEnemyOf(Myself),TROLL) !Class(SixthNearestEnemyOf(Myself),MONK) !Kit(SixthNearestEnemyOf(Myself),INQUISITOR) !Kit(SixthNearestEnemyOf(Myself),CAVALIER) !CheckStatGT(SixthNearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(SixthNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("helm06",SixthNearestEnemyOf(Myself)) // Helm of Charm Protection !HasItemEquiped("ipsion",SixthNearestEnemyOf(Myself)) // Greenstone Amulet !HasItemEquipedReal("miscbc",SixthNearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("npchan",SixthNearestEnemyOf(Myself)) // Corthala Family Armor +3 !HasItemEquiped("shld25",SixthNearestEnemyOf(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("sper07",SixthNearestEnemyOf(Myself)) // Spear of the Unicorn +2 !HasItemEquipedReal("staf11",SixthNearestEnemyOf(Myself)) // Staff of the Magi +5 !HasItemEquipedReal("sw1h35",SixthNearestEnemyOf(Myself)) // Adjatha The Drinker +2 !HasItemEquipedReal("sw1h54",SixthNearestEnemyOf(Myself)) // The Equalizer +4 !HasItemEquipedReal("sw2h14",SixthNearestEnemyOf(Myself)) // Lilarcor +3 OR(2) !Gender(SixthNearestEnemyOf(Myself),SUMMONED) !Gender(SixthNearestEnemyOf(Myself),20) !Race(SixthNearestEnemyOf(Myself),RAKSHASA) See(SixthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_DOMINATION) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(FifthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FifthNearestEnemyOf(Myself),0,HELD) !StateCheck(FifthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FifthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FifthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(FifthNearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !General(FifthNearestEnemyOf(Myself),UNDEAD) !Race(FifthNearestEnemyOf(Myself),ELF) !Race(FifthNearestEnemyOf(Myself),GOLEM) !Race(FifthNearestEnemyOf(Myself),SLIME) !Race(FifthNearestEnemyOf(Myself),DEMONIC) !Race(FifthNearestEnemyOf(Myself),TROLL) !Class(FifthNearestEnemyOf(Myself),MONK) !Kit(FifthNearestEnemyOf(Myself),INQUISITOR) !Kit(FifthNearestEnemyOf(Myself),CAVALIER) !CheckStatGT(FifthNearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(FifthNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("helm06",FifthNearestEnemyOf(Myself)) // Helm of Charm Protection !HasItemEquiped("ipsion",FifthNearestEnemyOf(Myself)) // Greenstone Amulet !HasItemEquipedReal("miscbc",FifthNearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("npchan",FifthNearestEnemyOf(Myself)) // Corthala Family Armor +3 !HasItemEquiped("shld25",FifthNearestEnemyOf(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("sper07",FifthNearestEnemyOf(Myself)) // Spear of the Unicorn +2 !HasItemEquipedReal("staf11",FifthNearestEnemyOf(Myself)) // Staff of the Magi +5 !HasItemEquipedReal("sw1h35",FifthNearestEnemyOf(Myself)) // Adjatha The Drinker +2 !HasItemEquipedReal("sw1h54",FifthNearestEnemyOf(Myself)) // The Equalizer +4 !HasItemEquipedReal("sw2h14",FifthNearestEnemyOf(Myself)) // Lilarcor +3 OR(2) !Gender(FifthNearestEnemyOf(Myself),SUMMONED) !Gender(FifthNearestEnemyOf(Myself),20) !Race(FifthNearestEnemyOf(Myself),RAKSHASA) See(FifthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_DOMINATION) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(FourthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FourthNearestEnemyOf(Myself),0,HELD) !StateCheck(FourthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FourthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FourthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(FourthNearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !General(FourthNearestEnemyOf(Myself),UNDEAD) !Race(FourthNearestEnemyOf(Myself),ELF) !Race(FourthNearestEnemyOf(Myself),GOLEM) !Race(FourthNearestEnemyOf(Myself),SLIME) !Race(FourthNearestEnemyOf(Myself),DEMONIC) !Race(FourthNearestEnemyOf(Myself),TROLL) !Class(FourthNearestEnemyOf(Myself),MONK) !Kit(FourthNearestEnemyOf(Myself),INQUISITOR) !Kit(FourthNearestEnemyOf(Myself),CAVALIER) !CheckStatGT(FourthNearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(FourthNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("helm06",FourthNearestEnemyOf(Myself)) // Helm of Charm Protection !HasItemEquiped("ipsion",FourthNearestEnemyOf(Myself)) // Greenstone Amulet !HasItemEquipedReal("miscbc",FourthNearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("npchan",FourthNearestEnemyOf(Myself)) // Corthala Family Armor +3 !HasItemEquiped("shld25",FourthNearestEnemyOf(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("sper07",FourthNearestEnemyOf(Myself)) // Spear of the Unicorn +2 !HasItemEquipedReal("staf11",FourthNearestEnemyOf(Myself)) // Staff of the Magi +5 !HasItemEquipedReal("sw1h35",FourthNearestEnemyOf(Myself)) // Adjatha The Drinker +2 !HasItemEquipedReal("sw1h54",FourthNearestEnemyOf(Myself)) // The Equalizer +4 !HasItemEquipedReal("sw2h14",FourthNearestEnemyOf(Myself)) // Lilarcor +3 OR(2) !Gender(FourthNearestEnemyOf(Myself),SUMMONED) !Gender(FourthNearestEnemyOf(Myself),20) !Race(FourthNearestEnemyOf(Myself),RAKSHASA) See(FourthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_DOMINATION) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(ThirdNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(ThirdNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(ThirdNearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !General(ThirdNearestEnemyOf(Myself),UNDEAD) !Race(ThirdNearestEnemyOf(Myself),ELF) !Race(ThirdNearestEnemyOf(Myself),GOLEM) !Race(ThirdNearestEnemyOf(Myself),SLIME) !Race(ThirdNearestEnemyOf(Myself),DEMONIC) !Race(ThirdNearestEnemyOf(Myself),TROLL) !Class(ThirdNearestEnemyOf(Myself),MONK) !Kit(ThirdNearestEnemyOf(Myself),INQUISITOR) !Kit(ThirdNearestEnemyOf(Myself),CAVALIER) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(ThirdNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("helm06",ThirdNearestEnemyOf(Myself)) // Helm of Charm Protection !HasItemEquiped("ipsion",ThirdNearestEnemyOf(Myself)) // Greenstone Amulet !HasItemEquipedReal("miscbc",ThirdNearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("npchan",ThirdNearestEnemyOf(Myself)) // Corthala Family Armor +3 !HasItemEquiped("shld25",ThirdNearestEnemyOf(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("sper07",ThirdNearestEnemyOf(Myself)) // Spear of the Unicorn +2 !HasItemEquipedReal("staf11",ThirdNearestEnemyOf(Myself)) // Staff of the Magi +5 !HasItemEquipedReal("sw1h35",ThirdNearestEnemyOf(Myself)) // Adjatha The Drinker +2 !HasItemEquipedReal("sw1h54",ThirdNearestEnemyOf(Myself)) // The Equalizer +4 !HasItemEquipedReal("sw2h14",ThirdNearestEnemyOf(Myself)) // Lilarcor +3 OR(2) !Gender(ThirdNearestEnemyOf(Myself),SUMMONED) !Gender(ThirdNearestEnemyOf(Myself),20) !Race(ThirdNearestEnemyOf(Myself),RAKSHASA) See(ThirdNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_DOMINATION) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) !StateCheck(SecondNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SecondNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SecondNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(SecondNearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !General(SecondNearestEnemyOf(Myself),UNDEAD) !Race(SecondNearestEnemyOf(Myself),ELF) !Race(SecondNearestEnemyOf(Myself),GOLEM) !Race(SecondNearestEnemyOf(Myself),SLIME) !Race(SecondNearestEnemyOf(Myself),DEMONIC) !Race(SecondNearestEnemyOf(Myself),TROLL) !Class(SecondNearestEnemyOf(Myself),MONK) !Kit(SecondNearestEnemyOf(Myself),INQUISITOR) !Kit(SecondNearestEnemyOf(Myself),CAVALIER) !CheckStatGT(SecondNearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(SecondNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("helm06",SecondNearestEnemyOf(Myself)) // Helm of Charm Protection !HasItemEquiped("ipsion",SecondNearestEnemyOf(Myself)) // Greenstone Amulet !HasItemEquipedReal("miscbc",SecondNearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("npchan",SecondNearestEnemyOf(Myself)) // Corthala Family Armor +3 !HasItemEquiped("shld25",SecondNearestEnemyOf(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("sper07",SecondNearestEnemyOf(Myself)) // Spear of the Unicorn +2 !HasItemEquipedReal("staf11",SecondNearestEnemyOf(Myself)) // Staff of the Magi +5 !HasItemEquipedReal("sw1h35",SecondNearestEnemyOf(Myself)) // Adjatha The Drinker +2 !HasItemEquipedReal("sw1h54",SecondNearestEnemyOf(Myself)) // The Equalizer +4 !HasItemEquipedReal("sw2h14",SecondNearestEnemyOf(Myself)) // Lilarcor +3 OR(2) !Gender(SecondNearestEnemyOf(Myself),SUMMONED) !Gender(SecondNearestEnemyOf(Myself),20) !Race(SecondNearestEnemyOf(Myself),RAKSHASA) See(SecondNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_DOMINATION) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(NearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) !StateCheck(NearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(NearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(NearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(NearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !General(NearestEnemyOf(Myself),UNDEAD) !Race(NearestEnemyOf(Myself),ELF) !Race(NearestEnemyOf(Myself),GOLEM) !Race(NearestEnemyOf(Myself),SLIME) !Race(NearestEnemyOf(Myself),DEMONIC) !Race(NearestEnemyOf(Myself),TROLL) !Class(NearestEnemyOf(Myself),MONK) !Kit(NearestEnemyOf(Myself),INQUISITOR) !Kit(NearestEnemyOf(Myself),CAVALIER) !CheckStatGT(NearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(NearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("helm06",NearestEnemyOf(Myself)) // Helm of Charm Protection !HasItemEquiped("ipsion",NearestEnemyOf(Myself)) // Greenstone Amulet !HasItemEquipedReal("miscbc",NearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("npchan",NearestEnemyOf(Myself)) // Corthala Family Armor +3 !HasItemEquiped("shld25",NearestEnemyOf(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("sper07",NearestEnemyOf(Myself)) // Spear of the Unicorn +2 !HasItemEquipedReal("staf11",NearestEnemyOf(Myself)) // Staff of the Magi +5 !HasItemEquipedReal("sw1h35",NearestEnemyOf(Myself)) // Adjatha The Drinker +2 !HasItemEquipedReal("sw1h54",NearestEnemyOf(Myself)) // The Equalizer +4 !HasItemEquipedReal("sw2h14",NearestEnemyOf(Myself)) // Lilarcor +3 OR(2) !Gender(NearestEnemyOf(Myself),SUMMONED) !Gender(NearestEnemyOf(Myself),20) !Race(NearestEnemyOf(Myself),RAKSHASA) See(NearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_DOMINATION) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(LastSeenBy(Myself),RZ_STATE_DISABLED) !CheckStatGT(LastSeenBy(Myself),0,HELD) !StateCheck(LastSeenBy(Myself),STATE_STONE_DEATH) !CheckStatGT(LastSeenBy(Myself),50,RESISTMAGIC) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(LastSeenBy(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(LastSeenBy(Myself),4,WIZARD_SPELL_IMMUNITY) !General(LastSeenBy(Myself),UNDEAD) !Race(LastSeenBy(Myself),ELF) !Race(LastSeenBy(Myself),GOLEM) !Race(LastSeenBy(Myself),SLIME) !Race(LastSeenBy(Myself),DEMONIC) !Race(LastSeenBy(Myself),TROLL) !Class(LastSeenBy(Myself),MONK) !Kit(LastSeenBy(Myself),INQUISITOR) !Kit(LastSeenBy(Myself),CAVALIER) !CheckStatGT(LastSeenBy(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(LastSeenBy(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("helm06",LastSeenBy(Myself)) // Helm of Charm Protection !HasItemEquiped("ipsion",LastSeenBy(Myself)) // Greenstone Amulet !HasItemEquipedReal("miscbc",LastSeenBy(Myself)) // Blackrazor +3 !HasItemEquiped("npchan",LastSeenBy(Myself)) // Corthala Family Armor +3 !HasItemEquiped("shld25",LastSeenBy(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("sper07",LastSeenBy(Myself)) // Spear of the Unicorn +2 !HasItemEquipedReal("staf11",LastSeenBy(Myself)) // Staff of the Magi +5 !HasItemEquipedReal("sw1h35",LastSeenBy(Myself)) // Adjatha The Drinker +2 !HasItemEquipedReal("sw1h54",LastSeenBy(Myself)) // The Equalizer +4 !HasItemEquipedReal("sw2h14",LastSeenBy(Myself)) // Lilarcor +3 OR(2) !Gender(LastSeenBy(Myself),SUMMONED) !Gender(LastSeenBy(Myself),20) !Race(LastSeenBy(Myself),RAKSHASA) See(LastSeenBy(Myself)) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) Spell(LastSeenBy(Myself),WIZARD_DOMINATION) RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_HOLD_MONSTER) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(SixthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SixthNearestEnemyOf(Myself),0,HELD) !StateCheck(SixthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SixthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SixthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(SixthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(SixthNearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !General(SixthNearestEnemyOf(Myself),UNDEAD) !Race(SixthNearestEnemyOf(Myself),GOLEM) !Race(SixthNearestEnemyOf(Myself),SLIME) !Race(SixthNearestEnemyOf(Myself),TROLL) !Kit(SixthNearestEnemyOf(Myself),UNDEADHUNTER) !Kit(SixthNearestEnemyOf(Myself),INQUISITOR) !CheckStatGT(SixthNearestEnemyOf(Myself),0,CLERIC_FREE_ACTION) !CheckStatGT(SixthNearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(SixthNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("shld25",SixthNearestEnemyOf(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("blun30",SixthNearestEnemyOf(Myself)) // Flail of Ages +5 !HasItemEquiped("ipsion",SixthNearestEnemyOf(Myself)) // Greenstone Amulet !HasItemEquiped("npplat",SixthNearestEnemyOf(Myself)) // Firecam Full Plate Mail +2 !HasItemEquiped("ring09",SixthNearestEnemyOf(Myself)) // Ring of Free Action !HasItemEquipedReal("sper12",SixthNearestEnemyOf(Myself)) // Ixil's Spike +5 !HasItemEquipedReal("sw1h27",SixthNearestEnemyOf(Myself)) // Arbane's Sword +2 OR(2) !Gender(SixthNearestEnemyOf(Myself),SUMMONED) !Gender(SixthNearestEnemyOf(Myself),20) !Race(SixthNearestEnemyOf(Myself),RAKSHASA) See(SixthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_HOLD_MONSTER) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(FifthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FifthNearestEnemyOf(Myself),0,HELD) !StateCheck(FifthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FifthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FifthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(FifthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(FifthNearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !General(FifthNearestEnemyOf(Myself),UNDEAD) !Race(FifthNearestEnemyOf(Myself),GOLEM) !Race(FifthNearestEnemyOf(Myself),SLIME) !Race(FifthNearestEnemyOf(Myself),TROLL) !Kit(FifthNearestEnemyOf(Myself),UNDEADHUNTER) !Kit(FifthNearestEnemyOf(Myself),INQUISITOR) !CheckStatGT(FifthNearestEnemyOf(Myself),0,CLERIC_FREE_ACTION) !CheckStatGT(FifthNearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(FifthNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("shld25",FifthNearestEnemyOf(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("blun30",FifthNearestEnemyOf(Myself)) // Flail of Ages +5 !HasItemEquiped("ipsion",FifthNearestEnemyOf(Myself)) // Greenstone Amulet !HasItemEquiped("npplat",FifthNearestEnemyOf(Myself)) // Firecam Full Plate Mail +2 !HasItemEquiped("ring09",FifthNearestEnemyOf(Myself)) // Ring of Free Action !HasItemEquipedReal("sper12",FifthNearestEnemyOf(Myself)) // Ixil's Spike +5 !HasItemEquipedReal("sw1h27",FifthNearestEnemyOf(Myself)) // Arbane's Sword +2 OR(2) !Gender(FifthNearestEnemyOf(Myself),SUMMONED) !Gender(FifthNearestEnemyOf(Myself),20) !Race(FifthNearestEnemyOf(Myself),RAKSHASA) See(FifthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_HOLD_MONSTER) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(FourthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FourthNearestEnemyOf(Myself),0,HELD) !StateCheck(FourthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FourthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FourthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(FourthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(FourthNearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !General(FourthNearestEnemyOf(Myself),UNDEAD) !Race(FourthNearestEnemyOf(Myself),GOLEM) !Race(FourthNearestEnemyOf(Myself),SLIME) !Race(FourthNearestEnemyOf(Myself),TROLL) !Kit(FourthNearestEnemyOf(Myself),UNDEADHUNTER) !Kit(FourthNearestEnemyOf(Myself),INQUISITOR) !CheckStatGT(FourthNearestEnemyOf(Myself),0,CLERIC_FREE_ACTION) !CheckStatGT(FourthNearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(FourthNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("shld25",FourthNearestEnemyOf(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("blun30",FourthNearestEnemyOf(Myself)) // Flail of Ages +5 !HasItemEquiped("ipsion",FourthNearestEnemyOf(Myself)) // Greenstone Amulet !HasItemEquiped("npplat",FourthNearestEnemyOf(Myself)) // Firecam Full Plate Mail +2 !HasItemEquiped("ring09",FourthNearestEnemyOf(Myself)) // Ring of Free Action !HasItemEquipedReal("sper12",FourthNearestEnemyOf(Myself)) // Ixil's Spike +5 !HasItemEquipedReal("sw1h27",FourthNearestEnemyOf(Myself)) // Arbane's Sword +2 OR(2) !Gender(FourthNearestEnemyOf(Myself),SUMMONED) !Gender(FourthNearestEnemyOf(Myself),20) !Race(FourthNearestEnemyOf(Myself),RAKSHASA) See(FourthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_HOLD_MONSTER) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(ThirdNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(ThirdNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(ThirdNearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !General(ThirdNearestEnemyOf(Myself),UNDEAD) !Race(ThirdNearestEnemyOf(Myself),GOLEM) !Race(ThirdNearestEnemyOf(Myself),SLIME) !Race(ThirdNearestEnemyOf(Myself),TROLL) !Kit(ThirdNearestEnemyOf(Myself),UNDEADHUNTER) !Kit(ThirdNearestEnemyOf(Myself),INQUISITOR) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,CLERIC_FREE_ACTION) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(ThirdNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("shld25",ThirdNearestEnemyOf(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("blun30",ThirdNearestEnemyOf(Myself)) // Flail of Ages +5 !HasItemEquiped("ipsion",ThirdNearestEnemyOf(Myself)) // Greenstone Amulet !HasItemEquiped("npplat",ThirdNearestEnemyOf(Myself)) // Firecam Full Plate Mail +2 !HasItemEquiped("ring09",ThirdNearestEnemyOf(Myself)) // Ring of Free Action !HasItemEquipedReal("sper12",ThirdNearestEnemyOf(Myself)) // Ixil's Spike +5 !HasItemEquipedReal("sw1h27",ThirdNearestEnemyOf(Myself)) // Arbane's Sword +2 OR(2) !Gender(ThirdNearestEnemyOf(Myself),SUMMONED) !Gender(ThirdNearestEnemyOf(Myself),20) !Race(ThirdNearestEnemyOf(Myself),RAKSHASA) See(ThirdNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_HOLD_MONSTER) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) !StateCheck(SecondNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SecondNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SecondNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(SecondNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(SecondNearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !General(SecondNearestEnemyOf(Myself),UNDEAD) !Race(SecondNearestEnemyOf(Myself),GOLEM) !Race(SecondNearestEnemyOf(Myself),SLIME) !Race(SecondNearestEnemyOf(Myself),TROLL) !Kit(SecondNearestEnemyOf(Myself),UNDEADHUNTER) !Kit(SecondNearestEnemyOf(Myself),INQUISITOR) !CheckStatGT(SecondNearestEnemyOf(Myself),0,CLERIC_FREE_ACTION) !CheckStatGT(SecondNearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(SecondNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("shld25",SecondNearestEnemyOf(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("blun30",SecondNearestEnemyOf(Myself)) // Flail of Ages +5 !HasItemEquiped("ipsion",SecondNearestEnemyOf(Myself)) // Greenstone Amulet !HasItemEquiped("npplat",SecondNearestEnemyOf(Myself)) // Firecam Full Plate Mail +2 !HasItemEquiped("ring09",SecondNearestEnemyOf(Myself)) // Ring of Free Action !HasItemEquipedReal("sper12",SecondNearestEnemyOf(Myself)) // Ixil's Spike +5 !HasItemEquipedReal("sw1h27",SecondNearestEnemyOf(Myself)) // Arbane's Sword +2 OR(2) !Gender(SecondNearestEnemyOf(Myself),SUMMONED) !Gender(SecondNearestEnemyOf(Myself),20) !Race(SecondNearestEnemyOf(Myself),RAKSHASA) See(SecondNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_HOLD_MONSTER) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(NearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) !StateCheck(NearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(NearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(NearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(NearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(NearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !General(NearestEnemyOf(Myself),UNDEAD) !Race(NearestEnemyOf(Myself),GOLEM) !Race(NearestEnemyOf(Myself),SLIME) !Race(NearestEnemyOf(Myself),TROLL) !Kit(NearestEnemyOf(Myself),UNDEADHUNTER) !Kit(NearestEnemyOf(Myself),INQUISITOR) !CheckStatGT(NearestEnemyOf(Myself),0,CLERIC_FREE_ACTION) !CheckStatGT(NearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(NearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("shld25",NearestEnemyOf(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("blun30",NearestEnemyOf(Myself)) // Flail of Ages +5 !HasItemEquiped("ipsion",NearestEnemyOf(Myself)) // Greenstone Amulet !HasItemEquiped("npplat",NearestEnemyOf(Myself)) // Firecam Full Plate Mail +2 !HasItemEquiped("ring09",NearestEnemyOf(Myself)) // Ring of Free Action !HasItemEquipedReal("sper12",NearestEnemyOf(Myself)) // Ixil's Spike +5 !HasItemEquipedReal("sw1h27",NearestEnemyOf(Myself)) // Arbane's Sword +2 OR(2) !Gender(NearestEnemyOf(Myself),SUMMONED) !Gender(NearestEnemyOf(Myself),20) !Race(NearestEnemyOf(Myself),RAKSHASA) See(NearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_HOLD_MONSTER) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(LastSeenBy(Myself),RZ_STATE_DISABLED) !CheckStatGT(LastSeenBy(Myself),0,HELD) !StateCheck(LastSeenBy(Myself),STATE_STONE_DEATH) !CheckStatGT(LastSeenBy(Myself),50,RESISTMAGIC) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(LastSeenBy(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(LastSeenBy(Myself),0,MINORGLOBE) !CheckStat(LastSeenBy(Myself),4,WIZARD_SPELL_IMMUNITY) !General(LastSeenBy(Myself),UNDEAD) !Race(LastSeenBy(Myself),GOLEM) !Race(LastSeenBy(Myself),SLIME) !Race(LastSeenBy(Myself),TROLL) !Kit(LastSeenBy(Myself),UNDEADHUNTER) !Kit(LastSeenBy(Myself),INQUISITOR) !CheckStatGT(LastSeenBy(Myself),0,CLERIC_FREE_ACTION) !CheckStatGT(LastSeenBy(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(LastSeenBy(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("shld25",LastSeenBy(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("blun30",LastSeenBy(Myself)) // Flail of Ages +5 !HasItemEquiped("ipsion",LastSeenBy(Myself)) // Greenstone Amulet !HasItemEquiped("npplat",LastSeenBy(Myself)) // Firecam Full Plate Mail +2 !HasItemEquiped("ring09",LastSeenBy(Myself)) // Ring of Free Action !HasItemEquipedReal("sper12",LastSeenBy(Myself)) // Ixil's Spike +5 !HasItemEquipedReal("sw1h27",LastSeenBy(Myself)) // Arbane's Sword +2 OR(2) !Gender(LastSeenBy(Myself),SUMMONED) !Gender(LastSeenBy(Myself),20) !Race(LastSeenBy(Myself),RAKSHASA) See(LastSeenBy(Myself)) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) Spell(LastSeenBy(Myself),WIZARD_HOLD_MONSTER) RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") !StateCheck(SixthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SixthNearestEnemyOf(Myself),0,HELD) !StateCheck(SixthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SixthNearestEnemyOf(Myself),75,RESISTMAGIC) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SixthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(SixthNearestEnemyOf(Myself),8,WIZARD_SPELL_IMMUNITY) Range(SixthNearestEnemyOf(Myself),5) CheckStatGT(SixthNearestEnemyOf(Myself),3,SAVEVSSPELL) !Race(SixthNearestEnemyOf(Myself),GIANT) !Race(SixthNearestEnemyOf(Myself),DRAGON) !Race(SixthNearestEnemyOf(Myself),DEMONIC) !Class(SixthNearestEnemyOf(Myself),ELEMENTAL_EARTH) !Class(SixthNearestEnemyOf(Myself),ELEMENTAL_FIRE) !Class(SixthNearestEnemyOf(Myself),ELEMENTAL_AIR) !Name("finmel01",SixthNearestEnemyOf(Myself)) // Melissan !Race(SixthNearestEnemyOf(Myself),RAKSHASA) !Race(SixthNearestEnemyOf(Myself),LICH) See(SixthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") !StateCheck(FifthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FifthNearestEnemyOf(Myself),0,HELD) !StateCheck(FifthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FifthNearestEnemyOf(Myself),75,RESISTMAGIC) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FifthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(FifthNearestEnemyOf(Myself),8,WIZARD_SPELL_IMMUNITY) Range(FifthNearestEnemyOf(Myself),5) CheckStatGT(FifthNearestEnemyOf(Myself),3,SAVEVSSPELL) !Race(FifthNearestEnemyOf(Myself),GIANT) !Race(FifthNearestEnemyOf(Myself),DRAGON) !Race(FifthNearestEnemyOf(Myself),DEMONIC) !Class(FifthNearestEnemyOf(Myself),ELEMENTAL_EARTH) !Class(FifthNearestEnemyOf(Myself),ELEMENTAL_FIRE) !Class(FifthNearestEnemyOf(Myself),ELEMENTAL_AIR) !Name("finmel01",FifthNearestEnemyOf(Myself)) // Melissan !Race(FifthNearestEnemyOf(Myself),RAKSHASA) !Race(FifthNearestEnemyOf(Myself),LICH) See(FifthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") !StateCheck(FourthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FourthNearestEnemyOf(Myself),0,HELD) !StateCheck(FourthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FourthNearestEnemyOf(Myself),75,RESISTMAGIC) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FourthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(FourthNearestEnemyOf(Myself),8,WIZARD_SPELL_IMMUNITY) Range(FourthNearestEnemyOf(Myself),5) CheckStatGT(FourthNearestEnemyOf(Myself),3,SAVEVSSPELL) !Race(FourthNearestEnemyOf(Myself),GIANT) !Race(FourthNearestEnemyOf(Myself),DRAGON) !Race(FourthNearestEnemyOf(Myself),DEMONIC) !Class(FourthNearestEnemyOf(Myself),ELEMENTAL_EARTH) !Class(FourthNearestEnemyOf(Myself),ELEMENTAL_FIRE) !Class(FourthNearestEnemyOf(Myself),ELEMENTAL_AIR) !Name("finmel01",FourthNearestEnemyOf(Myself)) // Melissan !Race(FourthNearestEnemyOf(Myself),RAKSHASA) !Race(FourthNearestEnemyOf(Myself),LICH) See(FourthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") !StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(ThirdNearestEnemyOf(Myself),75,RESISTMAGIC) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(ThirdNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(ThirdNearestEnemyOf(Myself),8,WIZARD_SPELL_IMMUNITY) Range(ThirdNearestEnemyOf(Myself),5) CheckStatGT(ThirdNearestEnemyOf(Myself),3,SAVEVSSPELL) !Race(ThirdNearestEnemyOf(Myself),GIANT) !Race(ThirdNearestEnemyOf(Myself),DRAGON) !Race(ThirdNearestEnemyOf(Myself),DEMONIC) !Class(ThirdNearestEnemyOf(Myself),ELEMENTAL_EARTH) !Class(ThirdNearestEnemyOf(Myself),ELEMENTAL_FIRE) !Class(ThirdNearestEnemyOf(Myself),ELEMENTAL_AIR) !Name("finmel01",ThirdNearestEnemyOf(Myself)) // Melissan !Race(ThirdNearestEnemyOf(Myself),RAKSHASA) !Race(ThirdNearestEnemyOf(Myself),LICH) See(ThirdNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") !StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) !StateCheck(SecondNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SecondNearestEnemyOf(Myself),75,RESISTMAGIC) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SecondNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(SecondNearestEnemyOf(Myself),8,WIZARD_SPELL_IMMUNITY) Range(SecondNearestEnemyOf(Myself),5) CheckStatGT(SecondNearestEnemyOf(Myself),3,SAVEVSSPELL) !Race(SecondNearestEnemyOf(Myself),GIANT) !Race(SecondNearestEnemyOf(Myself),DRAGON) !Race(SecondNearestEnemyOf(Myself),DEMONIC) !Class(SecondNearestEnemyOf(Myself),ELEMENTAL_EARTH) !Class(SecondNearestEnemyOf(Myself),ELEMENTAL_FIRE) !Class(SecondNearestEnemyOf(Myself),ELEMENTAL_AIR) !Name("finmel01",SecondNearestEnemyOf(Myself)) // Melissan !Race(SecondNearestEnemyOf(Myself),RAKSHASA) !Race(SecondNearestEnemyOf(Myself),LICH) See(SecondNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") !StateCheck(NearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) !StateCheck(NearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(NearestEnemyOf(Myself),75,RESISTMAGIC) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(NearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(NearestEnemyOf(Myself),8,WIZARD_SPELL_IMMUNITY) Range(NearestEnemyOf(Myself),5) CheckStatGT(NearestEnemyOf(Myself),3,SAVEVSSPELL) !Race(NearestEnemyOf(Myself),GIANT) !Race(NearestEnemyOf(Myself),DRAGON) !Race(NearestEnemyOf(Myself),DEMONIC) !Class(NearestEnemyOf(Myself),ELEMENTAL_EARTH) !Class(NearestEnemyOf(Myself),ELEMENTAL_FIRE) !Class(NearestEnemyOf(Myself),ELEMENTAL_AIR) !Name("finmel01",NearestEnemyOf(Myself)) // Melissan !Race(NearestEnemyOf(Myself),RAKSHASA) !Race(NearestEnemyOf(Myself),LICH) See(NearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") !StateCheck(LastSeenBy(Myself),RZ_STATE_DISABLED) !CheckStatGT(LastSeenBy(Myself),0,HELD) !StateCheck(LastSeenBy(Myself),STATE_STONE_DEATH) !CheckStatGT(LastSeenBy(Myself),75,RESISTMAGIC) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(LastSeenBy(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStat(LastSeenBy(Myself),8,WIZARD_SPELL_IMMUNITY) Range(LastSeenBy(Myself),5) CheckStatGT(LastSeenBy(Myself),3,SAVEVSSPELL) !Race(LastSeenBy(Myself),GIANT) !Race(LastSeenBy(Myself),DRAGON) !Race(LastSeenBy(Myself),DEMONIC) !Class(LastSeenBy(Myself),ELEMENTAL_EARTH) !Class(LastSeenBy(Myself),ELEMENTAL_FIRE) !Class(LastSeenBy(Myself),ELEMENTAL_AIR) !Name("finmel01",LastSeenBy(Myself)) // Melissan !Race(LastSeenBy(Myself),RAKSHASA) !Race(LastSeenBy(Myself),LICH) See(LastSeenBy(Myself)) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("fl#telki",LastSeenBy(Myself)) // Telekinesis RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") Global("flMinorSequencer","LOCALS",0) Global("flDecideMinorSequencer","LOCALS",1) !StateCheck(SixthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SixthNearestEnemyOf(Myself),0,HELD) !StateCheck(SixthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SixthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SixthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(SixthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(SixthNearestEnemyOf(Myself),2,WIZARD_SPELL_IMMUNITY) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !CheckStatGT(SixthNearestEnemyOf(Myself),75,RESISTACID) !HasItemEquiped("clck26",SixthNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(SixthNearestEnemyOf(Myself),RAKSHASA) !Race(SixthNearestEnemyOf(Myself),LICH) See(SixthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") Global("flMinorSequencer","LOCALS",0) Global("flDecideMinorSequencer","LOCALS",1) !StateCheck(FifthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FifthNearestEnemyOf(Myself),0,HELD) !StateCheck(FifthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FifthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FifthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(FifthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(FifthNearestEnemyOf(Myself),2,WIZARD_SPELL_IMMUNITY) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !CheckStatGT(FifthNearestEnemyOf(Myself),75,RESISTACID) !HasItemEquiped("clck26",FifthNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(FifthNearestEnemyOf(Myself),RAKSHASA) !Race(FifthNearestEnemyOf(Myself),LICH) See(FifthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") Global("flMinorSequencer","LOCALS",0) Global("flDecideMinorSequencer","LOCALS",1) !StateCheck(FourthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FourthNearestEnemyOf(Myself),0,HELD) !StateCheck(FourthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FourthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FourthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(FourthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(FourthNearestEnemyOf(Myself),2,WIZARD_SPELL_IMMUNITY) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !CheckStatGT(FourthNearestEnemyOf(Myself),75,RESISTACID) !HasItemEquiped("clck26",FourthNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(FourthNearestEnemyOf(Myself),RAKSHASA) !Race(FourthNearestEnemyOf(Myself),LICH) See(FourthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") Global("flMinorSequencer","LOCALS",0) Global("flDecideMinorSequencer","LOCALS",1) !StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(ThirdNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(ThirdNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(ThirdNearestEnemyOf(Myself),2,WIZARD_SPELL_IMMUNITY) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !CheckStatGT(ThirdNearestEnemyOf(Myself),75,RESISTACID) !HasItemEquiped("clck26",ThirdNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(ThirdNearestEnemyOf(Myself),RAKSHASA) !Race(ThirdNearestEnemyOf(Myself),LICH) See(ThirdNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") Global("flMinorSequencer","LOCALS",0) Global("flDecideMinorSequencer","LOCALS",1) !StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) !StateCheck(SecondNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SecondNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SecondNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(SecondNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(SecondNearestEnemyOf(Myself),2,WIZARD_SPELL_IMMUNITY) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !CheckStatGT(SecondNearestEnemyOf(Myself),75,RESISTACID) !HasItemEquiped("clck26",SecondNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(SecondNearestEnemyOf(Myself),RAKSHASA) !Race(SecondNearestEnemyOf(Myself),LICH) See(SecondNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") Global("flMinorSequencer","LOCALS",0) Global("flDecideMinorSequencer","LOCALS",1) !StateCheck(NearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) !StateCheck(NearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(NearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(NearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(NearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(NearestEnemyOf(Myself),2,WIZARD_SPELL_IMMUNITY) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !CheckStatGT(NearestEnemyOf(Myself),75,RESISTACID) !HasItemEquiped("clck26",NearestEnemyOf(Myself)) // Cloak of Mirroring !Race(NearestEnemyOf(Myself),RAKSHASA) !Race(NearestEnemyOf(Myself),LICH) See(NearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") Global("flMinorSequencer","LOCALS",0) Global("flDecideMinorSequencer","LOCALS",1) !StateCheck(LastSeenBy(Myself),RZ_STATE_DISABLED) !CheckStatGT(LastSeenBy(Myself),0,HELD) !StateCheck(LastSeenBy(Myself),STATE_STONE_DEATH) !CheckStatGT(LastSeenBy(Myself),50,RESISTMAGIC) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(LastSeenBy(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(LastSeenBy(Myself),0,MINORGLOBE) !CheckStat(LastSeenBy(Myself),2,WIZARD_SPELL_IMMUNITY) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !CheckStatGT(LastSeenBy(Myself),75,RESISTACID) !HasItemEquiped("clck26",LastSeenBy(Myself)) // Cloak of Mirroring !Race(LastSeenBy(Myself),RAKSHASA) !Race(LastSeenBy(Myself),LICH) See(LastSeenBy(Myself)) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) SetGlobal("flMinorSequencer","LOCALS",1) DisplayStringHead(Myself,5013) // Minor Sequencer SetSequence(SEQ_CAST) ReallyForceSpell(LastSeenBy(Myself),WIZARD_MELF_ACID_ARROW) ReallyForceSpell(LastSeenBy(Myself),WIZARD_MELF_ACID_ARROW) RESPONSE #50 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") Global("flMinorSequencer","LOCALS",0) Global("flDecideMinorSequencer","LOCALS",2) !StateCheck(SixthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SixthNearestEnemyOf(Myself),0,HELD) !StateCheck(SixthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SixthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SixthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(SixthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(SixthNearestEnemyOf(Myself),6,WIZARD_SPELL_IMMUNITY) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !CheckStatGT(SixthNearestEnemyOf(Myself),75,RESISTFIRE) !HasItemEquiped("clck26",SixthNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(SixthNearestEnemyOf(Myself),RAKSHASA) !Race(SixthNearestEnemyOf(Myself),LICH) See(SixthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") Global("flMinorSequencer","LOCALS",0) Global("flDecideMinorSequencer","LOCALS",2) !StateCheck(FifthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FifthNearestEnemyOf(Myself),0,HELD) !StateCheck(FifthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FifthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FifthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(FifthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(FifthNearestEnemyOf(Myself),6,WIZARD_SPELL_IMMUNITY) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !CheckStatGT(FifthNearestEnemyOf(Myself),75,RESISTFIRE) !HasItemEquiped("clck26",FifthNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(FifthNearestEnemyOf(Myself),RAKSHASA) !Race(FifthNearestEnemyOf(Myself),LICH) See(FifthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") Global("flMinorSequencer","LOCALS",0) Global("flDecideMinorSequencer","LOCALS",2) !StateCheck(FourthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FourthNearestEnemyOf(Myself),0,HELD) !StateCheck(FourthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FourthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FourthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(FourthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(FourthNearestEnemyOf(Myself),6,WIZARD_SPELL_IMMUNITY) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !CheckStatGT(FourthNearestEnemyOf(Myself),75,RESISTFIRE) !HasItemEquiped("clck26",FourthNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(FourthNearestEnemyOf(Myself),RAKSHASA) !Race(FourthNearestEnemyOf(Myself),LICH) See(FourthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") Global("flMinorSequencer","LOCALS",0) Global("flDecideMinorSequencer","LOCALS",2) !StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(ThirdNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(ThirdNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(ThirdNearestEnemyOf(Myself),6,WIZARD_SPELL_IMMUNITY) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !CheckStatGT(ThirdNearestEnemyOf(Myself),75,RESISTFIRE) !HasItemEquiped("clck26",ThirdNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(ThirdNearestEnemyOf(Myself),RAKSHASA) !Race(ThirdNearestEnemyOf(Myself),LICH) See(ThirdNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") Global("flMinorSequencer","LOCALS",0) Global("flDecideMinorSequencer","LOCALS",2) !StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) !StateCheck(SecondNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SecondNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SecondNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(SecondNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(SecondNearestEnemyOf(Myself),6,WIZARD_SPELL_IMMUNITY) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !CheckStatGT(SecondNearestEnemyOf(Myself),75,RESISTFIRE) !HasItemEquiped("clck26",SecondNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(SecondNearestEnemyOf(Myself),RAKSHASA) !Race(SecondNearestEnemyOf(Myself),LICH) See(SecondNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") Global("flMinorSequencer","LOCALS",0) Global("flDecideMinorSequencer","LOCALS",2) !StateCheck(NearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) !StateCheck(NearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(NearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(NearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(NearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(NearestEnemyOf(Myself),6,WIZARD_SPELL_IMMUNITY) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !CheckStatGT(NearestEnemyOf(Myself),75,RESISTFIRE) !HasItemEquiped("clck26",NearestEnemyOf(Myself)) // Cloak of Mirroring !Race(NearestEnemyOf(Myself),RAKSHASA) !Race(NearestEnemyOf(Myself),LICH) See(NearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") Global("flMinorSequencer","LOCALS",0) Global("flDecideMinorSequencer","LOCALS",2) !StateCheck(LastSeenBy(Myself),RZ_STATE_DISABLED) !CheckStatGT(LastSeenBy(Myself),0,HELD) !StateCheck(LastSeenBy(Myself),STATE_STONE_DEATH) !CheckStatGT(LastSeenBy(Myself),50,RESISTMAGIC) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(LastSeenBy(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(LastSeenBy(Myself),0,MINORGLOBE) !CheckStat(LastSeenBy(Myself),6,WIZARD_SPELL_IMMUNITY) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !CheckStatGT(LastSeenBy(Myself),75,RESISTFIRE) !HasItemEquiped("clck26",LastSeenBy(Myself)) // Cloak of Mirroring !Race(LastSeenBy(Myself),RAKSHASA) !Race(LastSeenBy(Myself),LICH) See(LastSeenBy(Myself)) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) SetGlobal("flMinorSequencer","LOCALS",1) DisplayStringHead(Myself,5013) // Minor Sequencer SetSequence(SEQ_CAST) ReallyForceSpell(LastSeenBy(Myself),WIZARD_AGANNAZAR_SCORCHER) ReallyForceSpell(LastSeenBy(Myself),WIZARD_AGANNAZAR_SCORCHER) RESPONSE #50 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_LIGHTNING_BOLT) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(SixthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SixthNearestEnemyOf(Myself),0,HELD) !StateCheck(SixthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SixthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(SixthNearestEnemyOf(Myself),6,WIZARD_SPELL_IMMUNITY) !CheckStatGT(SixthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(SixthNearestEnemyOf(Myself),50,RESISTELECTRICITY) !HasItemEquiped("clck24",SixthNearestEnemyOf(Myself)) // Stormlord's Cloak !HasItemEquiped("clck26",SixthNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(SixthNearestEnemyOf(Myself),RAKSHASA) !Race(SixthNearestEnemyOf(Myself),LICH) See(SixthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_LIGHTNING_BOLT) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(FifthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FifthNearestEnemyOf(Myself),0,HELD) !StateCheck(FifthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FifthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(FifthNearestEnemyOf(Myself),6,WIZARD_SPELL_IMMUNITY) !CheckStatGT(FifthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(FifthNearestEnemyOf(Myself),50,RESISTELECTRICITY) !HasItemEquiped("clck24",FifthNearestEnemyOf(Myself)) // Stormlord's Cloak !HasItemEquiped("clck26",FifthNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(FifthNearestEnemyOf(Myself),RAKSHASA) !Race(FifthNearestEnemyOf(Myself),LICH) See(FifthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_LIGHTNING_BOLT) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(FourthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FourthNearestEnemyOf(Myself),0,HELD) !StateCheck(FourthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FourthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(FourthNearestEnemyOf(Myself),6,WIZARD_SPELL_IMMUNITY) !CheckStatGT(FourthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(FourthNearestEnemyOf(Myself),50,RESISTELECTRICITY) !HasItemEquiped("clck24",FourthNearestEnemyOf(Myself)) // Stormlord's Cloak !HasItemEquiped("clck26",FourthNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(FourthNearestEnemyOf(Myself),RAKSHASA) !Race(FourthNearestEnemyOf(Myself),LICH) See(FourthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_LIGHTNING_BOLT) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(ThirdNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(ThirdNearestEnemyOf(Myself),6,WIZARD_SPELL_IMMUNITY) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(ThirdNearestEnemyOf(Myself),50,RESISTELECTRICITY) !HasItemEquiped("clck24",ThirdNearestEnemyOf(Myself)) // Stormlord's Cloak !HasItemEquiped("clck26",ThirdNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(ThirdNearestEnemyOf(Myself),RAKSHASA) !Race(ThirdNearestEnemyOf(Myself),LICH) See(ThirdNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_LIGHTNING_BOLT) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) !StateCheck(SecondNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SecondNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(SecondNearestEnemyOf(Myself),6,WIZARD_SPELL_IMMUNITY) !CheckStatGT(SecondNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(SecondNearestEnemyOf(Myself),50,RESISTELECTRICITY) !HasItemEquiped("clck24",SecondNearestEnemyOf(Myself)) // Stormlord's Cloak !HasItemEquiped("clck26",SecondNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(SecondNearestEnemyOf(Myself),RAKSHASA) !Race(SecondNearestEnemyOf(Myself),LICH) See(SecondNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_LIGHTNING_BOLT) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(NearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) !StateCheck(NearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(NearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(NearestEnemyOf(Myself),6,WIZARD_SPELL_IMMUNITY) !CheckStatGT(NearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(NearestEnemyOf(Myself),50,RESISTELECTRICITY) !HasItemEquiped("clck24",NearestEnemyOf(Myself)) // Stormlord's Cloak !HasItemEquiped("clck26",NearestEnemyOf(Myself)) // Cloak of Mirroring !Race(NearestEnemyOf(Myself),RAKSHASA) !Race(NearestEnemyOf(Myself),LICH) See(NearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_LIGHTNING_BOLT) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(LastSeenBy(Myself),RZ_STATE_DISABLED) !CheckStatGT(LastSeenBy(Myself),0,HELD) !StateCheck(LastSeenBy(Myself),STATE_STONE_DEATH) !CheckStatGT(LastSeenBy(Myself),50,RESISTMAGIC) !CheckStat(LastSeenBy(Myself),6,WIZARD_SPELL_IMMUNITY) !CheckStatGT(LastSeenBy(Myself),0,MINORGLOBE) !CheckStatGT(LastSeenBy(Myself),50,RESISTELECTRICITY) !HasItemEquiped("clck24",LastSeenBy(Myself)) // Stormlord's Cloak !HasItemEquiped("clck26",LastSeenBy(Myself)) // Cloak of Mirroring !Race(LastSeenBy(Myself),RAKSHASA) !Race(LastSeenBy(Myself),LICH) See(LastSeenBy(Myself)) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) Spell(LastSeenBy(Myself),WIZARD_LIGHTNING_BOLT) RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_FLAME_ARROW) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(SixthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SixthNearestEnemyOf(Myself),0,HELD) !StateCheck(SixthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SixthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(SixthNearestEnemyOf(Myself),2,WIZARD_SPELL_IMMUNITY) !CheckStatGT(SixthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SixthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(SixthNearestEnemyOf(Myself),50,RESISTFIRE) !HasItemEquiped("clck26",SixthNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(SixthNearestEnemyOf(Myself),RAKSHASA) !Race(SixthNearestEnemyOf(Myself),LICH) See(SixthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_FLAME_ARROW) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(FifthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FifthNearestEnemyOf(Myself),0,HELD) !StateCheck(FifthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FifthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(FifthNearestEnemyOf(Myself),2,WIZARD_SPELL_IMMUNITY) !CheckStatGT(FifthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FifthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(FifthNearestEnemyOf(Myself),50,RESISTFIRE) !HasItemEquiped("clck26",FifthNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(FifthNearestEnemyOf(Myself),RAKSHASA) !Race(FifthNearestEnemyOf(Myself),LICH) See(FifthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_FLAME_ARROW) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(FourthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FourthNearestEnemyOf(Myself),0,HELD) !StateCheck(FourthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FourthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(FourthNearestEnemyOf(Myself),2,WIZARD_SPELL_IMMUNITY) !CheckStatGT(FourthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FourthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(FourthNearestEnemyOf(Myself),50,RESISTFIRE) !HasItemEquiped("clck26",FourthNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(FourthNearestEnemyOf(Myself),RAKSHASA) !Race(FourthNearestEnemyOf(Myself),LICH) See(FourthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_FLAME_ARROW) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(ThirdNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(ThirdNearestEnemyOf(Myself),2,WIZARD_SPELL_IMMUNITY) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(ThirdNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(ThirdNearestEnemyOf(Myself),50,RESISTFIRE) !HasItemEquiped("clck26",ThirdNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(ThirdNearestEnemyOf(Myself),RAKSHASA) !Race(ThirdNearestEnemyOf(Myself),LICH) See(ThirdNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_FLAME_ARROW) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) !StateCheck(SecondNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SecondNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(SecondNearestEnemyOf(Myself),2,WIZARD_SPELL_IMMUNITY) !CheckStatGT(SecondNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SecondNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(SecondNearestEnemyOf(Myself),50,RESISTFIRE) !HasItemEquiped("clck26",SecondNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(SecondNearestEnemyOf(Myself),RAKSHASA) !Race(SecondNearestEnemyOf(Myself),LICH) See(SecondNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_FLAME_ARROW) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(NearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) !StateCheck(NearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(NearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(NearestEnemyOf(Myself),2,WIZARD_SPELL_IMMUNITY) !CheckStatGT(NearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(NearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(NearestEnemyOf(Myself),50,RESISTFIRE) !HasItemEquiped("clck26",NearestEnemyOf(Myself)) // Cloak of Mirroring !Race(NearestEnemyOf(Myself),RAKSHASA) !Race(NearestEnemyOf(Myself),LICH) See(NearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_FLAME_ARROW) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(LastSeenBy(Myself),RZ_STATE_DISABLED) !CheckStatGT(LastSeenBy(Myself),0,HELD) !StateCheck(LastSeenBy(Myself),STATE_STONE_DEATH) !CheckStatGT(LastSeenBy(Myself),50,RESISTMAGIC) !CheckStat(LastSeenBy(Myself),2,WIZARD_SPELL_IMMUNITY) !CheckStatGT(LastSeenBy(Myself),0,MINORGLOBE) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(LastSeenBy(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(LastSeenBy(Myself),50,RESISTFIRE) !HasItemEquiped("clck26",LastSeenBy(Myself)) // Cloak of Mirroring !Race(LastSeenBy(Myself),RAKSHASA) !Race(LastSeenBy(Myself),LICH) See(LastSeenBy(Myself)) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) Spell(LastSeenBy(Myself),WIZARD_FLAME_ARROW) RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") See(NearestEnemyOf(Myself)) !Range(NearestEnemyOf(Myself),5) THEN RESPONSE #50 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("fl#adead",NearestEnemyOf(Myself)) // Animate Dead RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") See(SecondNearestEnemyOf(Myself)) !Range(SecondNearestEnemyOf(Myself),5) THEN RESPONSE #50 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("fl#adead",SecondNearestEnemyOf(Myself)) // Animate Dead RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") See(ThirdNearestEnemyOf(Myself)) !Range(ThirdNearestEnemyOf(Myself),5) THEN RESPONSE #50 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("fl#adead",ThirdNearestEnemyOf(Myself)) // Animate Dead RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_HORROR) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(SixthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SixthNearestEnemyOf(Myself),0,HELD) !StateCheck(SixthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SixthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(SixthNearestEnemyOf(Myself),7,WIZARD_SPELL_IMMUNITY) !CheckStatGT(SixthNearestEnemyOf(Myself),0,MINORGLOBE) !General(SixthNearestEnemyOf(Myself),UNDEAD) !Race(SixthNearestEnemyOf(Myself),SLIME) !Race(SixthNearestEnemyOf(Myself),GOLEM) !Race(SixthNearestEnemyOf(Myself),DEMONIC) !Race(SixthNearestEnemyOf(Myself),TROLL) !Kit(SixthNearestEnemyOf(Myself),CAVALIER) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_RESIST_FEAR) !CheckStat(SixthNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("CLCK30",SixthNearestEnemyOf(Myself)) // Cloak of Bravery !HasItemEquipedReal("SW1H32",SixthNearestEnemyOf(Myself)) // Dragonslayer +3 !HasItemEquipedReal("MISCBC",SixthNearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("RR#HELMD",SixthNearestEnemyOf(Myself)) // Dead Man's Face !Race(SixthNearestEnemyOf(Myself),RAKSHASA) See(SixthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_HORROR) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(FifthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FifthNearestEnemyOf(Myself),0,HELD) !StateCheck(FifthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FifthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(FifthNearestEnemyOf(Myself),7,WIZARD_SPELL_IMMUNITY) !CheckStatGT(FifthNearestEnemyOf(Myself),0,MINORGLOBE) !General(FifthNearestEnemyOf(Myself),UNDEAD) !Race(FifthNearestEnemyOf(Myself),SLIME) !Race(FifthNearestEnemyOf(Myself),GOLEM) !Race(FifthNearestEnemyOf(Myself),DEMONIC) !Race(FifthNearestEnemyOf(Myself),TROLL) !Kit(FifthNearestEnemyOf(Myself),CAVALIER) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_RESIST_FEAR) !CheckStat(FifthNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("CLCK30",FifthNearestEnemyOf(Myself)) // Cloak of Bravery !HasItemEquipedReal("SW1H32",FifthNearestEnemyOf(Myself)) // Dragonslayer +3 !HasItemEquipedReal("MISCBC",FifthNearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("RR#HELMD",FifthNearestEnemyOf(Myself)) // Dead Man's Face !Race(FifthNearestEnemyOf(Myself),RAKSHASA) See(FifthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_HORROR) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(FourthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FourthNearestEnemyOf(Myself),0,HELD) !StateCheck(FourthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FourthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(FourthNearestEnemyOf(Myself),7,WIZARD_SPELL_IMMUNITY) !CheckStatGT(FourthNearestEnemyOf(Myself),0,MINORGLOBE) !General(FourthNearestEnemyOf(Myself),UNDEAD) !Race(FourthNearestEnemyOf(Myself),SLIME) !Race(FourthNearestEnemyOf(Myself),GOLEM) !Race(FourthNearestEnemyOf(Myself),DEMONIC) !Race(FourthNearestEnemyOf(Myself),TROLL) !Kit(FourthNearestEnemyOf(Myself),CAVALIER) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_RESIST_FEAR) !CheckStat(FourthNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("CLCK30",FourthNearestEnemyOf(Myself)) // Cloak of Bravery !HasItemEquipedReal("SW1H32",FourthNearestEnemyOf(Myself)) // Dragonslayer +3 !HasItemEquipedReal("MISCBC",FourthNearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("RR#HELMD",FourthNearestEnemyOf(Myself)) // Dead Man's Face !Race(FourthNearestEnemyOf(Myself),RAKSHASA) See(FourthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_HORROR) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(ThirdNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(ThirdNearestEnemyOf(Myself),7,WIZARD_SPELL_IMMUNITY) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,MINORGLOBE) !General(ThirdNearestEnemyOf(Myself),UNDEAD) !Race(ThirdNearestEnemyOf(Myself),SLIME) !Race(ThirdNearestEnemyOf(Myself),GOLEM) !Race(ThirdNearestEnemyOf(Myself),DEMONIC) !Race(ThirdNearestEnemyOf(Myself),TROLL) !Kit(ThirdNearestEnemyOf(Myself),CAVALIER) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_RESIST_FEAR) !CheckStat(ThirdNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("CLCK30",ThirdNearestEnemyOf(Myself)) // Cloak of Bravery !HasItemEquipedReal("SW1H32",ThirdNearestEnemyOf(Myself)) // Dragonslayer +3 !HasItemEquipedReal("MISCBC",ThirdNearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("RR#HELMD",ThirdNearestEnemyOf(Myself)) // Dead Man's Face !Race(ThirdNearestEnemyOf(Myself),RAKSHASA) See(ThirdNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_HORROR) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) !StateCheck(SecondNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SecondNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(SecondNearestEnemyOf(Myself),7,WIZARD_SPELL_IMMUNITY) !CheckStatGT(SecondNearestEnemyOf(Myself),0,MINORGLOBE) !General(SecondNearestEnemyOf(Myself),UNDEAD) !Race(SecondNearestEnemyOf(Myself),SLIME) !Race(SecondNearestEnemyOf(Myself),GOLEM) !Race(SecondNearestEnemyOf(Myself),DEMONIC) !Race(SecondNearestEnemyOf(Myself),TROLL) !Kit(SecondNearestEnemyOf(Myself),CAVALIER) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_RESIST_FEAR) !CheckStat(SecondNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("CLCK30",SecondNearestEnemyOf(Myself)) // Cloak of Bravery !HasItemEquipedReal("SW1H32",SecondNearestEnemyOf(Myself)) // Dragonslayer +3 !HasItemEquipedReal("MISCBC",SecondNearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("RR#HELMD",SecondNearestEnemyOf(Myself)) // Dead Man's Face !Race(SecondNearestEnemyOf(Myself),RAKSHASA) See(SecondNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_HORROR) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(NearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) !StateCheck(NearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(NearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(NearestEnemyOf(Myself),7,WIZARD_SPELL_IMMUNITY) !CheckStatGT(NearestEnemyOf(Myself),0,MINORGLOBE) !General(NearestEnemyOf(Myself),UNDEAD) !Race(NearestEnemyOf(Myself),SLIME) !Race(NearestEnemyOf(Myself),GOLEM) !Race(NearestEnemyOf(Myself),DEMONIC) !Race(NearestEnemyOf(Myself),TROLL) !Kit(NearestEnemyOf(Myself),CAVALIER) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_RESIST_FEAR) !CheckStat(NearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("CLCK30",NearestEnemyOf(Myself)) // Cloak of Bravery !HasItemEquipedReal("SW1H32",NearestEnemyOf(Myself)) // Dragonslayer +3 !HasItemEquipedReal("MISCBC",NearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("RR#HELMD",NearestEnemyOf(Myself)) // Dead Man's Face !Race(NearestEnemyOf(Myself),RAKSHASA) See(NearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_HORROR) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(LastSeenBy(Myself),RZ_STATE_DISABLED) !CheckStatGT(LastSeenBy(Myself),0,HELD) !StateCheck(LastSeenBy(Myself),STATE_STONE_DEATH) !CheckStatGT(LastSeenBy(Myself),50,RESISTMAGIC) !CheckStat(LastSeenBy(Myself),7,WIZARD_SPELL_IMMUNITY) !CheckStatGT(LastSeenBy(Myself),0,MINORGLOBE) !General(LastSeenBy(Myself),UNDEAD) !Race(LastSeenBy(Myself),SLIME) !Race(LastSeenBy(Myself),GOLEM) !Race(LastSeenBy(Myself),DEMONIC) !Race(LastSeenBy(Myself),TROLL) !Kit(LastSeenBy(Myself),CAVALIER) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_RESIST_FEAR) !CheckStat(LastSeenBy(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("CLCK30",LastSeenBy(Myself)) // Cloak of Bravery !HasItemEquipedReal("SW1H32",LastSeenBy(Myself)) // Dragonslayer +3 !HasItemEquipedReal("MISCBC",LastSeenBy(Myself)) // Blackrazor +3 !HasItemEquiped("RR#HELMD",LastSeenBy(Myself)) // Dead Man's Face !Race(LastSeenBy(Myself),RAKSHASA) See(LastSeenBy(Myself)) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) Spell(LastSeenBy(Myself),WIZARD_HORROR) RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_MELF_ACID_ARROW) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(SixthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SixthNearestEnemyOf(Myself),0,HELD) !StateCheck(SixthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SixthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(SixthNearestEnemyOf(Myself),2,WIZARD_SPELL_IMMUNITY) !CheckStatGT(SixthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SixthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(SixthNearestEnemyOf(Myself),50,RESISTACID) !HasItemEquiped("clck26",SixthNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(SixthNearestEnemyOf(Myself),RAKSHASA) !Race(SixthNearestEnemyOf(Myself),LICH) See(SixthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_MELF_ACID_ARROW) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(FifthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FifthNearestEnemyOf(Myself),0,HELD) !StateCheck(FifthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FifthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(FifthNearestEnemyOf(Myself),2,WIZARD_SPELL_IMMUNITY) !CheckStatGT(FifthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FifthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(FifthNearestEnemyOf(Myself),50,RESISTACID) !HasItemEquiped("clck26",FifthNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(FifthNearestEnemyOf(Myself),RAKSHASA) !Race(FifthNearestEnemyOf(Myself),LICH) See(FifthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_MELF_ACID_ARROW) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(FourthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FourthNearestEnemyOf(Myself),0,HELD) !StateCheck(FourthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FourthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(FourthNearestEnemyOf(Myself),2,WIZARD_SPELL_IMMUNITY) !CheckStatGT(FourthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FourthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(FourthNearestEnemyOf(Myself),50,RESISTACID) !HasItemEquiped("clck26",FourthNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(FourthNearestEnemyOf(Myself),RAKSHASA) !Race(FourthNearestEnemyOf(Myself),LICH) See(FourthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_MELF_ACID_ARROW) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(ThirdNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(ThirdNearestEnemyOf(Myself),2,WIZARD_SPELL_IMMUNITY) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(ThirdNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(ThirdNearestEnemyOf(Myself),50,RESISTACID) !HasItemEquiped("clck26",ThirdNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(ThirdNearestEnemyOf(Myself),RAKSHASA) !Race(ThirdNearestEnemyOf(Myself),LICH) See(ThirdNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_MELF_ACID_ARROW) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) !StateCheck(SecondNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SecondNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(SecondNearestEnemyOf(Myself),2,WIZARD_SPELL_IMMUNITY) !CheckStatGT(SecondNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SecondNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(SecondNearestEnemyOf(Myself),50,RESISTACID) !HasItemEquiped("clck26",SecondNearestEnemyOf(Myself)) // Cloak of Mirroring !Race(SecondNearestEnemyOf(Myself),RAKSHASA) !Race(SecondNearestEnemyOf(Myself),LICH) See(SecondNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_MELF_ACID_ARROW) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(NearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) !StateCheck(NearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(NearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(NearestEnemyOf(Myself),2,WIZARD_SPELL_IMMUNITY) !CheckStatGT(NearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(NearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(NearestEnemyOf(Myself),50,RESISTACID) !HasItemEquiped("clck26",NearestEnemyOf(Myself)) // Cloak of Mirroring !Race(NearestEnemyOf(Myself),RAKSHASA) !Race(NearestEnemyOf(Myself),LICH) See(NearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_MELF_ACID_ARROW) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(LastSeenBy(Myself),RZ_STATE_DISABLED) !CheckStatGT(LastSeenBy(Myself),0,HELD) !StateCheck(LastSeenBy(Myself),STATE_STONE_DEATH) !CheckStatGT(LastSeenBy(Myself),50,RESISTMAGIC) !CheckStat(LastSeenBy(Myself),2,WIZARD_SPELL_IMMUNITY) !CheckStatGT(LastSeenBy(Myself),0,MINORGLOBE) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(LastSeenBy(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(LastSeenBy(Myself),50,RESISTACID) !HasItemEquiped("clck26",LastSeenBy(Myself)) // Cloak of Mirroring !Race(LastSeenBy(Myself),RAKSHASA) !Race(LastSeenBy(Myself),LICH) See(LastSeenBy(Myself)) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) Spell(LastSeenBy(Myself),WIZARD_MELF_ACID_ARROW) RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") See(NearestEnemyOf(Myself)) !StateCheck(NearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) !StateCheck(NearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(NearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(NearestEnemyOf(Myself),5,WIZARD_SPELL_IMMUNITY) !General(NearestEnemyOf(Myself),UNDEAD) !Race(NearestEnemyOf(Myself),SLIME) !Race(NearestEnemyOf(Myself),GOLEM) !Race(NearestEnemyOf(Myself),DEMONIC) !Race(NearestEnemyOf(Myself),TROLL) !Kit(NearestEnemyOf(Myself),CAVALIER) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_RESIST_FEAR) !CheckStat(NearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("CLCK30",NearestEnemyOf(Myself)) // Cloak of Bravery !HasItemEquipedReal("SW1H32",NearestEnemyOf(Myself)) // Dragonslayer +3 !HasItemEquipedReal("MISCBC",NearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("RR#HELMD",NearestEnemyOf(Myself)) // Dead Man's Face Range(NearestEnemyOf(Myself),20) Global("fl#FearCone","LOCALS",0) !Race(NearestEnemyOf(Myself),RAKSHASA) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("fl#cnefr",NearestEnemyOf(Myself)) // Fear IncrementGlobal("fl#FearCone","LOCALS",1) RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") See(SecondNearestEnemyOf(Myself)) !StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) !StateCheck(SecondNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SecondNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(SecondNearestEnemyOf(Myself),5,WIZARD_SPELL_IMMUNITY) !General(SecondNearestEnemyOf(Myself),UNDEAD) !Race(SecondNearestEnemyOf(Myself),SLIME) !Race(SecondNearestEnemyOf(Myself),GOLEM) !Race(SecondNearestEnemyOf(Myself),DEMONIC) !Race(SecondNearestEnemyOf(Myself),TROLL) !Kit(SecondNearestEnemyOf(Myself),CAVALIER) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_RESIST_FEAR) !CheckStat(SecondNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("CLCK30",SecondNearestEnemyOf(Myself)) // Cloak of Bravery !HasItemEquipedReal("SW1H32",SecondNearestEnemyOf(Myself)) // Dragonslayer +3 !HasItemEquipedReal("MISCBC",SecondNearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("RR#HELMD",SecondNearestEnemyOf(Myself)) // Dead Man's Face Range(SecondNearestEnemyOf(Myself),20) Global("fl#FearCone","LOCALS",0) !Race(SecondNearestEnemyOf(Myself),RAKSHASA) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("fl#cnefr",SecondNearestEnemyOf(Myself)) // Fear IncrementGlobal("fl#FearCone","LOCALS",1) RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") See(ThirdNearestEnemyOf(Myself)) !StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(ThirdNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(ThirdNearestEnemyOf(Myself),5,WIZARD_SPELL_IMMUNITY) !General(ThirdNearestEnemyOf(Myself),UNDEAD) !Race(ThirdNearestEnemyOf(Myself),SLIME) !Race(ThirdNearestEnemyOf(Myself),GOLEM) !Race(ThirdNearestEnemyOf(Myself),DEMONIC) !Race(ThirdNearestEnemyOf(Myself),TROLL) !Kit(ThirdNearestEnemyOf(Myself),CAVALIER) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_RESIST_FEAR) !CheckStat(ThirdNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("CLCK30",ThirdNearestEnemyOf(Myself)) // Cloak of Bravery !HasItemEquipedReal("SW1H32",ThirdNearestEnemyOf(Myself)) // Dragonslayer +3 !HasItemEquipedReal("MISCBC",ThirdNearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("RR#HELMD",ThirdNearestEnemyOf(Myself)) // Dead Man's Face Range(ThirdNearestEnemyOf(Myself),20) Global("fl#FearCone","LOCALS",0) !Race(ThirdNearestEnemyOf(Myself),RAKSHASA) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("fl#cnefr",ThirdNearestEnemyOf(Myself)) // Fear IncrementGlobal("fl#FearCone","LOCALS",1) RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") See(FourthNearestEnemyOf(Myself)) !StateCheck(FourthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FourthNearestEnemyOf(Myself),0,HELD) !StateCheck(FourthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FourthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(FourthNearestEnemyOf(Myself),5,WIZARD_SPELL_IMMUNITY) !General(FourthNearestEnemyOf(Myself),UNDEAD) !Race(FourthNearestEnemyOf(Myself),SLIME) !Race(FourthNearestEnemyOf(Myself),GOLEM) !Race(FourthNearestEnemyOf(Myself),DEMONIC) !Race(FourthNearestEnemyOf(Myself),TROLL) !Kit(FourthNearestEnemyOf(Myself),CAVALIER) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_RESIST_FEAR) !CheckStat(FourthNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("CLCK30",FourthNearestEnemyOf(Myself)) // Cloak of Bravery !HasItemEquipedReal("SW1H32",FourthNearestEnemyOf(Myself)) // Dragonslayer +3 !HasItemEquipedReal("MISCBC",FourthNearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("RR#HELMD",FourthNearestEnemyOf(Myself)) // Dead Man's Face Range(FourthNearestEnemyOf(Myself),20) Global("fl#FearCone","LOCALS",0) !Race(FourthNearestEnemyOf(Myself),RAKSHASA) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("fl#cnefr",FourthNearestEnemyOf(Myself)) // Fear IncrementGlobal("fl#FearCone","LOCALS",1) RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") See(FifthNearestEnemyOf(Myself)) !StateCheck(FifthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FifthNearestEnemyOf(Myself),0,HELD) !StateCheck(FifthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FifthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(FifthNearestEnemyOf(Myself),5,WIZARD_SPELL_IMMUNITY) !General(FifthNearestEnemyOf(Myself),UNDEAD) !Race(FifthNearestEnemyOf(Myself),SLIME) !Race(FifthNearestEnemyOf(Myself),GOLEM) !Race(FifthNearestEnemyOf(Myself),DEMONIC) !Race(FifthNearestEnemyOf(Myself),TROLL) !Kit(FifthNearestEnemyOf(Myself),CAVALIER) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_RESIST_FEAR) !CheckStat(FifthNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("CLCK30",FifthNearestEnemyOf(Myself)) // Cloak of Bravery !HasItemEquipedReal("SW1H32",FifthNearestEnemyOf(Myself)) // Dragonslayer +3 !HasItemEquipedReal("MISCBC",FifthNearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("RR#HELMD",FifthNearestEnemyOf(Myself)) // Dead Man's Face Range(FifthNearestEnemyOf(Myself),20) Global("fl#FearCone","LOCALS",0) !Race(FifthNearestEnemyOf(Myself),RAKSHASA) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("fl#cnefr",FifthNearestEnemyOf(Myself)) // Fear IncrementGlobal("fl#FearCone","LOCALS",1) RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") See(SixthNearestEnemyOf(Myself)) !StateCheck(SixthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SixthNearestEnemyOf(Myself),0,HELD) !StateCheck(SixthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SixthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(SixthNearestEnemyOf(Myself),5,WIZARD_SPELL_IMMUNITY) !General(SixthNearestEnemyOf(Myself),UNDEAD) !Race(SixthNearestEnemyOf(Myself),SLIME) !Race(SixthNearestEnemyOf(Myself),GOLEM) !Race(SixthNearestEnemyOf(Myself),DEMONIC) !Race(SixthNearestEnemyOf(Myself),TROLL) !Kit(SixthNearestEnemyOf(Myself),CAVALIER) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_RESIST_FEAR) !CheckStat(SixthNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("CLCK30",SixthNearestEnemyOf(Myself)) // Cloak of Bravery !HasItemEquipedReal("SW1H32",SixthNearestEnemyOf(Myself)) // Dragonslayer +3 !HasItemEquipedReal("MISCBC",SixthNearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("RR#HELMD",SixthNearestEnemyOf(Myself)) // Dead Man's Face Range(SixthNearestEnemyOf(Myself),20) Global("fl#FearCone","LOCALS",0) !Race(SixthNearestEnemyOf(Myself),RAKSHASA) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("fl#cnefr",SixthNearestEnemyOf(Myself)) // Fear IncrementGlobal("fl#FearCone","LOCALS",1) RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") See(NearestEnemyOfType([0.0.TROLL])) !CheckStatGT(NearestEnemyOfType([0.0.TROLL]),99,RESISTFIRE) !CheckStatGT(NearestEnemyOfType([0.0.TROLL]),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(NearestEnemyOfType([0.0.TROLL]),0,WIZARD_SPELL_TURNING) !CheckStatGT(NearestEnemyOfType([0.0.TROLL]),0,WIZARD_SPELL_TRAP) !CheckStat(NearestEnemyOfType([0.0.TROLL]),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(NearestEnemyOfType([0.0.TROLL]),0,MINORGLOBE) !StateCheck(NearestEnemyOfType([0.0.TROLL]),STATE_NOT_VISIBLE) HPLT(NearestEnemyOfType([0.0.TROLL]),15) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#PFLAM",NearestEnemyOfType([0.0.TROLL])) // Produce Flame RESPONSE #50 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") See(SecondNearestEnemyOfType([0.0.TROLL])) !CheckStatGT(SecondNearestEnemyOfType([0.0.TROLL]),99,RESISTFIRE) !CheckStatGT(SecondNearestEnemyOfType([0.0.TROLL]),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SecondNearestEnemyOfType([0.0.TROLL]),0,WIZARD_SPELL_TURNING) !CheckStatGT(SecondNearestEnemyOfType([0.0.TROLL]),0,WIZARD_SPELL_TRAP) !CheckStat(SecondNearestEnemyOfType([0.0.TROLL]),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(SecondNearestEnemyOfType([0.0.TROLL]),0,MINORGLOBE) !StateCheck(SecondNearestEnemyOfType([0.0.TROLL]),STATE_NOT_VISIBLE) HPLT(SecondNearestEnemyOfType([0.0.TROLL]),15) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#PFLAM",SecondNearestEnemyOfType([0.0.TROLL])) // Produce Flame RESPONSE #50 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") See(ThirdNearestEnemyOfType([0.0.TROLL])) !CheckStatGT(ThirdNearestEnemyOfType([0.0.TROLL]),99,RESISTFIRE) !CheckStatGT(ThirdNearestEnemyOfType([0.0.TROLL]),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(ThirdNearestEnemyOfType([0.0.TROLL]),0,WIZARD_SPELL_TURNING) !CheckStatGT(ThirdNearestEnemyOfType([0.0.TROLL]),0,WIZARD_SPELL_TRAP) !CheckStat(ThirdNearestEnemyOfType([0.0.TROLL]),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(ThirdNearestEnemyOfType([0.0.TROLL]),0,MINORGLOBE) !StateCheck(ThirdNearestEnemyOfType([0.0.TROLL]),STATE_NOT_VISIBLE) HPLT(ThirdNearestEnemyOfType([0.0.TROLL]),15) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#PFLAM",ThirdNearestEnemyOfType([0.0.TROLL])) // Produce Flame RESPONSE #50 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") See(FourthNearestEnemyOfType([0.0.TROLL])) !CheckStatGT(FourthNearestEnemyOfType([0.0.TROLL]),99,RESISTFIRE) !CheckStatGT(FourthNearestEnemyOfType([0.0.TROLL]),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FourthNearestEnemyOfType([0.0.TROLL]),0,WIZARD_SPELL_TURNING) !CheckStatGT(FourthNearestEnemyOfType([0.0.TROLL]),0,WIZARD_SPELL_TRAP) !CheckStat(FourthNearestEnemyOfType([0.0.TROLL]),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(FourthNearestEnemyOfType([0.0.TROLL]),0,MINORGLOBE) !StateCheck(FourthNearestEnemyOfType([0.0.TROLL]),STATE_NOT_VISIBLE) HPLT(FourthNearestEnemyOfType([0.0.TROLL]),15) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#PFLAM",FourthNearestEnemyOfType([0.0.TROLL])) // Produce Flame RESPONSE #50 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") See(FifthNearestEnemyOfType([0.0.TROLL])) !CheckStatGT(FifthNearestEnemyOfType([0.0.TROLL]),99,RESISTFIRE) !CheckStatGT(FifthNearestEnemyOfType([0.0.TROLL]),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FifthNearestEnemyOfType([0.0.TROLL]),0,WIZARD_SPELL_TURNING) !CheckStatGT(FifthNearestEnemyOfType([0.0.TROLL]),0,WIZARD_SPELL_TRAP) !CheckStat(FifthNearestEnemyOfType([0.0.TROLL]),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(FifthNearestEnemyOfType([0.0.TROLL]),0,MINORGLOBE) !StateCheck(FifthNearestEnemyOfType([0.0.TROLL]),STATE_NOT_VISIBLE) HPLT(FifthNearestEnemyOfType([0.0.TROLL]),15) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#PFLAM",FifthNearestEnemyOfType([0.0.TROLL])) // Produce Flame RESPONSE #50 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") See(SixthNearestEnemyOfType([0.0.TROLL])) !CheckStatGT(SixthNearestEnemyOfType([0.0.TROLL]),99,RESISTFIRE) !CheckStatGT(SixthNearestEnemyOfType([0.0.TROLL]),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SixthNearestEnemyOfType([0.0.TROLL]),0,WIZARD_SPELL_TURNING) !CheckStatGT(SixthNearestEnemyOfType([0.0.TROLL]),0,WIZARD_SPELL_TRAP) !CheckStat(SixthNearestEnemyOfType([0.0.TROLL]),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(SixthNearestEnemyOfType([0.0.TROLL]),0,MINORGLOBE) !StateCheck(SixthNearestEnemyOfType([0.0.TROLL]),STATE_NOT_VISIBLE) HPLT(SixthNearestEnemyOfType([0.0.TROLL]),15) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#PFLAM",SixthNearestEnemyOfType([0.0.TROLL])) // Produce Flame RESPONSE #50 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_CHROMATIC_ORB) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(SixthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SixthNearestEnemyOf(Myself),0,HELD) !StateCheck(SixthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SixthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(SixthNearestEnemyOf(Myself),6,WIZARD_SPELL_IMMUNITY) !CheckStatGT(SixthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SixthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !General(SixthNearestEnemyOf(Myself),UNDEAD) !Race(SixthNearestEnemyOf(Myself),SLIME) !CheckStatGT(SixthNearestEnemyOf(Myself),0,SCRIPTINGSTATE2) !HasItemEquiped("clck26",SixthNearestEnemyOf(Myself)) // Cloak of Mirroring !HasItemEquiped("sw1h71",SixthNearestEnemyOf(Myself)) // Hindo's Doom +4 CheckStat(SixthNearestEnemyOf(Myself),1,RESISTMISSILE) !Race(SixthNearestEnemyOf(Myself),RAKSHASA) !Race(SixthNearestEnemyOf(Myself),LICH) See(SixthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_CHROMATIC_ORB) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(FifthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FifthNearestEnemyOf(Myself),0,HELD) !StateCheck(FifthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FifthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(FifthNearestEnemyOf(Myself),6,WIZARD_SPELL_IMMUNITY) !CheckStatGT(FifthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FifthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !General(FifthNearestEnemyOf(Myself),UNDEAD) !Race(FifthNearestEnemyOf(Myself),SLIME) !CheckStatGT(FifthNearestEnemyOf(Myself),0,SCRIPTINGSTATE2) !HasItemEquiped("clck26",FifthNearestEnemyOf(Myself)) // Cloak of Mirroring !HasItemEquiped("sw1h71",FifthNearestEnemyOf(Myself)) // Hindo's Doom +4 CheckStat(FifthNearestEnemyOf(Myself),1,RESISTMISSILE) !Race(FifthNearestEnemyOf(Myself),RAKSHASA) !Race(FifthNearestEnemyOf(Myself),LICH) See(FifthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_CHROMATIC_ORB) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(FourthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FourthNearestEnemyOf(Myself),0,HELD) !StateCheck(FourthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FourthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(FourthNearestEnemyOf(Myself),6,WIZARD_SPELL_IMMUNITY) !CheckStatGT(FourthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FourthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !General(FourthNearestEnemyOf(Myself),UNDEAD) !Race(FourthNearestEnemyOf(Myself),SLIME) !CheckStatGT(FourthNearestEnemyOf(Myself),0,SCRIPTINGSTATE2) !HasItemEquiped("clck26",FourthNearestEnemyOf(Myself)) // Cloak of Mirroring !HasItemEquiped("sw1h71",FourthNearestEnemyOf(Myself)) // Hindo's Doom +4 CheckStat(FourthNearestEnemyOf(Myself),1,RESISTMISSILE) !Race(FourthNearestEnemyOf(Myself),RAKSHASA) !Race(FourthNearestEnemyOf(Myself),LICH) See(FourthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_CHROMATIC_ORB) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(ThirdNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(ThirdNearestEnemyOf(Myself),6,WIZARD_SPELL_IMMUNITY) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(ThirdNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !General(ThirdNearestEnemyOf(Myself),UNDEAD) !Race(ThirdNearestEnemyOf(Myself),SLIME) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,SCRIPTINGSTATE2) !HasItemEquiped("clck26",ThirdNearestEnemyOf(Myself)) // Cloak of Mirroring !HasItemEquiped("sw1h71",ThirdNearestEnemyOf(Myself)) // Hindo's Doom +4 CheckStat(ThirdNearestEnemyOf(Myself),1,RESISTMISSILE) !Race(ThirdNearestEnemyOf(Myself),RAKSHASA) !Race(ThirdNearestEnemyOf(Myself),LICH) See(ThirdNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_CHROMATIC_ORB) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) !StateCheck(SecondNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SecondNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(SecondNearestEnemyOf(Myself),6,WIZARD_SPELL_IMMUNITY) !CheckStatGT(SecondNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SecondNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !General(SecondNearestEnemyOf(Myself),UNDEAD) !Race(SecondNearestEnemyOf(Myself),SLIME) !CheckStatGT(SecondNearestEnemyOf(Myself),0,SCRIPTINGSTATE2) !HasItemEquiped("clck26",SecondNearestEnemyOf(Myself)) // Cloak of Mirroring !HasItemEquiped("sw1h71",SecondNearestEnemyOf(Myself)) // Hindo's Doom +4 CheckStat(SecondNearestEnemyOf(Myself),1,RESISTMISSILE) !Race(SecondNearestEnemyOf(Myself),RAKSHASA) !Race(SecondNearestEnemyOf(Myself),LICH) See(SecondNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_CHROMATIC_ORB) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(NearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) !StateCheck(NearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(NearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(NearestEnemyOf(Myself),6,WIZARD_SPELL_IMMUNITY) !CheckStatGT(NearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(NearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !General(NearestEnemyOf(Myself),UNDEAD) !Race(NearestEnemyOf(Myself),SLIME) !CheckStatGT(NearestEnemyOf(Myself),0,SCRIPTINGSTATE2) !HasItemEquiped("clck26",NearestEnemyOf(Myself)) // Cloak of Mirroring !HasItemEquiped("sw1h71",NearestEnemyOf(Myself)) // Hindo's Doom +4 CheckStat(NearestEnemyOf(Myself),1,RESISTMISSILE) !Race(NearestEnemyOf(Myself),RAKSHASA) !Race(NearestEnemyOf(Myself),LICH) See(NearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_CHROMATIC_ORB) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(LastSeenBy(Myself),RZ_STATE_DISABLED) !CheckStatGT(LastSeenBy(Myself),0,HELD) !StateCheck(LastSeenBy(Myself),STATE_STONE_DEATH) !CheckStatGT(LastSeenBy(Myself),50,RESISTMAGIC) !CheckStat(LastSeenBy(Myself),6,WIZARD_SPELL_IMMUNITY) !CheckStatGT(LastSeenBy(Myself),0,MINORGLOBE) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(LastSeenBy(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !General(LastSeenBy(Myself),UNDEAD) !Race(LastSeenBy(Myself),SLIME) !CheckStatGT(LastSeenBy(Myself),0,SCRIPTINGSTATE2) !HasItemEquiped("clck26",LastSeenBy(Myself)) // Cloak of Mirroring !HasItemEquiped("sw1h71",LastSeenBy(Myself)) // Hindo's Doom +4 CheckStat(LastSeenBy(Myself),1,RESISTMISSILE) !Race(LastSeenBy(Myself),RAKSHASA) !Race(LastSeenBy(Myself),LICH) See(LastSeenBy(Myself)) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) Spell(LastSeenBy(Myself),WIZARD_CHROMATIC_ORB) RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_BLINDNESS) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(SixthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SixthNearestEnemyOf(Myself),0,HELD) !StateCheck(SixthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SixthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(SixthNearestEnemyOf(Myself),5,WIZARD_SPELL_IMMUNITY) !CheckStatGT(SixthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SixthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !General(SixthNearestEnemyOf(Myself),UNDEAD) !Race(SixthNearestEnemyOf(Myself),SLIME) !Race(SixthNearestEnemyOf(Myself),DEMONIC) !HasItemEquiped("NPMISC1",SixthNearestEnemyOf(Myself)) // Jansen Spectroscopes !HasItemEquiped("RR#HEL02",SixthNearestEnemyOf(Myself)) // Cowl of Acuity !StateCheck(SixthNearestEnemyOf(Myself),STATE_BLIND) !Race(SixthNearestEnemyOf(Myself),RAKSHASA) !Race(SixthNearestEnemyOf(Myself),LICH) See(SixthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_BLINDNESS) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(FifthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FifthNearestEnemyOf(Myself),0,HELD) !StateCheck(FifthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FifthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(FifthNearestEnemyOf(Myself),5,WIZARD_SPELL_IMMUNITY) !CheckStatGT(FifthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FifthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !General(FifthNearestEnemyOf(Myself),UNDEAD) !Race(FifthNearestEnemyOf(Myself),SLIME) !Race(FifthNearestEnemyOf(Myself),DEMONIC) !HasItemEquiped("NPMISC1",FifthNearestEnemyOf(Myself)) // Jansen Spectroscopes !HasItemEquiped("RR#HEL02",FifthNearestEnemyOf(Myself)) // Cowl of Acuity !StateCheck(FifthNearestEnemyOf(Myself),STATE_BLIND) !Race(FifthNearestEnemyOf(Myself),RAKSHASA) !Race(FifthNearestEnemyOf(Myself),LICH) See(FifthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_BLINDNESS) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(FourthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FourthNearestEnemyOf(Myself),0,HELD) !StateCheck(FourthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FourthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(FourthNearestEnemyOf(Myself),5,WIZARD_SPELL_IMMUNITY) !CheckStatGT(FourthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FourthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !General(FourthNearestEnemyOf(Myself),UNDEAD) !Race(FourthNearestEnemyOf(Myself),SLIME) !Race(FourthNearestEnemyOf(Myself),DEMONIC) !HasItemEquiped("NPMISC1",FourthNearestEnemyOf(Myself)) // Jansen Spectroscopes !HasItemEquiped("RR#HEL02",FourthNearestEnemyOf(Myself)) // Cowl of Acuity !StateCheck(FourthNearestEnemyOf(Myself),STATE_BLIND) !Race(FourthNearestEnemyOf(Myself),RAKSHASA) !Race(FourthNearestEnemyOf(Myself),LICH) See(FourthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_BLINDNESS) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(ThirdNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(ThirdNearestEnemyOf(Myself),5,WIZARD_SPELL_IMMUNITY) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(ThirdNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !General(ThirdNearestEnemyOf(Myself),UNDEAD) !Race(ThirdNearestEnemyOf(Myself),SLIME) !Race(ThirdNearestEnemyOf(Myself),DEMONIC) !HasItemEquiped("NPMISC1",ThirdNearestEnemyOf(Myself)) // Jansen Spectroscopes !HasItemEquiped("RR#HEL02",ThirdNearestEnemyOf(Myself)) // Cowl of Acuity !StateCheck(ThirdNearestEnemyOf(Myself),STATE_BLIND) !Race(ThirdNearestEnemyOf(Myself),RAKSHASA) !Race(ThirdNearestEnemyOf(Myself),LICH) See(ThirdNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_BLINDNESS) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) !StateCheck(SecondNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SecondNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(SecondNearestEnemyOf(Myself),5,WIZARD_SPELL_IMMUNITY) !CheckStatGT(SecondNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SecondNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !General(SecondNearestEnemyOf(Myself),UNDEAD) !Race(SecondNearestEnemyOf(Myself),SLIME) !Race(SecondNearestEnemyOf(Myself),DEMONIC) !HasItemEquiped("NPMISC1",SecondNearestEnemyOf(Myself)) // Jansen Spectroscopes !HasItemEquiped("RR#HEL02",SecondNearestEnemyOf(Myself)) // Cowl of Acuity !StateCheck(SecondNearestEnemyOf(Myself),STATE_BLIND) !Race(SecondNearestEnemyOf(Myself),RAKSHASA) !Race(SecondNearestEnemyOf(Myself),LICH) See(SecondNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_BLINDNESS) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(NearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) !StateCheck(NearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(NearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(NearestEnemyOf(Myself),5,WIZARD_SPELL_IMMUNITY) !CheckStatGT(NearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(NearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !General(NearestEnemyOf(Myself),UNDEAD) !Race(NearestEnemyOf(Myself),SLIME) !Race(NearestEnemyOf(Myself),DEMONIC) !HasItemEquiped("NPMISC1",NearestEnemyOf(Myself)) // Jansen Spectroscopes !HasItemEquiped("RR#HEL02",NearestEnemyOf(Myself)) // Cowl of Acuity !StateCheck(NearestEnemyOf(Myself),STATE_BLIND) !Race(NearestEnemyOf(Myself),RAKSHASA) !Race(NearestEnemyOf(Myself),LICH) See(NearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_BLINDNESS) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(LastSeenBy(Myself),RZ_STATE_DISABLED) !CheckStatGT(LastSeenBy(Myself),0,HELD) !StateCheck(LastSeenBy(Myself),STATE_STONE_DEATH) !CheckStatGT(LastSeenBy(Myself),50,RESISTMAGIC) !CheckStat(LastSeenBy(Myself),5,WIZARD_SPELL_IMMUNITY) !CheckStatGT(LastSeenBy(Myself),0,MINORGLOBE) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(LastSeenBy(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !General(LastSeenBy(Myself),UNDEAD) !Race(LastSeenBy(Myself),SLIME) !Race(LastSeenBy(Myself),DEMONIC) !HasItemEquiped("NPMISC1",LastSeenBy(Myself)) // Jansen Spectroscopes !HasItemEquiped("RR#HEL02",LastSeenBy(Myself)) // Cowl of Acuity !StateCheck(LastSeenBy(Myself),STATE_BLIND) !Race(LastSeenBy(Myself),RAKSHASA) !Race(LastSeenBy(Myself),LICH) See(LastSeenBy(Myself)) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) Spell(LastSeenBy(Myself),WIZARD_BLINDNESS) RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_SPOOK) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(SixthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SixthNearestEnemyOf(Myself),0,HELD) !StateCheck(SixthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SixthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(SixthNearestEnemyOf(Myself),5,WIZARD_SPELL_IMMUNITY) !CheckStatGT(SixthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SixthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !General(SixthNearestEnemyOf(Myself),UNDEAD) !Race(SixthNearestEnemyOf(Myself),SLIME) !Race(SixthNearestEnemyOf(Myself),GOLEM) !Race(SixthNearestEnemyOf(Myself),DEMONIC) !Race(SixthNearestEnemyOf(Myself),TROLL) !Kit(SixthNearestEnemyOf(Myself),CAVALIER) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_RESIST_FEAR) !CheckStat(SixthNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("CLCK30",SixthNearestEnemyOf(Myself)) // Cloak of Bravery !HasItemEquipedReal("SW1H32",SixthNearestEnemyOf(Myself)) // Dragonslayer +3 !HasItemEquipedReal("MISCBC",SixthNearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("RR#HELMD",SixthNearestEnemyOf(Myself)) // Dead Man's Face !Race(SixthNearestEnemyOf(Myself),RAKSHASA) See(SixthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_SPOOK) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(FifthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FifthNearestEnemyOf(Myself),0,HELD) !StateCheck(FifthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FifthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(FifthNearestEnemyOf(Myself),5,WIZARD_SPELL_IMMUNITY) !CheckStatGT(FifthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FifthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !General(FifthNearestEnemyOf(Myself),UNDEAD) !Race(FifthNearestEnemyOf(Myself),SLIME) !Race(FifthNearestEnemyOf(Myself),GOLEM) !Race(FifthNearestEnemyOf(Myself),DEMONIC) !Race(FifthNearestEnemyOf(Myself),TROLL) !Kit(FifthNearestEnemyOf(Myself),CAVALIER) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_RESIST_FEAR) !CheckStat(FifthNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("CLCK30",FifthNearestEnemyOf(Myself)) // Cloak of Bravery !HasItemEquipedReal("SW1H32",FifthNearestEnemyOf(Myself)) // Dragonslayer +3 !HasItemEquipedReal("MISCBC",FifthNearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("RR#HELMD",FifthNearestEnemyOf(Myself)) // Dead Man's Face !Race(FifthNearestEnemyOf(Myself),RAKSHASA) See(FifthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_SPOOK) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(FourthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FourthNearestEnemyOf(Myself),0,HELD) !StateCheck(FourthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FourthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(FourthNearestEnemyOf(Myself),5,WIZARD_SPELL_IMMUNITY) !CheckStatGT(FourthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FourthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !General(FourthNearestEnemyOf(Myself),UNDEAD) !Race(FourthNearestEnemyOf(Myself),SLIME) !Race(FourthNearestEnemyOf(Myself),GOLEM) !Race(FourthNearestEnemyOf(Myself),DEMONIC) !Race(FourthNearestEnemyOf(Myself),TROLL) !Kit(FourthNearestEnemyOf(Myself),CAVALIER) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_RESIST_FEAR) !CheckStat(FourthNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("CLCK30",FourthNearestEnemyOf(Myself)) // Cloak of Bravery !HasItemEquipedReal("SW1H32",FourthNearestEnemyOf(Myself)) // Dragonslayer +3 !HasItemEquipedReal("MISCBC",FourthNearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("RR#HELMD",FourthNearestEnemyOf(Myself)) // Dead Man's Face !Race(FourthNearestEnemyOf(Myself),RAKSHASA) See(FourthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_SPOOK) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(ThirdNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(ThirdNearestEnemyOf(Myself),5,WIZARD_SPELL_IMMUNITY) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(ThirdNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !General(ThirdNearestEnemyOf(Myself),UNDEAD) !Race(ThirdNearestEnemyOf(Myself),SLIME) !Race(ThirdNearestEnemyOf(Myself),GOLEM) !Race(ThirdNearestEnemyOf(Myself),DEMONIC) !Race(ThirdNearestEnemyOf(Myself),TROLL) !Kit(ThirdNearestEnemyOf(Myself),CAVALIER) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_RESIST_FEAR) !CheckStat(ThirdNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("CLCK30",ThirdNearestEnemyOf(Myself)) // Cloak of Bravery !HasItemEquipedReal("SW1H32",ThirdNearestEnemyOf(Myself)) // Dragonslayer +3 !HasItemEquipedReal("MISCBC",ThirdNearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("RR#HELMD",ThirdNearestEnemyOf(Myself)) // Dead Man's Face !Race(ThirdNearestEnemyOf(Myself),RAKSHASA) See(ThirdNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_SPOOK) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) !StateCheck(SecondNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SecondNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(SecondNearestEnemyOf(Myself),5,WIZARD_SPELL_IMMUNITY) !CheckStatGT(SecondNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SecondNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !General(SecondNearestEnemyOf(Myself),UNDEAD) !Race(SecondNearestEnemyOf(Myself),SLIME) !Race(SecondNearestEnemyOf(Myself),GOLEM) !Race(SecondNearestEnemyOf(Myself),DEMONIC) !Race(SecondNearestEnemyOf(Myself),TROLL) !Kit(SecondNearestEnemyOf(Myself),CAVALIER) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_RESIST_FEAR) !CheckStat(SecondNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("CLCK30",SecondNearestEnemyOf(Myself)) // Cloak of Bravery !HasItemEquipedReal("SW1H32",SecondNearestEnemyOf(Myself)) // Dragonslayer +3 !HasItemEquipedReal("MISCBC",SecondNearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("RR#HELMD",SecondNearestEnemyOf(Myself)) // Dead Man's Face !Race(SecondNearestEnemyOf(Myself),RAKSHASA) See(SecondNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_SPOOK) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(NearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) !StateCheck(NearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(NearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStat(NearestEnemyOf(Myself),5,WIZARD_SPELL_IMMUNITY) !CheckStatGT(NearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(NearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !General(NearestEnemyOf(Myself),UNDEAD) !Race(NearestEnemyOf(Myself),SLIME) !Race(NearestEnemyOf(Myself),GOLEM) !Race(NearestEnemyOf(Myself),DEMONIC) !Race(NearestEnemyOf(Myself),TROLL) !Kit(NearestEnemyOf(Myself),CAVALIER) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_RESIST_FEAR) !CheckStat(NearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("CLCK30",NearestEnemyOf(Myself)) // Cloak of Bravery !HasItemEquipedReal("SW1H32",NearestEnemyOf(Myself)) // Dragonslayer +3 !HasItemEquipedReal("MISCBC",NearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("RR#HELMD",NearestEnemyOf(Myself)) // Dead Man's Face !Race(NearestEnemyOf(Myself),RAKSHASA) See(NearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") HaveSpell(WIZARD_SPOOK) CheckStatLT(Myself,50,SPELLFAILUREMAGE) !StateCheck(Myself,STATE_SILENCED) !StateCheck(LastSeenBy(Myself),RZ_STATE_DISABLED) !CheckStatGT(LastSeenBy(Myself),0,HELD) !StateCheck(LastSeenBy(Myself),STATE_STONE_DEATH) !CheckStatGT(LastSeenBy(Myself),50,RESISTMAGIC) !CheckStat(LastSeenBy(Myself),5,WIZARD_SPELL_IMMUNITY) !CheckStatGT(LastSeenBy(Myself),0,MINORGLOBE) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(LastSeenBy(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !General(LastSeenBy(Myself),UNDEAD) !Race(LastSeenBy(Myself),SLIME) !Race(LastSeenBy(Myself),GOLEM) !Race(LastSeenBy(Myself),DEMONIC) !Race(LastSeenBy(Myself),TROLL) !Kit(LastSeenBy(Myself),CAVALIER) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_RESIST_FEAR) !CheckStat(LastSeenBy(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("CLCK30",LastSeenBy(Myself)) // Cloak of Bravery !HasItemEquipedReal("SW1H32",LastSeenBy(Myself)) // Dragonslayer +3 !HasItemEquipedReal("MISCBC",LastSeenBy(Myself)) // Blackrazor +3 !HasItemEquiped("RR#HELMD",LastSeenBy(Myself)) // Dead Man's Face !Race(LastSeenBy(Myself),RAKSHASA) See(LastSeenBy(Myself)) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) Spell(LastSeenBy(Myself),WIZARD_SPOOK) RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") !StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(ThirdNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(ThirdNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(ThirdNearestEnemyOf(Myself),1,WIZARD_SPELL_IMMUNITY) !General(ThirdNearestEnemyOf(Myself),UNDEAD) !Race(ThirdNearestEnemyOf(Myself),DEMONIC) !Race(ThirdNearestEnemyOf(Myself),GOLEM) !Race(ThirdNearestEnemyOf(Myself),ELEMENTAL) !Race(ThirdNearestEnemyOf(Myself),SLIME) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_DISEASED) !HasItemEquiped("ring39",ThirdNearestEnemyOf(Myself)) // Ring of Kangaxx !HasItemEquiped("misc8j",ThirdNearestEnemyOf(Myself)) // Boots of the West Range(ThirdNearestEnemyOf(Myself),2) !Race(ThirdNearestEnemyOf(Myself),RAKSHASA) See(ThirdNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") !StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) !StateCheck(SecondNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SecondNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SecondNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(SecondNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(SecondNearestEnemyOf(Myself),1,WIZARD_SPELL_IMMUNITY) !General(SecondNearestEnemyOf(Myself),UNDEAD) !Race(SecondNearestEnemyOf(Myself),DEMONIC) !Race(SecondNearestEnemyOf(Myself),GOLEM) !Race(SecondNearestEnemyOf(Myself),ELEMENTAL) !Race(SecondNearestEnemyOf(Myself),SLIME) !StateCheck(SecondNearestEnemyOf(Myself),STATE_DISEASED) !HasItemEquiped("ring39",SecondNearestEnemyOf(Myself)) // Ring of Kangaxx !HasItemEquiped("misc8j",SecondNearestEnemyOf(Myself)) // Boots of the West Range(SecondNearestEnemyOf(Myself),2) !Race(SecondNearestEnemyOf(Myself),RAKSHASA) See(SecondNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") !StateCheck(NearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) !StateCheck(NearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(NearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(NearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(NearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(NearestEnemyOf(Myself),1,WIZARD_SPELL_IMMUNITY) !General(NearestEnemyOf(Myself),UNDEAD) !Race(NearestEnemyOf(Myself),DEMONIC) !Race(NearestEnemyOf(Myself),GOLEM) !Race(NearestEnemyOf(Myself),ELEMENTAL) !Race(NearestEnemyOf(Myself),SLIME) !StateCheck(NearestEnemyOf(Myself),STATE_DISEASED) !HasItemEquiped("ring39",NearestEnemyOf(Myself)) // Ring of Kangaxx !HasItemEquiped("misc8j",NearestEnemyOf(Myself)) // Boots of the West Range(NearestEnemyOf(Myself),2) !Race(NearestEnemyOf(Myself),RAKSHASA) See(NearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") !StateCheck(LastSeenBy(Myself),RZ_STATE_DISABLED) !CheckStatGT(LastSeenBy(Myself),0,HELD) !StateCheck(LastSeenBy(Myself),STATE_STONE_DEATH) !CheckStatGT(LastSeenBy(Myself),50,RESISTMAGIC) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(LastSeenBy(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(LastSeenBy(Myself),0,MINORGLOBE) !CheckStat(LastSeenBy(Myself),1,WIZARD_SPELL_IMMUNITY) !General(LastSeenBy(Myself),UNDEAD) !Race(LastSeenBy(Myself),DEMONIC) !Race(LastSeenBy(Myself),GOLEM) !Race(LastSeenBy(Myself),ELEMENTAL) !Race(LastSeenBy(Myself),SLIME) !StateCheck(LastSeenBy(Myself),STATE_DISEASED) !HasItemEquiped("ring39",LastSeenBy(Myself)) // Ring of Kangaxx !HasItemEquiped("misc8j",LastSeenBy(Myself)) // Boots of the West Range(LastSeenBy(Myself),2) !Race(LastSeenBy(Myself),RAKSHASA) See(LastSeenBy(Myself)) THEN RESPONSE #70 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("fl#csdis",LastSeenBy(Myself)) // Cause Disease RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") !StateCheck(SixthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SixthNearestEnemyOf(Myself),0,HELD) !StateCheck(SixthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SixthNearestEnemyOf(Myself),75,RESISTMAGIC) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SixthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(SixthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(SixthNearestEnemyOf(Myself),6,WIZARD_SPELL_IMMUNITY) !Race(SixthNearestEnemyOf(Myself),LICH) !Race(SixthNearestEnemyOf(Myself),RAKSHASA) !HasItemEquiped("clck26",SixthNearestEnemyOf(Myself)) // Cloak of Mirroring See(SixthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") !StateCheck(FifthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FifthNearestEnemyOf(Myself),0,HELD) !StateCheck(FifthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FifthNearestEnemyOf(Myself),75,RESISTMAGIC) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FifthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(FifthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(FifthNearestEnemyOf(Myself),6,WIZARD_SPELL_IMMUNITY) !Race(FifthNearestEnemyOf(Myself),LICH) !Race(FifthNearestEnemyOf(Myself),RAKSHASA) !HasItemEquiped("clck26",FifthNearestEnemyOf(Myself)) // Cloak of Mirroring See(FifthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") !StateCheck(FourthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FourthNearestEnemyOf(Myself),0,HELD) !StateCheck(FourthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FourthNearestEnemyOf(Myself),75,RESISTMAGIC) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FourthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(FourthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(FourthNearestEnemyOf(Myself),6,WIZARD_SPELL_IMMUNITY) !Race(FourthNearestEnemyOf(Myself),LICH) !Race(FourthNearestEnemyOf(Myself),RAKSHASA) !HasItemEquiped("clck26",FourthNearestEnemyOf(Myself)) // Cloak of Mirroring See(FourthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") !StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(ThirdNearestEnemyOf(Myself),75,RESISTMAGIC) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(ThirdNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(ThirdNearestEnemyOf(Myself),6,WIZARD_SPELL_IMMUNITY) !Race(ThirdNearestEnemyOf(Myself),LICH) !Race(ThirdNearestEnemyOf(Myself),RAKSHASA) !HasItemEquiped("clck26",ThirdNearestEnemyOf(Myself)) // Cloak of Mirroring See(ThirdNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") !StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) !StateCheck(SecondNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SecondNearestEnemyOf(Myself),75,RESISTMAGIC) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SecondNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(SecondNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(SecondNearestEnemyOf(Myself),6,WIZARD_SPELL_IMMUNITY) !Race(SecondNearestEnemyOf(Myself),LICH) !Race(SecondNearestEnemyOf(Myself),RAKSHASA) !HasItemEquiped("clck26",SecondNearestEnemyOf(Myself)) // Cloak of Mirroring See(SecondNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") !StateCheck(NearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) !StateCheck(NearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(NearestEnemyOf(Myself),75,RESISTMAGIC) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(NearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(NearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(NearestEnemyOf(Myself),6,WIZARD_SPELL_IMMUNITY) !Race(NearestEnemyOf(Myself),LICH) !Race(NearestEnemyOf(Myself),RAKSHASA) !HasItemEquiped("clck26",NearestEnemyOf(Myself)) // Cloak of Mirroring See(NearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") !StateCheck(LastSeenBy(Myself),RZ_STATE_DISABLED) !CheckStatGT(LastSeenBy(Myself),0,HELD) !StateCheck(LastSeenBy(Myself),STATE_STONE_DEATH) !CheckStatGT(LastSeenBy(Myself),75,RESISTMAGIC) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(LastSeenBy(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(LastSeenBy(Myself),0,MINORGLOBE) !CheckStat(LastSeenBy(Myself),6,WIZARD_SPELL_IMMUNITY) !Race(LastSeenBy(Myself),LICH) !Race(LastSeenBy(Myself),RAKSHASA) !HasItemEquiped("clck26",LastSeenBy(Myself)) // Cloak of Mirroring See(LastSeenBy(Myself)) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#WI112",LastSeenBy(Myself)) // Magic Missile RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") General(SixthNearestEnemyOf(Myself),HUMANOID) !Race(SixthNearestEnemyOf(Myself),RAKSHASA) CheckStatGT(SixthNearestEnemyOf(Myself),5,SAVEVSSPELL) !StateCheck(SixthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SixthNearestEnemyOf(Myself),0,HELD) !StateCheck(SixthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SixthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SixthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(SixthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(SixthNearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !General(SixthNearestEnemyOf(Myself),UNDEAD) !Race(SixthNearestEnemyOf(Myself),ELF) !Race(SixthNearestEnemyOf(Myself),GOLEM) !Race(SixthNearestEnemyOf(Myself),SLIME) !Race(SixthNearestEnemyOf(Myself),DEMONIC) !Race(SixthNearestEnemyOf(Myself),TROLL) !Class(SixthNearestEnemyOf(Myself),MONK) !Kit(SixthNearestEnemyOf(Myself),INQUISITOR) !Kit(SixthNearestEnemyOf(Myself),CAVALIER) !CheckStatGT(SixthNearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(SixthNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("helm06",SixthNearestEnemyOf(Myself)) // Helm of Charm Protection !HasItemEquiped("ipsion",SixthNearestEnemyOf(Myself)) // Greenstone Amulet !HasItemEquipedReal("miscbc",SixthNearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("npchan",SixthNearestEnemyOf(Myself)) // Corthala Family Armor +3 !HasItemEquiped("shld25",SixthNearestEnemyOf(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("sper07",SixthNearestEnemyOf(Myself)) // Spear of the Unicorn +2 !HasItemEquipedReal("staf11",SixthNearestEnemyOf(Myself)) // Staff of the Magi +5 !HasItemEquipedReal("sw1h35",SixthNearestEnemyOf(Myself)) // Adjatha The Drinker +2 !HasItemEquipedReal("sw1h54",SixthNearestEnemyOf(Myself)) // The Equalizer +4 !HasItemEquipedReal("sw2h14",SixthNearestEnemyOf(Myself)) // Lilarcor +3 See(SixthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") General(FifthNearestEnemyOf(Myself),HUMANOID) !Race(FifthNearestEnemyOf(Myself),RAKSHASA) CheckStatGT(FifthNearestEnemyOf(Myself),5,SAVEVSSPELL) !StateCheck(FifthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FifthNearestEnemyOf(Myself),0,HELD) !StateCheck(FifthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FifthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FifthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(FifthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(FifthNearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !General(FifthNearestEnemyOf(Myself),UNDEAD) !Race(FifthNearestEnemyOf(Myself),ELF) !Race(FifthNearestEnemyOf(Myself),GOLEM) !Race(FifthNearestEnemyOf(Myself),SLIME) !Race(FifthNearestEnemyOf(Myself),DEMONIC) !Race(FifthNearestEnemyOf(Myself),TROLL) !Class(FifthNearestEnemyOf(Myself),MONK) !Kit(FifthNearestEnemyOf(Myself),INQUISITOR) !Kit(FifthNearestEnemyOf(Myself),CAVALIER) !CheckStatGT(FifthNearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(FifthNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("helm06",FifthNearestEnemyOf(Myself)) // Helm of Charm Protection !HasItemEquiped("ipsion",FifthNearestEnemyOf(Myself)) // Greenstone Amulet !HasItemEquipedReal("miscbc",FifthNearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("npchan",FifthNearestEnemyOf(Myself)) // Corthala Family Armor +3 !HasItemEquiped("shld25",FifthNearestEnemyOf(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("sper07",FifthNearestEnemyOf(Myself)) // Spear of the Unicorn +2 !HasItemEquipedReal("staf11",FifthNearestEnemyOf(Myself)) // Staff of the Magi +5 !HasItemEquipedReal("sw1h35",FifthNearestEnemyOf(Myself)) // Adjatha The Drinker +2 !HasItemEquipedReal("sw1h54",FifthNearestEnemyOf(Myself)) // The Equalizer +4 !HasItemEquipedReal("sw2h14",FifthNearestEnemyOf(Myself)) // Lilarcor +3 See(FifthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") General(FourthNearestEnemyOf(Myself),HUMANOID) !Race(FourthNearestEnemyOf(Myself),RAKSHASA) CheckStatGT(FourthNearestEnemyOf(Myself),5,SAVEVSSPELL) !StateCheck(FourthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FourthNearestEnemyOf(Myself),0,HELD) !StateCheck(FourthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FourthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FourthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(FourthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(FourthNearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !General(FourthNearestEnemyOf(Myself),UNDEAD) !Race(FourthNearestEnemyOf(Myself),ELF) !Race(FourthNearestEnemyOf(Myself),GOLEM) !Race(FourthNearestEnemyOf(Myself),SLIME) !Race(FourthNearestEnemyOf(Myself),DEMONIC) !Race(FourthNearestEnemyOf(Myself),TROLL) !Class(FourthNearestEnemyOf(Myself),MONK) !Kit(FourthNearestEnemyOf(Myself),INQUISITOR) !Kit(FourthNearestEnemyOf(Myself),CAVALIER) !CheckStatGT(FourthNearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(FourthNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("helm06",FourthNearestEnemyOf(Myself)) // Helm of Charm Protection !HasItemEquiped("ipsion",FourthNearestEnemyOf(Myself)) // Greenstone Amulet !HasItemEquipedReal("miscbc",FourthNearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("npchan",FourthNearestEnemyOf(Myself)) // Corthala Family Armor +3 !HasItemEquiped("shld25",FourthNearestEnemyOf(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("sper07",FourthNearestEnemyOf(Myself)) // Spear of the Unicorn +2 !HasItemEquipedReal("staf11",FourthNearestEnemyOf(Myself)) // Staff of the Magi +5 !HasItemEquipedReal("sw1h35",FourthNearestEnemyOf(Myself)) // Adjatha The Drinker +2 !HasItemEquipedReal("sw1h54",FourthNearestEnemyOf(Myself)) // The Equalizer +4 !HasItemEquipedReal("sw2h14",FourthNearestEnemyOf(Myself)) // Lilarcor +3 See(FourthNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") General(ThirdNearestEnemyOf(Myself),HUMANOID) !Race(ThirdNearestEnemyOf(Myself),RAKSHASA) CheckStatGT(ThirdNearestEnemyOf(Myself),5,SAVEVSSPELL) !StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(ThirdNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(ThirdNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(ThirdNearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !General(ThirdNearestEnemyOf(Myself),UNDEAD) !Race(ThirdNearestEnemyOf(Myself),ELF) !Race(ThirdNearestEnemyOf(Myself),GOLEM) !Race(ThirdNearestEnemyOf(Myself),SLIME) !Race(ThirdNearestEnemyOf(Myself),DEMONIC) !Race(ThirdNearestEnemyOf(Myself),TROLL) !Class(ThirdNearestEnemyOf(Myself),MONK) !Kit(ThirdNearestEnemyOf(Myself),INQUISITOR) !Kit(ThirdNearestEnemyOf(Myself),CAVALIER) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(ThirdNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("helm06",ThirdNearestEnemyOf(Myself)) // Helm of Charm Protection !HasItemEquiped("ipsion",ThirdNearestEnemyOf(Myself)) // Greenstone Amulet !HasItemEquipedReal("miscbc",ThirdNearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("npchan",ThirdNearestEnemyOf(Myself)) // Corthala Family Armor +3 !HasItemEquiped("shld25",ThirdNearestEnemyOf(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("sper07",ThirdNearestEnemyOf(Myself)) // Spear of the Unicorn +2 !HasItemEquipedReal("staf11",ThirdNearestEnemyOf(Myself)) // Staff of the Magi +5 !HasItemEquipedReal("sw1h35",ThirdNearestEnemyOf(Myself)) // Adjatha The Drinker +2 !HasItemEquipedReal("sw1h54",ThirdNearestEnemyOf(Myself)) // The Equalizer +4 !HasItemEquipedReal("sw2h14",ThirdNearestEnemyOf(Myself)) // Lilarcor +3 See(ThirdNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") General(SecondNearestEnemyOf(Myself),HUMANOID) !Race(SecondNearestEnemyOf(Myself),RAKSHASA) CheckStatGT(SecondNearestEnemyOf(Myself),5,SAVEVSSPELL) !StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) !StateCheck(SecondNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SecondNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SecondNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(SecondNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(SecondNearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !General(SecondNearestEnemyOf(Myself),UNDEAD) !Race(SecondNearestEnemyOf(Myself),ELF) !Race(SecondNearestEnemyOf(Myself),GOLEM) !Race(SecondNearestEnemyOf(Myself),SLIME) !Race(SecondNearestEnemyOf(Myself),DEMONIC) !Race(SecondNearestEnemyOf(Myself),TROLL) !Class(SecondNearestEnemyOf(Myself),MONK) !Kit(SecondNearestEnemyOf(Myself),INQUISITOR) !Kit(SecondNearestEnemyOf(Myself),CAVALIER) !CheckStatGT(SecondNearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(SecondNearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("helm06",SecondNearestEnemyOf(Myself)) // Helm of Charm Protection !HasItemEquiped("ipsion",SecondNearestEnemyOf(Myself)) // Greenstone Amulet !HasItemEquipedReal("miscbc",SecondNearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("npchan",SecondNearestEnemyOf(Myself)) // Corthala Family Armor +3 !HasItemEquiped("shld25",SecondNearestEnemyOf(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("sper07",SecondNearestEnemyOf(Myself)) // Spear of the Unicorn +2 !HasItemEquipedReal("staf11",SecondNearestEnemyOf(Myself)) // Staff of the Magi +5 !HasItemEquipedReal("sw1h35",SecondNearestEnemyOf(Myself)) // Adjatha The Drinker +2 !HasItemEquipedReal("sw1h54",SecondNearestEnemyOf(Myself)) // The Equalizer +4 !HasItemEquipedReal("sw2h14",SecondNearestEnemyOf(Myself)) // Lilarcor +3 See(SecondNearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") General(NearestEnemyOf(Myself),HUMANOID) !Race(NearestEnemyOf(Myself),RAKSHASA) CheckStatGT(NearestEnemyOf(Myself),5,SAVEVSSPELL) !StateCheck(NearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) !StateCheck(NearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(NearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(NearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(NearestEnemyOf(Myself),0,MINORGLOBE) !CheckStat(NearestEnemyOf(Myself),4,WIZARD_SPELL_IMMUNITY) !General(NearestEnemyOf(Myself),UNDEAD) !Race(NearestEnemyOf(Myself),ELF) !Race(NearestEnemyOf(Myself),GOLEM) !Race(NearestEnemyOf(Myself),SLIME) !Race(NearestEnemyOf(Myself),DEMONIC) !Race(NearestEnemyOf(Myself),TROLL) !Class(NearestEnemyOf(Myself),MONK) !Kit(NearestEnemyOf(Myself),INQUISITOR) !Kit(NearestEnemyOf(Myself),CAVALIER) !CheckStatGT(NearestEnemyOf(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(NearestEnemyOf(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("helm06",NearestEnemyOf(Myself)) // Helm of Charm Protection !HasItemEquiped("ipsion",NearestEnemyOf(Myself)) // Greenstone Amulet !HasItemEquipedReal("miscbc",NearestEnemyOf(Myself)) // Blackrazor +3 !HasItemEquiped("npchan",NearestEnemyOf(Myself)) // Corthala Family Armor +3 !HasItemEquiped("shld25",NearestEnemyOf(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("sper07",NearestEnemyOf(Myself)) // Spear of the Unicorn +2 !HasItemEquipedReal("staf11",NearestEnemyOf(Myself)) // Staff of the Magi +5 !HasItemEquipedReal("sw1h35",NearestEnemyOf(Myself)) // Adjatha The Drinker +2 !HasItemEquipedReal("sw1h54",NearestEnemyOf(Myself)) // The Equalizer +4 !HasItemEquipedReal("sw2h14",NearestEnemyOf(Myself)) // Lilarcor +3 See(NearestEnemyOf(Myself)) False() THEN RESPONSE #100 Continue() END IF !GlobalTimerNotExpired("flCast","LOCALS") General(LastSeenBy(Myself),HUMANOID) !Race(LastSeenBy(Myself),RAKSHASA) CheckStatGT(LastSeenBy(Myself),5,SAVEVSSPELL) !StateCheck(LastSeenBy(Myself),RZ_STATE_DISABLED) !CheckStatGT(LastSeenBy(Myself),0,HELD) !StateCheck(LastSeenBy(Myself),STATE_STONE_DEATH) !CheckStatGT(LastSeenBy(Myself),50,RESISTMAGIC) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(LastSeenBy(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(LastSeenBy(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(LastSeenBy(Myself),0,MINORGLOBE) !CheckStat(LastSeenBy(Myself),4,WIZARD_SPELL_IMMUNITY) !General(LastSeenBy(Myself),UNDEAD) !Race(LastSeenBy(Myself),ELF) !Race(LastSeenBy(Myself),GOLEM) !Race(LastSeenBy(Myself),SLIME) !Race(LastSeenBy(Myself),DEMONIC) !Race(LastSeenBy(Myself),TROLL) !Class(LastSeenBy(Myself),MONK) !Kit(LastSeenBy(Myself),INQUISITOR) !Kit(LastSeenBy(Myself),CAVALIER) !CheckStatGT(LastSeenBy(Myself),0,CLERIC_CHAOTIC_COMMANDS) !CheckStat(LastSeenBy(Myself),1,SCRIPTINGSTATE4) !HasItemEquiped("helm06",LastSeenBy(Myself)) // Helm of Charm Protection !HasItemEquiped("ipsion",LastSeenBy(Myself)) // Greenstone Amulet !HasItemEquipedReal("miscbc",LastSeenBy(Myself)) // Blackrazor +3 !HasItemEquiped("npchan",LastSeenBy(Myself)) // Corthala Family Armor +3 !HasItemEquiped("shld25",LastSeenBy(Myself)) // Shield of Harmony +2 !HasItemEquipedReal("sper07",LastSeenBy(Myself)) // Spear of the Unicorn +2 !HasItemEquipedReal("staf11",LastSeenBy(Myself)) // Staff of the Magi +5 !HasItemEquipedReal("sw1h35",LastSeenBy(Myself)) // Adjatha The Drinker +2 !HasItemEquipedReal("sw1h54",LastSeenBy(Myself)) // The Equalizer +4 !HasItemEquipedReal("sw2h14",LastSeenBy(Myself)) // Lilarcor +3 See(LastSeenBy(Myself)) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#WI104",LastSeenBy(Myself)) // Charm Person RESPONSE #100 Continue() END IF See(NearestEnemyOf(Myself)) HasItem("melfmet",Myself) // Melf's Minute Meteor !StateCheck(NearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) !StateCheck(NearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(NearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(NearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(NearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(NearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(NearestEnemyOf(Myself),75,RESISTPIERCING) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(NearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",NearestEnemyOf(Myself)) // Mordenkainen's Sword OR(2) CheckStatLT(NearestEnemyOf(Myself),100,RESISTFIRE) !CheckStatGT(NearestEnemyOf(Myself),0,STONESKINS) OR(5) Class(NearestEnemyOf(Myself),LONG_BOW) Class(NearestEnemyOf(Myself),BARD_ALL) Class(NearestEnemyOf(Myself),CLERIC_ALL) Class(NearestEnemyOf(Myself),CLERIC_RANGER) Class(NearestEnemyOf(Myself),DRUID_ALL) THEN RESPONSE #100 AttackOneRound(NearestEnemyOf(Myself)) END IF See(SecondNearestEnemyOf(Myself)) HasItem("melfmet",Myself) // Melf's Minute Meteor !StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) !StateCheck(SecondNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SecondNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SecondNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SecondNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(SecondNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(SecondNearestEnemyOf(Myself),75,RESISTPIERCING) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(SecondNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",SecondNearestEnemyOf(Myself)) // Mordenkainen's Sword OR(2) CheckStatLT(SecondNearestEnemyOf(Myself),100,RESISTFIRE) !CheckStatGT(SecondNearestEnemyOf(Myself),0,STONESKINS) OR(5) Class(SecondNearestEnemyOf(Myself),LONG_BOW) Class(SecondNearestEnemyOf(Myself),BARD_ALL) Class(SecondNearestEnemyOf(Myself),CLERIC_ALL) Class(SecondNearestEnemyOf(Myself),CLERIC_RANGER) Class(SecondNearestEnemyOf(Myself),DRUID_ALL) THEN RESPONSE #100 AttackOneRound(SecondNearestEnemyOf(Myself)) END IF See(ThirdNearestEnemyOf(Myself)) HasItem("melfmet",Myself) // Melf's Minute Meteor !StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(ThirdNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(ThirdNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(ThirdNearestEnemyOf(Myself),75,RESISTPIERCING) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(ThirdNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",ThirdNearestEnemyOf(Myself)) // Mordenkainen's Sword OR(2) CheckStatLT(ThirdNearestEnemyOf(Myself),100,RESISTFIRE) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,STONESKINS) OR(5) Class(ThirdNearestEnemyOf(Myself),LONG_BOW) Class(ThirdNearestEnemyOf(Myself),BARD_ALL) Class(ThirdNearestEnemyOf(Myself),CLERIC_ALL) Class(ThirdNearestEnemyOf(Myself),CLERIC_RANGER) Class(ThirdNearestEnemyOf(Myself),DRUID_ALL) THEN RESPONSE #100 AttackOneRound(ThirdNearestEnemyOf(Myself)) END IF See(FourthNearestEnemyOf(Myself)) HasItem("melfmet",Myself) // Melf's Minute Meteor !StateCheck(FourthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FourthNearestEnemyOf(Myself),0,HELD) !StateCheck(FourthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FourthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FourthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FourthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(FourthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(FourthNearestEnemyOf(Myself),75,RESISTPIERCING) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(FourthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",FourthNearestEnemyOf(Myself)) // Mordenkainen's Sword OR(2) CheckStatLT(FourthNearestEnemyOf(Myself),100,RESISTFIRE) !CheckStatGT(FourthNearestEnemyOf(Myself),0,STONESKINS) OR(5) Class(FourthNearestEnemyOf(Myself),LONG_BOW) Class(FourthNearestEnemyOf(Myself),BARD_ALL) Class(FourthNearestEnemyOf(Myself),CLERIC_ALL) Class(FourthNearestEnemyOf(Myself),CLERIC_RANGER) Class(FourthNearestEnemyOf(Myself),DRUID_ALL) THEN RESPONSE #100 AttackOneRound(FourthNearestEnemyOf(Myself)) END IF See(FifthNearestEnemyOf(Myself)) HasItem("melfmet",Myself) // Melf's Minute Meteor !StateCheck(FifthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FifthNearestEnemyOf(Myself),0,HELD) !StateCheck(FifthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FifthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(FifthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(FifthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(FifthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(FifthNearestEnemyOf(Myself),75,RESISTPIERCING) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(FifthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",FifthNearestEnemyOf(Myself)) // Mordenkainen's Sword OR(2) CheckStatLT(FifthNearestEnemyOf(Myself),100,RESISTFIRE) !CheckStatGT(FifthNearestEnemyOf(Myself),0,STONESKINS) OR(5) Class(FifthNearestEnemyOf(Myself),LONG_BOW) Class(FifthNearestEnemyOf(Myself),BARD_ALL) Class(FifthNearestEnemyOf(Myself),CLERIC_ALL) Class(FifthNearestEnemyOf(Myself),CLERIC_RANGER) Class(FifthNearestEnemyOf(Myself),DRUID_ALL) THEN RESPONSE #100 AttackOneRound(FifthNearestEnemyOf(Myself)) END IF See(SixthNearestEnemyOf(Myself)) HasItem("melfmet",Myself) // Melf's Minute Meteor !StateCheck(SixthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SixthNearestEnemyOf(Myself),0,HELD) !StateCheck(SixthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SixthNearestEnemyOf(Myself),50,RESISTMAGIC) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_DEFLECTION) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TURNING) !CheckStatGT(SixthNearestEnemyOf(Myself),0,WIZARD_SPELL_TRAP) !CheckStat(SixthNearestEnemyOf(Myself),1,CLERIC_SHIELD_OF_THE_ARCHONS) !CheckStatGT(SixthNearestEnemyOf(Myself),0,MINORGLOBE) !CheckStatGT(SixthNearestEnemyOf(Myself),75,RESISTPIERCING) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(SixthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",SixthNearestEnemyOf(Myself)) // Mordenkainen's Sword OR(2) CheckStatLT(SixthNearestEnemyOf(Myself),100,RESISTFIRE) !CheckStatGT(SixthNearestEnemyOf(Myself),0,STONESKINS) OR(5) Class(SixthNearestEnemyOf(Myself),LONG_BOW) Class(SixthNearestEnemyOf(Myself),BARD_ALL) Class(SixthNearestEnemyOf(Myself),CLERIC_ALL) Class(SixthNearestEnemyOf(Myself),CLERIC_RANGER) Class(SixthNearestEnemyOf(Myself),DRUID_ALL) THEN RESPONSE #100 AttackOneRound(SixthNearestEnemyOf(Myself)) END IF See(NearestEnemyOf(Myself)) HasItem("melfmet",Myself) // Melf's Minute Meteor !StateCheck(NearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) !StateCheck(NearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(NearestEnemyOf(Myself),75,RESISTPIERCING) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(NearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",NearestEnemyOf(Myself)) // Mordenkainen's Sword THEN RESPONSE #100 AttackOneRound(NearestEnemyOf(Myself)) END IF See(SecondNearestEnemyOf(Myself)) HasItem("melfmet",Myself) // Melf's Minute Meteor !StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) !StateCheck(SecondNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SecondNearestEnemyOf(Myself),75,RESISTPIERCING) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(SecondNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",SecondNearestEnemyOf(Myself)) // Mordenkainen's Sword THEN RESPONSE #100 AttackOneRound(SecondNearestEnemyOf(Myself)) END IF See(ThirdNearestEnemyOf(Myself)) HasItem("melfmet",Myself) // Melf's Minute Meteor !StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(ThirdNearestEnemyOf(Myself),75,RESISTPIERCING) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(ThirdNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",ThirdNearestEnemyOf(Myself)) // Mordenkainen's Sword THEN RESPONSE #100 AttackOneRound(ThirdNearestEnemyOf(Myself)) END IF See(FourthNearestEnemyOf(Myself)) HasItem("melfmet",Myself) // Melf's Minute Meteor !StateCheck(FourthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FourthNearestEnemyOf(Myself),0,HELD) !StateCheck(FourthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FourthNearestEnemyOf(Myself),75,RESISTPIERCING) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(FourthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",FourthNearestEnemyOf(Myself)) // Mordenkainen's Sword THEN RESPONSE #100 AttackOneRound(FourthNearestEnemyOf(Myself)) END IF See(FifthNearestEnemyOf(Myself)) HasItem("melfmet",Myself) // Melf's Minute Meteor !StateCheck(FifthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FifthNearestEnemyOf(Myself),0,HELD) !StateCheck(FifthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(FifthNearestEnemyOf(Myself),75,RESISTPIERCING) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(FifthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",FifthNearestEnemyOf(Myself)) // Mordenkainen's Sword THEN RESPONSE #100 AttackOneRound(FifthNearestEnemyOf(Myself)) END IF See(SixthNearestEnemyOf(Myself)) HasItem("melfmet",Myself) // Melf's Minute Meteor !StateCheck(SixthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SixthNearestEnemyOf(Myself),0,HELD) !StateCheck(SixthNearestEnemyOf(Myself),STATE_STONE_DEATH) !CheckStatGT(SixthNearestEnemyOf(Myself),75,RESISTPIERCING) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(SixthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",SixthNearestEnemyOf(Myself)) // Mordenkainen's Sword THEN RESPONSE #100 AttackOneRound(SixthNearestEnemyOf(Myself)) END IF See(NearestEnemyOf(Myself)) HasItem("melfmet",Myself) // Melf's Minute Meteor !CheckStatGT(NearestEnemyOf(Myself),99,RESISTPIERCING) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(NearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",NearestEnemyOf(Myself)) // Mordenkainen's Sword THEN RESPONSE #100 AttackOneRound(NearestEnemyOf(Myself)) END IF See(SecondNearestEnemyOf(Myself)) HasItem("melfmet",Myself) // Melf's Minute Meteor !CheckStatGT(SecondNearestEnemyOf(Myself),99,RESISTPIERCING) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(SecondNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",SecondNearestEnemyOf(Myself)) // Mordenkainen's Sword THEN RESPONSE #100 AttackOneRound(SecondNearestEnemyOf(Myself)) END IF See(ThirdNearestEnemyOf(Myself)) HasItem("melfmet",Myself) // Melf's Minute Meteor !CheckStatGT(ThirdNearestEnemyOf(Myself),99,RESISTPIERCING) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(ThirdNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",ThirdNearestEnemyOf(Myself)) // Mordenkainen's Sword THEN RESPONSE #100 AttackOneRound(ThirdNearestEnemyOf(Myself)) END IF See(FourthNearestEnemyOf(Myself)) HasItem("melfmet",Myself) // Melf's Minute Meteor !CheckStatGT(FourthNearestEnemyOf(Myself),99,RESISTPIERCING) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(FourthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",FourthNearestEnemyOf(Myself)) // Mordenkainen's Sword THEN RESPONSE #100 AttackOneRound(FourthNearestEnemyOf(Myself)) END IF See(FifthNearestEnemyOf(Myself)) HasItem("melfmet",Myself) // Melf's Minute Meteor !CheckStatGT(FifthNearestEnemyOf(Myself),99,RESISTPIERCING) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(FifthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",FifthNearestEnemyOf(Myself)) // Mordenkainen's Sword THEN RESPONSE #100 AttackOneRound(FifthNearestEnemyOf(Myself)) END IF See(SixthNearestEnemyOf(Myself)) HasItem("melfmet",Myself) // Melf's Minute Meteor !CheckStatGT(SixthNearestEnemyOf(Myself),99,RESISTPIERCING) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(SixthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",SixthNearestEnemyOf(Myself)) // Mordenkainen's Sword THEN RESPONSE #100 AttackOneRound(SixthNearestEnemyOf(Myself)) END IF See(NearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(NearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",NearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(NearestEnemyOf(Myself),99,RESISTSLASHING) StateCheck(NearestEnemyOf(Myself),RZ_STATE_VULNERABLE) THEN RESPONSE #100 AttackOneRound(NearestEnemyOf(Myself)) END IF See(SecondNearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(SecondNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",SecondNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(SecondNearestEnemyOf(Myself),99,RESISTSLASHING) StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_VULNERABLE) THEN RESPONSE #100 AttackOneRound(SecondNearestEnemyOf(Myself)) END IF See(ThirdNearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(ThirdNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",ThirdNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(ThirdNearestEnemyOf(Myself),99,RESISTSLASHING) StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_VULNERABLE) THEN RESPONSE #100 AttackOneRound(ThirdNearestEnemyOf(Myself)) END IF See(FourthNearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(FourthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",FourthNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(FourthNearestEnemyOf(Myself),99,RESISTSLASHING) StateCheck(FourthNearestEnemyOf(Myself),RZ_STATE_VULNERABLE) THEN RESPONSE #100 AttackOneRound(FourthNearestEnemyOf(Myself)) END IF See(FifthNearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(FifthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",FifthNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(FifthNearestEnemyOf(Myself),99,RESISTSLASHING) StateCheck(FifthNearestEnemyOf(Myself),RZ_STATE_VULNERABLE) THEN RESPONSE #100 AttackOneRound(FifthNearestEnemyOf(Myself)) END IF See(SixthNearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(SixthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",SixthNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(SixthNearestEnemyOf(Myself),99,RESISTSLASHING) StateCheck(SixthNearestEnemyOf(Myself),RZ_STATE_VULNERABLE) THEN RESPONSE #100 AttackOneRound(SixthNearestEnemyOf(Myself)) END IF !GlobalTimerNotExpired("flCast","LOCALS") See(NearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(NearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",NearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(NearestEnemyOf(Myself),99,RESISTSLASHING) !CheckStatGT(NearestEnemyOf(Myself),0,STONESKINS) !StateCheck(NearestEnemyOf(Myself),STATE_MIRRORIMAGE) !StateCheck(NearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) !StateCheck(NearestEnemyOf(Myself),STATE_STONE_DEATH) !Range(NearestEnemyOf(Myself),5) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#TELWE",NearestEnemyOf(Myself)) // Teleport Without Error END IF !GlobalTimerNotExpired("flCast","LOCALS") See(SecondNearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(SecondNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",SecondNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(SecondNearestEnemyOf(Myself),99,RESISTSLASHING) !CheckStatGT(SecondNearestEnemyOf(Myself),0,STONESKINS) !StateCheck(SecondNearestEnemyOf(Myself),STATE_MIRRORIMAGE) !StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) !StateCheck(SecondNearestEnemyOf(Myself),STATE_STONE_DEATH) !Range(SecondNearestEnemyOf(Myself),5) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#TELWE",SecondNearestEnemyOf(Myself)) // Teleport Without Error END IF !GlobalTimerNotExpired("flCast","LOCALS") See(ThirdNearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(ThirdNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",ThirdNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(ThirdNearestEnemyOf(Myself),99,RESISTSLASHING) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,STONESKINS) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_MIRRORIMAGE) !StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_STONE_DEATH) !Range(ThirdNearestEnemyOf(Myself),5) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#TELWE",ThirdNearestEnemyOf(Myself)) // Teleport Without Error END IF !GlobalTimerNotExpired("flCast","LOCALS") See(FourthNearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(FourthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",FourthNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(FourthNearestEnemyOf(Myself),99,RESISTSLASHING) !CheckStatGT(FourthNearestEnemyOf(Myself),0,STONESKINS) !StateCheck(FourthNearestEnemyOf(Myself),STATE_MIRRORIMAGE) !StateCheck(FourthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FourthNearestEnemyOf(Myself),0,HELD) !StateCheck(FourthNearestEnemyOf(Myself),STATE_STONE_DEATH) !Range(FourthNearestEnemyOf(Myself),5) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#TELWE",FourthNearestEnemyOf(Myself)) // Teleport Without Error END IF !GlobalTimerNotExpired("flCast","LOCALS") See(FifthNearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(FifthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",FifthNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(FifthNearestEnemyOf(Myself),99,RESISTSLASHING) !CheckStatGT(FifthNearestEnemyOf(Myself),0,STONESKINS) !StateCheck(FifthNearestEnemyOf(Myself),STATE_MIRRORIMAGE) !StateCheck(FifthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FifthNearestEnemyOf(Myself),0,HELD) !StateCheck(FifthNearestEnemyOf(Myself),STATE_STONE_DEATH) !Range(FifthNearestEnemyOf(Myself),5) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#TELWE",FifthNearestEnemyOf(Myself)) // Teleport Without Error END IF !GlobalTimerNotExpired("flCast","LOCALS") See(SixthNearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(SixthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",SixthNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(SixthNearestEnemyOf(Myself),99,RESISTSLASHING) !CheckStatGT(SixthNearestEnemyOf(Myself),0,STONESKINS) !StateCheck(SixthNearestEnemyOf(Myself),STATE_MIRRORIMAGE) !StateCheck(SixthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SixthNearestEnemyOf(Myself),0,HELD) !StateCheck(SixthNearestEnemyOf(Myself),STATE_STONE_DEATH) !Range(SixthNearestEnemyOf(Myself),5) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#TELWE",SixthNearestEnemyOf(Myself)) // Teleport Without Error END IF See(NearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(NearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",NearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(NearestEnemyOf(Myself),99,RESISTSLASHING) !CheckStatGT(NearestEnemyOf(Myself),0,STONESKINS) !StateCheck(NearestEnemyOf(Myself),STATE_MIRRORIMAGE) !StateCheck(NearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) !StateCheck(NearestEnemyOf(Myself),STATE_STONE_DEATH) THEN RESPONSE #100 AttackOneRound(NearestEnemyOf(Myself)) END IF See(SecondNearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(SecondNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",SecondNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(SecondNearestEnemyOf(Myself),99,RESISTSLASHING) !CheckStatGT(SecondNearestEnemyOf(Myself),0,STONESKINS) !StateCheck(SecondNearestEnemyOf(Myself),STATE_MIRRORIMAGE) !StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) !StateCheck(SecondNearestEnemyOf(Myself),STATE_STONE_DEATH) THEN RESPONSE #100 AttackOneRound(SecondNearestEnemyOf(Myself)) END IF See(ThirdNearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(ThirdNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",ThirdNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(ThirdNearestEnemyOf(Myself),99,RESISTSLASHING) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,STONESKINS) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_MIRRORIMAGE) !StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_STONE_DEATH) THEN RESPONSE #100 AttackOneRound(ThirdNearestEnemyOf(Myself)) END IF See(FourthNearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(FourthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",FourthNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(FourthNearestEnemyOf(Myself),99,RESISTSLASHING) !CheckStatGT(FourthNearestEnemyOf(Myself),0,STONESKINS) !StateCheck(FourthNearestEnemyOf(Myself),STATE_MIRRORIMAGE) !StateCheck(FourthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FourthNearestEnemyOf(Myself),0,HELD) !StateCheck(FourthNearestEnemyOf(Myself),STATE_STONE_DEATH) THEN RESPONSE #100 AttackOneRound(FourthNearestEnemyOf(Myself)) END IF See(FifthNearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(FifthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",FifthNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(FifthNearestEnemyOf(Myself),99,RESISTSLASHING) !CheckStatGT(FifthNearestEnemyOf(Myself),0,STONESKINS) !StateCheck(FifthNearestEnemyOf(Myself),STATE_MIRRORIMAGE) !StateCheck(FifthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FifthNearestEnemyOf(Myself),0,HELD) !StateCheck(FifthNearestEnemyOf(Myself),STATE_STONE_DEATH) THEN RESPONSE #100 AttackOneRound(FifthNearestEnemyOf(Myself)) END IF See(SixthNearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(SixthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",SixthNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(SixthNearestEnemyOf(Myself),99,RESISTSLASHING) !CheckStatGT(SixthNearestEnemyOf(Myself),0,STONESKINS) !StateCheck(SixthNearestEnemyOf(Myself),STATE_MIRRORIMAGE) !StateCheck(SixthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SixthNearestEnemyOf(Myself),0,HELD) !StateCheck(SixthNearestEnemyOf(Myself),STATE_STONE_DEATH) THEN RESPONSE #100 AttackOneRound(SixthNearestEnemyOf(Myself)) END IF !GlobalTimerNotExpired("flCast","LOCALS") See(NearestEnemyOf(Myself)) !StateCheck(NearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) !StateCheck(NearestEnemyOf(Myself),STATE_STONE_DEATH) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(NearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",NearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(NearestEnemyOf(Myself),99,RESISTSLASHING) !Range(NearestEnemyOf(Myself),5) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#TELWE",NearestEnemyOf(Myself)) // Teleport Without Error END IF !GlobalTimerNotExpired("flCast","LOCALS") See(SecondNearestEnemyOf(Myself)) !StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) !StateCheck(SecondNearestEnemyOf(Myself),STATE_STONE_DEATH) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(SecondNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",SecondNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(SecondNearestEnemyOf(Myself),99,RESISTSLASHING) !Range(SecondNearestEnemyOf(Myself),5) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#TELWE",SecondNearestEnemyOf(Myself)) // Teleport Without Error END IF !GlobalTimerNotExpired("flCast","LOCALS") See(ThirdNearestEnemyOf(Myself)) !StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_STONE_DEATH) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(ThirdNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",ThirdNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(ThirdNearestEnemyOf(Myself),99,RESISTSLASHING) !Range(ThirdNearestEnemyOf(Myself),5) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#TELWE",ThirdNearestEnemyOf(Myself)) // Teleport Without Error END IF !GlobalTimerNotExpired("flCast","LOCALS") See(FourthNearestEnemyOf(Myself)) !StateCheck(FourthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FourthNearestEnemyOf(Myself),0,HELD) !StateCheck(FourthNearestEnemyOf(Myself),STATE_STONE_DEATH) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(FourthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",FourthNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(FourthNearestEnemyOf(Myself),99,RESISTSLASHING) !Range(FourthNearestEnemyOf(Myself),5) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#TELWE",FourthNearestEnemyOf(Myself)) // Teleport Without Error END IF !GlobalTimerNotExpired("flCast","LOCALS") See(FifthNearestEnemyOf(Myself)) !StateCheck(FifthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FifthNearestEnemyOf(Myself),0,HELD) !StateCheck(FifthNearestEnemyOf(Myself),STATE_STONE_DEATH) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(FifthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",FifthNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(FifthNearestEnemyOf(Myself),99,RESISTSLASHING) !Range(FifthNearestEnemyOf(Myself),5) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#TELWE",FifthNearestEnemyOf(Myself)) // Teleport Without Error END IF !GlobalTimerNotExpired("flCast","LOCALS") See(SixthNearestEnemyOf(Myself)) !StateCheck(SixthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SixthNearestEnemyOf(Myself),0,HELD) !StateCheck(SixthNearestEnemyOf(Myself),STATE_STONE_DEATH) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(SixthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",SixthNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(SixthNearestEnemyOf(Myself),99,RESISTSLASHING) !Range(SixthNearestEnemyOf(Myself),5) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#TELWE",SixthNearestEnemyOf(Myself)) // Teleport Without Error END IF See(NearestEnemyOf(Myself)) !StateCheck(NearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(NearestEnemyOf(Myself),0,HELD) !StateCheck(NearestEnemyOf(Myself),STATE_STONE_DEATH) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(NearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",NearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(NearestEnemyOf(Myself),99,RESISTSLASHING) THEN RESPONSE #100 AttackOneRound(NearestEnemyOf(Myself)) END IF See(SecondNearestEnemyOf(Myself)) !StateCheck(SecondNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SecondNearestEnemyOf(Myself),0,HELD) !StateCheck(SecondNearestEnemyOf(Myself),STATE_STONE_DEATH) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(SecondNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",SecondNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(SecondNearestEnemyOf(Myself),99,RESISTSLASHING) THEN RESPONSE #100 AttackOneRound(SecondNearestEnemyOf(Myself)) END IF See(ThirdNearestEnemyOf(Myself)) !StateCheck(ThirdNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,HELD) !StateCheck(ThirdNearestEnemyOf(Myself),STATE_STONE_DEATH) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(ThirdNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",ThirdNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(ThirdNearestEnemyOf(Myself),99,RESISTSLASHING) THEN RESPONSE #100 AttackOneRound(ThirdNearestEnemyOf(Myself)) END IF See(FourthNearestEnemyOf(Myself)) !StateCheck(FourthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FourthNearestEnemyOf(Myself),0,HELD) !StateCheck(FourthNearestEnemyOf(Myself),STATE_STONE_DEATH) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(FourthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",FourthNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(FourthNearestEnemyOf(Myself),99,RESISTSLASHING) THEN RESPONSE #100 AttackOneRound(FourthNearestEnemyOf(Myself)) END IF See(FifthNearestEnemyOf(Myself)) !StateCheck(FifthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(FifthNearestEnemyOf(Myself),0,HELD) !StateCheck(FifthNearestEnemyOf(Myself),STATE_STONE_DEATH) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(FifthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",FifthNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(FifthNearestEnemyOf(Myself),99,RESISTSLASHING) THEN RESPONSE #100 AttackOneRound(FifthNearestEnemyOf(Myself)) END IF See(SixthNearestEnemyOf(Myself)) !StateCheck(SixthNearestEnemyOf(Myself),RZ_STATE_DISABLED) !CheckStatGT(SixthNearestEnemyOf(Myself),0,HELD) !StateCheck(SixthNearestEnemyOf(Myself),STATE_STONE_DEATH) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(SixthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",SixthNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(SixthNearestEnemyOf(Myself),99,RESISTSLASHING) THEN RESPONSE #100 AttackOneRound(SixthNearestEnemyOf(Myself)) END IF !GlobalTimerNotExpired("flCast","LOCALS") See(NearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(NearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",NearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(NearestEnemyOf(Myself),99,RESISTSLASHING) !Range(NearestEnemyOf(Myself),5) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#TELWE",NearestEnemyOf(Myself)) // Teleport Without Error END IF !GlobalTimerNotExpired("flCast","LOCALS") See(SecondNearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(SecondNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",SecondNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(SecondNearestEnemyOf(Myself),99,RESISTSLASHING) !Range(SecondNearestEnemyOf(Myself),5) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#TELWE",SecondNearestEnemyOf(Myself)) // Teleport Without Error END IF !GlobalTimerNotExpired("flCast","LOCALS") See(ThirdNearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(ThirdNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",ThirdNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(ThirdNearestEnemyOf(Myself),99,RESISTSLASHING) !Range(ThirdNearestEnemyOf(Myself),5) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#TELWE",ThirdNearestEnemyOf(Myself)) // Teleport Without Error END IF !GlobalTimerNotExpired("flCast","LOCALS") See(FourthNearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(FourthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",FourthNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(FourthNearestEnemyOf(Myself),99,RESISTSLASHING) !Range(FourthNearestEnemyOf(Myself),5) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#TELWE",FourthNearestEnemyOf(Myself)) // Teleport Without Error END IF !GlobalTimerNotExpired("flCast","LOCALS") See(FifthNearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(FifthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",FifthNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(FifthNearestEnemyOf(Myself),99,RESISTSLASHING) !Range(FifthNearestEnemyOf(Myself),5) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#TELWE",FifthNearestEnemyOf(Myself)) // Teleport Without Error END IF !GlobalTimerNotExpired("flCast","LOCALS") See(SixthNearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(SixthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",SixthNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(SixthNearestEnemyOf(Myself),99,RESISTSLASHING) !Range(SixthNearestEnemyOf(Myself),5) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#TELWE",SixthNearestEnemyOf(Myself)) // Teleport Without Error END IF See(NearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(NearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(NearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",NearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(NearestEnemyOf(Myself),99,RESISTSLASHING) THEN RESPONSE #100 AttackOneRound(NearestEnemyOf(Myself)) END IF See(SecondNearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(SecondNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(SecondNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",SecondNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(SecondNearestEnemyOf(Myself),99,RESISTSLASHING) THEN RESPONSE #100 AttackOneRound(SecondNearestEnemyOf(Myself)) END IF See(ThirdNearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(ThirdNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(ThirdNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",ThirdNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(ThirdNearestEnemyOf(Myself),99,RESISTSLASHING) THEN RESPONSE #100 AttackOneRound(ThirdNearestEnemyOf(Myself)) END IF See(FourthNearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(FourthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(FourthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",FourthNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(FourthNearestEnemyOf(Myself),99,RESISTSLASHING) THEN RESPONSE #100 AttackOneRound(FourthNearestEnemyOf(Myself)) END IF See(FifthNearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(FifthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(FifthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",FifthNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(FifthNearestEnemyOf(Myself),99,RESISTSLASHING) THEN RESPONSE #100 AttackOneRound(FifthNearestEnemyOf(Myself)) END IF See(SixthNearestEnemyOf(Myself)) OR(2) CheckStatGT(Myself,0,WEAPON_ENCHANTMENT) CheckStat(SixthNearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_NORMAL_WEAPONS) OR(2) CheckStat(Myself,0,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),4,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,2,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),1,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,3,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),2,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) OR(2) CheckStatGT(Myself,5,WEAPON_ENCHANTMENT) !CheckStat(SixthNearestEnemyOf(Myself),3,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !HasItem("MORSWORD",SixthNearestEnemyOf(Myself)) // Mordenkainen's Sword !CheckStatGT(SixthNearestEnemyOf(Myself),99,RESISTSLASHING) THEN RESPONSE #100 AttackOneRound(SixthNearestEnemyOf(Myself)) END IF !GlobalTimerNotExpired("flCast","LOCALS") !StateCheck(Myself,STATE_INVISIBLE) !CheckStatGT(NearestEnemyOf(Myself),0,TRUE_SIGHT) !CheckStatGT(SecondNearestEnemyOf(Myself),0,TRUE_SIGHT) !CheckStatGT(ThirdNearestEnemyOf(Myself),0,TRUE_SIGHT) !CheckStatGT(FourthNearestEnemyOf(Myself),0,TRUE_SIGHT) !CheckStatGT(FifthNearestEnemyOf(Myself),0,TRUE_SIGHT) !CheckStatGT(SixthNearestEnemyOf(Myself),0,TRUE_SIGHT) !CheckStatGT(SeventhNearestEnemyOf(Myself),0,TRUE_SIGHT) !CheckStatGT(EighthNearestEnemyOf(Myself),0,TRUE_SIGHT) !CheckStatGT(NinthNearestEnemyOf(Myself),0,TRUE_SIGHT) !CheckStatGT(TenthNearestEnemyOf(Myself),0,TRUE_SIGHT) !CheckStatGT(NearestEnemyOfType([0.0.0.LONG_BOW]),0,TRUE_SIGHT) !CheckStatGT(SecondNearestEnemyOfType([0.0.0.LONG_BOW]),0,TRUE_SIGHT) !CheckStatGT(NearestEnemyOfType([0.0.0.CLERIC_ALL]),0,TRUE_SIGHT) !CheckStatGT(SecondNearestEnemyOfType([0.0.0.CLERIC_ALL]),0,TRUE_SIGHT) !CheckStatGT(NearestEnemyOfType([0.0.0.BARD_ALL]),0,TRUE_SIGHT) !CheckStatGT(NearestEnemyOfType([0.0.0.CLERIC_RANGER]),0,TRUE_SIGHT) !CheckStatGT(NearestEnemyOfType([0.0.0.DRUID_ALL]),0,TRUE_SIGHT) !CheckStatGT(SecondNearestEnemyOfType([0.0.0.DRUID_ALL]),0,TRUE_SIGHT) !Global("dvgldust","LOCALS",1) THEN RESPONSE #100 SetGlobalTimer("flCast","LOCALS",ONE_ROUND) ForceSpellRES("RR#WI206",Myself) // Invisibility RESPONSE #25 Continue() END IF See([ANYONE]) False() THEN RESPONSE #100 Continue() END IF Race(LastSeenBy(Myself),DEMONIC) Alignment(LastSeenBy(Myself),MASK_EVIL) Allegiance(Myself,GOODCUTOFF) !Allegiance(LastSeenBy(Myself),EVILCUTOFF) THEN RESPONSE #100 RandomWalkContinuous() END IF Race(LastSeenBy(Myself),DEMONIC) Alignment(LastSeenBy(Myself),MASK_EVIL) Allegiance(Myself,EVILCUTOFF) !Allegiance(LastSeenBy(Myself),GOODCUTOFF) THEN RESPONSE #100 RandomWalkContinuous() END IF OR(2) Name("fl#propertyoftheyugoloth1",LastSeenBy(Myself)) Name("fl#propertyoftheyugoloth2",LastSeenBy(Myself)) Allegiance(Myself,GOODCUTOFF) !Allegiance(LastSeenBy(Myself),EVILCUTOFF) THEN RESPONSE #100 RandomWalkContinuous() END IF OR(2) Name("fl#propertyoftheyugoloth1",LastSeenBy(Myself)) Name("fl#propertyoftheyugoloth2",LastSeenBy(Myself)) Allegiance(Myself,EVILCUTOFF) !Allegiance(LastSeenBy(Myself),GOODCUTOFF) THEN RESPONSE #100 RandomWalkContinuous() END IF !Range(LastSeenBy(Myself),6) !GlobalTimerNotExpired("flCast","LOCALS") ActionListEmpty() THEN RESPONSE #100 ForceSpellRES("RR#TELWE",LastSeenBy(Myself)) // Teleport Without Error SetGlobalTimer("flCast","LOCALS",ONE_ROUND) END IF ActionListEmpty() THEN RESPONSE #100 AttackOneRound(LastSeenBy(Myself)) END IF Global("RR#NOPND","GLOBAL",0) Allegiance(Myself,EVILCUTOFF) !AreaType(OUTDOOR) !Range(NearestEnemyOf(Myself),30) Range(NearestDoor,15) OpenState(NearestDoor,FALSE) THEN RESPONSE #100 MoveToObject(NearestDoor) OpenDoor(NearestDoor) END IF ActionListEmpty() THEN RESPONSE #100 RandomWalkContinuous() END Edit: Dw#cacof.spl has the name Summon Death Knight, and I guess this is the name that WOULD show if it were being cast? Guessing, don't know. If so, it doesn't say this, it says casts cacofiend. I think that's SR that changed it to that. Pretty stumped with regards to what is going on here. Link to comment
Wisp Posted January 2, 2014 Share Posted January 2, 2014 Here's what it typically looks like: Yeah, that's too much. I'll see what I can do. Hmm, I'm not sure whether dw#cacof.spl is being used... SCS mages have standard spells memorized, but in the case of Cacofiend, they cast a custom spell (dw#cacof) and manually dememorize the corresponding standard spell. Cornugons and Arcanaloths that attack their summoner, what colour do their footcircles have? They should be red. Link to comment
scorpio Posted January 2, 2014 Author Share Posted January 2, 2014 Cornugons and Arcanaloths that attack their summoner, what colour do their footcircles have? They should be red. Yes, they're red as you can see in the first post (2nd screenshot of the cornugon) Edit: And if there were a caster that summoned a nabassu, i'm sure it would be the same (i.e. all of the 3 cacofiend summons are bugged i'm fairly certain; haven't found one with this to check 100%, but it's a pretty safe bet i think). Link to comment
scorpio Posted January 2, 2014 Author Share Posted January 2, 2014 SCS mages have standard spells memorized, but in the case of Cacofiend, they cast a custom spell (dw#cacof) and manually dememorize the corresponding standard spell. I'm not sure that is happening though: I searched the fl#corsu.bcs for the word "foolish", since you can see in the 2nd screenshot the cornugon says "foolish mortal blah blah", and there is no such string in fl#corsu.bcs, but it is there in what the SPWI707 (cacofiend memorized spell) leads to - which is a file called RR#SCORN.CRE, with RR#SCORN.BCS. Perhaps I'm still missing something, but just trying to figure this out, as it will be pretty lame if the enemy mages are crippled like this. Alternatively, and as a last resort to not actually fixing it, could I somehow find all mages that have the cacofiend spell and remove it somehow? Not able to see a clear way in NI to do this currently though. Edit: I want to simply open up SPWI707 (the cacofiend spell mage20, lavok01 etc have memorized) and change the little trail till it leads to fl#corsu.cre and not RR#SCORN.cre etc; I think this might fix it. I'll wait for your reply though Wisp as to whether you think this might be the issue before I ruin my game files! I'm curious why it's not like this to begin with? Why does DW use standard spells and dememorize them via script like that? Also, again out of curiosity and wanting to learn more than anything else, what does biffing do exactly, and what actions are therefore safe and not safe after applying it? Feel free to direct me to a link rather than explain it, I probably missed an obvious run-down of it all somewhere. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.