Go Back   RunUO - Ultima Online Emulation > RunUO > RunUO Post Archive

RunUO Post Archive The Archvie

Reply
 
Thread Tools Display Modes
Old 06-03-2004, 12:04 AM   #1 (permalink)
 
Join Date: Apr 2004
Age: 37
Posts: 36
Exclamation Reworked Bag Of Holding !!!

Summary:
ok i didnt create that script but found some bugs with it : first if you put items inside it wont use all pack size and they used to show name ending with [cursed] at the end wich appear anyway on bottom of the item name.

here is what my script include:

- Small bag of holding (can hold 5 items)
cursed

- Medium bag of holding (can hold 10 items)
cursed

- Large bag of holding (can hold 20 items)
blessed

all the bags reduce items weight to 0, they look like a strong backpack and they are usable same as a regular backpack, meaning you can use all the space of it. Also they came in random metal hues and you can put in containers (usefull for regs pack).

Description:


Installation:
Just drop it in your containers folder or in custom folder ... your choice :O)

Please if you like the new mods i applied just rate it... Thx !
Attached Files
File Type: cs BagOfHolding.cs (4.1 KB, 355 views)
Aramis1971 is offline   Reply With Quote
Old 06-03-2004, 01:55 PM   #2 (permalink)
 
Join Date: Feb 2004
Location: Charleston, SC
Age: 37
Posts: 174
Default

I like the idea but I found an exploit.

A player could place items in another container and place that container inside the Bag of Holding. That container only counts as a single item.
Igon is offline   Reply With Quote
Old 06-03-2004, 09:39 PM   #3 (permalink)
 
Join Date: Nov 2003
Posts: 111
Default

um wen u restart the server it resets the weight 2 normal i.e b4 server restart it could say 0 stones in backpack then wen server restarts it says 1000 stones in bag of holding why?
__________________


You want some? Come get some!
SonnyJim is offline   Reply With Quote
Old 06-03-2004, 10:15 PM   #4 (permalink)
Tru
Forum Expert
 
Tru's Avatar
 
Join Date: Jan 2003
Location: California
Age: 39
Posts: 3,260
Default

Quote:
Originally Posted by SonnyJim
um wen u restart the server it resets the weight 2 normal i.e b4 server restart it could say 0 stones in backpack then wen server restarts it says 1000 stones in bag of holding why?
Its always been like that
Tru is offline   Reply With Quote
Old 06-03-2004, 10:56 PM   #5 (permalink)
 
Join Date: Apr 2004
Age: 37
Posts: 36
Default Weight !

Quote:
Originally Posted by SonnyJim
um wen u restart the server it resets the weight 2 normal i.e b4 server restart it could say 0 stones in backpack then wen server restarts it says 1000 stones in bag of holding why?

Just move an item in the pack and it return to 0 when server restart and your ok !
Aramis1971 is offline   Reply With Quote
Old 06-03-2004, 11:05 PM   #6 (permalink)
 
Join Date: Apr 2004
Age: 37
Posts: 36
Default Only one container !

Quote:
Originally Posted by Igon
I like the idea but I found an exploit.

A player could place items in another container and place that container inside the Bag of Holding. That container only counts as a single item.

Well i know you can do that but you cant add more items if you do that cause it wont allow you to do it ... it will allow you to add a pack with more items that its supposed but thoses pack are usefull to carry more gold or more ores. But you cant add other items if you do that cause its only the first container that doesnt really count...

Example you add a reg pack (8 regs plus the container itself = 9 items) to a 5 items bag of holding it count as 1 when dropped but you cant add anymore cause after it really know it has already more items, so its useless for gold or anything need to be carried in a bag of holding.

This is the reason to put "blessed" the large one so players will buy the large one instead of small bag.
Aramis1971 is offline   Reply With Quote
Old 06-04-2004, 01:16 AM   #7 (permalink)
Moderate
 
David's Avatar
 
Join Date: Nov 2002
Location: USA
Posts: 6,598
Default

Quote:
Originally Posted by Aramis1971
Just move an item in the pack and it return to 0 when server restart and your ok !
Not tested, but I think this would fix the server restart issue.
Code:
      public BaseBagofHolding( Serial serial ) : base( serial ) 
      { 
		  TotalWeight = 0; // added
      }
__________________
David Forum Moderator
The RunUO.com Forum Moderator Team

Forum Rules and Guidelines
RunUO Forum Search Engine
Download RunUO 2.0 RC2
David is offline   Reply With Quote
Old 06-04-2004, 05:27 AM   #8 (permalink)
 
Join Date: Nov 2003
Posts: 111
Default

Quote:
Originally Posted by David
Not tested, but I think this would fix the server restart issue.
Code:
      public BaseBagofHolding( Serial serial ) : base( serial ) 
      { 
		  TotalWeight = 0; // added
      }

nope did not fix the problem
__________________


You want some? Come get some!
SonnyJim is offline   Reply With Quote
Old 06-04-2004, 08:01 PM   #9 (permalink)
 
Join Date: Mar 2004
Posts: 82
Default

