armor doesnt dye

Join Discord

ash816

Dedicated Member
Dedicated Member
Jun 2, 2007
89
0
52
hi i found a armour dye npc script added it but the armour doesnt dye from grey .. just stays grey , its my files or the npc ? if npc can some 1 post another script ? ty
 

ash816

Dedicated Member
Dedicated Member
Jun 2, 2007
89
0
52
[@dye]
#ACT
mov D1 ""
mov D2 ""
mov D3 ""
#if
checklevel 40
#say
___{FCOLOR/10}Hello! Welcome to the cloths dying integral system. At present you have {FCOLOR/10}<$HLPOINT> Integral{FCOLOR/12}\\
{FCOLOR/12}Please do not remove the item of clothing, you wish to dye, from your body or the process will not work. {FCOLOR/12}\\
{FCOLOR/12}<[ Continue the Dying Process ]/@开始使用染色>{FCOLOR/12}\
{FCOLOR/12}<[ Return to main ]/@main>{FCOLOR/12}\ \

#ELSESAY
___{FCOLOR/10}Ah <$USERNAME>. This function requires you have level 40{FCOLOR/10}\\
{FCOLOR/12}If you have not achieved level 40 you cannot proceed any further.{FCOLOR/12}\\
{FCOLOR/12}<[ Return to main ]/@main>{FCOLOR/12}\\
{FCOLOR/12}<[ Exit ]/@exit>{FCOLOR/12}\\
[@开始使用染色]
#IF
#SAY
{FCOLOR/14}RGB{FCOLOR/12} are the three values that will determine the dye colour.\
{FCOLOR/14}Please input a number between 0-255 into the categories below. :{FCOLOR/12}\\
Input R Value {FCOLOR/1}<$OUTPUT(D1)>{FCOLOR/12} <R Value (0-255)/@@R数值>\
Input G value {FCOLOR/10}<$OUTPUT(D2)>{FCOLOR/12} <G Value (0-255)/@@G数值>\
Input B Value {FCOLOR/11}<$OUTPUT(D3)>{FCOLOR/12} <B Value (0-255)/@@B数值>\\
{FCOLOR/14}If all values stay at 0, the colour output will be black.{FCOLOR/12}\
<[ Begin the process ]/@输入搞定>\\
<[ Return/@main ]>\\
[@@R数值]
#ACT
mov D0 %INPUTSTR
#IF
elarge D0 256
#SAY
Please inputs the value between 0-255!
#act
break
#IF
small D0 0
#SAY
Please inputs the value between 0-255!
#act
break
#IF
#act
mov D1 %D0
SysMsg "The R value is <$OUTPUT(D1)>, If Complete, please Dye."
goto @染色
break
[@@G数值]
#ACT
mov D0 %INPUTSTR
#IF
elarge D0 256
#SAY
Please inputs the value between 0-255!
#act
break
#IF
small D0 0
#SAY
Please inputs the value between 0-255!
#act
break
#IF
#act
mov D2 %D0
SysMsg "The G Vlaue is <$OUTPUT(D2)>, If Complete, please Dye."
goto @染色
break
[@@B数值]
#ACT
mov D0 %INPUTSTR
#IF
elarge D0 256
#SAY
Please inputs the value between 0-255!
#act
break
#IF
small D0 0
#SAY
Please inputs the value between 0-255!
#act
break
#IF
#act
mov D3 %D0
SysMsg "The B Value is <$OUTPUT(D3)>, If Complete, please Dye."
goto @染色
break
[@输入搞定]
#act
Delaygoto [local] 5 @进行染染
#say
_{FCOLOR/10}Please Wait - the system is processing the data...{FCOLOR/12}\
[@进行染染]
#IF
#ACT
wearcolor %D3 %D1 %D2
#say
_{FCOLOR/10}Your cloths were dyed successfully!{FCOLOR/12}\\
_Thank you for using my service, and hope to see you in the near future.\
_<Return/@main>
#ELSESAY
gain the sufficient rank of level 40!\
<Exit/@exit>
 
Upvote 0

Coly

LOMCN Developer
Developer
Mar 31, 2005
1,399
33
195
Germany
At first change Chinese Names to English names. at last, very bad script o.O...

- Get your all 3 Input Boxes ?
- How you stuck atm ?
- Post Scripts in Code Sections, so we can better read it, I made it now for you...

Code:
[@dye]
#ACT
  mov D1 "" 
  mov D2 ""
  mov D3 ""
#IF
  Checklevel 40
#SAY
  ___{FCOLOR/10}Hello! Welcome to the cloths dying integral system. At present you have {FCOLOR/10}<$HLPOINT> Integral{FCOLOR/12}\\
{FCOLOR/12}Please do not remove the item of clothing, you wish to dye, from your body or the process will not work. {FCOLOR/12}\\
{FCOLOR/12}<[ Continue the Dying Process ]/@Dyeing>{FCOLOR/12}\
{FCOLOR/12}<[ Return to main ]/@main>{FCOLOR/12}\ \

