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 02-03-2006, 12:28 PM   #1 (permalink)
Forum Novice
 
Join Date: Apr 2005
Age: 49
Posts: 175
Default Modified Dupre Tent script

Zorba gave me the answer to fixing the problem with the chest not allowing players to secure items.
Added alot of items to make it look more like a small camp. Also added a forge and anvil so it can be used in a remote minning area.

The chest spawns kindling and a bed roll so to log out you still must create a camp.
It does not check terrain - dont know how to correct that - but it does check to see if in city, dungeon, moongate ect...

just download, unzip into cusstom folder and restart
Attached Files
File Type: zip Tent.zip (6.5 KB, 272 views)

Last edited by Almrac Avanti; 02-04-2006 at 01:06 AM.
Almrac Avanti is offline  
Old 02-03-2006, 12:44 PM   #2 (permalink)
 
Join Date: Dec 2005
Posts: 181
Default

this is a lovely script!!thanks for sharing it but there should be a region checker i think with this script players can make tents anywhere they want.think about making this tent to a town or dungeon?i think this is not fair.
okyzan is offline  
Old 02-03-2006, 12:46 PM   #3 (permalink)
Forum Novice
 
Join Date: Apr 2005
Age: 49
Posts: 175
Default

It does check city, dungeon, moongate things like that - but it will place over a tree so you'll have a tree sticking out of the side or roof.
Almrac Avanti is offline  
Old 02-03-2006, 12:54 PM   #4 (permalink)
 
Join Date: Dec 2005
Posts: 181
Default

no it doesnt check i try and make the camp in the luna gate
okyzan is offline  
Old 02-03-2006, 12:58 PM   #5 (permalink)
 
Join Date: Dec 2005
Posts: 181
Default

ohh i found it .i have to add it myself ok i see know.ill try this script and report the bugs if there are some .thanks.
okyzan is offline  
Old 02-03-2006, 01:01 PM   #6 (permalink)
Forum Novice
 
Join Date: Apr 2005
Age: 49
Posts: 175
Default

I alos found waht was wrong - I have a custom shard so it was checking my regions. I have changed it to stanfard OSI cities. And put up a new Tent.zip. So delete the first one and download it again.
Almrac Avanti is offline  
Old 02-03-2006, 02:15 PM   #7 (permalink)
 
Join Date: Dec 2005
Posts: 181
Default

is there a way to make the tents are restricted region?like only the rents owner can go inside the tent and other one can enter there..
okyzan is offline  
Old 02-03-2006, 02:20 PM   #8 (permalink)
Forum Novice
 
Join Date: Apr 2005
Age: 49
Posts: 175
Default

I am sure you could modify it based on a multi house script. But, the chest is 100% secure, not even the Admin of the shard can open it. Only the owner. You cant say that about chests in houses.
Almrac Avanti is offline  
Old 02-03-2006, 09:00 PM   #9 (permalink)
stu
 
Join Date: Jun 2005
Location: Jackson, MS
Age: 40
Posts: 234
Send a message via ICQ to stu
Default problem trying to add this item to an architect...

Im trying to add the new dupre tent deed to the architect for sale. It wont compile for some reason. What am I missing?
error message:
Code:
 RunUO - [www.runuo.com] Version 1.0.0, Build 36918
Scripts: Compiling C# scripts...failed (1 errors, 0 warnings)
 - Error: Scripts\Mobiles\Vendors\SBInfo\SBHouseDeed.cs: CS0246: (line 42, column 131) The type or namespace name 'TentDeed' could not be found (are you missing a using directive or an assembly reference?)
 Scripts: One or more scripts failed to compile or no script files were found.
 - Press return to exit, or R to try again.
My sbarchitect:
Code:
using System;
using System.Collections;
using Server.Items;

namespace Server.Mobiles
{
	public class SBArchitect : SBInfo
	{
		private ArrayList m_BuyInfo = new InternalBuyInfo();
		private IShopSellInfo m_SellInfo = new InternalSellInfo();

