Dev j Posted November 29, 2023 Posted November 29, 2023 Hello can anyone help me how can i make a Colored Name NPC like Stylist how to make this script New script commands: set_color_nick(color group id); get_color_nick(); Quote
0 Pokye Posted November 29, 2023 Posted November 29, 2023 This name color mod belongs to Functor, he sells it, talk to him. Quote
0 Nyaniverse Posted November 29, 2023 Posted November 29, 2023 8 hours ago, Dev j said: Hello can anyone help me how can i make a Colored Name NPC like Stylist how to make this script New script commands: set_color_nick(color group id); get_color_nick(); I'll throw you treat, it's up to you how to figure out how to get the colors and set the colors. prontera,155,186,5 script Fashionista#name 845,{ .@current = get_color_nick(); setarray .@colors$,"C8B928","177ABD","F35BE6","D7ECB2","AE8B29" ,"FBF79A","73558C","EB57B8","25B7EF","442BFB" ,"D6E2F9","D7FE28","6A98B1","A764E0","14D5D4"; for(.@i = 0; .@i < getarraysize(.@colors$); .@i++) .@menu$ += "^"+.@colors$[.@i]+""+strcharinfo(0)+"^000000:"; .@select = select(.@menu$) - 1; .@color = .@select + 1; if(countitem(58503) < 1){ message strcharinfo(0),"You do not have "+getitemname(58503)+"!"; end; } menu "Buy this ^"+.@colors$[.@select]+"color?",-; if(.@current == .@color){ message strcharinfo(0),"This is your current name color"; end; } delitem 58503,1; set_color_nick(.@color); message strcharinfo(0),"Enjoy your new color!"; end; } 1 Quote
0 Dev j Posted December 2, 2023 Author Posted December 2, 2023 On 11/30/2023 at 4:42 AM, Nyaniverse said: I'll throw you treat, it's up to you how to figure out how to get the colors and set the colors. prontera,155,186,5 script Fashionista#name 845,{ .@current = get_color_nick(); setarray .@colors$,"C8B928","177ABD","F35BE6","D7ECB2","AE8B29" ,"FBF79A","73558C","EB57B8","25B7EF","442BFB" ,"D6E2F9","D7FE28","6A98B1","A764E0","14D5D4"; for(.@i = 0; .@i < getarraysize(.@colors$); .@i++) .@menu$ += "^"+.@colors$[.@i]+""+strcharinfo(0)+"^000000:"; .@select = select(.@menu$) - 1; .@color = .@select + 1; if(countitem(58503) < 1){ message strcharinfo(0),"You do not have "+getitemname(58503)+"!"; end; } menu "Buy this ^"+.@colors$[.@select]+"color?",-; if(.@current == .@color){ message strcharinfo(0),"This is your current name color"; end; } delitem 58503,1; set_color_nick(.@color); message strcharinfo(0),"Enjoy your new color!"; end; } Thanks ill try this ! Quote
0 Sallycantdance Posted December 3, 2023 Posted December 3, 2023 (edited) On 11/30/2023 at 4:42 AM, Nyaniverse said: I'll throw you treat, it's up to you how to figure out how to get the colors and set the colors. prontera,155,186,5 script Fashionista#name 845,{ .@current = get_color_nick(); setarray .@colors$,"C8B928","177ABD","F35BE6","D7ECB2","AE8B29" ,"FBF79A","73558C","EB57B8","25B7EF","442BFB" ,"D6E2F9","D7FE28","6A98B1","A764E0","14D5D4"; for(.@i = 0; .@i < getarraysize(.@colors$); .@i++) .@menu$ += "^"+.@colors$[.@i]+""+strcharinfo(0)+"^000000:"; .@select = select(.@menu$) - 1; .@color = .@select + 1; if(countitem(58503) < 1){ message strcharinfo(0),"You do not have "+getitemname(58503)+"!"; end; } menu "Buy this ^"+.@colors$[.@select]+"color?",-; if(.@current == .@color){ message strcharinfo(0),"This is your current name color"; end; } delitem 58503,1; set_color_nick(.@color); message strcharinfo(0),"Enjoy your new color!"; end; } will try this too ty Edited December 3, 2023 by GM Winter Quote
0 hendra814 Posted January 10, 2024 Posted January 10, 2024 On 11/30/2023 at 3:42 AM, Nyaniverse said: I'll throw you treat, it's up to you how to figure out how to get the colors and set the colors. prontera,155,186,5 script Fashionista#name 845,{ .@current = get_color_nick(); setarray .@colors$,"C8B928","177ABD","F35BE6","D7ECB2","AE8B29" ,"FBF79A","73558C","EB57B8","25B7EF","442BFB" ,"D6E2F9","D7FE28","6A98B1","A764E0","14D5D4"; for(.@i = 0; .@i < getarraysize(.@colors$); .@i++) .@menu$ += "^"+.@colors$[.@i]+""+strcharinfo(0)+"^000000:"; .@select = select(.@menu$) - 1; .@color = .@select + 1; if(countitem(58503) < 1){ message strcharinfo(0),"You do not have "+getitemname(58503)+"!"; end; } menu "Buy this ^"+.@colors$[.@select]+"color?",-; if(.@current == .@color){ message strcharinfo(0),"This is your current name color"; end; } delitem 58503,1; set_color_nick(.@color); message strcharinfo(0),"Enjoy your new color!"; end; } hi, i've got this error. Quote
0 Nyaniverse Posted January 11, 2024 Posted January 11, 2024 20 hours ago, hendra814 said: hi, i've got this error. Won't work if you don't have Gepard, nor it's color nick addon. Quote
0 hendra814 Posted January 11, 2024 Posted January 11, 2024 1 hour ago, Nyaniverse said: Won't work if you don't have Gepard, nor it's color nick addon. Thanks for the confirmation. Quote
Question
Dev j
Hello can anyone help me how can i make a Colored Name NPC like Stylist
how to make this script
New script commands:
set_color_nick(color group id);
get_color_nick();
7 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.