Thread Rating:
- 0 Votes - 0 Average
- 1
- 2
- 3
- 4
- 5
Editing spell effects
|
Author |
Message |
Skul 
Master
 
Posts: 413
Likes Given: 0
Likes Received: 19 in 15 posts
Joined: Jun 2012
Reputation: 9
![]()
|
RE: Editing spell effects
For heal spells you can change the effect of s_heal and s_greater_heal. Here's an example:
Code:
on=@spelleffect
if (<serv.spell.<argn1>.defname>==s_heal) || (<serv.spell.<argn1>.defname>==s_greater_heal)
if !(<tag0.tmp_heal>)
tag.tmp_heal=1
serv.spell.<argn1>.effect += <eval <eval <serv.spell.<argn1>.effect> *<tag0.bonus_heal>> /100> //assuming tag.bonus_heal if your 20% value (20)
spelleffect <argn1> <argn2> <src.uid> //resend the heal spell with the new effect added
serv.spell.<argn1>.effect -= <eval <eval <serv.spell.<argn1>.effect> *<tag0.bonus_heal>> /100> //remove the bonus resetting the effect
tag.tmp_heal=
endif
endif
As for firestrike? or maybe you meant Flamestrike, you can use @gethit since it does damage.
Code:
on=@spelleffect
if ( <serv.spell.<argn1>.flags> & spellflag_damage )
tag.spell_argn=<argn1>
tag.spell_strength=<argn2>
endif
on=@gethit
if ( <argn2> & 04 )
if (<serv.spell.<tag0.spell_argn>.defname>==s_flamestrike)
argn1 += <eval <eval <argn1> *<tag0.bonus_flamestrike>> /100>
endif
endif
"I ask a question to the answer I already know."
Marchadium :: http://www.marchadium.ca/ :: Join us!
|
|
11-25-2012 08:06 AM |
|
|
Messages In This Thread |
RE: Editing spell effects - Skul - 11-25-2012 08:06 AM
|
User(s) browsing this thread: 1 Guest(s)