		public SBArchitect()
		{
		}

		public override IShopSellInfo SellInfo { get { return m_SellInfo; } }
		public override ArrayList BuyInfo { get { return m_BuyInfo; } }

		public class InternalBuyInfo : ArrayList
		{
			public InternalBuyInfo()
			{
				if ( Core.AOS )
					Add( new GenericBuyInfo( "1060651", typeof( HousePlacementTool ), 627, 20, 0x14F6, 0 ));

				Add( new GenericBuyInfo( "1041280", typeof( InteriorDecorator ), 10001, 20, 0xFC1, 0 ) );

			}
		}

		public class InternalSellInfo : GenericSellInfo
		{
			public InternalSellInfo()
			{
				Add( typeof( InteriorDecorator ), 5000 );

				if ( Core.AOS )
					Add( typeof( HousePlacementTool ), 301 );
			}
		}
	}
}
my sbdeed:

Code:
using System;
using System.Collections;
using Server.Multis.Deeds;

namespace Server.Mobiles
{
	public class SBHouseDeed: SBInfo
	{
		private ArrayList m_BuyInfo = new InternalBuyInfo();
		private IShopSellInfo m_SellInfo = new InternalSellInfo();

		public SBHouseDeed()
		{
		}

		public override IShopSellInfo SellInfo { get { return m_SellInfo; } }
		public override ArrayList BuyInfo { get { return m_BuyInfo; } }

		public class InternalBuyInfo : ArrayList
		{
			public InternalBuyInfo()
			{
				Add( new GenericBuyInfo( "deed to a stone-and-plaster house", typeof( StonePlasterHouseDeed ), 43800, 20, 0x14F0, 0 ) );
				Add( new GenericBuyInfo( "deed to a field stone house", typeof( FieldStoneHouseDeed ), 43800, 20, 0x14F0, 0 ) );
				Add( new GenericBuyInfo( "deed to a small brick house", typeof( SmallBrickHouseDeed), 43800, 20, 0x14F0, 0 ) );
				Add( new GenericBuyInfo( "deed to a wooden house", typeof( WoodHouseDeed ), 43800, 20, 0x14F0, 0 ) );
				Add( new GenericBuyInfo( "deed to a wood-and-plaster house", typeof( WoodPlasterHouseDeed ), 43800, 20, 0x14F0, 0 ) );
				Add( new GenericBuyInfo( "deed to a thatched-roof cottage", typeof( ThatchedRoofCottageDeed ), 43800, 20, 0x14F0, 0 ) );
				Add( new GenericBuyInfo( "deed to a brick house", typeof( BrickHouseDeed ), 144500, 20, 0x14F0, 0 ) );
				Add( new GenericBuyInfo( "deed to a two-story wood-and-plaster house", typeof( TwoStoryWoodPlasterHouseDeed ), 192400, 20, 0x14F0, 0 ) );
				Add( new GenericBuyInfo( "deed to a tower", typeof( TowerDeed ), 433200, 20, 0x14F0, 0 ) );
				Add( new GenericBuyInfo( "deed to a small stone keep", typeof( KeepDeed ), 665200, 20, 0x14F0, 0 ) );
				Add( new GenericBuyInfo( "deed to a castle", typeof( CastleDeed ), 1022800, 20, 0x14F0, 0 ) );
				Add( new GenericBuyInfo( "deed to a large house with patio", typeof( LargePatioDeed ), 152800, 20, 0x14F0, 0 ) );
				Add( new GenericBuyInfo( "deed to a marble house with patio", typeof( LargeMarbleDeed ), 192000, 20, 0x14F0, 0 ) );
				Add( new GenericBuyInfo( "deed to a small stone tower", typeof( SmallTowerDeed ), 88500, 20, 0x14F0, 0 ) );
				Add( new GenericBuyInfo( "deed to a two story log cabin", typeof( LogCabinDeed ), 97800, 20, 0x14F0, 0 ) );
				Add( new GenericBuyInfo( "deed to a sandstone house with patio", typeof( SandstonePatioDeed ), 90900, 20, 0x14F0, 0 ) );
				Add( new GenericBuyInfo( "deed to a two story villa", typeof( VillaDeed ), 136500, 20, 0x14F0, 0 ) );
				Add( new GenericBuyInfo( "deed to a small stone workshop", typeof( StoneWorkshopDeed ), 60600, 20, 0x14F0, 0 ) );
				Add( new GenericBuyInfo( "deed to a small marble workshop", typeof( MarbleWorkshopDeed ), 63000, 20, 0x14F0, 0 ) );
                               Add( new GenericBuyInfo( "deed to a miners tent", typeof( TentDeed ), 30000, 20, 0x14F0, 0 ) );			}
		}

