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
Damage to self...
Author Message
Barnabus
Journeyman
*

Posts: 124
Likes Given: 0
Likes Received: 3 in 2 posts
Joined: Apr 2012
Reputation: 1



Post: #7
RE: Damage to self...
Ive Decided on something similiar just reading your post and Ive just did something basic, I like skulls idea about defining the NPCSpecial Triggers etc.. I did on the ITEMDEF for the field

PHP Code:
ON=@Step
    REF1
=<SERV.UID.<SRC.UID>>
    
REF2=<SERV.UID.<LINK.UID>>
    
REF2.TAG.StoodOnUIDSFireField=<REF1.UID>
    
SERV.LOG @ITEMDEF <REF2.NAMEuid <REF2.UIDhas stepped on a fire field created by <LINK.NAMEuid <LINK.UID>
    RETURN 


and then in GETHIT I just did this....

PHP Code:
    IF <REF2.TAG.StoodOnUIDSFireField> == <REF2.UID>
        
REF2.TAG.StoodOnUIDSFireField=
        
SERV.LOG @GETHIT <REF2.NAMEstood on own fire field.
    ENDIF 

i havnt set no damage or effect yet but at least I know who did it and who got it now

@NPCFireField

Would rock Ive had difficuty with the dragon breath too.. Just to add another but similiar annoyance.
PHP Code:
ON=@NPCSpecialAction
    
IF <BASEID>== c_dragon
        serv
.log @NPCSpecialAction (<NAME>) does action <ACTION> <SERV.SKILL.<ACTION>.KEY>
    ENDIF

ON=@NPCAction
    
IF <BASEID>== c_dragon
        
IF <ACTION>==06e
            serv
.log @NPCAction (<NAME>) does action <ACTION> <SERV.SKILL.<ACTION>.KEY>
        ENDIF
    ENDIF

ON=@NPCActFight
    REF1
=<SERV.UID.<UID>>
    
REF2=<SERV.UID.<SRC.UID>>
    IF (
STRMATCH(*dragon*,<REF1.TAG.NPCGroup>>)
        IF <
ARGN1> > 2
                
IF <SERV.SKILL.<ACTION>.KEY> == Wrestling
                    
// This must be a Dragon Breath
                    
SERV.LOG @NPCActFight <NAMEBreathes Fire on <REF2.NAME>
                    
REF2.TAG.DragonFireDamage=<EVAL <REF1.INT> + <REF1.DAM>>
                ENDIF
            ENDIF
        ENDIF
    ENDIF
    RETURN 

(This post was last modified: 11-02-2012 01:48 AM by Barnabus.)
11-02-2012 01:41 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Damage to self... - RanXerox - 11-01-2012, 08:02 AM
RE: Damage to self... - Shaklaban - 11-01-2012, 09:27 AM
RE: Damage to self... - RanXerox - 11-01-2012, 10:22 AM
RE: Damage to self... - Shaklaban - 11-01-2012, 11:20 PM
RE: Damage to self... - Barnabus - 11-01-2012, 10:05 PM
RE: Damage to self... - RanXerox - 11-02-2012, 01:04 AM
RE: Damage to self... - Barnabus - 11-02-2012 01:41 AM
RE: Damage to self... - Barnabus - 11-04-2012, 03:11 AM
RE: Damage to self... - Skul - 11-14-2012, 02:51 AM
RE: Damage to self... - RanXerox - 11-14-2012, 04:27 AM

Forum Jump:


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