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
can't rescurrect
Author Message
Crusader
Master
**

Posts: 254
Likes Given: 7
Likes Received: 19 in 12 posts
Joined: Apr 2012
Reputation: 6

Erehwon New Hera

Post: #8
RE: can't rescurrect
well, as far as i understood, u have to basically put the following code into an event for all the players:
Code:
ON=@SpellSelect
    REF1=<SERV.UID.<ARGO.UID>> // Caster or Wand
    REF2=<SERV.UID.<UID>>       // Caster
    ARGN3=03
    IF <f_SpellcastCheckRegionLawsOnPreCast <REF2.UID>, <ARGN1>>||<f_combat_CheckForSpellPrevention <REF2.UID>, <ARGN1>>
        ACTION=-1
        RETURN 1
    ELSE
        IF <REF2.MANA> > <ARGN2>
            REF2.CTAG.ManaUse=<EVAL <REF2.MANA> - <ARGN2>>
            RETURN 6
        ELSE
            ACTION=-1
            RETURN 1
        ENDIF
    ENDIF
    RETURN 0


than u should put the other pieces of code in another script or whereever u want.

@barnabus
i might suggest u to use the SPELLFLAG_HARM to see if it's a dangerous spell or not?
05-11-2012 10:29 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
can't rescurrect - Alias - 05-10-2012, 01:37 AM
RE: can't rescurrect - Barnabus - 05-10-2012, 11:11 PM
RE: can't rescurrect - Alias - 05-11-2012, 02:27 AM
RE: can't rescurrect - Barnabus - 05-11-2012, 03:21 AM
RE: can't rescurrect - Alias - 05-11-2012, 03:29 AM
RE: can't rescurrect - Barnabus - 05-11-2012, 11:28 AM
RE: can't rescurrect - Alias - 05-11-2012, 09:52 PM
RE: can't rescurrect - Crusader - 05-11-2012 10:29 PM
RE: can't rescurrect - Barnabus - 05-11-2012, 10:51 PM
RE: can't rescurrect - Crusader - 05-11-2012, 10:58 PM
RE: can't rescurrect - Barnabus - 05-11-2012, 11:14 PM
RE: can't rescurrect - Crusader - 05-11-2012, 11:23 PM
RE: can't rescurrect - Barnabus - 05-11-2012, 11:36 PM
RE: can't rescurrect - Alias - 05-12-2012, 12:26 AM
RE: can't rescurrect - Crusader - 05-12-2012, 12:44 AM
RE: can't rescurrect - Barnabus - 05-12-2012, 07:39 AM
RE: can't rescurrect - Alias - 05-13-2012, 11:36 PM
RE: can't rescurrect - Vendetta - 05-18-2012, 12:23 AM

Forum Jump:


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