RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Auction System Updates

Code:
			if ( young && newChar.BankBox != null )
			{
				NewPlayerTicket ticket = new NewPlayerTicket();
				ticket.Owner = newChar;
				newChar.BankBox.DropItem( ticket );
			}
			if ( newChar.BankBox != null )
				newChar.BankBox.DropItem( new Arya.Savings.SavingsAccount() );
Did you try that?
 

arul

Sorceror
Xanthos, I recall to a bug I found in original Arya's system and as I don't see it fixed in the changelog I'll post its elementary description here.
The bug is regarding to powerscrolls, statscrolls and perhaps more gump-based items.
One can doubleclick the powerscroll, then place the powerscroll into the auction and finally confirm using the powerscroll - the other one then buy the scroll and gets nothing, because the powerscroll was already consumed.

Here's a quick fix:
Code:
		/// <summary>
		/// Requests the start of a new auction
		/// </summary>
		/// <param name="m">The mobile requesting the auction</param>
		public static void AuctionRequest( Mobile m )
		{
			if ( CanAuction( m ) )
			{
				m.SendMessage( AuctionConfig.MessageHue, AuctionSystem.ST[ 191 ] );
                                [B][COLOR="Red"]m.CloseAllGumps();[/COLOR][/B]
				m.Target = new AuctionTarget( new AuctionTargetCallback( OnNewAuctionTarget ), -1, false );
			}
			else
			{
				m.SendMessage( AuctionConfig.MessageHue, AuctionSystem.ST[ 192 ], AuctionSystem.MaxAuctions );
				m.SendGump( new AuctionGump( m ) );
			}
		}
 
afaik the item is removed from your backpack as soon as you bring it to auction. If you then use the gump the PowerScroll code won't allow you to consume the scroll.
IsChildOf( from.Backpack )
 

arul

Sorceror
The trick is that auction system doesn't delete / move the item from your backpack, it simply turn its visibility to false.

Code:
		public AuctionItem( Item item, Mobile owner )
		{
			m_ID = Guid.NewGuid();
			m_Item = item;
			m_Owner = owner;
			m_Bids = new ArrayList();

			if ( ! Creature )
			{
[COLOR="Red"][B]				m_Item.Visible = false;[/B][/COLOR]
				m_Owner.SendMessage( AuctionSystem.MessageHue, AuctionSystem.ST[ 172 ] );
			}

			// Item name
			if ( m_Item.Name != null && m_Item.Name.Length > 0 )
			{
				m_ItemName = m_Item.Name;
			}
			else
			{
				m_ItemName = m_StringList.Table[ m_Item.LabelNumber ] as string;
			}

			if ( m_Item.Amount > 1 )
			{
				m_ItemName = string.Format( "{0} {1}", m_Item.Amount, m_ItemName );
			}
		}
 

Lord_Shaka

Wanderer
I have an error....

everything compiles fine but, In-game I have this after I place a new auction:



Note that I am translanting the system to my home language, Portuguese...

So,

The error would be: INVALID LOCALIZATION

Thanks
 

Lord_Shaka

Wanderer
Kamuflaro said:
Try script support and post what you did and that it is this system, you'll have better chances to get a helpful answer.

Now it works... but i didnt modify the system.. all I did was to change the STRINGTABLE !!!

:0
 
Top