The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Aura Spell
Author Message
Shidhun
Journeyman
*

Posts: 59
Likes Given: 5
Likes Received: 3 in 3 posts
Joined: Jul 2012
Reputation: 1



Post: #3
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
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Aura Spell - Seron - 03-20-2014, 07:21 PM
RE: Aura Spell - Alaric - 03-20-2014, 11:00 PM
RE: Aura Spell - Shidhun - 03-20-2014 11:33 PM
RE: Aura Spell - Seron - 03-21-2014, 05:37 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)