PenUltima Online Forum Index Official Core: 096.7
Official Core: 097 2008-02-26
Donate towards the POL web hosting bill!
 POL Home   FAQ   Search    Memberlist   Usergroups    Register    Profile   Log in to check your private messages   Log in
Special DyeTub (CR)

 
Post new topic   Reply to topic    PenUltima Online Forum Index -> General Help (095)
Display posts from previous:   

Author Message
lokaum



Joined: 25 Dec 2006
Posts: 29

PostPosted: Fri Jan 12, 2007 9:37 pm    Post subject: Special DyeTub (CR) Reply with quote

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

Author Message
MontuZ
Distro Developer


Joined: 10 Feb 2006
Posts: 293
Location: Myrtle Beach, South Carolina

PostPosted: Sat Jan 13, 2007 5:53 pm    Post subject: Reply with quote

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

Author Message
Yukiko



Joined: 02 Feb 2006
Posts: 1094
Location: Southern Central USA

PostPosted: Tue Jan 16, 2007 5:28 am    Post subject: Reply with quote

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.

Author Message
lokaum



Joined: 25 Dec 2006
Posts: 29

PostPosted: Tue Jan 16, 2007 6:14 pm    Post subject: Reply with quote

im trying to make! thanks

Author Message
Yukiko



Joined: 02 Feb 2006
Posts: 1094
Location: Southern Central USA

PostPosted: Wed Jan 17, 2007 1:57 am    Post subject: Reply with quote

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

Look at lines 45-58 for this code:
Code:

  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:

      item.color := dyetub.color;
      PlaySoundEffect(who, 0x23f);


keep in mind that now a dye tub will dye anything.

Post new topic   Reply to topic    PenUltima Online Forum Index -> General Help (095) All times are GMT - 4 Hours
Page 1 of 1

 




Powered by phpBB © 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty