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
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
Post Reply 


Messages In This Thread
DYE=1 is handed down to other items. - Walrim - 02-12-2014 10:47 AM

Forum Jump:


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