just fired this up on a fresh install of 1.0 and got the following error
Scripts: Compiling C# scripts...failed (1 errors, 0 warnings)
- Error: Scripts\Custom\BagOfHolding.cs: CS0149: (line 82, column 16) Method na
me expected
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
BowhunterDT is offline   Reply With Quote
Old 06-04-2004, 09:22 PM   #10 (permalink)
 
Join Date: Apr 2004
Age: 37
Posts: 36
Cool Line 82 Error !!!

Quote:
Originally Posted by BowhunterDT
just fired this up on a fresh install of 1.0 and got the following error
Scripts: Compiling C# scripts...failed (1 errors, 0 warnings)
- Error: Scripts\Custom\BagOfHolding.cs: CS0149: (line 82, column 16) Method na
me expected
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.

This is the line 82 :
Code:
Hue = Utility.RandomMetalHue();
if your install is correct it should take it correctly or just change it for ONE of those line :
Code:
		Hue = Utility.RandomBlueHue();
		Hue = Utility.RandomGreenHue();
	                Hue = Utility.RandomRedHue();
		Hue = Utility.RandomYellowHue();
		Hue = Utility.RandomNeutralHue();
that will fix it !
Aramis1971 is offline   Reply With Quote
Old 06-07-2004, 10:52 PM   #11 (permalink)
 
Join Date: Nov 2003
Posts: 111
Default

um wen u restart the server it resets the weight 2 normal i.e b4 server restart it could say 0 stones in backpack then wen server restarts it says 1000 stones in bag of holding why? any1 gonna fix this problem? cos it could cause crashes wen u try 2 steal or other problems.....also if the server restarts and player is say ina dungeon wif monsters they wnt b able 2 move cos over encumbered and by the time they open back pack and drag stuff 2 make weight 0 stones again it b 2 late to run away and will die
__________________


You want some? Come get some!
SonnyJim is offline   Reply With Quote
Old 09-05-2004, 03:52 PM   #12 (permalink)
Forum Expert
 
Join Date: Nov 2003
Posts: 561
Default

Now it would be nice if something like this could be the default backpack. I hate the weight restrictions and if a new player could start off with a backpack that would hold up to 500 items with about a 75% weight reduction, that would be cool. I suppose it would be simpler though to figure out a way to change the maxweight that a character can carry, regardless of their strength.
ssalter is offline   Reply With Quote
Old 09-05-2004, 04:44 PM   #13 (permalink)
Master of Insanity
 
raisor's Avatar
 
Join Date: Sep 2004
Location: Mesa, Az
Age: 32
Posts: 220
Send a message via ICQ to raisor Send a message via AIM to raisor Send a message via MSN to raisor Send a message via Yahoo to raisor
Default

Quote:
Originally Posted by ssalter
Now it would be nice if something like this could be the default backpack. I hate the weight restrictions and if a new player could start off with a backpack that would hold up to 500 items with about a 75% weight reduction, that would be cool. I suppose it would be simpler though to figure out a way to change the maxweight that a character can carry, regardless of their strength.
*** DISCLAIMER: Not tested due to being at work! ***
I believe that all you would have to do is modify this code
Code:
		public static int GetMaxWeight( Mobile m )

		{

			return 40 + (int)(3.5 * m.Str);

		}
in the Scripts/Misc/WeightOverloading.cs file. At least that is what it looks like to me.

Thanks,
Tom Sapp
raisor is offline   Reply With Quote
Old 09-05-2004, 09:53 PM   #14 (permalink)
Forum Novice
 
Join Date: Mar 2003
Posts: 246
Send a message via ICQ to Nagash
Default

I really hate all that facilities. Make a shard THAT easy and players will get bored and quit playing within a week. You can only keep a player for years if there'll always be new stuff along these years, and I mean new stuff, now something with more numbers or different hue. If you take the weight restriction, then why would crafters raise strenght? The only use of strenght would be hps. This would also chance the balance with stats. If you make it so easy that your players have no need to try, test, learn, explore anything to get GMskills and lots of stuff, it will be boring. Lots of players look for easy shards, but then they get bored of them and go to some better shards.
Nagash is offline   Reply With Quote
Old 09-29-2004, 05:20 PM   #15 (permalink)
 
Join Date: Jun 2004
Age: 26
Posts: 103
Default

just wanted to drop my two cents in on this one from the top(first post in this thread), as i've been away for a while -

the bags of holding were originally created by Dougan Ironfist, and as one of the players from his shard Dragon Realms (not advertising, shard is no longer active) I just figured i'd toss out that lil' tidbit of info for anyone who was interested to know.

please understand this is not a flame or in any way accusatory/derogatory towards the author of the original post in this thread, he said he didn't create them and I am just supplying the information he lacked.
ASKith is offline   Reply With Quote
Old 10-02-2004, 07:27 AM   #16 (permalink)
Forum Newbie
 
Join Date: Feb 2004
Posts: 51
Default

so no fix for the container bug?
nitewender is offline   Reply With Quote
Reply

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 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5