Outils pour utilisateurs

Outils du site


talents:contre_attaque

Ceci est une ancienne révision du document !


///////////////////////////////////////////////////////////////////// //////////////////////CONTRE-ATTAQUE///////////////////////////// ///////////////////////////////////////////////////////////////////// [EVENTS e_contre_attaque]

on=@gethit

if (<tag0.contreattaque»0)

if !(<tag0.globalcooldowncontreattaque>==1)
  if (!(<uid>==<src.uid>)) && (<distance><=1)  
    if ((RAND(100))<=(<tag0.contreattaque>/25))
    LOCAL.DAMHI=<findlayer(1).dam.hi>+(<findlayer(1).morey>/124)
    LOCAL.DAMLO=<findlayer(1).dam.lo>
    LOCAL.Soustraction=11-(<tag0.ContreAttaque>/100)
    LOCAL.ContreAttaque=(<R<LOCAL.DAMLO> <LOCAL.DAMHI>>+(<i.tag0.battleshout>)+(<i.tag0.BonusDmgFrenesie>/5)+(<i.tag0.BonusDmgMelodie>)/<LOCAL.Soustraction>)
    src.dmg=<LOCAL.ContreAttaque>, <uid>
	src.effect=3,i_fx_sparkle_2,6,10,5,0771,0
      tag.globalcooldowncontreattaque=1
      timerf 2,tag.globalcooldowncontreattaque=
      messagerouge Vous contre-attaquez <src.name>
      src.messagerouge Vous vous faites contre-attaquer
      src.sfx 023c
      return 0
    else
      return 0
    endif
  else
    return 0
  endif

ENDIF

talents/contre_attaque.1696372460.txt.gz · Dernière modification : de pintou10_live.fr