Go Back   RunUO - Ultima Online Emulation > RunUO > Custom Script Release Archive

Custom Script Release Archive This is a pre-script database archive of what our users had released.

 
 
Thread Tools Display Modes
Old 05-05-2006, 04:03 PM   #1 (permalink)
Forum Expert
 
Join Date: Nov 2004
Location: Southeast Missouri USA
Age: 35
Posts: 283
Default Pelop's Resurrection - Pandora's Box for players

Pelop' s Resurrection:
Edit: This version does not work properly with RunUO 2.0. See my Sig for a link to the new version threads of my scripts.
-----------------------------------------------------------------------------------
What this is:
Pelop's Resurrection allows players to SAFELY decorate their homes as if they could use Pandora's Box.

Among other things, this will eliminate the need for staff to decorate players houses.
-----------------------------------------------------------------------------------

In the greek story of Pelops, Pelops was cut into pieces as a offering to the Gods.
The gods put Pelops back together and resurrected him, better than before.

This tool allows players to add to their collection any picture you see in InsideUO's Artwork-Static Tiles panel.
Yes, all approximately 15000 of them. Let your players express themselves in deco as never before.

Built in Help gump will help players to understand use Pelop's Resurrection.

Once the player has pictures (ItemID) in their collection they can add PelopsItems with these pictures as their ItemID to their houses as deco.
Once added they can move them north, south, east, west, up or down, change the hue, the name or the ItemID.

Check are done for if the location would put the item outside their house.
Players cannot move things up more than 20 from GetSurface.
Players cannot move things down through the floor.

A new Pelops item placed by a player gets locked down by default.
New creations stack atop other items to a max z of 100 or 19 above from.Z.
Staff adding PelopsItems have movable = false by default.

Settings in the gump are stored automaticly between gumps.

Back and Next buttons as well as Goto # text entry allow the player to view their collection with relitive ease. (but when you get into the thousands of pics...whew!)

Players can view their collection anytime, but can only add new PelopsItems or interact with them in a house they are co-owner of.

Targeted functions have a range of 4 so players cannot interfere with their neighbors deco.

The items take a lockdown to provide a maximum number per house.

Optional (false by default) HasCost bool allows you to use this as a currency sink if desired.
HasCost = true in the constructable item opens a cost gump when Help button is pressed in addition to the regular Help gump.
HasCost can accept any one type of currency from gold to tokens to boards or whatever you want. (Gold by default)
All HasCost settings except for the bool are in the CostFunctions region on the item for easy editing. The rest of the system ( including text )automaticly uses the settings you set there.