		public class InternalSellInfo : GenericSellInfo
		{
			public InternalSellInfo()
			{
				/*Add( typeof( StonePlasterHouseDeed ), 43800 );
				Add( typeof( FieldStoneHouseDeed ), 43800 );
				Add( typeof( SmallBrickHouseDeed ), 43800 );
				Add( typeof( WoodHouseDeed ), 43800 );
				Add( typeof( WoodPlasterHouseDeed ), 43800 );
				Add( typeof( ThatchedRoofCottageDeed ), 43800 );
				Add( typeof( BrickHouseDeed ), 144500 );
				Add( typeof( TwoStoryWoodPlasterHouseDeed ), 192400 );
				Add( typeof( TowerDeed ), 433200 );
				Add( typeof( KeepDeed ), 665200 );
				Add( typeof( CastleDeed ), 1022800 );
				Add( typeof( LargePatioDeed ), 152800 );
				Add( typeof( LargeMarbleDeed ), 192800 );
				Add( typeof( SmallTowerDeed ), 88500 );
				Add( typeof( LogCabinDeed ), 97800 );
				Add( typeof( SandstonePatioDeed ), 90900 );
				Add( typeof( VillaDeed ), 136500 );
				Add( typeof( StoneWorkshopDeed ), 60600 );
				Add( typeof( MarbleWorkshopDeed ), 60300 );
				Add( typeof( SmallBrickHouseDeed ), 43800 );*/
			}
		}
	}
}
stu is offline  
Old 02-04-2006, 12:36 AM   #10 (permalink)
Forum Novice
 
Join Date: Apr 2005
Age: 49
Posts: 175
Default

Its not actually a housedeed - its just called a tentdeed. But you can still add it for sale to your SBArchitect script. To add it for sale goto your SBArchetect and add this line to the script:

Add( new GenericBuyInfo( "1041280", typeof( InteriorDecorator ), 10001, 20, 0xFC1, 0 ) );
Add( new GenericBuyInfo( "1041280", typeof( TentDeed ), 1000, 20, 0xA58, 0 ) );

1000 is the price you can set that to better fit your shard.

You can also make it craftable by adding this line to Scripts/Engines/Craft/DefTailoring


// Misc
AddCraft( typeof( TentDeed ), "Deeds", "small tent", 90.0, 100.0, typeof( Leather ), "Leather or Hides", 50, 1044463 );
AddCraft( typeof( BodySash ), 1015283, 1025441, 4.1, 29.1, typeof( Cloth ), 1044286, 4, 1044287 );

If you do make it craftable I would suggest selling it on your tailor NPC instead. Just add
Add( new GenericBuyInfo( "1041280", typeof( TentDeed ), 1000, 20, 0xA58, 0 ) );
to SBTailor insted of SBArchitect.
Almrac Avanti is offline  
Old 02-04-2006, 12:52 AM   #11 (permalink)
stu
 
Join Date: Jun 2005
Location: Jackson, MS
Age: 40
Posts: 234
Send a message via ICQ to stu
Default

