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 


Forum Jump:


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