Jump to content
Forumu Destekleyenlere Katılın ×
Paticik Forumları
2000 lerden beri faal olan, çok şukela bir paylaşım platformuyuz. Hoşgeldiniz.

Magic Resistance


AruzieL

Öne çıkan mesajlar

[FUNCTION SPELLARGN]
VAR.SPELLARGN + 0dc000000

[FUNCTION SPELLCIRCLE]
IF ( == s_clumsy) || ( == s_create_food) || ( == s_feeblemind) || ( == s_heal) || ( == s_magic_arrow) || ( == s_night_sight) || ( == s_reactive_armor) || ( == s_weaken)
VAR.SPELLCIRCLE 1
ELSEIF ( == s_agility) || ( == s_cunning) || ( == s_cure) || ( == s_harm) || ( == s_magic_trap) || ( == s_magic_untrap) || ( == s_protection) || ( == s_strength)
VAR.SPELLCIRCLE 2
ELSEIF ( == s_bless) || ( == s_fireball) || ( == s_magic_lock) || ( == s_poison) || ( == s_telekinesis) || ( == s_teleport) || ( == s_unlock) || ( == s_wall_of_stone)
VAR.SPELLCIRCLE 3
ELSEIF ( == s_archcure) || ( == s_archprotection) || ( == s_curse) || ( == s_fire_field) || ( == s_greater_heal) || ( == s_lightning) || ( == s_mana_drain) || ( == s_recall)
VAR.SPELLCIRCLE 4
ELSEIF ( == s_blade_spirits) || ( == s_dispel_field) || ( == s_incognito) || ( == s_magic_reflection) || ( == s_mind_blast) || ( == s_paralyze) || ( == s_poison_field) || ( == s_summon_creature)
VAR.SPELLCIRCLE 5
ELSEIF ( == s_dispel) || ( == s_energy_bolt) || ( == s_explosion) || ( == s_invisibility) || ( == s_mark) || ( == s_mass_curse) || ( == s_paralyzation_field) || ( == s_reveal)
VAR.SPELLCIRCLE 6
ELSEIF ( == s_chain_lightning) || ( == s_energy_field) || ( == s_flamestrike) || ( == s_gate_travel) || ( == s_mana_vampire) || ( == s_mass_dispel) || ( == s_meteor_swarm) || ( == s_polymorph)
VAR.SPELLCIRCLE 7
ELSEIF ( == s_earthquake) || ( == s_energy_vortex) || ( == s_resurrection) || ( == s_summon_elem_air) || ( == s_summon_daemon) || ( == s_summon_elem_earth) || ( == s_summon_elem_fire) || ( == s_summon_elem_water)
VAR.SPELLCIRCLE 8
ENDIF

[EVENTS e_resist]
ON=@SpellCast
IF ()
IF !()
SRC.ACT.EVENTS +e_resist
ENDIF
ENDIF

ON=@SpellEffect
IF !()
SRC.EVENTS +e_resist
ENDIF

SPELLARGN
IF ( == s_harm) || ( == s_lightning) || ( == s_energy_bolt) || ( == s_chain_lightning) || ( == s_earthquake) || ( == s_paralyzation_field) || ( == s_poison_field) || (!( & mt_fire_immune) && (( == s_magic_arrow) || ( == s_fireball) || ( == s_explosion) || ( == s_meteor_swarm) || ( == s_flamestrike) || ( == s_fire_field)))
SPELLCIRCLE
IF ( / 5) + 5) / 10>) > ( - ((( - 20.0) / 5) + ( * 5))) + 5) / 10>)
IF (RAND(100) < / 5) + 5) / 10>)
TAG.RESIST 1
ELSE
TAG.RESIST 2
ENDIF
ELSE
IF (RAND(100) < - ((( - 20.0) / 5) + ( * 5))) + 5) / 10>)
TAG.RESIST 1
ELSE
TAG.RESIST 2
ENDIF
ENDIF
ENDIF



ON=@GetHit
IF (0 == 1)
SYSMESSAGE You feel yourself resisting magic.
HITS + ( / 2)>
Resist_EVALINT / 2>
RESISTGAIN 20
ELSEIF (0 == 2)
Resist_EVALINT
RESISTGAIN 10
ENDIF
TAG.RESIST


[FUNCTION Resist_EVALINT]
IF !()
IF ( > )
VAR.MODIFIER - ) / 200)>
ELIF ( < )
VAR.MODIFIER - ) / 500)>
ENDIF


[FUNCTION RESISTGAIN]
if ( < 333)
if (rand(2) == 1)
MAGICRESISTANCE ( + 1)
ENDIF
elseif ( < 555)
if (rand(3) == 1)
MAGICRESISTANCE ( + 1)
ENDIF
elseif ( < 777)
if (rand(4) == 1)
MAGICRESISTANCE ( + 1)
ENDIF
elseif ( < 1000)
if (rand(5) == 1)
MAGICRESISTANCE ( + 1)
ENDIF


Oyuncu sureklı kendıne magic arrow attıgında hp sı artıyor scp de bır sorun var ama cozemedım yardımlarını
Link to comment
Sosyal ağlarda paylaş

×
×
  • Yeni Oluştur...