tyvm! I appreciate it! I modified the gump a lil, added it to the appropriate Vens and threw it out there! FOlks love it so far! ill post any bugs we find!
fast pic......
http://an-corp.us/gallery/main.php?g...geViewsIndex=1

Last edited by stu; 02-04-2006 at 12:22 PM.
stu is offline  
Old 02-04-2006, 06:33 PM   #12 (permalink)
 
Join Date: Nov 2005
Age: 37
Posts: 45
Default great job

Tested it out and it works fine. Was impressed to see the anvil and forge works. You did a very good job. Addons with functions are very useful for server admins who like having many custom item scripts. Are you planning any more features for this? Only little bug i found was the light is wrong on the fire place. Yuo have a window light instead of a circle. Only improvements i could think of would be a hitching post for player convenience, and a marked recall rune added to the players pack, and set movable false so players cant lose thier tents. Shrinking the tent would remove the rune. If i could do it for you i would but I'm still learning. Once again great job.

Candle
__________________
Newly appointed thread necromancer.

Last edited by Candle; 02-04-2006 at 10:28 PM.
Candle is offline  
Old 02-04-2006, 11:09 PM   #13 (permalink)
Forum Novice
 
Join Date: May 2005
Age: 36
Posts: 175
Default

Code:
 - Warning: Scripts\@ Custom\Tent\Chest.cs: CS0162: (line 122, column 10) Unreac
hable code detected
 - Warning: Scripts\@ Custom\Tent\TentDeed.cs: CS0162: (line 153, column 7) Unre
achable code detected
PoolMan is offline  
Old 02-05-2006, 12:05 PM   #14 (permalink)
stu
 
Join Date: Jun 2005
Location: Jackson, MS
Age: 40
Posts: 234
Send a message via ICQ to stu
Default

no biggie, run w it.....
it compiles and runs! I have the same warning messages, nothing to be concerned with. The server is just griping about sloppy coding. Overall a great job!
stu is offline  
Old 02-05-2006, 08:39 PM   #15 (permalink)
Forum Novice
 
Join Date: Apr 2005
Age: 49
Posts: 175
Default

Candle - thanks for all the kind words, but truely the script is Dupre's I just added a few things for myself and thought I would share because there was a problem with the original that made it unfunctional. As for additional addon's I was thinking of doing 3 tent deeds - a smiths tent (complete) - A ranger tent (with hitching post of course) and a nomad tent that would be an actual housedeed. But I have a lot on my plate and as long as I have the one up and working - the others will have to wait.

As for the fire light - this is a testiment to my true scriptting ability - Can't get it to do a circle300 as what i had originally intended. I am sure its simple but everything I triesd I couldn't get it right.

Poolman - I dont get those errors when I run it. But yes I agree it is sloppy scripting - its a cut and paste - I couldnt actualy write a script to save my life.
Almrac Avanti is offline  
Old 02-06-2006, 03:27 AM   #16 (permalink)
 
Join Date: Nov 2005
Age: 37
Posts: 45
Default

instead of making different versions of the same thing, making players have to choose, why not just make one more multipurpose? Less scripts to deal with. Just a suggestion.
__________________
Newly appointed thread necromancer.
Candle is offline  
Old 02-06-2006, 09:12 PM   #17 (permalink)
Forum Master
 
Lord_Greywolf's Avatar
 
Join Date: Dec 2005
Posts: 7,279
Send a message via Yahoo to Lord_Greywolf
Default

The tent works great and looks just as good !!!!!!

I have 1 bug and 1 request with it though

bug - have to remove kindling and bedroll from chest before closing it back up --- so players will get a whole bunch of kindling and bedrolls back up (they can not sell the bedroll at the provisioner - so no money makling scheme) --- would be nice to have to have it empty except for the bedrool and maybe also the twigs

and the request --- is it possible to have it classified as a house?
this is for 2 great reasons
1) so someone does not have 50 tents around the world
2) so when using pandora's box - can go to them (players-view-houses) - so people do not hide items from the gm's that way

