function script Henshin { set @sr,1; specialeffect2 EF_HEAL; specialeffect2 EF_POTION_BERSERK; unittalk getcharid(3),"Henshin!!"; disguise 1785; percentheal 100,0; sleep2 10000; undisguise; set @sr,0; end;}
ya..when use this, player will disguiese then hp will restore 100% back,.
and i want add some new effect in this function,when player disguise + hp restore 100%. player recieve BERSERK skill 10second/until dead.
function script Henshin { set @sr,1; specialeffect2 EF_HEAL; specialeffect2 EF_POTION_BERSERK; unittalk getcharid(3),"Henshin!!"; disguise 1785; //will make the player berserk for 10 seconds. specialeffect2 SC_BERSERK; sc_start SC_BERSERK,10000,1; percentheal 100,0; sleep2 10000; undisguise; set @sr,0; end;}
Edited by xienne15, 12 August 2013 - 04:18 PM.