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
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Durability
Author Message
ISOcol
Apprentice
*

Posts: 16
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Aug 2022
Reputation: 0



Post: #1
Durability
All the methods from discord on Durability removing.

//////////////////////////////////////////////////////////////
// DURABILITY DISABLE //////////////////////////////////
// Add these events to your Sphere.ini Events /////////
// Events related to all npc
// EventsPet=e_DURABILITY_FIX_NPC
//
// Events related to all players
// EventsPlayer=e_DURABILITY_FIX_PLAYER


[EVENTS e_DURABILITY_FIX_NPC]
ON=@Hit
local.ItemDamageChance = 0
ON=@GetHit
local.ItemDamageChance = 0
ON=@HITPARRY
LOCAL.ITEMPARRYDAMAGECHANCE= 0 // 0 % chance for shield to take damage when parry

[EVENTS e_DURABILITY_FIX_PLAYER]
ON=@HIT
local.ItemDamageChance= 0 // 0 % chance to take damage when hitting
ON=@GETHIT
local.ItemDamageChance= 0 // 0 % chance to take damage when hit
ON=@HITPARRY
LOCAL.ITEMPARRYDAMAGECHANCE= 0 // 0 % chance for shield to take damage when parry

// DIDNT WORK //
//ON=@Damage
//Shield is considered an armor
//if ((<isweapon>) || ( <isarmor>) )
// argn1 -= (( <argn1> * 100) / 100 ) //Reduce damage by 100% // only change the first 100 on the left
//endif
//
//ON=@ItemDamage // the character damaged something
// IF (<ACT.TYPE> == T_SHIELD) //that something is a shield
// RETURN 1 //prevent the damage
// ENDIF
(This post was last modified: 08-28-2022 07:23 AM by ISOcol.)
08-28-2022 07:20 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Durability - ISOcol - 08-28-2022 07:20 AM

Forum Jump:


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