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 Do I Make a Automatic Color Changing Item???
Author Message
Admin Drew
Apprentice
*

Posts: 48
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jun 2013
Reputation: 0



Post: #1
How Do I Make a Automatic Color Changing Item???
Hi.. I'm wanting to make an item that will cycle through different colors every couple seconds. I have seen it on lots of shards all the way back to TUS so it must be fairly easy to do. Anyone know what the code is to make it cycle through colors?

I know to put COLOR={XXXX 1 XXXX 1 XXXX 1 0 0 1}
X for the color numbers but how do I get it to automatically change/cycle through the different colors. Is it a timer ?? Would really appreciate some help with the code if you know what to do.
Thanks!
04-29-2015 01:55 AM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #2
RE: How Do I Make a Automatic Color Changing Item???
ON=@EQUIP
TIMERF 1,F_COLOR

[FUNCTION F_COLOR]
IF (<CONT.ISPLAYER>)
COLOR { BLA BLA }
TIMERF 1, F_COLOR
ENDIF

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
04-29-2015 02:01 AM
Find all posts by this user Like Post Quote this message in a reply
Admin Drew
Apprentice
*

Posts: 48
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jun 2013
Reputation: 0



Post: #3
RE: How Do I Make a Automatic Color Changing Item???
I need the code for 51a and that's not 51a coding..
How would you do this in 51a??
04-29-2015 11:53 AM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #4
RE: How Do I Make a Automatic Color Changing Item???
Sorry, I didn't notice.
I don't have idea on how to do it on sphere 51a.
Why are you using 51a? It's too old..

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
04-29-2015 01:17 PM
Find all posts by this user Like Post Quote this message in a reply
Admin Drew
Apprentice
*

Posts: 48
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jun 2013
Reputation: 0



Post: #5
RE: How Do I Make a Automatic Color Changing Item???
If you don't know how in 51a I understand thanks, but it is possible to do. I have been on shards all the way back to TUS48e and we had color changing items on the shards. It's not impossible just because 51a is older it's just a little bit different scripting. Any idea how to change it to 51a coding? Anyone else already have the code for this?? All I want is the code to make an item cycle through a set of colors when you wear it.
I really appreciate it!
Thanks
04-30-2015 08:19 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: #6
RE: How Do I Make a Automatic Color Changing Item???
I'm not sure in 51a but in 55i names could be coloured by using name=@color <name>, so storing the real name and changing the first color value with a timer would do the trick.
05-02-2015 06:41 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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