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
Dye Tubs
Author Message
dabritmusic
Journeyman
*

Posts: 50
Likes Given: 8
Likes Received: 2 in 1 posts
Joined: Nov 2013
Reputation: 0



Post: #1
Dye Tubs
hen creating dye tubs, how would you make it a random color. ive been tryin everyhting lol and can seem to figure it out.

ON=@CREATE
COLOR={007ba,007bb,007bc,007bd,007be}
02-17-2014 07:21 AM
Find all posts by this user Like Post Quote this message in a reply
mrkarlo
Journeyman
*

Posts: 160
Likes Given: 3
Likes Received: 6 in 5 posts
Joined: Mar 2012
Reputation: 1



Post: #2
RE: Dye Tubs
hey, you can try this:

Code:
[FUNCTION f_colors]
DORAND 03
COLOR=01
COLOR=02
COLOR=03

Code:
[ITEMDEF i_dye_tube]
On=@Create
f_colors
02-17-2014 08:43 AM
Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #3
RE: Dye Tubs
ON=@CREATE
COLOR={007ba 1 007bb 1 007bc 1 007bd 1 007be 1}
02-17-2014 09:04 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes XuN's post
dabritmusic
Journeyman
*

Posts: 50
Likes Given: 8
Likes Received: 2 in 1 posts
Joined: Nov 2013
Reputation: 0



Post: #4
RE: Dye Tubs
(02-17-2014 08:43 AM)mrkarlo Wrote:  hey, you can try this:

Code:
[FUNCTION f_colors]
DORAND 03
COLOR=01
COLOR=02
COLOR=03

Code:
[ITEMDEF i_dye_tube]
On=@Create
f_colors

this makes the client crash when its done this way...

Thanks XUN that what i was looking for. i could remembr it being something like that. its just been so many years...
(This post was last modified: 02-17-2014 09:31 AM by dabritmusic.)
02-17-2014 09:30 AM
Find all posts by this user Like Post Quote this message in a reply
Runcuks
Journeyman
*

Posts: 179
Likes Given: 5
Likes Received: 3 in 3 posts
Joined: Nov 2012
Reputation: 0



Post: #5
RE: Dye Tubs
[FUNCTION AMAZINGCOLOR]
DORAND 19
COLOR=04ad
COLOR=1
COLOR=042b
COLOR=1152
COLOR=09dd
COLOR=0613
COLOR=0898
COLOR=0a28
COLOR=0a27
COLOR=0834
COLOR=04af
COLOR=0449
COLOR=0446
COLOR=0447
COLOR=08ef
COLOR=091d
COLOR=0444
COLOR=0912
COLOR=0487
ENDDO

[ITEMDEF i_amazing_color]
ID=i_dye_tub
NAME=Amazing Color
TYPE=T_NORMAL
WEIGHT=1
VALUE=500


ON=@CREATE
ATTR=04
AMAZINGCOLOR

ON=@DCLICK
target Select cloth to dye
return 1

on=@targON_char
src.sysmessage @50 It is not cloth.
return 1

On=@targon_ground
src.sysmessage @50 It is not cloth.
return 1

on=@targON_item
if (<SRC.TARG.CONT.CONT.UID>!=<SRC.UID>)
src.sysmessage @50 You must select cloth what is in your backpack.
return 1
else
if (<src.targ.amount> > 1)
src.sysmessage @50 Only for 1 <src.targ.name>
return 1
else
if (<src.targ.type>==t_clothing)
src.targ.color=<color>
src.sysmessage @53 You have successfully dyed your cloth.
f_amount
return 1
endif
02-17-2014 04:33 PM
Find all posts by this user Like Post Quote this message in a reply
Alaric
Journeyman
*

Posts: 227
Likes Given: 7
Likes Received: 9 in 4 posts
Joined: Oct 2012
Reputation: 7



Post: #6
RE: Dye Tubs
ON=@CREATE
COLOR=<eval rand(07ba,07be)>

Hope it's correct. I didn't try it.
(This post was last modified: 02-17-2014 05:42 PM by Alaric.)
02-17-2014 05:41 PM
Find all posts by this user Like Post Quote this message in a reply
JohnVeritas
Apprentice
*

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



Post: #7
RE: Dye Tubs
(02-17-2014 09:04 AM)XuN Wrote:  ON=@CREATE
COLOR={007ba 1 007bb 1 007bc 1 007bd 1 007be 1}

This works and way shorter than others.
02-19-2014 09:50 AM
Find all posts by this user Like Post Quote this message in a reply
dabritmusic
Journeyman
*

Posts: 50
Likes Given: 8
Likes Received: 2 in 1 posts
Joined: Nov 2013
Reputation: 0



Post: #8
RE: Dye Tubs
yes thats what XUN replied. works great. thanks alot tho man
02-19-2014 09:56 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)