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
Color
Author Message
darksun84
Sir Spamalot
****

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



Post: #5
RE: Color
There is a LAME and BAD way to do that and it involves the use of ResLevel/ResDisp properties.

Now, i don't know how do you handle the Pk/Apk, but the concept is this :
PHP Code:
ITEMDEF i_test_sword]
Name Double Colored Sword
Id 
i_sword_long
RESLEVEL 
// Player with RESDISP 7 Will see the Color set in @Create
RESDISPDNID i_sword_long
RESDISPDNHUE 
042 // Player with RESDISP 6 will see the Color set here


ON=@Create
    COLOR 
0480
    HITPOINTS 
100 

RESDISP is an account attribute, so every time a player log in you have to check/set the correct ResDISP depending on the "faction" he belongs.

The result is this :

[Image: Fh2tCiR.jpg]

Anyway i don't suggest to use it, it's just an idea Tongue
(This post was last modified: 02-15-2014 03:41 AM by darksun84.)
02-15-2014 03:40 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Color - Staff_Stanic - 02-13-2014, 09:27 AM
Re: RE: Color - Extreme - 02-14-2014, 09:50 PM
RE: Color - Abuelox - 02-14-2014, 09:56 PM
RE: Color - XuN - 02-14-2014, 11:50 PM
RE: Color - Staff_Stanic - 02-15-2014, 11:50 PM
RE: Color - darksun84 - 02-15-2014 03:40 AM
RE: Color - XuN - 02-15-2014, 05:10 AM
RE: Color - Mordaunt - 02-15-2014, 05:14 AM
RE: Color - Staff_Stanic - 02-15-2014, 06:12 AM
RE: Color - Alaric - 02-15-2014, 06:14 AM

Forum Jump:


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