Hi guys,
i want the special dyetub... +/- same from Chaotic Realm
you buy the dyetub of 1 charge.. you can use it in
Normal Clothes/Jewelry
Skill Clothers/Jewelry
All Armors
Can anyone help me?
im using with base the dyecheck.src
Special DyeTub (CR)
Look in \pol\pkg\skills\tailoring for the file dyeable.src
Look at lines 45-58 for this code:
if you want to allow people to dye anything with a dye tub then change those lines to the following code and compile the script. and restart the server.
keep in mind that now a dye tub will dye anything.
Look at lines 45-58 for this code:
Code: Select all
var element := FindConfigElem(cfg, item.objtype);
var dyeable := GetConfigInt(element, "dyeable");
if(dyeable == 1)
if((item.objtype == 0xfab) and (dyetub.color == 1))
SendSysMessage(who, "You cannot duplicate black dye tubs");
return;
else
item.color := dyetub.color;
PlaySoundEffect(who, 0x23f);
endif
else
SendSysMessage( who, "that item cannot be dyed");
return;
endif
Code: Select all
item.color := dyetub.color;
PlaySoundEffect(who, 0x23f);