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
How to remove item durability?
Author Message
amonvangrell
Banned

Posts: 337
Likes Given: 17
Likes Received: 32 in 20 posts
Joined: Aug 2012

britannia shard

Post: #1
Sad How to remove item durability?
Hi All long time no see.. Big Grin

Hey I was wonder if someone can help me to turn off this feature.
My equipment now get destroyed after some use...

The only thing I could find is the msgs inside Sphere_Msg.scp:

Code:
//item_dmg_damage1                "You damage %s's %s"
//item_dmg_damage2                "You damage the %s"
//item_dmg_damage3                "Your %s is damaged and looks %s"
//item_dmg_damage4                "Your %s may have been damaged"

thanks!
12-30-2016 03:55 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Leonidas
Master
**

Posts: 277
Likes Given: 3
Likes Received: 13 in 12 posts
Joined: May 2013
Reputation: 1



Post: #2
RE: How to remove item durability?
I've been trying to figure this out as well. Everytime you get hit it says "Your blah may have been damaged", i dont want to disable it but where can you decrease the chance of this message popping up?
12-30-2016 04:36 PM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #3
RE: How to remove item durability?
LOCAL.ItemDamageChance (value range: 0~100) on triggers @Hit (weapon) / @GetHit (armor).
12-30-2016 07:59 PM
Find all posts by this user Like Post Quote this message in a reply
amonvangrell
Banned

Posts: 337
Likes Given: 17
Likes Received: 32 in 20 posts
Joined: Aug 2012

britannia shard

Post: #4
RE: How to remove item durability?
(12-30-2016 07:59 PM)darksun84 Wrote:  LOCAL.ItemDamageChance (value range: 0~100) on triggers @Hit (weapon) / @GetHit (armor).


I could not find inside my sphere, anything mentioned.
Not: LOCAL.ItemDamageChance
or ItemDamageChance

Under @Hit or @GetHit there is only normal or custom codes. Nothing with the mentioned ItemDamageChance.

ConfusedConfused
12-31-2016 05:24 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #5
RE: How to remove item durability?
You have to add them in your @hit/@gethit triggers:

ON=@Hit

local.ItemDamageChance = 0


ON=@GetHit
local.ItemDamageChance = 0
(This post was last modified: 12-31-2016 05:30 AM by darksun84.)
12-31-2016 05:29 AM
Find all posts by this user Like Post Quote this message in a reply
amonvangrell
Banned

Posts: 337
Likes Given: 17
Likes Received: 32 in 20 posts
Joined: Aug 2012

britannia shard

Post: #6
RE: How to remove item durability?
oh Thanks!
So I imagine that this is hardcoded... :/

wonder if this would work in itemdef t_weapon?

this did not worked...
Code:
[TYPEDEF t_armor]
ON=@GetHit
local.ItemDamageChance = 0

[TYPEDEF t_weapon_mace_smith]
ON=@Hit
local.ItemDamageChance = 0

[TYPEDEF t_weapon_mace_sharp]
ON=@Hit
local.ItemDamageChance = 0

[TYPEDEF t_weapon_sword]
ON=@Hit
local.ItemDamageChance = 0

[TYPEDEF t_weapon_fence]
ON=@Hit
local.ItemDamageChance = 0

[TYPEDEF t_weapon_bow]
ON=@Hit
local.ItemDamageChance = 0

Any idea how to implement this change to all items?
(This post was last modified: 12-31-2016 06:40 AM by amonvangrell.)
12-31-2016 06:33 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #7
RE: How to remove item durability?
@Hit and @GetHit are character triggers, not items trigger.

Create two new events and put them in a .scp file
Code:
[EVENTS e_NoDamage_Npc]
ON=@Hit
local.ItemDamageChance = 0
ON=@GetHit
local.ItemDamageChance = 0

[EVENTS e_NoDamage_Player]
ON=@Hit
local.ItemDamageChance = 0
ON=@GetHit
local.ItemDamageChance = 0

Open Sphere.ini and add the name of the event in the following lines

// Events related to all NPCs
EventsPet=e_NoDamage_Npc

// Events related to all players
EventsPlayer=e_NoDamage_Player
(This post was last modified: 12-31-2016 07:39 AM by darksun84.)
12-31-2016 07:38 AM
Find all posts by this user Like Post Quote this message in a reply
amonvangrell
Banned

Posts: 337
Likes Given: 17
Likes Received: 32 in 20 posts
Joined: Aug 2012

britannia shard

Post: #8
RE: How to remove item durability?
Thank you!!!
12-31-2016 08:07 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Soulless
Super Moderator
****

Posts: 335
Likes Given: 29
Likes Received: 49 in 27 posts
Joined: Jun 2012
Reputation: 12

Ye Olde Sphere

Post: #9
RE: How to remove item durability?
It does seem like things get damaged rather quickly, perhaps a bit too quick.
01-26-2017 12:55 PM
Visit this user's website 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)