Ceci est une ancienne révision du document !
//////////////////////////////////////////////////////////////////// ///////////////////////////CRI DE GUERRE//////////////////////// ////////////////////////////////////////////////////////////////////
[FUNCTION crideguerre] IF !(<src.tag0.crideguerre»0)
src.messagerouge Vous ne possédez pas cette habileté. return 1
endif
IF (<src.findid.i_timershout>)
src.messagerouge @,,1 Vous devez attendre <eval <src.findid.i_timershout.timer>> secondes avant de réutiliser cette habileté return 1
endif
IF (<src.flags>&statf_freeze) || (<src.flags>&statf_stone)
src.messagerouge Vous ne pouvez utiliser cette habileté dans votre état. return 1
endif
IF (<src.tag0.crideguerre>⇐100)
local.impactshout=1 local.impactshout_timer=300
ELIF (<src.tag0.crideguerre>⇐200)
local.impactshout=2 local.impactshout_timer=300
ELIF (<src.tag0.crideguerre>⇐300)
local.impactshout=3 local.impactshout_timer=300
ELIF (<src.tag0.crideguerre>⇐400)
local.impactshout=4 local.impactshout_timer=300
ELIF (<src.tag0.crideguerre>⇐500)
local.impactshout=5 local.impactshout_timer=450
ELIF (<src.tag0.crideguerre>⇐600)
local.impactshout=6 local.impactshout_timer=450
ELIF (<src.tag0.crideguerre>⇐700)
local.impactshout=7 local.impactshout_timer=450
ELIF (<src.tag0.crideguerre>⇐800)
local.impactshout=8 local.impactshout_timer=450
ELIF (<src.tag0.crideguerre>⇐900)
local.impactshout=9 local.impactshout_timer=450
ELSE
local.impactshout=10 local.impactshout_timer=600
ENDIF
src.SAYua 020 0 0 eng Pousse un cri de guerre if (<src.body>==c_man) || (<src.body>==c_elf_male)
SRC.sfx 00a2 else src.sfx 0338
endif
src.CircleFX 12,i_bee_swarm,9,3,04b9,4
serv.newitem i_timershout new.timer=140-(<src.int>/25) SRC.equip <new.uid>
ref1=<src.uid> forclients 12
if !(<findid.i_battleshout>)
//IF (<isteam <ref1.uid>,<uid>,1>) tag.battleshout=<dlocal.impactshout> serv.newitem i_battleshout new.timer=<eval <local.impactshout_timer>> if (<uid>==<ref1.uid>) new.tag.puissance=<ref1.tag0.crideguerre>/2 //////bonus à 50% sur soi-même else new.tag.puissance=<ref1.tag0.crideguerre> endif equip <new.uid> //ENDIF
endif if (<defname>==c_Vaudou) if !(<findid.i_mem_Vaudou.link.findid.i_battleshout>)
//IF (<isteam <ref1.uid>,<uid>,1>) findid.i_mem_Vaudou.link.tag.battleshout=<dlocal.impactshout> serv.newitem i_battleshout new.timer=<eval <local.impactshout_timer>> if (<uid>==<ref1.uid>) new.tag.puissance=<ref1.tag0.crideguerre>/4 else new.tag.puissance=<ref1.tag0.crideguerre> endif findid.i_mem_Vaudou.link.equip <new.uid> //ENDIF
endif endif
endfor
[itemdef i_timershout] ////////////COOLDOWN id=i_memory name=Cooldown Cri de Guerre TYPE=T_eq_script
ON=@TIMER remove return 1
[ITEMDEF i_battleshout] ID=i_memory type=t_eq_script NAME=Boost Cri de guerre
on=@create ATTR=attr_invis
ON=@EQUIP SRC.EFFECT=3,i_fx_heal_effect,6,10,5,04b9 SRC.SFX=490 SRC.messagevert Le cri de guerre vous motive et augmente la force de vos coups src.tag.battleshout=(<tag0.puissance>/5) src.say <src.tag0.battleshout>
ON=@TIMER cont.messagerouge Vous perdez le bonus du cri de guerre. cont.EFFECT=3,i_fx_tornade3,6,10,5,04b9 cont.TAG.BATTLESHOUT= REMOVE return 0