le premier bloc c'est pour que le voleur détecte les pièges.
Le 2e bloc c'est pour que le perso attaque de façon basique sauf si invisible/trunundead/sanctuary.
Le seul soucis que j'ai avec le 2e bloc c'est que mes persos on tendance à changer de cible une fois le combat engagé. par exemple si Korgan tape un ennemi mais qu'un autre ennemi lui porte un coup, alors Korgan va arrété de taper le 1er ennemi et va focus le 2e ennemi qui lui a porté un coup. Et ça c'est un peu chiant défois.
sinon voici mon script complet, un mélange des anciens scripts SCS /Atweak/RR etc... qui comprends tout mon prebuff. Je prebuff uniquement les sorts qui ont une durée de minimum 5 tours.
► Afficher le texte
IF
ActionListEmpty()
CombatCounter(0)
OR(3)
!See(NearestEnemyOf(Myself))
StateCheck(Myself,STATE_INVISIBLE)
StateCheck(Myself,STATE_IMPROVEDINVISIBILITY)
OR(2)
Class(Myself,THIEF_ALL)
Class(Myself,MONK)
!ModalState(DETECTTRAPS)
!ModalState(TURNUNDEAD)
!ModalState(STEALTH)
THEN
RESPONSE #100
FindTraps()
END
IF
HotKey(U)
Global("DMWWBuff","LOCALS",0)
THEN
RESPONSE #100
SetGlobal("DMWWBuff","LOCALS",1)
DisplayStringHead(Myself,120541) // Quarrels or bolts are the ammunition fired by crossbows regardless of the weapon's size. However, this bolt is of unusually high-quality workmanship. STATISTICS: Damage: 1D8 +1 THAC0: +1 Damage type: missile (piercing) Weight: 0 Launcher: Crossbow
END
IF
HotKey(U)
Global("DMWWBuff","LOCALS",1)
THEN
RESPONSE #100
SetGlobal("DMWWBuff","LOCALS",0)
DisplayStringHead(Myself,120542) // Masterwork Dart
END
IF
ActionListEmpty()
!StateCheck(Myself,STATE_INVISIBLE)
!CheckStatGT(Myself,0,SANCTUARY)
!ModalState(TURNUNDEAD)
See(NearestEnemyOf(Myself))
THEN
RESPONSE #100
AttackReevaluate(NearestEnemyOf(Myself),60)
END
IF
ActionListEmpty()
CombatCounter(0)
!Global("DMWWBuff","LOCALS",0)
!Detect(NearestEnemyOf(Myself))
!CheckStatGT(Myself,0,SPELLFAILUREMAGE)
HaveSpell(CLERIC_SHIELD_OF_THE_ARCHONS) // SPPR701.SPL (Shield of the Archons)
See(Myself)
THEN
RESPONSE #100
SetGlobalTimer("SpellsBad","GLOBAL",3)
ApplySpellRES("dw#alac",Myself) // Enchaînement
Spell(Myself,CLERIC_SHIELD_OF_THE_ARCHONS) // SPPR701.SPL (Shield of the Archons)
END
IF
ActionListEmpty()
CombatCounter(0)
!Global("DMWWBuff","LOCALS",0)
!Detect(NearestEnemyOf(Myself))
!CheckStatGT(Myself,0,SPELLFAILUREMAGE)
HaveSpell(WIZARD_PROTECTION_FROM_NORMAL_MISSILES) // SPWI311.SPL (Protection from Normal Missiles)
See(Myself)
!CheckStatGT(Myself,0,WIZARD_PROTECTION_FROM_NORMAL_MISSILES)
THEN
RESPONSE #100
SetGlobalTimer("SpellsBad","GLOBAL",3)
ApplySpellRES("dw#alac",Myself) // Enchaînement
Spell(Myself,WIZARD_PROTECTION_FROM_NORMAL_MISSILES) // SPWI311.SPL (Protection from Normal Missiles)
END
IF
ActionListEmpty()
CombatCounter(0)
!Global("DMWWBuff","LOCALS",0)
!Detect(NearestEnemyOf(Myself))
!CheckStatGT(Myself,0,SPELLFAILUREMAGE)
HaveSpell(CLERIC_PROTECTION_FROM_EVIL_10_FOOT) // SPPR408.SPL (Protection from Evil, 15' Radius)
See(Myself)
CheckStat(Myself,0,PROTECTION_FROM_EVIL)
THEN
RESPONSE #100
SetGlobalTimer("SpellsBad","GLOBAL",3)
ApplySpellRES("dw#alac",Myself) // Enchaînement
Spell(Myself,CLERIC_PROTECTION_FROM_EVIL_10_FOOT) // SPPR408.SPL (Protection from Evil, 15' Radius)
END
IF
ActionListEmpty()
CombatCounter(0)
!Global("DMWWBuff","LOCALS",0)
!Detect(NearestEnemyOf(Myself))
!CheckStatGT(Myself,0,SPELLFAILUREMAGE)
HaveSpell(CLERIC_PROTECT_FROM_EVIL) // SPPR107.SPL (Protection from Evil)
See(Myself)
CheckStat(Myself,0,PROTECTION_FROM_EVIL)
THEN
RESPONSE #100
SetGlobalTimer("SpellsBad","GLOBAL",3)
ApplySpellRES("dw#alac",Myself) // Enchaînement
Spell(Myself,CLERIC_PROTECT_FROM_EVIL) // SPPR107.SPL (Protection from Evil)
END
IF
ActionListEmpty()
CombatCounter(0)
!Global("DMWWBuff","LOCALS",0)
!Detect(NearestEnemyOf(Myself))
!CheckStatGT(Myself,0,SPELLFAILUREMAGE)
HaveSpell(CLERIC_BLESS) // SPPR101.SPL (Bless)
See(Myself)
!StateCheck(Myself,STATE_BLESS)
THEN
RESPONSE #100
SetGlobalTimer("SpellsBad","GLOBAL",3)
ApplySpellRES("dw#alac",Myself) // Enchaînement
Spell(Myself,CLERIC_BLESS) // SPPR101.SPL (Bless)
END
IF
ActionListEmpty()
CombatCounter(0)
!Global("DMWWBuff","LOCALS",0)
!Detect(NearestEnemyOf(Myself))
!CheckStatGT(Myself,0,SPELLFAILUREMAGE)
HaveSpell(WIZARD_SHIELD) // SPWI114.SPL (Shield)
See(Myself)
!CheckStatGT(Myself,1,SCRIPTINGSTATE5)
THEN
RESPONSE #100
SetGlobalTimer("SpellsBad","GLOBAL",3)
ApplySpellRES("dw#alac",Myself) // Enchaînement
Spell(Myself,WIZARD_SHIELD) // SPWI114.SPL (Shield)
END
IF
ActionListEmpty()
CombatCounter(0)
!Global("DMWWBuff","LOCALS",0)
!Detect(NearestEnemyOf(Myself))
!CheckStatGT(Myself,0,SPELLFAILUREMAGE)
HaveSpell(WIZARD_SPIRIT_ARMOR) // SPWI414.SPL (Spirit Armor)
See(Myself)
THEN
RESPONSE #100
SetGlobalTimer("SpellsBad","GLOBAL",3)
ApplySpellRES("dw#alac",Myself) // Enchaînement
Spell(Myself,WIZARD_SPIRIT_ARMOR) // SPWI414.SPL (Spirit Armor)
END
IF
ActionListEmpty()
CombatCounter(0)
!Global("DMWWBuff","LOCALS",0)
!Detect(NearestEnemyOf(Myself))
!CheckStatGT(Myself,0,SPELLFAILUREMAGE)
HaveSpell(WIZARD_EMOTION_HOPE) // spwi427.SPL (Émotion, espoir)
See(Myself)
THEN
RESPONSE #100
SetGlobalTimer("SpellsBad","GLOBAL",3)
ApplySpellRES("dw#alac",Myself) // Enchaînement
Spell(Player3,WIZARD_EMOTION_HOPE) // spwi427.SPL (Émotion, espoir)
END
IF
ActionListEmpty()
CombatCounter(0)
!Global("DMWWBuff","LOCALS",0)
!Detect(NearestEnemyOf(Myself))
!CheckStatGT(Myself,0,SPELLFAILUREMAGE)
HaveSpell(WIZARD_EMOTION_COURAGE) // spwi426.SPL (Émotion, courage)
See(Myself)
THEN
RESPONSE #100
SetGlobalTimer("SpellsBad","GLOBAL",3)
ApplySpellRES("dw#alac",Myself) // Enchaînement
Spell(Player3,WIZARD_EMOTION_COURAGE) // spwi426.SPL (Émotion, courage)
END
IF
ActionListEmpty()
CombatCounter(0)
!Global("DMWWBuff","LOCALS",0)
!Detect(NearestEnemyOf(Myself))
!CheckStatGT(Myself,0,SPELLFAILUREPRIEST)
HaveSpell(CLERIC_GOOD_BERRIES) // SPPR207.SPL (Goodberry)
See(Myself)
!InventoryFull(Myself)
THEN
RESPONSE #100
SetGlobalTimer("SpellsBad","GLOBAL",3)
ApplySpellRES("dw#alac",Myself) // Enchaînement
Spell(Myself,CLERIC_GOOD_BERRIES) // SPPR207.SPL (Goodberry)
END
IF
ActionListEmpty()
CombatCounter(0)
!Global("DMWWBuff","LOCALS",0)
!Detect(NearestEnemyOf(Myself))
!CheckStatGT(Myself,0,SPELLFAILUREMAGE)
HaveSpell(WIZARD_STONE_SKIN) // SPWI408.SPL (Stoneskin)
See(Myself)
CheckStat(Myself,0,STONESKINS)
THEN
RESPONSE #100
SetGlobalTimer("SpellsBad","GLOBAL",3)
ApplySpellRES("dw#alac",Myself) // Enchaînement
Spell(Myself,WIZARD_STONE_SKIN) // SPWI408.SPL (Stoneskin)
END
IF
ActionListEmpty()
CombatCounter(0)
!Global("DMWWBuff","LOCALS",0)
!Detect(NearestEnemyOf(Myself))
!CheckStatGT(Myself,0,SPELLFAILUREPRIEST)
HaveSpell(CLERIC_IRONSKIN) // SPPR506.SPL (Iron Skins)
See(Myself)
CheckStat(Myself,0,STONESKINS)
THEN
RESPONSE #100
SetGlobalTimer("SpellsBad","GLOBAL",3)
ApplySpellRES("dw#alac",Myself) // Enchaînement
Spell(Myself,CLERIC_IRONSKIN) // SPPR506.SPL (Iron Skins)
END
IF
ActionListEmpty()
CombatCounter(0)
!Global("DMWWBuff","LOCALS",0)
!Detect(NearestEnemyOf(Myself))
!CheckStatGT(Myself,0,SPELLFAILUREMAGE)
HaveSpell(WIZARD_ARMOR) // SPWI102.SPL (Armor)
See(Myself)
THEN
RESPONSE #100
SetGlobalTimer("SpellsBad","GLOBAL",3)
ApplySpellRES("dw#alac",Myself) // Enchaînement
Spell(Myself,WIZARD_ARMOR) // SPWI102.SPL (Armor)
END
IF
ActionListEmpty()
CombatCounter(0)
!Global("DMWWBuff","LOCALS",0)
!Detect(NearestEnemyOf(Myself))
!CheckStatGT(Myself,0,SPELLFAILUREMAGE)
HaveSpell(WIZARD_MELF_METEOR) // SPWI325.SPL (Melf's Minute Meteors)
See(Myself)
!HasItem("eneblade",Myself) // Lames d'énergie
!HasItem("melfmet",Myself) // Minuscules météores de Melf
!Class(Myself,FIGHTER_MAGE)
!Class(Myself,FIGHTER_MAGE_THIEF)
!Class(Myself,BARD)
!Class(Myself,SORCERER)
THEN
RESPONSE #100
SetGlobalTimer("SpellsBad","GLOBAL",3)
ApplySpellRES("dw#alac",Myself) // Enchaînement
Spell(Myself,WIZARD_MELF_METEOR) // SPWI325.SPL (Melf's Minute Meteors)
END
IF
ActionListEmpty()
CombatCounter(0)
!Global("DMWWBuff","LOCALS",0)
!Detect(NearestEnemyOf(Myself))
!CheckStatGT(Myself,0,SPELLFAILUREMAGE)
HaveSpell(WIZARD_ENERGY_BLADES) // SPWI920.SPL (Energy Blades)
See(Myself)
!HasItem("eneblade",Myself) // Lames d'énergie
!HasItem("melfmet",Myself) // Minuscules météores de Melf
!Class(Myself,FIGHTER_MAGE)
!Class(Myself,FIGHTER_MAGE_THIEF)
!Class(Myself,BARD)
!Class(Myself,SORCERER)
THEN
RESPONSE #100
SetGlobalTimer("SpellsBad","GLOBAL",3)
ApplySpellRES("dw#alac",Myself) // Enchaînement
Spell(Myself,WIZARD_ENERGY_BLADES) // SPWI920.SPL (Energy Blades)
END
IF
ActionListEmpty()
CombatCounter(0)
!Global("DMWWBuff","LOCALS",0)
!Detect(NearestEnemyOf(Myself))
!CheckStatGT(Myself,0,SPELLFAILUREMAGE)
HaveSpell(WIZARD_MELF_METEOR) // SPWI325.SPL (Melf's Minute Meteors)
See(Myself)
!HasItem("eneblade",Myself) // Lames d'énergie
!HasItem("melfmet",Myself) // Minuscules météores de Melf
!Class(Myself,FIGHTER_MAGE)
!Class(Myself,FIGHTER_MAGE_THIEF)
!Class(Myself,BARD)
!Class(Myself,SORCERER)
THEN
RESPONSE #100
SetGlobalTimer("SpellsBad","GLOBAL",3)
ApplySpellRES("dw#alac",Myself) // Enchaînement
Spell(Myself,CLERIC_ENERGY_BLADES) // SPPR721.SPL (Energy Blades)
END
IF
ActionListEmpty()
CombatCounter(0)
!Global("DMWWBuff","LOCALS",0)
!Detect(NearestEnemyOf(Myself))
!CheckStatGT(Myself,0,SPELLFAILUREMAGE)
HaveSpell(WIZARD_NON_DETECTION) // SPWI310.SPL (Non-Detection)
!StateCheck(Myself,STATE_NONDETECTION)
See(Myself)
THEN
RESPONSE #100
SetGlobalTimer("SpellsBad","GLOBAL",3)
ApplySpellRES("dw#alac",Myself) // Enchaînement
Spell(Myself,WIZARD_NON_DETECTION) // SPWI310.SPL (Non-Detection)
END
IF
ActionListEmpty()
CombatCounter(0)
!Global("DMWWBuff","LOCALS",0)
!Detect(NearestEnemyOf(Myself))
!CheckStatGT(Myself,0,SPELLFAILUREMAGE)
HaveSpell(WIZARD_MIND_BLANK) // spwi806.SPL (Esprit impénétrable)
See(Myself)
THEN
RESPONSE #100
SetGlobalTimer("SpellsBad","GLOBAL",3)
ApplySpellRES("dw#alac",Myself) // Enchaînement
Spell(Myself,WIZARD_MIND_BLANK) // spwi806.SPL (Esprit impénétrable)
END
IF
ActionListEmpty()
CombatCounter(0)
!Global("DMWWBuff","LOCALS",0)
!Detect(NearestEnemyOf(Myself))
!CheckStatGT(Myself,0,SPELLFAILUREMAGE)
HaveSpell(CLERIC_IMPERVIOUS_SANCTITY_OF_MIND) // sppr735.SPL (Citadelle de l'âme)
See(Myself)
THEN
RESPONSE #100
SetGlobalTimer("SpellsBad","GLOBAL",3)
ApplySpellRES("dw#alac",Myself) // Enchaînement
Spell(Myself,CLERIC_IMPERVIOUS_SANCTITY_OF_MIND) // sppr735.SPL (Citadelle de l'âme)
END
IF
ActionListEmpty()
CombatCounter(0)
!Global("DMWWBuff","LOCALS",0)
!Detect(NearestEnemyOf(Myself))
!CheckStatGT(Myself,0,SPELLFAILUREMAGE)
HaveSpell(WIZARD_BLUR) // SPWI201.SPL (Blur)
See(Myself)
!StateCheck(Myself,STATE_BLUR)
THEN
RESPONSE #100
SetGlobalTimer("SpellsBad","GLOBAL",3)
ApplySpellRES("dw#alac",Myself) // Enchaînement
Spell(Myself,WIZARD_BLUR) // SPWI201.SPL (Blur)
END
IF
ActionListEmpty()
CombatCounter(0)
!Global("DMWWBuff","LOCALS",0)
!Detect(NearestEnemyOf(Myself))
!CheckStatGT(Myself,0,SPELLFAILUREMAGE)
HaveSpell(WIZARD_MINOR_SPELL_TURNING) // SPWI522.SPL (Minor Spell Turning)
See(Myself)
THEN
RESPONSE #100
SetGlobalTimer("SpellsBad","GLOBAL",3)
ApplySpellRES("dw#alac",Myself) // Enchaînement
Spell(Myself,WIZARD_MINOR_SPELL_TURNING) // SPWI522.SPL (Minor Spell Turning)
END
IF
ActionListEmpty()
CombatCounter(0)
!Global("DMWWBuff","LOCALS",0)
!Detect(NearestEnemyOf(Myself))
!CheckStatGT(Myself,0,SPELLFAILUREMAGE)
HaveSpell(WIZARD_SPELL_TURNING) // SPWI701.SPL (Spell Turning)
See(Myself)
THEN
RESPONSE #100
SetGlobalTimer("SpellsBad","GLOBAL",3)
ApplySpellRES("dw#alac",Myself) // Enchaînement
Spell(Myself,WIZARD_SPELL_TURNING) // SPWI701.SPL (Spell Turning)
END
IF
ActionListEmpty()
CombatCounter(0)
!Global("DMWWBuff","LOCALS",0)
!Detect(NearestEnemyOf(Myself))
!CheckStatGT(Myself,0,SPELLFAILUREMAGE)
HaveSpell(WIZARD_MINOR_SPELL_DEFLECTION) // SPWI318.SPL (Minor Spell Deflection)
See(Myself)
THEN
RESPONSE #100
SetGlobalTimer("SpellsBad","GLOBAL",3)
ApplySpellRES("dw#alac",Myself) // Enchaînement
Spell(Myself,WIZARD_MINOR_SPELL_DEFLECTION) // SPWI318.SPL (Minor Spell Deflection)
END
IF
ActionListEmpty()
CombatCounter(0)
!Global("DMWWBuff","LOCALS",0)
!Detect(NearestEnemyOf(Myself))
!CheckStatGT(Myself,0,SPELLFAILUREMAGE)
HaveSpell(WIZARD_SPELL_DEFLECTION) // SPWI618.SPL (Spell Deflection)
See(Myself)
THEN
RESPONSE #100
SetGlobalTimer("SpellsBad","GLOBAL",3)
ApplySpellRES("dw#alac",Myself) // Enchaînement
Spell(Myself,WIZARD_SPELL_DEFLECTION) // SPWI618.SPL (Spell Deflection)
END
IF
ActionListEmpty()
CombatCounter(0)
!Global("DMWWBuff","LOCALS",0)
!Detect(NearestEnemyOf(Myself))
!CheckStatGT(Myself,0,SPELLFAILUREPRIEST)
HaveSpell(CLERIC_PROTECTION_FROM_LIGHTNING) // SPPR407.SPL (Protection from Lightning)
See(Player1)
CheckStatLT(Player1,80,RESISTELECTRICITY)
THEN
RESPONSE #100
SetGlobalTimer("SpellsBad","GLOBAL",3)
ApplySpellRES("dw#alac",Myself) // Enchaînement
Spell(Player1,CLERIC_PROTECTION_FROM_LIGHTNING) // SPPR407.SPL (Protection from Lightning)
Continue()
END
IF
ActionListEmpty()
CombatCounter(0)
!Global("DMWWBuff","LOCALS",0)
!Detect(NearestEnemyOf(Myself))
!CheckStatGT(Myself,0,SPELLFAILUREPRIEST)
HaveSpell(CLERIC_PROTECTION_FROM_LIGHTNING) // SPPR407.SPL (Protection from Lightning)
See(Myself)
CheckStatLT(Myself,80,RESISTELECTRICITY)
THEN
RESPONSE #100
SetGlobalTimer("SpellsBad","GLOBAL",3)
ApplySpellRES("dw#alac",Myself) // Enchaînement
Spell(Myself,CLERIC_PROTECTION_FROM_LIGHTNING) // SPPR407.SPL (Protection from Lightning)
Continue()
END
IF
ActionListEmpty()
CombatCounter(0)
!Global("DMWWBuff","LOCALS",0)
!Detect(NearestEnemyOf(Myself))
!CheckStatGT(Myself,0,SPELLFAILUREPRIEST)
HaveSpell(CLERIC_DEATH_WARD) // SPPR409.SPL (Death Ward)
See(Player1)
THEN
RESPONSE #100
SetGlobalTimer("SpellsBad","GLOBAL",3)
ApplySpellRES("dw#alac",Myself) // Enchaînement
Spell(Player1,CLERIC_DEATH_WARD) // SPPR409.SPL (Death Ward)
Continue()
END
IF
ActionListEmpty()
CombatCounter(0)
!Global("DMWWBuff","LOCALS",0)
!Detect(NearestEnemyOf(Myself))
!CheckStatGT(Myself,0,SPELLFAILUREPRIEST)
HaveSpell(CLERIC_DEATH_WARD) // SPPR409.SPL (Death Ward)
See(Myself)
THEN
RESPONSE #100
SetGlobalTimer("SpellsBad","GLOBAL",3)
ApplySpellRES("dw#alac",Myself) // Enchaînement
Spell(Myself,CLERIC_DEATH_WARD) // SPPR409.SPL (Death Ward)
Continue()
END
IF
ActionListEmpty()
CombatCounter(0)
!Global("DMWWBuff","LOCALS",0)
!Detect(NearestEnemyOf(Myself))
!CheckStatGT(Myself,0,SPELLFAILUREPRIEST)
HaveSpell(CLERIC_CHAOTIC_COMMANDS) // SPPR508.SPL (Chaotic Commands)
See(Player1)
!CheckStat(Player1,1,CLERIC_CHAOTIC_COMMANDS)
THEN
RESPONSE #100
SetGlobalTimer("SpellsBad","GLOBAL",3)
ApplySpellRES("dw#alac",Myself) // Enchaînement
Spell(Player1,CLERIC_CHAOTIC_COMMANDS) // SPPR508.SPL (Chaotic Commands)
Continue()
END
IF
ActionListEmpty()
CombatCounter(0)
!Global("DMWWBuff","LOCALS",0)
!Detect(NearestEnemyOf(Myself))
!CheckStatGT(Myself,0,SPELLFAILUREPRIEST)
HaveSpell(CLERIC_CHAOTIC_COMMANDS) // SPPR508.SPL (Chaotic Commands)
See(Myself)
!CheckStat(Myself,1,CLERIC_CHAOTIC_COMMANDS)
THEN
RESPONSE #100
SetGlobalTimer("SpellsBad","GLOBAL",3)
ApplySpellRES("dw#alac",Myself) // Enchaînement
Spell(Myself,CLERIC_CHAOTIC_COMMANDS) // SPPR508.SPL (Chaotic Commands)
Continue()
END
IF
ActionListEmpty()
CombatCounter(0)
!Global("DMWWBuff","LOCALS",0)
!Detect(NearestEnemyOf(Myself))
!CheckStatGT(Myself,0,SPELLFAILUREPRIEST)
HaveSpell(WIZARD_PROTECTION_FROM_FIRE) // SPWI319.SPL (Protection from Fire)
See(Player1)
CheckStatLT(Player1,80,RESISTFIRE)
THEN
RESPONSE #100
SetGlobalTimer("SpellsBad","GLOBAL",3)
ApplySpellRES("dw#alac",Myself) // Enchaînement
Spell(Player1,WIZARD_PROTECTION_FROM_FIRE) // SPWI319.SPL (Protection from Fire)
Continue()
END
IF
ActionListEmpty()
CombatCounter(0)
!Global("DMWWBuff","LOCALS",0)
!Detect(NearestEnemyOf(Myself))
!CheckStatGT(Myself,0,SPELLFAILUREPRIEST)
HaveSpell(WIZARD_PROTECTION_FROM_FIRE) // SPWI319.SPL (Protection from Fire)
See(Myself)
CheckStatLT(Myself,80,RESISTFIRE)
THEN
RESPONSE #100
SetGlobalTimer("SpellsBad","GLOBAL",3)
ApplySpellRES("dw#alac",Myself) // Enchaînement
Spell(Myself,WIZARD_PROTECTION_FROM_FIRE) // SPWI319.SPL (Protection from Fire)
Continue()
END
IF
ActionListEmpty()
CombatCounter(0)
!Global("DMWWBuff","LOCALS",0)
!Detect(NearestEnemyOf(Myself))
!CheckStatGT(Myself,0,SPELLFAILUREPRIEST)
HaveSpell(WIZARD_PROTECTION_FROM_MAGIC_ENERGY) // SPWI606.SPL (Protection from Magic Energy)
See(Myself)
CheckStatLT(Myself,80,RESISTMAGIC)
THEN
RESPONSE #100
SetGlobalTimer("SpellsBad","GLOBAL",3)
ApplySpellRES("dw#alac",Myself) // Enchaînement
Spell(Myself,WIZARD_PROTECTION_FROM_MAGIC_ENERGY) // SPWI606.SPL (Protection from Magic Energy)
Continue()
END
IF
ActionListEmpty()
CombatCounter(0)
!Global("DMWWBuff","LOCALS",0)
!Detect(NearestEnemyOf(Myself))
!CheckStatGT(Myself,0,SPELLFAILUREPRIEST)
HaveSpell(WIZARD_PROTECTION_FROM_MAGIC_ENERGY) // SPWI606.SPL (Protection from Magic Energy)
See(Player1)
CheckStatLT(Player1,80,RESISTMAGIC)
THEN
RESPONSE #100
SetGlobalTimer("SpellsBad","GLOBAL",3)
ApplySpellRES("dw#alac",Myself) // Enchaînement
Spell(Player1,WIZARD_PROTECTION_FROM_MAGIC_ENERGY) // SPWI606.SPL (Protection from Magic Energy)
Continue()
END