Go Back   RunUO - Ultima Online Emulation > RunUO > Custom Script Releases

Custom Script Releases This forum is where you can release your custom scripts for other users to use.

Please note: By releasing your scripts here you are submitting them to the public and as such agree to make them public domain. The RunUO Team has made its software GPL for you to use and enjoy you should do the same for anything based off of RunUO.

Reply
 
Thread Tools Display Modes
Old 09-08-2006, 08:27 AM   #1 (permalink)
Xanthos
Guest
 
Posts: n/a
Default Xanthos Shrink System

Shrink System version 2.1, by Xanthos


Introduction

The Shrink System allows pets to be shrunken to small statuettes that can be carried in a player's backpack. Many options are provided to control the system and the properties of the shrunken pets. Two items are provided to allow players to access the shrink function as well as a staff command. Staff may shrink wild animals and other people's pets for safe keeping. The shrink algorithm is fast and simple and works with any pet or pet system.

Commands:
  • [Shrink
  • [ShrinkLockDown
  • [ShrinkRelease
Installation

Unzip the Xanthos folder into your customs folder. Copy ShrinkConfig.xml to your RunUO\Data folder if you wish to modify configuration parameters.

Requirements

Requires the Xanthos Utilities package.

Caveats

You may use or modify this system in any way you desire, however I ask that you leave the original headers in the source files if you re-write or redistribute the sources in any way.
- Xanthos
Attached Files
File Type: zip Shrink System 2.1.zip (28.0 KB, 1265 views)

Last edited by Xanthos; 11-11-2006 at 09:23 PM.
  Reply With Quote
Old 09-08-2006, 08:28 AM   #2 (permalink)
Xanthos
Guest
 
Posts: n/a
Default

Intentionally left blank.
  Reply With Quote
Old 09-30-2006, 01:52 AM   #3 (permalink)
Newbie
 
Join Date: Jun 2004
Age: 23
Posts: 63
Default

Nevermind found it

Last edited by crameep; 09-30-2006 at 11:19 AM.
crameep is offline   Reply With Quote
Old 09-30-2006, 01:35 PM   #4 (permalink)
Forum Novice
 
Join Date: Mar 2005
Age: 29
Posts: 127
Send a message via ICQ to smokified Send a message via MSN to smokified Send a message via Yahoo to smokified
Default

what file would one edit to change the access level of the shrink commands
smokified is offline   Reply With Quote
Old 09-30-2006, 08:29 PM   #5 (permalink)
Forum Expert
 
Thistle's Avatar
 
Join Date: Mar 2005
Posts: 1,155
Default

The shrink command is set for gamemaster access and up. Since it doesn't do a check on "ownership" you probably don't want players having access to that command. They'd be able to shrink anything and that includes non-tamables too!

If you want your players to be able to shrink their own pets then you can always hunt for the shrink potion script and make it player craftable.
__________________
Thistle is offline   Reply With Quote
Old 09-30-2006, 09:38 PM   #6 (permalink)
Forum Novice
 
ABTOP's Avatar
 
Join Date: Sep 2006
Location: Ukraine
Posts: 930
Default

I dont know what it mean but i think what it little problem

Code:
RunUO - [www.runuo.com] Version 2.0, Build 2357.32527
Core: Running on .NET Framework Version 2.0.50727
Scripts: Compiling C# scripts...done (cached)
Scripts: Compiling VB.NET scripts...no files found.
Scripts: Verifying...done (2757 items, 625 mobiles)
Regions: Loading...done
World: Loading...Loading Jailings
0 Jailings Loaded:0
done (59182 items, 1311 mobiles) (4,41 seconds)
Reports: Stats: Loading...done
Reports: Staff: Loading...done

Sorious' Ingame Forums
---------
Loading...done
---------
Xanthos.Utilities.ConfigParser attempting to load Data/ShrinkConfig.xml...
Xanthos.Utilities.ConfigParser success!

Xanthos.Utilities.ConfigParser error:
Input string was not in a correct format.
Element: <ShrunkenWeight>25.0</ShrunkenWeight>

Address: 127.0.0.1:2593
ABTOP is offline   Reply With Quote
Old 10-01-2006, 12:22 AM   #7 (permalink)
Forum Expert
 
Thistle's Avatar
 
Join Date: Mar 2005
Posts: 1,155
Default

I don't think shrunk critters weight gets a decimal place so try making it just "25" instead of "25.0".
__________________
Thistle is offline   Reply With Quote
Old 10-01-2006, 12:37 AM   #8 (permalink)
Forum Novice
 
ABTOP's Avatar
 
Join Date: Sep 2006
Location: Ukraine
Posts: 930
Default

Ok i shall try!
ABTOP is offline   Reply With Quote
Old 10-01-2006, 04:06 AM   #9 (permalink)
Forum Expert
 
DraconisDesBois's Avatar
 
Join Date: Oct 2003
Location: California
Age: 27
Posts: 284
Send a message via ICQ to DraconisDesBois Send a message via AIM to DraconisDesBois Send a message via Yahoo to DraconisDesBois
Default

fcking awesome.
__________________
Sonoma Veteran zDARIALz
1998 - 2006

DraconisDesBois is offline   Reply With Quote
Old 10-01-2006, 09:05 AM   #10 (permalink)
Xanthos
Guest
 
Posts: n/a
Default

ShrinkWeight is definately a double and not an int so the decimal is valid. This is a strange problem you are seeing and unfotunately I have no idea what causes it but I am guessing it is not due to my code. Try with a brand new installation of RunUO 2.0 and only my package and I bet you no longer see it.
  Reply With Quote
Old 10-01-2006, 11:46 PM   #11 (permalink)
Forum Novice
 
ABTOP's Avatar
 
Join Date: Sep 2006
Location: Ukraine
Posts: 930
Default

No, system work perfectly! and this line nothing make! and I nothing strange has not noticed.
ABTOP is offline   Reply With Quote
Old 10-16-2006, 09:50 AM   #12 (permalink)
Forum Newbie
 
Join Date: Nov 2004
Posts: 40
Default

I can't add the PetLeash to a vendor
Has anyone managed?
Sentix is offline   Reply With Quote
Old 10-18-2006, 09:31 PM   #13 (permalink)
Forum Expert
 
Johabius's Avatar
 
Join Date: Dec 2004
Location: Kansas, USA
Age: 38
Posts: 4,964
Send a message via ICQ to Johabius Send a message via Yahoo to Johabius
Default

I've run into a small slightly irritating issue. When players shrink certain pets, they turn into a little ball colored the hue of the pet. When the pets are in this ball form, they also are counting towards the follower count, and they don't show the details of the pet (such as pet name, gender, etc.)
Not sure if it's this system that is causing this, or the FSAnimal Taming system. Could you please advise Xanthos?
__________________
In some cases stupid makes you win-Radwen
Johabius is offline   Reply With Quote
Old 10-18-2006, 10:11 PM   #14 (permalink)
Forum Expert
 
Thistle's Avatar
 
Join Date: Mar 2005
Posts: 1,155
Default

For the critters that display the graphic 6256 (0x1870) are they listed in shrink.cfg?
__________________
Thistle is offline   Reply With Quote
Old 10-18-2006, 10:40 PM   #15 (permalink)
Xanthos
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by Johabius
I've run into a small slightly irritating issue. When players shrink certain pets, they turn into a little ball colored the hue of the pet. When the pets are in this ball form, they also are counting towards the follower count, and they don't show the details of the pet (such as pet name, gender, etc.)
Not sure if it's this system that is causing this, or the FSAnimal Taming system. Could you please advise Xanthos?
Shrink.cfg contains the entries that map each mob to a body id. You are most likely missing some entries there and hence the graphic you see when pets are shrunken.

The fact that pets are still showing as taking up follower slots even when shrunken is probably the FS Taming system misbehaving. I advise that you remove that system from your hard disk - sorry to say this but I really find that code to be problematic.

Last edited by Xanthos; 10-18-2006 at 10:42 PM.
  Reply With Quote
Old 10-19-2006, 09:52 AM   #16 (permalink)
DragonDan
Guest
 
Posts: n/a
Cool Is it possible?

When we shrink a pet the statuette only says a shrunken pet is there anyway that It can be made so it uses the pets name and not the generic "a shrunken pet" title? I also can't add the pet leash to a vendor I am watching to see if anyone has any luck. I ended up making a spawner at the stables to spawn one like a rare item The system will let you "[add spawner petleash" and thus it is available to the players. This gives them away and often you get paged that someone needs one and it has not spawned fast enough. Also is there a way to use something like in the ant system to charge the pet leash like we charge the bags of sending and pet balls? Hope you all can help figure these little issues out so this system will be flawless and lots of fun!
  Reply With Quote
Old 10-19-2006, 12:19 PM   #17 (permalink)
Xanthos
Guest
 
Posts: n/a
Default

There is a configuration file that, once placed in the Data directory, will provide a means for you to configure the system - its documented in the readme file. You can configure things like charges, skill required, bless status, etc.

What happens when you try to add one to a vendor and how are you trying to add one?

I will fix the issue with the name in the next release.
  Reply With Quote
Old 10-20-2006, 04:49 AM   #18 (permalink)
DragonDan
Guest
 
Posts: n/a
Cool configuring shrink system

Yes I put that into the data directory I will check it out I didn't look at it just copied it there as is.

This is a few of the lines from the vendor I created to sell things that were not normal stuff I made her a gypsy maiden ( with animal trainer products and fruits and vegies )

Code:
                                //Add( new GenericBuyInfo( typeof( PetLeash ), 5000, 20, 0x1374, 0 ) );
				Add( new AnimalBuyInfo(1, typeof( ColoredBeetle ), 3000, 20, 0x317,0 ) );
				Add( new AnimalBuyInfo(1, typeof( ColoredHorsie ), 1000, 20, 0xE2, 0 ) );
				Add( new AnimalBuyInfo(1, typeof( Beetle ), 2000, 20, 0x317, 0 ) );
I can post the whole vendor if its needed but I think this should help enough to answer your question
  Reply With Quote
Old 10-21-2006, 08:50 AM   #19 (permalink)
Forum Newbie
 
Join Date: Nov 2004
Posts: 40
Default

also the pets are not showing any properties when they are shrinked even though its enabled
Sentix is offline   Reply With Quote
Old 10-21-2006, 11:40 AM   #20 (permalink)
Xanthos
Guest
 
Posts: n/a
Default

Make sure you are making changes to the config file in the Data directory and not in the shrink directory.
  Reply With Quote
Old 10-21-2006, 12:43 PM   #21 (permalink)
Forum Newbie
 
Join Date: Nov 2004
Posts: 40
Default

its not working even with a clean install of the script on a clean installed runuo2.0
Sentix is offline   Reply With Quote
Old 10-21-2006, 02:23 PM   #22 (permalink)
Xanthos
Guest
 
Posts: n/a
Default

Please read the readme carefully - it is well tested and working. If you still have problems - be explicit on what you did and the results you get - you don't give me much to go on.
  Reply With Quote
Old 10-22-2006, 05:08 AM   #23 (permalink)
Forum Newbie
 
Join Date: Nov 2004
Posts: 40
Default

Well I just extracted everything as in the readme, on a clean install of runuo and all works fine, in shrinkconfig.xml petdetails is set to true, but all I see when I shrink a pet is: A shrunken pet, and if its bonded, I see a (bonded) under it
Sentix is offline   Reply With Quote
Old 10-22-2006, 12:31 PM   #24 (permalink)
Xanthos
Guest
 
Posts: n/a
Default

Have you moved the changed config file to the Data directory?
  Reply With Quote
Old 10-22-2006, 12:43 PM   #25 (permalink)
Forum Newbie
 
Join Date: Nov 2004
Posts: 40
Default

yes, i did also by default it is set to true
Sentix is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5