Go Back   RunUO - Ultima Online Emulation > RunUO > Server Support on Windows

Server Support on Windows Get (and give) support on general questions related to the RunUO server itself.

Reply
 
Thread Tools Display Modes
Old 09-24-2006, 08:32 AM   #1 (permalink)
Forum Newbie
 
Join Date: Dec 2005
Posts: 8
Default Latest revision kinda bug

Since bug tracker seems down atm, here's a thing that happened in the latest (Krrios) revision to core and sendinfoto(...)
When trading items, the properties don't show up anymore for the person I am trading with, unless he dragged his mouse over it before the trade (snooping or placing item on the ground/ equipping it) - They show up then probably cuz of client cache. Tested using weapons.
bripbrip is offline   Reply With Quote
Old 09-24-2006, 09:02 AM   #2 (permalink)
Forum Expert
 
Join Date: Feb 2004
Age: 27
Posts: 1,834
Default

HOTFIX, use on your own risk!
To add/change in the playermobile.cs
Code:
//added
		public override void Lift( Item item, int amount, out bool rejected, out LRReason reject )
		{
			base.Lift( item, amount, out rejected, out reject );
			if ( item != null )
				item.InvalidateProperties();
		}
//end
		public override bool CheckTrade( Mobile to, Item item, SecureTradeContainer cont, bool message, bool checkItems, int plusItems, int plusWeight )
		{
			int msgNum = 0;

			if ( cont == null )
			{
				if ( to.Holding != null )
					msgNum = 1062727; // You cannot trade with someone who is dragging something.
				else if ( this.HasTrade )
					msgNum = 1062781; // You are already trading with someone else!
				else if ( to.HasTrade )
					msgNum = 1062779; // That person is already involved in a trade
			}

			if ( msgNum == 0 )
			{
				if ( cont != null )
				{
					plusItems += cont.TotalItems;
					plusWeight += cont.TotalWeight;
				}

				if ( this.Backpack == null || !this.Backpack.CheckHold( this, item, false, checkItems, plusItems, plusWeight ) )
					msgNum = 1004040; // You would not be able to hold this if the trade failed.
				else if ( to.Backpack == null || !to.Backpack.CheckHold( to, item, false, checkItems, plusItems, plusWeight ) )
					msgNum = 1004039; // The recipient of this trade would not be able to carry this.
				else
					msgNum = CheckContentForTrade( item );
			}

			if ( msgNum != 0 )
			{
				if ( message )
					this.SendLocalizedMessage( msgNum );

				return false;
			}
//added
			item.InvalidateProperties();
//end
			return true;
		}
Kamuflaro 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