![]() |
Colored Item Names - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: Colored Item Names (/Thread-Colored-Item-Names) |
Colored Item Names - Osirirs - 03-01-2014 12:57 AM Here just in case someone doesn't know, it kinda took me a while to figure it out but it's pretty simple. I think it's a lot more interesting for a server to have colors to your item names instead of having them all gray. All you have to do, when you get to the NAME= part of the script, just add @(color #) before the item name, like this: Ex: [ITEMDEF i_new_sword] ID=i_sword_long NAME= @08f New Sword TYPE=t_weapon_sword Hope it helps ![]() RE: Colored Item Names - darksun84 - 03-01-2014 02:05 AM I didn't know that , +1 ! RE: Colored Item Names - dabritmusic - 03-01-2014 04:01 AM (03-01-2014 12:57 AM)Osirirs Wrote: Here just in case someone doesn't know, it kinda took me a while to figure it out but it's pretty simple. I think it's a lot more interesting for a server to have colors to your item names instead of having them all gray. All you have to do, when you get to the NAME= part of the script, just add You can also use ON=@CLICK MESSAGE @08F <name> RETURN 1 its easier to copy past that into older scripts if your trying to update them. RE: Colored Item Names - Osirirs - 03-01-2014 09:09 AM Indeed but when I did it this way it'd show me twice the item name when I'd click on it, one with the color and the other still in gray, that's why I figured it'd be better just adding it to the name ![]() RE: Colored Item Names - JohnVeritas - 03-01-2014 08:12 PM Osiris, if you don't put return 1 after click trigger, it happens. But if you do it like dabritmusic's way there is no problem when u click item. You see what you defined under click trigger. @Dabricmusic There's also a better way that copy paste click trigger under every single weapon. If you guys noticed, all thoose weapons got a type, like t_weapon_sword put a script like; [typedef t_weapon_sword] on=@click message @<color> <name> return 1 This script will contain all t_weapon_sword items. RE: Colored Item Names - darksun84 - 03-01-2014 11:25 PM osiris's way is better ! RE: Colored Item Names - Osirirs - 03-02-2014 02:17 AM Wow.. that's smart xD thanks! and I tried with Return 1 I like it too! cause if we add it directly to the name, you'll always get the color number to the name when you create it, like.. add i_new_sword, it will always say: Where would you like to put the @08f New Sword xD looks kinda weird, so cause of that I'd say it's better with On=@click afterall ![]() RE: Colored Item Names - JohnVeritas - 03-02-2014 03:31 AM Well osirirs way is acceptable but anytime you disarm weapons sysmessage will contain letter of colors like; " you put @07a1 katana in your backpack. " Afterall defining def's much easier than change tons of item for some functions like colored names, equip requirements, wear bonuses etc. RE: Colored Item Names - Osirirs - 03-02-2014 03:37 AM Oooooh damn.... right! see I didn't think about that... that's why I love this forum! XD heeey would it be possible to do something like Specific color for specific Item Rank??? cause I Got my little thing (pretty much like world of warcraft xD) Common= Green Rare= Blue Epic= Purple Legendary= Orange Artifact= Red It'd be cool if I could add a script to pre-fix the color for every item rank ![]() RE: Colored Item Names - XuN - 03-02-2014 03:46 AM Define the colors in defnames like these: Code: [defname rarity_colors] Code: ON=@ItemAfterClick |