#ELSESAY
___{FCOLOR/10}Ah <$USERNAME>. This function requires you have level 40{FCOLOR/10}\\
{FCOLOR/12}If you have not achieved level 40 you cannot proceed any further.{FCOLOR/12}\\
{FCOLOR/12}<[ Return to main ]/@main>{FCOLOR/12}\\
{FCOLOR/12}<[ Exit ]/@exit>{FCOLOR/12}\\

[@Dyeing]
#IF
#SAY
{FCOLOR/14}RGB{FCOLOR/12} are the three values that will determine the dye colour.\
{FCOLOR/14}Please input a number between 0-255 into the categories below. :{FCOLOR/12}\\
Input R Value {FCOLOR/1}<$OUTPUT(D1)>{FCOLOR/12} <R Value (0-255)/@@RValue>\
Input G value {FCOLOR/10}<$OUTPUT(D2)>{FCOLOR/12} <G Value (0-255)/@@GValue>\
Input B Value {FCOLOR/11}<$OUTPUT(D3)>{FCOLOR/12} <B Value (0-255)/@@BValue>\\
{FCOLOR/14}If all values stay at 0, the colour output will be black.{FCOLOR/12}\
<[ Begin the process ]/@The_Input_Does_Decides>\\
<[ Return/@main ]>\\

[@@RValue]
#ACT
  mov D0 %INPUTSTR
#IF
  ELarge D0 256
#SAY
  Please inputs the value between 0-255!
#ACT
  Break
#IF
  Small D0 0
#SAY
  Please inputs the value between 0-255!
#ACT
  Break
#IF
#ACT
  mov D1 %D0
  SysMsg "The R value is <$OUTPUT(D1)>, If Complete, please Dye."
  goto @Dyeing
  break

[@@GValue]
#ACT
  mov D0 %INPUTSTR
#IF
  ELarge D0 256
#SAY
  Please inputs the value between 0-255!
#ACT
  Break
#IF
  Small D0 0
#SAY
  Please inputs the value between 0-255!
#ACT
  Break
#IF
#ACT
  mov D2 %D0
  SysMsg "The G Vlaue is <$OUTPUT(D2)>, If Complete, please Dye." 
  goto @Dyeing
  break

[@@BValue]
#ACT
  mov D0 %INPUTSTR
#IF
  ELarge D0 256
#SAY
  Please inputs the value between 0-255!
#ACT
  Break
#IF
  Small D0 0
#SAY
  Please inputs the value between 0-255!
#ACT
  Break
#IF
#ACT 
  mov D3 %D0
  SysMsg "The B Value is <$OUTPUT(D3)>, If Complete, please Dye."
  Goto @Dyeing
  Break

[@The_Input_Does_Decides]
#ACT
  Delaygoto [local] 5 @Carries_On_dyes
#SAY
  _{FCOLOR/10}Please Wait - the system is processing the data...{FCOLOR/12}\

[@Carries_On_dyes]
#IF
#ACT
  wearcolor %D3 %D1 %D2
#SAY
  _{FCOLOR/10}Your cloths were dyed successfully!{FCOLOR/12}\\
  _Thank you for using my service, and hope to see you in the near future.\
  _<Return/@main>
#ELSESAY
  gain the sufficient rank of level 40!\
  <Exit/@exit>


So now we can look how your problem is ^^...

EDIT : I have modifie it a bit, test it and say if it running or not
 
Last edited:
Upvote 0

ash816

Dedicated Member
Dedicated Member
Jun 2, 2007
89
0
52
your script not working , could it be my files? i @make the armour over and over .. always same colour ?
 
Upvote 0

ash816

Dedicated Member
Dedicated Member
Jun 2, 2007
89
0
52
atm it works find i get upto dyeign and the armour just doesnt chnage colour lol
 
Upvote 0

greatbat

Dedicated Member
Dedicated Member
Sep 8, 2007
13
0
47
I have the same problem. I added some new armors to files but after rebuilding they become gray in the inventory, equip and in game. Don't know how to fix it yet but I’m working on it. So it's not the script to take care of but the files.

BTW. First post :)
 
Last edited:
Upvote 0

greatbat

Dedicated Member
Dedicated Member
Sep 8, 2007
13
0
47
I have found the reason why it is how it is. When I export image whit kaoriMIM the places where armor should have a color are transparent but when I add the image again it become solid. I could be doing something wrong but, still working how to solve this, maybe other wil/wix editors will do.


In kaoriMIM it looks like this.
orginal - after import
armorskm9.jpg
 
Last edited:
Upvote 0

Kaori

LOMCN MiR3 Queen!
VIP
Jun 3, 2004
3,584
38
285
Canada
The problem is probably on KaoriMIM.

It doesn't totally support alpha exporting yet.

Edit: I'll take a look at the source code and see if I can fix this quickly.
 
Last edited:
Upvote 0