View Single Post
Old 05-18-2009, 01:43 AM   #11 (permalink)
Hawkins
Forum Novice
 
Join Date: Aug 2003
Location: Hong Kong
Posts: 574
Send a message via ICQ to Hawkins
Default

Quote:
Originally Posted by mikeymaze View Post
Here is the Errors i get
Code:
Errors:
 + VendorAuctionMall/Mobiles/CommissionedVendor.cs:
    CS0506: Line 346: 'Server.Mobiles.CommissionedVendor.Dismiss(Server.Mobile)'
: cannot override inherited member 'Server.Mobiles.PlayerVendor.Dismiss(Server.M
obile)' because it is not marked virtual, abstract, or override
Yep, you need to first merge the changes in PlayerVendor.cs and Snooping.cs.

Such an error occurs when you compile the package without first merging the above 2 scripts in the "distro" folder with your existing scripts.


the 2 modifications made in PlayerVendor.cs
PHP Code:
#region Vendor Auction and Mall System
public Timer DailyPayTimer
{
    
get{ return m_PayTimer; }
    
setm_PayTimer value; }
}
#endregion 
PHP Code:
#region Vendor Auction and Mall System
//        public void Dismiss( Mobile from )
public virtual void DismissMobile from )
#endregion 

And the 1 modification in Snooping.cs

PHP Code:
#region Vendor Auction and Mall System
IHardsellable hs cont.RootParent as IHardsellable;

if ( 
hs != null && hs.ShopItems != null && hs.ShopItems.Count && from.InRangecont.GetWorldLocation(), ) )
{
    
cont.DisplayTofrom );
    return;
}
#endregion 

Last edited by Hawkins; 05-18-2009 at 02:44 AM.
Hawkins is offline   Reply With Quote