Special DyeTub (CR)

Here you can post threads requesting help on the official POL Ultima Online Emulator Core 095. Note: Core 095 is no longer officially supported.
Post Reply
lokaum
Novice Poster
Posts: 45
Joined: Mon Dec 25, 2006 6:33 am

Special DyeTub (CR)

Post by lokaum »

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
User avatar
MontuZ
Forum Regular
Posts: 338
Joined: Fri Feb 10, 2006 8:08 am

Post by MontuZ »

This is one of those things you're going to have to do yourself. Or at least ask for some help on how to do such a thing.

Most of the people on this forum have no idea what Chaotic Realm was... excluding me. So don't be surprised if we look at you weird. :D
Yukiko
Distro Developer
Posts: 2826
Joined: Thu Feb 02, 2006 1:41 pm

Post by Yukiko »

You want to be able to use the dye tub to dye other items besides clothes?

If so you'd need to decide whether it can be used on anything or if you want to limit what it can dye. If using it on anything is allowed then that isn't too hard to do.
lokaum
Novice Poster
Posts: 45
Joined: Mon Dec 25, 2006 6:33 am

Post by lokaum »

im trying to make! thanks
Yukiko
Distro Developer
Posts: 2826
Joined: Thu Feb 02, 2006 1:41 pm

Post by Yukiko »

Look in \pol\pkg\skills\tailoring for the file dyeable.src

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
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.

Code: Select all

      item.color := dyetub.color;
      PlaySoundEffect(who, 0x23f);
keep in mind that now a dye tub will dye anything.
Post Reply