|
||
|
|||||||
| Custom Script Release Archive This is a pre-script database archive of what our users had released. |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Forum Expert
Join Date: Nov 2004
Location: Southeast Missouri USA
Age: 35
Posts: 283
|
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
__________________
Ashlar, beloved of Morrigan Click here to goto a post containing links to each script i have released, each thread i have started and info about me. Last edited by Ashlar; 06-22-2006 at 11:51 PM. |
|
|
|
|
#2 (permalink) |
|
Forum Expert
Join Date: Jan 2003
Location: California
Age: 39
Posts: 3,260
|
Very Interesting...I'll have my deco fiends have a go at it.
Thanks
__________________
My Scripts: HoodableRobe CellarAddon SeigeUpdates Refresh/CloneMe Commands VooDoo Dolls Lost Alchemy SVN 187 Updates: Bard System + Upgrade Ultima VII |
|
|
|
|
#4 (permalink) |
|
Forum Expert
Join Date: Mar 2005
Location: Hopefully not near you
Posts: 2,233
|
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.
|
|
|
|
|
#5 (permalink) |
|
Forum Expert
|
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.
|
|
|
|
|
#8 (permalink) |
|
Join Date: Mar 2006
Posts: 6
|
i don't understead too...can you post an image plz?
__________________
Smaragdi-OSI&Custom http://smaragdi.altervista.org Admin "An incredible Italian shard..." :D |
|
|
|
|
#9 (permalink) | |
|
Forum Expert
Join Date: Nov 2004
Location: Southeast Missouri USA
Age: 35
Posts: 283
|
Quote:
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!
__________________
Ashlar, beloved of Morrigan Click here to goto a post containing links to each script i have released, each thread i have started and info about me. Last edited by Ashlar; 05-06-2006 at 09:29 PM. |
|
|
|
|
|
#10 (permalink) |
|
Forum Expert
Join Date: Apr 2004
Location: Another state of mind
Age: 27
Posts: 2,875
|
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!
__________________
|
|
|
|
|
#11 (permalink) |
|
Forum Novice
Join Date: May 2005
Age: 36
Posts: 221
|
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!
|
|
|
|
|
#12 (permalink) | |
|
Forum Master
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,260
|
Quote:
|
|
|
|
|
|
#13 (permalink) |
|
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) |
|
|
|
|
|
#14 (permalink) |
|
Forum Expert
Join Date: Nov 2004
Location: Southeast Missouri USA
Age: 35
Posts: 283
|
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 ); Code:
BaseHouse house = BaseHouse.FindHouseAt( from ); 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.
__________________
Ashlar, beloved of Morrigan Click here to goto a post containing links to each script i have released, each thread i have started and info about me. Last edited by Ashlar; 05-16-2006 at 09:50 PM. |
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|