Optional rare's list (empty by default) allows shard admins to list ItemId's that they do not want players to be able to collect. (I don't play UO, could someone help me come up with a list of the usual rare art pics??)

All items created by Pelop's Resurrection are deco only and have no functionality.

Almost every line of code is commented in the main item and main gump. This is my documentation.

This is the most complex script i have ever done, so feedback is most welcome.
I have tested every code path in this system, however, this is complex, so be on the lookout for the wierd effect factor.
If there are any bugs or exploits please let me know so i can fix them.
If you see any improvements that can be made,
Please, Please share them either in concept or in code!

Fixed a crash in PelopsRessurectionGump.cs
Please download updated script or follow the directions in #14 post below.

Added a zipped version as per Jokeu's suggestion.
The files are the same in the zip and the rar.

Installation:
Add to your custom folder - no mods required
[add PelopsResurrection
Attached Files
File Type: rar Pelops.rar (9.8 KB, 58 views)
File Type: zip Pelops.zip (12.2 KB, 58 views)

Last edited by Ashlar; 06-22-2006 at 11:51 PM.
Ashlar is offline  
Old 05-05-2006, 04:17 PM   #2 (permalink)
Tru
Forum Expert
 
Tru's Avatar
 
Join Date: Jan 2003
Location: California
Age: 39
Posts: 3,260
Default

Very Interesting...I'll have my deco fiends have a go at it.
Thanks
Tru is offline  
Old 05-05-2006, 05:14 PM   #3 (permalink)
Forum Newbie
 
Join Date: Dec 2005
Posts: 19
Default

i'll try your system
kaiovas is offline  
Old 05-05-2006, 07:03 PM   #4 (permalink)
Forum Expert
 
Sunshine's Avatar
 
Join Date: Mar 2005
Location: Hopefully not near you
Posts: 2,233
Default

Ya know you should really start compiling a page with all your great scripts..would make it much easier to get ahold of them all..

Love how you think beyond the simple and over done..you take it one step further and dance on the edge of what if....THANKS
__________________
All people have the right to be stupid but some abuse the privilege.
Sunshine is offline  
Old 05-05-2006, 07:10 PM   #5 (permalink)
Forum Expert
 
Iomega0318's Avatar
 
Join Date: Feb 2005
Location: Dirt City,TX
Age: 21
Posts: 608
Send a message via ICQ to Iomega0318 Send a message via AIM to Iomega0318 Send a message via MSN to Iomega0318 Send a message via Yahoo to Iomega0318
Default

I agree with Sunshine, this is quite impressive and will give it a try just as soon as I fix my server
__________________
-Lichking-
"I believe in Christianity as I believe in the sun...
not because I see it but because by it I see everything else."
C.S. Lewis

Heed what I say, for it shall be mentioned only once.

Iomega0318 is offline  
Old 05-05-2006, 09:06 PM   #6 (permalink)
Forum Newbie
 
Join Date: Dec 2005
Posts: 19
Default

Magnificent O_O
kaiovas is offline  
Old 05-06-2006, 12:29 PM   #7 (permalink)
Forum Master
 
Joeku's Avatar
 
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,260
Default

I don't understand...

P.S. you might want to change that .rar to a .zip, for people who don't have WinRAR...
Joeku is offline  
Old 05-06-2006, 02:14 PM   #8 (permalink)
 
Join Date: Mar 2006
Posts: 6
Default

i don't understead too...can you post an image plz?
__________________
Smaragdi-OSI&Custom
http://smaragdi.altervista.org
Admin
"An incredible Italian shard..." :D
Skullx is offline  
Old 05-06-2006, 09:23 PM   #9 (permalink)
Forum Expert
 
Join Date: Nov 2004
Location: Southeast Missouri USA
Age: 35
Posts: 283
Default

Quote:
Originally Posted by Skullx
i don't understead too...can you post an image plz?
Here is a screenshot of all of the gumps. The cost gump is optional.

http://www.imagedonkey.com/show.php?...elops.jpg.html
I can't seem to get a thumbnail to display, but above is the link to the image.

Could you all be more specific as to what you don't understand?

If you don't understand the script part of it, well almost every line is commented in the script, so it should be at least semi-obvious how i did it.
--------------------------------------------------------------

What this does is allow players to SAFELY deco their homes as if they could use Pandora's Box. ( the gm tool that Anya made )

With this tool players can add items (PelopsItem) to their homes that have no functionality other than as deco.
The Pictures of these items are ANY of the item pics that can be found in InsideUO's Artwork Static Tiles panel. ( approximately 15000 total )
These are the pics of everything in the game that isn't a mobile, a gump or a landtile. ( although there are the shrink table versions of mobiles )

You can restrict which pictures they can set as deco by adding the ItemId numbers that you wish to restict in the "rares" list on the main item.

-----------------------------------------------------------------
Usage:
In general, when a player DoubleClicks the main item they get a target.

They can target anything that isn't a gump or a landtile.
Invalid targets send the player a message that they can't do that.

When a valid target is chosen, the ItemId of it is saved to an arraylist.

When the player wishes to view the contents of their collection of targeted pics, they target the Pelops Resurrection Item they originally DoubleClicked.

This opens the main gump, seen above on the left.
A player can then use the gump (in a house they are co-owner of) to create and control deco items with the pics they collected with the targeting.

----------------------------------------------------------------
Many, many checks are done to restrict the player from doing anything that would harm the shard.

The entire goal of this is to allow the player to be able to decorate their homes with as broad of a selection of possibilitys as possible, and make it fun to do so. Heck, players can even collect and use animations in their deco!
---------------------------------------------------------------

If it still doesn't make sense, please let me know where I am being unclear!

I really truely feel that this would make a welcome addition to any shard, but completely understand caution in adding something so ... unusual.

I am fully supporting this and look forward to hearing about and seeing what players come up with in their deco!

Last edited by Ashlar; 05-06-2006 at 09:29 PM.
Ashlar is offline  
Old 05-07-2006, 01:48 AM   #10 (permalink)
Forum Expert
 
A_Li_N's Avatar
 
Join Date: Apr 2004
Location: Another state of mind
Age: 27
Posts: 2,875
Default

Very nice...it's nice to see something along the lines of my Yard and Garden script that actually works Now I don't have to re-write it if I don't want to. Keep up the great work!
A_Li_N is offline  
Old 05-07-2006, 01:23 PM   #11 (permalink)
Forum Novice
 
Join Date: May 2005
Age: 36
Posts: 221
Default

My wife and I LOVE this script, we're definitely adding it to our shard. We get so many questions from our players "Can you help me decorate my house?" "can you sell me this certain decoration?" This would certanily alieviate a lot of that and give our players a chance to REALLY interact with their environment. GREAT JOB!
seanandre is offline  
Old 05-07-2006, 03:06 PM   #12 (permalink)
Forum Master
 
Joeku's Avatar
 
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,260
Default

Quote:
Originally Posted by Ashlar
Here is a screenshot of all of the gumps. The cost gump is optional.

http://www.imagedonkey.com/show.php?...elops.jpg.html
I can't seem to get a thumbnail to display, but above is the link to the image.

Could you all be more specific as to what you don't understand?

If you don't understand the script part of it, well almost every line is commented in the script, so it should be at least semi-obvious how i did it.
--------------------------------------------------------------

What this does is allow players to SAFELY deco their homes as if they could use Pandora's Box. ( the gm tool that Anya made )

With this tool players can add items (PelopsItem) to their homes that have no functionality other than as deco.
The Pictures of these items are ANY of the item pics that can be found in InsideUO's Artwork Static Tiles panel. ( approximately 15000 total )
These are the pics of everything in the game that isn't a mobile, a gump or a landtile. ( although there are the shrink table versions of mobiles )

You can restrict which pictures they can set as deco by adding the ItemId numbers that you wish to restict in the "rares" list on the main item.

-----------------------------------------------------------------
Usage:
In general, when a player DoubleClicks the main item they get a target.

They can target anything that isn't a gump or a landtile.
Invalid targets send the player a message that they can't do that.

When a valid target is chosen, the ItemId of it is saved to an arraylist.

When the player wishes to view the contents of their collection of targeted pics, they target the Pelops Resurrection Item they originally DoubleClicked.

This opens the main gump, seen above on the left.
A player can then use the gump (in a house they are co-owner of) to create and control deco items with the pics they collected with the targeting.

----------------------------------------------------------------
Many, many checks are done to restrict the player from doing anything that would harm the shard.

The entire goal of this is to allow the player to be able to decorate their homes with as broad of a selection of possibilitys as possible, and make it fun to do so. Heck, players can even collect and use animations in their deco!
---------------------------------------------------------------

If it still doesn't make sense, please let me know where I am being unclear!

I really truely feel that this would make a welcome addition to any shard, but completely understand caution in adding something so ... unusual.

I am fully supporting this and look forward to hearing about and seeing what players come up with in their deco!
Now I understand it. Perhaps it'd be better to re-organize your first post to make it easier to read...
Joeku is offline  
Old 05-16-2006, 12:19 PM   #13 (permalink)
 
Join Date: Apr 2004
Location: Hell with floursent lighting
Age: 32
Posts: 5
Send a message via Yahoo to Celtic_Mistress
Default crash when someone places...

hey there, for some reason when i applied this script to my shard it was working nicely and then when a player went to place a object next to their steps. the shard crashes.. here is the report..

Code:
Server Crash Report
===================

RunUO Version 1.0.0, Build 36918
Operating System: Microsoft Windows NT 5.2.3790.0
.NET Framework: 1.1.4322.2300
Time: 5/16/2006 7:40:14 AM
Mobiles: 1591
Items: 201928
Clients:
- Count: 3


Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
   at Server.Ashlar.NewTarget.OnTarget(Mobile from, Object targeted)
   at Server.Targeting.Target.Invoke(Mobile from, Object targeted)
   at Server.Network.PacketHandlers.TargetResponse(NetState state, PacketReader pvSrc)
   at Server.Network.MessagePump.HandleReceive(NetState ns)
   at Server.Network.MessagePump.Slice()
   at Server.Core.Main(String[] args)
Celtic_Mistress is offline  
Old 05-16-2006, 09:28 PM   #14 (permalink)
Forum Expert
 
Join Date: Nov 2004
Location: Southeast Missouri USA
Age: 35
Posts: 283
Default

Found the problem.
Sorry this happened!!!!

The problem is because the player is in the house, but the check for adding to the house lockdown is at the item, and there is no house at the item.

If you want to fix your current script the fix is:
In PelopsResurrectionGump.cs
In NewTarget
Change all four:
Code:
 BaseHouse house = BaseHouse.FindHouseAt( pi );
to:
Code:
 BaseHouse house = BaseHouse.FindHouseAt( from );
I will be updating the downloadable script now.

Thanks for telling me about this issue, sorry i hadn't checked the boards today before now, and truely sorry about the crash.

On the other hand, I hadn't heard feedback from anyone who has used this script, so i am glad beyond words to hear that someone has tried it.

Last edited by Ashlar; 05-16-2006 at 09:50 PM.
Ashlar is offline  
Old 05-17-2006, 12:00 AM   #15 (permalink)
Forum Novice
 
penndragon's Avatar
 
Join Date: Apr 2004
Location: Tennessee
Age: 41
Posts: 119
Send a message via Yahoo to penndragon
Default

Great script. We are loving it. Thanks for the share.
__________________
The only stupid question is the one not asked........ Just don't ask me..... I don't know either........ :D
penndragon is offline  
 

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