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
ItemDamageChance set to 0, items still get damage
Author Message
Rizz
Master
**

Posts: 396
Likes Given: 21
Likes Received: 14 in 9 posts
Joined: Oct 2012
Reputation: 0



Post: #3
RE: ItemDamageChance set to 0, items still get damage
Still the same problem:

armors don't take damage
weapons and shields take damage.


Code:
ON=@HIT

// I    The character doing the hitting.
// SRC    The character being hit.

IF (<ARGO>)
    IF (<src.region.defname> == a_macro_castle)
        LOCAL.ItemDamageChance=7
    ELIF (<src.isplayer>)
        LOCAL.ItemDamageChance=25
            if (<account.plevel> > 1)
            sysmessage danneggiamento
        endif
    ELSE
        LOCAL.ItemDamageChance=0
        if (<account.plevel> > 1)
            sysmessage non danneggia
        endif
    ENDIF
ELSE
    LOCAL.ItemDamageChance=0
ENDIF



ON=@GETHIT
// I    The character being damaged.
// SRC    The character responsible for the damage.

IF (<region.defname> == a_macro_castle)
    LOCAL.ItemDamageChance=7
ELIF (<src.isplayer>)
    LOCAL.ItemDamageChance=30
        if (<account.plevel> > 1)
        sysmessage danneggio armor
    endif
ELSE
    LOCAL.ItemDamageChance=0
    if (<account.plevel> > 1)
        sysmessage non danneggio armor
    endif
ENDIF

Did I something wrong?
Maybe should I put ItemDamageChance on NPC general event too?
(This post was last modified: 06-16-2015 08:13 AM by Rizz.)
06-16-2015 08:12 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
RE: ItemDamageChance set to 0, items still get damage - Rizz - 06-16-2015 08:12 AM

Forum Jump:


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