Shidhun
Journeyman
Posts: 59
Likes Given: 5
Likes Received: 3 in 3 posts
Joined: Jul 2012
Reputation: 1
|
RE: Aura Spell
Try it with something like this :
Code:
[Spell 425]
DEFNAME=s_siegesrausch
NAME=Siegesrausch
RUNES=
CAST_TIME=0.5
RESOURCES=i_reag_mandrake_root //Reagents ?
RUNE_ITEM=5578
SCROLL_ITEM=i_scroll_x_red
FLAGS=SPELLFLAG_SCRIPTED|SPELLFLAG_TARG_CHAR
EFFECT_ID=0
EFFECT=0
MANAUSE=5
SKILLREQ=MAGERY 50.0
INTERRUPT=100.0,1.0
ON=@SELECT
ARGN1 42
ON=@EFFECT
CALL f_spell_siegesrausch
RETURN 0
[FUNCTION f_spell_siegesrausch]
IF (<ISITEM>)
IF (<CONT>)
RETURN 1
ENDIF
ENDIF
IF (<SRC.ACTION>==Skill_Magery)&&(<ARGN1>==<SRC.ACTARG1>)
IF (<SRC.FINDID(I_spelleffect_siegesrausch)>)
SRC.FINDID(I_spelleffect_siegesrausch).remove
ENDIF
ENDIF
LOCAL.Wirkung <EVAL (20*<ARGN2>)/1000> // Strength of the effect
SERV.NEWITEM I_spelleffect_siegesrausch
NEW.MORE2=<LOCAL.Wirkung>
NEW.MORE1=<EVAL <ARGN2>/100> // How often should the effect occur?
EQUIP <NEW.UID>
[ITEMDEF i_spelleffect_siegesrausch]
ID=i_rune_bless
LAYER=56
TYPE=t_eq_script
ON=@EQUIP
ATTR=026
TIMER=7
ON=@TIMER
IF (<MORE1>)
LOCAL.Wirkung <MORE2>
SOUND snd_spell_bless
MORE1 -= 1
CONT.effect 3,i_fx_bless_effect,1,16,0,0,2
LOCAL.UID = <CONT.UID>
FORCHARS 4
IF (<HITS> <= <MAXHITS>)&&!(<FLAGS>&02003)
EFFECT 3,i_fx_heal_effect,0,28,0,2535,3
SPELLEFFECT s_bless,<local.wirkung>
ENDIF
ENDFOR
TIMER={8 13} // Intervall
ELSE
REMOVE
ENDIF
RETURN 1
It is only a part of one of our spells (other effect), and i haven't tested it. But it should give you an Idea how to create your spell[/php]
(This post was last modified: 03-20-2014 11:34 PM by Shidhun.)
|
|
03-20-2014 11:33 PM |
|
|