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-nmm6 (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-nmm6 (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-nmm6 (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
DYE=1 is handed down to other items.
Author Message
Walrim
Apprentice
*

Posts: 5
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Feb 2014
Reputation: 0



Post: #1
DYE=1 is handed down to other items.
At first, sorry for my English. I'm new in this Forum and nearly new in sphere-scripting.

Now my question:

I've got two Items and the first one is handing down to the second.

Code:
[ITEMDEF 01515]
DEFNAME=i_cape
SKILLMAKE=TAILORING 5.0
RESOURCES=14 i_cloth
WEIGHT=5
TYPE=T_CLOTHING
DYE=1
ARMOR=5
CATEGORY=Prov - Kleidung
SUBSECTION=Roben & Umhaenge
DESCRIPTION=Umhang
DUPELIST=01530


ON=@Create
HITPOINTS={11 40 }


[ITEMDEF i_ranger_cloak]
NAME=Tarnumhang der Waldlaeufer
TYPE=31
id=01515
DYE=0
ARMOR=5
REQSTR=15
VALUE={600 700},{6 70}
skillmake=Tailoring 35.0
resources=14 i_cloth
WEIGHT=5

on=@create
COLOR=0592
HITPOINTS={11 40}

When the first one is DYE=0 and the second DYE=1, it's just working fine.
But I want the first one be dyeable and the second not dyeable.
That's not working. It seams, that DYE=1 will be handed down.
When the first item is set to DYE=1 Sphere seems to ignore a DYE=0 for the second item. It is staying DYE=1.

Is this a known problem and is a solution existing?
Or is it only possible to fix it in the dye_tub script.

It isn't a new Server and this is not the only item with this problem, so I can't just swap the items without exchanging them ingame or being killed by the Players.
02-12-2014 10:47 AM
Find all posts by this user Like Post Quote this message in a reply
RanXerox
Master
**

Posts: 550
Likes Given: 1
Likes Received: 12 in 9 posts
Joined: Dec 2010
Reputation: 19



Post: #2
RE: DYE=1 is handed down to other items.
Try setting DYE=0 in @Create
02-13-2014 07:34 AM
Find all posts by this user Like Post Quote this message in a reply
Walrim
Apprentice
*

Posts: 5
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Feb 2014
Reputation: 0



Post: #3
RE: DYE=1 is handed down to other items.
Sadly that doesn't work.

Code:
on=@create
DYE=0
COLOR=0592
HITPOINTS={11 40}

ERROR:(items_klassen.scp,443)Undefined keyword 'DYE'

it seams Sphere doesn't like it.
02-13-2014 08:12 AM
Find all posts by this user Like Post Quote this message in a reply
Pyromapes2k
Apprentice
*

Posts: 2
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Feb 2014
Reputation: 0



Post: #4
RE: DYE=1 is handed down to other items.
A few suggestions:

You can check the can_i flags in spheredefs. I think there's one for dye.

Otherwise you can add this somewhere:

[typedef t_dye_vat]

On=@targon_item
If <ARGO.tag0.nodye>==1
Src.sysmessage cannot dye that.
Return 1
Endif


Then set tag.nodye on anything you don't want dyed. Unless DYE is being set right but not working. Then replace the tag in the if statement with DYE itself.
(This post was last modified: 02-13-2014 07:56 PM by Pyromapes2k.)
02-13-2014 07:53 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: #5
RE: DYE=1 is handed down to other items.
Look like it's a bug, we were discussing the problem in the chat, also theTWOHANDS property suffers the same problem.
02-13-2014 08:18 PM
Find all posts by this user Like Post Quote this message in a reply
Walrim
Apprentice
*

Posts: 5
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Feb 2014
Reputation: 0



Post: #6
RE: DYE=1 is handed down to other items.
I hoped it was my fault and not a bug.
Thanks for helping, so I'll fix it with a tag or something like that.
02-14-2014 01:39 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)