|
||
|
|||||||
| 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: Apr 2004
Location: Another state of mind
Age: 27
Posts: 2,875
|
**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
Features
Installation
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 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 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. |
|
|
|
|
#5 (permalink) |
|
Join Date: Dec 2004
Age: 38
Posts: 28
|
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? |
|
|
|
|
#6 (permalink) | ||
|
Forum Expert
Join Date: Apr 2004
Location: Another state of mind
Age: 27
Posts: 2,875
|
Quote:
Quote:
|
||
|
|
|
|
#7 (permalink) |
|
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!!! |
|
|
|
|
|
#9 (permalink) |
|
Forum Expert
Join Date: Nov 2004
Location: Beyond the Gates of Hell
Age: 36
Posts: 3,509
|
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:
|
|
|
|
|
#10 (permalink) |
|
Forum Expert
Join Date: Apr 2004
Location: Another state of mind
Age: 27
Posts: 2,875
|
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" ![]() |
|
|
|
|
#11 (permalink) | ||
|
Forum Expert
Join Date: Nov 2004
Location: Beyond the Gates of Hell
Age: 36
Posts: 3,509
|
Quote:
Quote:
__________________
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:
|
||
|
|
|
|
#12 (permalink) |
|
Newbie
|
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 |
|
|
|
|
#13 (permalink) | |
|
Forum Expert
Join Date: Apr 2004
Location: Another state of mind
Age: 27
Posts: 2,875
|
Quote:
![]() 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.... |
|
|
|
|
|
#15 (permalink) | |
|
Forum Expert
Join Date: Apr 2004
Location: Another state of mind
Age: 27
Posts: 2,875
|
Quote:
Enter the x,y coordinates that you want it to open. Examples would be 0,0 ; 300,300 ; 230,502 ; etc |
|
|
|
|
|
#18 (permalink) | ||
|
Forum Expert
Join Date: Mar 2004
Location: NorthCentral IL, USA
Age: 35
Posts: 3,848
|
Quote:
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:
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." |
||
|
|
|
|
#19 (permalink) |
|
Forum Expert
Join Date: Apr 2004
Location: Another state of mind
Age: 27
Posts: 2,875
|
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.
|
|
|
|
|
#23 (permalink) |
|
Forum Expert
Join Date: Apr 2004
Location: Another state of mind
Age: 27
Posts: 2,875
|
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;}
|
|
|
|
|
#25 (permalink) |
|
Forum Expert
Join Date: Apr 2004
Location: Another state of mind
Age: 27
Posts: 2,875
|
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. |
|
|