|
||
|
|||||||
| Custom Script Release Archive This is a pre-script database archive of what our users had released. |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Forum Novice
Join Date: Apr 2005
Age: 49
Posts: 175
|
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 Last edited by Almrac Avanti; 02-04-2006 at 01:06 AM. |
|
|
|
|
#9 (permalink) |
|
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. 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 );
}
}
}
}
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 );*/
}
}
}
}
|
|
|
|
|
|
#10 (permalink) |
|
Forum Novice
Join Date: Apr 2005
Age: 49
Posts: 175
|
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. |
|
|
|
|
#11 (permalink) |
|
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. |
|
|
|
|
|
#12 (permalink) |
|
Join Date: Nov 2005
Age: 37
Posts: 45
|
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. |
|
|
|
|
#15 (permalink) |
|
Forum Novice
Join Date: Apr 2005
Age: 49
Posts: 175
|
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. |
|
|
|
|
#16 (permalink) |
|
Join Date: Nov 2005
Age: 37
Posts: 45
|
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. |
|
|
|
|
#17 (permalink) |
|
Forum Master
|
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 ![]() |
|
|
|
|
#18 (permalink) |
|
Forum Novice
Join Date: Apr 2005
Age: 49
Posts: 175
|
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. |
|
|
|
|
#20 (permalink) |
|
Forum Novice
|
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);
}
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);
__________________
|
|
|
|
|
#21 (permalink) |
|
Forum Expert
Join Date: Jun 2003
Location: Live Oak FL
Age: 31
Posts: 2,005
|
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.
|
|
|
|
|
#22 (permalink) |
|
Forum Novice
Join Date: Apr 2005
Age: 49
Posts: 175
|
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.
|
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|