SphereCommunity
Color - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Color (/Thread-Color)



Color - Staff_Stanic - 02-13-2014 09:27 AM

Guys, do you know some method (or have some idea) to do the same item to have 2 different colors for 2 different players?

Example:
A Kryss Vanq
Pk see the item with color 021
Apk see the item with color 064

I know that this is very crazy, but will help me a lot!!


Re: RE: Color - Extreme - 02-14-2014 09:50 PM

(02-13-2014 09:27 AM)Staff_Stanic Wrote:  Guys, do you know some method (or have some idea) to do the same item to have 2 different colors for 2 different players?

Example:
A Kryss Vanq
Pk see the item with color 021
Apk see the item with color 064

I know that this is very crazy, but will help me a lot!!

It's impossible. :/

Sent from my GT-I9505 using Tapatalk


RE: Color - Abuelox - 02-14-2014 09:56 PM

The only thing I can think to do is press a trigger when the object (on = @ click), change the color depending on their deaths.


RE: Color - XuN - 02-14-2014 11:50 PM

That would require to modify the packet sent from items and make a heavy heavy heavy load, it can be done but at a very high cost. Lets wait what has Ben to say.


RE: Color - darksun84 - 02-15-2014 03:40 AM

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


RE: Color - XuN - 02-15-2014 05:10 AM

I love that high end windows 0.03 graphics!!!


RE: Color - Mordaunt - 02-15-2014 05:14 AM

windows 95 ftw!


RE: Color - Staff_Stanic - 02-15-2014 06:12 AM

Thank you a lot guys!
I'll do some tests with the RESDISP!


RE: Color - Alaric - 02-15-2014 06:14 AM

Poor dark Big Grin


RE: Color - Staff_Stanic - 02-15-2014 11:50 PM

(02-14-2014 11:50 PM)XuN Wrote:  That would require to modify the packet sent from items and make a heavy heavy heavy load, it can be done but at a very high cost.

Tell me more... Lol