PenUltima Online

It is currently Sun Oct 12, 2008 3:38 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Special DyeTub (CR)
PostPosted: Fri Jan 12, 2007 5:37 pm 
Offline

Joined: Mon Dec 25, 2006 6:33 am
Posts: 44
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


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 13, 2007 1:53 pm 
Offline
User avatar

Joined: Fri Feb 10, 2006 8:08 am
Posts: 327
Location: Myrtle Beach, South Carolina
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


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 16, 2007 1:28 am 
Offline

Joined: Thu Feb 02, 2006 1:41 pm
Posts: 1154
Location: Southern Central USA
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.

_________________
Sincerely,
Yukiko

I know you think you understand what you thought I said but what you heard is not exactly what I meant.

Titus 2:13


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 16, 2007 2:14 pm 
Offline

Joined: Mon Dec 25, 2006 6:33 am
Posts: 44
im trying to make! thanks


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 16, 2007 9:57 pm 
Offline

Joined: Thu Feb 02, 2006 1:41 pm
Posts: 1154
Location: Southern Central USA
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.

_________________
Sincerely,
Yukiko

I know you think you understand what you thought I said but what you heard is not exactly what I meant.

Titus 2:13


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: MSNbot Media and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl