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 01-22-2005, 04:54 AM   #1 (permalink)
Forum Expert
 
A_Li_N's Avatar
 
Join Date: Apr 2004
Location: Another state of mind
Age: 27
Posts: 2,875
Default A_Li_N's Yard And Garden System

**Removed**I have removed the files for the simple reason that they tend to be buggy and I will someday be updating the system to actually contain good coding. I will still provide all the support I can for the current systems though.

It's my Yard and Garden System. As of yet, it does not include any part of the SE expansion, but if you're good enough at scripting to take a look at the code, I think I've made it pretty simple to copy/paste for new pages. Just take a look. (And yes, I know I do gumps wierd, but they work and I'm very happy with this project) Here's the info :

Contents
  • Yard Wand - The simple item that sends the gump. Change the itemID to whatever you want
  • Tokens - (Taken from Dupre's Token System) Just a simple item script that I included so you can easily implement the pack on a clean installed server. More on this later.
  • Yard System - All required files for the yard system to work on a clean install.
  • InteriorDecorator - The only base file that is modified.

Features
  • Place any item on the list (well over 400 currently) in and around your house. Currently 10 spaces in either direction, but can be changed.
  • Items placed are owned by the player that placed them, and will not allow others to use.
  • Refund an item by either double clicking on it (Most) or single clicking and select "Sell" (Stairs, gates, floor tiles, water tiles)
  • Gates are lockable.
  • All Items stay through world saves/loads/resets (Including ownership)
  • Set where the gump opens. Will remember the location (Wand dependant)

Installation
  1. Find your InteriorDecorator.cs and backup/delete it
  2. Download the file you wish and place in your custom folder
  3. *Optional* Download Dupre's Token System, Link is in the text file included with zip.
  4. Restart server, distribute your Yard Wands and Tokens.

Here's a couple screenshots :
Main Page
Settings Page


To change the demensions of your Yard, simply go into the YardTarget.cs and look for the two comments. In those lines, you will see 10's. Change these to whichever you want.
EX:
Code:
if( loc.Y > m_From.Location.Y+10 || loc.Y < m_From.Location.Y-10 ) //Change the demensions of the yard HERE
if( loc.X > m_From.Location.X+10 || loc.X < m_From.Location.X-10 ) //and HERE
changed to this :
Code:
if( loc.Y > m_From.Location.Y+7 || loc.Y < m_From.Location.Y-1 ) //Change the demensions of the yard HERE
if( loc.X > m_From.Location.X+5 || loc.X < m_From.Location.X-5 ) //and HERE
would give you 7 steps in front of the house, even with back, and 5 steps on either side.

Feedback, both good and constructive are very much welcome, but please no flaming. Other than that, Enjoy!

**Edit**I think I have edited the InteriorDecorator so that it runs with static housing. But since I do not have the static housing, I cannot be for sure without help from others. If you have static housing, please download the InteriorDecorator.cs that you see below and test it for me, and post any errors you might recieve. Thanks!

**Edit** The singular InteriorDecorator.cs is for use with the Static Housing from script submissions. The zips contain their own for non-Static Housing shards.

**Edit** Fixed the tiny bug in the gold version saying you don't have enough tokens. Look down the thread to find the code fix, or re-download the gold pack and replace YardTarget.cs

**Edit** Fixed a crash (I believe) when a player gets removed from the shard and another player double clicks the un-owned items.

Last edited by A_Li_N; 12-30-2005 at 09:40 PM.
A_Li_N is offline  
Old 01-22-2005, 06:22 AM   #2 (permalink)
 
Join Date: Jan 2005
Age: 24
Posts: 174
Send a message via MSN to aleon
Default

well where do we put the wand where do you prefer?
aleon is offline  
Old 01-22-2005, 06:27 AM   #3 (permalink)
Forum Expert
 
A_Li_N's Avatar
 
Join Date: Apr 2004
Location: Another state of mind
Age: 27
Posts: 2,875
Default

Quote:
Originally Posted by aleon
well where do we put the wand where do you prefer?
Say what?
The wand is something you give to a player.
A_Li_N is offline  
Old 01-22-2005, 06:35 AM   #4 (permalink)
 
Join Date: Jan 2005
Age: 24
Posts: 174
Send a message via MSN to aleon
Default

but like you give to the player for free?or is it sold on vendor?
aleon is offline  
Old 01-22-2005, 10:35 AM   #5 (permalink)
 
Join Date: Dec 2004
Age: 38
Posts: 28
Default

I downloaded the system with the tokens and replaced my interior decorator with yours and these are the 2 errors I am getting.

Error: Scripts\Custom\Items\Yard and Garden System\InteriorDecorator.cs: CS0101: <line 13, columb 14> The namespace 'Server.Items' already contains a definition for 'DecoratCommand'

Error: Scripts\Custom\Items\Yard and Garden System\InteriorDecorator.cs: CS0101: <line 21, columb 15> The namespace 'Server.Items' already contains a definition for 'InteriorDecorator'

I replaced my Interior Decorator before I got these errors. Any idea how to fix those errors?
Aaliyah is offline  
Old 01-22-2005, 02:03 PM   #6 (permalink)
Forum Expert
 
A_Li_N's Avatar
 
Join Date: Apr 2004
Location: Another state of mind
Age: 27
Posts: 2,875
Default

Quote:
Originally Posted by aleon
but like you give to the player for free?or is it sold on vendor?
That is totally up to you my friend.


Quote:
Originally Posted by Aaliyah
I downloaded the system with the tokens and replaced my interior decorator with yours and these are the 2 errors I am getting.

Error: Scripts\Custom\Items\Yard and Garden System\InteriorDecorator.cs: CS0101: <line 13, columb 14> The namespace 'Server.Items' already contains a definition for 'DecoratCommand'

Error: Scripts\Custom\Items\Yard and Garden System\InteriorDecorator.cs: CS0101: <line 21, columb 15> The namespace 'Server.Items' already contains a definition for 'InteriorDecorator'

I replaced my Interior Decorator before I got these errors. Any idea how to fix those errors?
I'm assuming you downloaded both the zip and the singular InteriorDecorator.cs? The singular one is for use with StaticHousing. The zips contain their own...sorry for the confusion...will make a note of that in the main thread.
A_Li_N is offline  
Old 02-10-2005, 12:33 PM   #7 (permalink)
 
Join Date: Feb 2005
Age: 38
Posts: 79
Send a message via ICQ to Mekaylah Send a message via AIM to Mekaylah Send a message via Yahoo to Mekaylah
Thumbs up

This system is awesome. As soon as I can figure out how, I am going to make these special tokens spawn on the old time regular monsters in dungeons. This is a great way to get people back into those dungeons and away from the custom ones for a while. Awesome job!!!
Mekaylah is offline  
Old 02-10-2005, 01:05 PM   #8 (permalink)
Forum Expert
 
stormwolff's Avatar
 
Join Date: Nov 2003
Location: The Internet
Age: 28
Posts: 3,510
Default

Small bug

In the gold version when you dont have enough gold in your pack it says you dont have enough tokens
stormwolff is offline  
Old 02-10-2005, 02:55 PM   #9 (permalink)
Forum Expert
 
Lucid Nagual's Avatar
 
Join Date: Nov 2004
Location: Beyond the Gates of Hell
Age: 36
Posts: 3,509
Smile Aleon

I have a vendor that is set up to sell the wand if you are interested. This vendor also requires the harvest system.

Anyone A Professional Programmer?

A_Li_N I tried out this system...GREAT JOB!!!

Stormwolff thx for pointing that out. I will have to look for that part to correct it.
__________________
Leader of the Anti-OSI Movement. Inventing a new game experience in an EA Games-free environment.

Don Juan Matus "The basic difference between an ordinary man and a warrior is that a warrior takes everything as a challenge, while an ordinary man takes everything as a blessing or as a curse."


My Customs:
Lucid Nagual is offline  
Old 02-10-2005, 03:21 PM   #10 (permalink)
Forum Expert
 
A_Li_N's Avatar
 
Join Date: Apr 2004
Location: Another state of mind
Age: 27
Posts: 2,875
Default

Fixed that small bug Re-upped the files.

And just to let you all know, I will not be updating this system. I am currently working on something much larger that will incorperate this (at least the concept). All I can say right now is it's going to (most likely) be called the Feudal System.....It's just starting, and you will probably be seeing me post things in the script help forums on parts of it, but it'll be something pretty new to RunUO, I promise!

For those who just want to fix the code, from the Gold version, go into YardTarget.cs and go down to line 212, or just search for "tokens" and change it to "gold"
A_Li_N is offline  
Old 02-10-2005, 04:07 PM   #11 (permalink)
Forum Expert
 
Lucid Nagual's Avatar
 
Join Date: Nov 2004
Location: Beyond the Gates of Hell
Age: 36
Posts: 3,509
Thumbs up Token

Quote:
I am currently working on something much larger that will incorperate this (at least the concept). All I can say right now is it's going to (most likely) be called the Feudal System....
Nice can't wait to see it.

Quote:
For those who just want to fix the code, from the Gold version, go into YardTarget.cs and go down to line 212, or just search for "tokens" and change it to "gold"
Thx that will make it much easier.
__________________
Leader of the Anti-OSI Movement. Inventing a new game experience in an EA Games-free environment.

Don Juan Matus "The basic difference between an ordinary man and a warrior is that a warrior takes everything as a challenge, while an ordinary man takes everything as a blessing or as a curse."


My Customs:
Lucid Nagual is offline  
Old 02-26-2005, 10:32 PM   #12 (permalink)
Newbie
 
Join Date: Jan 2004
Posts: 75
Send a message via MSN to giric
Default

How do I make the yard itself? by using the YardWand, all I get is the option to place items, and I can't place anything unless I am actually inside the house... I want a 10x5 rectangle in front of my player's houses, but I just can't work out how to make the area act like a house...

Help please! This looks like a great script if only I had more information!

There were NO help/instruction files in the package I downloaded...

Giric
__________________
Scott A Jones
giric is offline  
Old 02-27-2005, 04:31 AM   #13 (permalink)
Forum Expert
 
A_Li_N's Avatar
 
Join Date: Apr 2004
Location: Another state of mind
Age: 27
Posts: 2,875
Default

Quote:
Originally Posted by giric
How do I make the yard itself? by using the YardWand, all I get is the option to place items, and I can't place anything unless I am actually inside the house... I want a 10x5 rectangle in front of my player's houses, but I just can't work out how to make the area act like a house...

Help please! This looks like a great script if only I had more information!

There were NO help/instruction files in the package I downloaded...

Giric
Simple Answer....You don't
More in depth answer -
I wanted it that way. The "Yard" you can define as I have stated before, but as for making a specific area like you're saying, I wasn't planning on anything like that. I wanted it so they could basicly add decorations (yard) to outside their house, and only in a small proximity to their house. Didn't want them to be throwing random items all over the world. And that is the way I figured out to do it at the time

New system in the works, still long ways off, that will greatly expand on this basic concept....
A_Li_N is offline  
Old 03-04-2005, 06:13 PM   #14 (permalink)
Forum Newbie
 
Join Date: Oct 2003
Posts: 93
Default

what is the setting page for? every time I set anything there I see "You must enter a integer value in each box {0, 200,425}
nineismine is offline  
Old 03-04-2005, 07:38 PM   #15 (permalink)
Forum Expert
 
A_Li_N's Avatar
 
Join Date: Apr 2004
Location: Another state of mind
Age: 27
Posts: 2,875
Default

Quote:
Originally Posted by nineismine
what is the setting page for? every time I set anything there I see "You must enter a integer value in each box {0, 200,425}
It allows you to position where the gump will open.
Enter the x,y coordinates that you want it to open. Examples would be 0,0 ; 300,300 ; 230,502 ; etc
A_Li_N is offline  
Old 03-04-2005, 09:54 PM   #16 (permalink)
Forum Newbie
 
Join Date: Oct 2003
Posts: 93
Default

so is there any way to set the items Z? any support for this planned in the future?
nineismine is offline  
Old 03-04-2005, 10:16 PM   #17 (permalink)
Forum Expert
 
A_Li_N's Avatar
 
Join Date: Apr 2004
Location: Another state of mind
Age: 27
Posts: 2,875
Default

Can't believe I missed adding that feature to the list. With the modified InterierDecorator I supplied, you can use them to raise/lower the items.
A_Li_N is offline  
Old 03-28-2005, 07:38 PM   #18 (permalink)
Forum Expert
 
Greystar's Avatar
 
Join Date: Mar 2004
Location: NorthCentral IL, USA
Age: 35
Posts: 3,848
Default

Quote:
Originally Posted by A_Li_N
No update needed, but just thought I'd bring it into the new to start only supporting 1.0.0.

It's my Yard and Garden System. As of yet, it does not include any part of the SE expansion, but if you're good enough at scripting to take a look at the code, I think I've made it pretty simple to copy/paste for new pages. Just take a look. (And yes, I know I do gumps wierd, but they work and I'm very happy with this project) Here's the info :

Contents
  • Yard Wand - The simple item that sends the gump. Change the itemID to whatever you want
  • Tokens - (Taken from Dupre's Token System) Just a simple item script that I included so you can easily implement the pack on a clean installed server. More on this later.
  • Yard System - All required files for the yard system to work on a clean install.
  • InteriorDecorator - The only base file that is modified.

Features
  • Place any item on the list (well over 400 currently) in and around your house. Currently 10 spaces in either direction, but can be changed.
  • Items placed are owned by the player that placed them, and will not allow others to use.
  • Refund an item by either double clicking on it (Most) or single clicking and select "Sell" (Stairs, gates, floor tiles, water tiles)
  • Gates are lockable.
  • All Items stay through world saves/loads/resets (Including ownership)
  • Set where the gump opens. Will remember the location (Wand dependant)

Installation
  1. Find your InteriorDecorator.cs and backup/delete it
  2. Download the file you wish and place in your custom folder
  3. *Optional* Download Dupre's Token System, Link is in the text file included with zip.
  4. Restart server, distribute your Yard Wands and Tokens.

Here's a couple screenshots :
Main Page
Settings Page


To change the demensions of your Yard, simply go into the YardTarget.cs and look for the two comments. In those lines, you will see 10's. Change these to whichever you want.
EX:
Code:
if( loc.Y > m_From.Location.Y+10 || loc.Y < m_From.Location.Y-10 ) //Change the demensions of the yard HERE
if( loc.X > m_From.Location.X+10 || loc.X < m_From.Location.X-10 ) //and HERE
changed to this :
Code:
if( loc.Y > m_From.Location.Y+7 || loc.Y < m_From.Location.Y-1 ) //Change the demensions of the yard HERE
if( loc.X > m_From.Location.X+5 || loc.X < m_From.Location.X-5 ) //and HERE
would give you 7 steps in front of the house, even with back, and 5 steps on either side.

Feedback, both good and constructive are very much welcome, but please no flaming. Other than that, Enjoy!

**Edit**I think I have edited the InteriorDecorator so that it runs with static housing. But since I do not have the static housing, I cannot be for sure without help from others. If you have static housing, please download the InteriorDecorator.cs that you see below and test it for me, and post any errors you might recieve. Thanks!

**Edit** The singular InteriorDecorator.cs is for use with the Static Housing from script submissions. The zips contain their own for non-Static Housing shards.

**Edit** Fixed the tiny bug in the gold version saying you don't have enough tokens. Look down the thread to find the code fix, or re-download the gold pack and replace YardTarget.cs

This is an excellent system. I love it, but I do have one simple question... Modifying the Yard Tool so that it checks to see if you are within x steps of your house for placing things... Since I have a very small playerbase and always will I increased the yard size.. The catch to that is the yard tool... I can have something places all the way to the edge of the screen but a gm has to move it farther for the player if they want it moved. Also one other thing I like about this system.. if you place a STEP (square block) withing the edge of the foundation of a house it makes it so you can create a door and use it to the left and north sides of the house... so now I can make a custom house face ANY direction thanks again. But help with making the Yard tool use InRange of the house would be helpfull...
__________________
Quote:
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination.
Killable Guards (GS Version)
Just a Simple Staff Tool
You can leave me messages.
Ernest Gary Gygax - Quote "I would like the world to remember me as the guy who really enjoyed playing games and sharing his knowledge and his fun pastimes with everybody else."
Greystar is offline  
Old 03-28-2005, 09:06 PM   #19 (permalink)
Forum Expert
 
A_Li_N's Avatar
 
Join Date: Apr 2004
Location: Another state of mind
Age: 27
Posts: 2,875
Default

I've stopped updating this system (unless theres a bug). Working on something new and much bigger. Sorry. You could give it a try and post in support any errors you have to get help. My suggestion would be to figure out how to change it so the target checks within x squares of the location, and if there's a house, and if that house is owned by the player, allow placing. This would most likely be in YardTarget.cs. Hope you figure it out! And if you do, feel free to post your results in here for everyone else.
A_Li_N is offline  
Old 04-06-2005, 12:31 AM   #20 (permalink)
Age of Terror
 
Join Date: Apr 2004
Location: Sherbrooke, Québec, Canada
Age: 27
Posts: 137
Send a message via MSN to Darkages
Default Delete items in yard?

Is it possible for players to delete items they dont want anymore in yard, cause i can't see it?

sorry to bring back that old post.
Darkages is offline  
Old 04-06-2005, 08:20 AM   #21 (permalink)
Forum Expert
 
A_Li_N's Avatar
 
Join Date: Apr 2004
Location: Another state of mind
Age: 27
Posts: 2,875
Default

Quote:
Originally Posted by A_Li_N
Refund an item by either double clicking on it (Most) or single clicking and select "Sell" (Stairs, gates, floor tiles, water tiles)
Yup
A_Li_N is offline  
Old 04-10-2005, 03:15 PM   #22 (permalink)
Forum Expert
 
Join Date: Aug 2003
Age: 25
Posts: 444
Default Price change?

We want the yards to be money sinks, so we want to change the price of each piece from 100, to say 1000. I've searched the code, and can't find where it would be changed. Help?
blackgriffin is offline  
Old 04-10-2005, 04:21 PM   #23 (permalink)
Forum Expert
 
A_Li_N's Avatar
 
Join Date: Apr 2004
Location: Another state of mind
Age: 27
Posts: 2,875
Default

Unfortunately, there is no one spot to change prices. Each item has a price on it that is located in the individual pages. (Located in the Pages folder) The prices are down in the OnResponse method...you'll see something like this :
Code:
case (int)Buttons.LavaEast1:	{from.SendGump(new Lava1(m_Wand,from,4846,100));break;}
The price is the 100 there.
A_Li_N is offline  
Old 04-15-2005, 06:04 PM   #24 (permalink)
Forum Expert
 
flowerbudd's Avatar
 
Join Date: Jul 2003
Location: Missouri
Age: 31
Posts: 701
Send a message via ICQ to flowerbudd Send a message via AIM to flowerbudd Send a message via MSN to flowerbudd Send a message via Yahoo to flowerbudd
Default

Has anyone figured out how to prevent people from placing items in other peoples houses or yard area?
__________________
Med-Surg Nurse, Full time Pittsburg State Univ Sophmore, and FT Mother to 5 kids
flowerbudd is offline  
Old 04-15-2005, 06:14 PM   #25 (permalink)
Forum Expert
 
A_Li_N's Avatar
 
Join Date: Apr 2004
Location: Another state of mind
Age: 27
Posts: 2,875
Default

Figured out how? Yes, I think I have...
Implemented the code? No, I havn't...

I'm working on something bigger and better, but it'll be a while before it's done. However, in the mean time, I have decided to stop 'improving' this system so I can concentrate on the other thing. I'll give you some ideas on where to look/start though, and I'll provide support in the support forum (or here) of any errors you encounter.

Placing items uses the YardTarget. The ValidatePlacement method is where you want to edit things most likely. You could throw in another check to see if the target is inside another person's house, and fail if it is. As for the stopping placement in other people's 'yards', that will require a bit more power. You would have to search around your target within X spaces (X is the distance the Yards reach, so 10 by default). If you find a house within X spaces of your target, and the house is someone elses, the target could be concidered to be 'inside their yard'.
I didn't do this because I wanted people to be able to join their houses like in a guild and whatnot. But Inside other people's houses should be a relatively easy fix. If you need examples of code for that, might look at BaseAddon.cs and see how they target inside houses, and check if you are the owner.
A_Li_N is offline  
 

Bookmarks