otherswise it is working great
Lord_Greywolf is offline  
Old 02-07-2006, 08:33 AM   #18 (permalink)
Forum Novice
 
Join Date: Apr 2005
Age: 49
Posts: 175
Default Lord greywolf

I fixed it so the chest will now destroy the bedroll and kindling when you repack it. (I wasn't to happy about celaning out the chest everytime either) In the Tent scripts go to Bedroll.cs At about line 50 you will see a couple lines like:

if ( m_Chest != null && m_Chest.Items.Count > 0 )
{
from.SendMessage( "You must remove the items from the chest before packing up your tent." );

Just change the 0 ) with I would suggest 2 If you put more than 2 someone could accidently repack the tent with 10k gold or 2 or 3k ingots - By putting 2 it will repack the chest with no more than 2 items inside.

It will only let you place one tent - Because its not a house even GMs can only place one.

As for turning it into a housedeed. I dont have gate or recall on my shard, thats the only reason i really wanted a tent - so people didnt have to walk home every time they adventured out. I also though you would have to increase amount of houses allowed, and instead of placing a tent they would place another house - then complain to allow another house placement to place a tent.

Last edited by Almrac Avanti; 02-07-2006 at 08:41 AM.
Almrac Avanti is offline  
Old 02-07-2006, 05:28 PM   #19 (permalink)
Forum Master
 
Lord_Greywolf's Avatar
 
Join Date: Dec 2005
Posts: 7,279
Send a message via Yahoo to Lord_Greywolf
Default

Thanks for the fast reply

I will make that change (and if they have stuff in there they should not - so well - it is poof)

I did not realize could only place one - that i realy love

Keep up the good work
Lord_Greywolf is offline  
Old 04-06-2006, 08:51 AM   #20 (permalink)
Forum Novice
 
RavonTUS's Avatar
 
Join Date: Aug 2004
Location: in a house.
Age: 40
Posts: 588
Send a message via ICQ to RavonTUS Send a message via AIM to RavonTUS
Default

Greetings,

Poolman - I get the same two warnings. It appears to be an "if" statement that has 3 options instead of just 2. I would assume removing the third line would fix the problem, as the "if" statement will never reach them anyway.

chest.cs (put // in front of the red line)...
Code:
        public override bool IsAccessibleTo(Mobile m)
        {
            if ((m == m_Player || m.AccessLevel >= AccessLevel.GameMaster))
            {
                return true; 
            }
            else
            {
                return false;
            }

            return m == m_Player && base.IsAccessibleTo(m);
        }
tentdeed.cs (put // in front of the red line)...
Code:
            if (count > 0) //change this if you want players to own more than 1,2,3 etc.
            {
                return false;
            }
            else
            {
                return true;
            }
            return TentCheck(from);
-Ravon
__________________

Will RunUO work on Linux? Yes
RavonTUS is offline  
Old 04-06-2006, 10:25 AM   #21 (permalink)
Forum Expert
 
KillerBeeZ's Avatar
 
Join Date: Jun 2003
Location: Live Oak FL
Age: 31
Posts: 2,005
Default

there was a bug with Dupre's version where the tent would on rare occassion crash the shard when it was deleted (and not get deleted so there was a permatent out there, hell I still have it on my old shard it kinda grew into the environment as I built around it lol), is this fixed?
__________________
The Den of KillerBeeZ...Kender's Komments, uncensored commentary from the Kender. Plus anything else the Kender might have in his pouches.
KillerBeeZ is offline  
Old 04-08-2006, 09:21 PM   #22 (permalink)
Forum Novice
 
Join Date: Apr 2005
Age: 49
Posts: 175
Default

No I did not know there was a problem with it being deleted or not deleted and causeing crashes. On my shard once an account has more than 30 days of no activity the account is auto-deleted along with that the tents are deleted too. Also if you [delete the tent carryng case it will delete the entire tent.
Almrac Avanti 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 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5