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!

Error with base vendor adding tbod but dont see whats wrong

Star

Page
ok im traying to add taming bod and im having error that i dont see what wrong need little help
here the error and the basevendor.cs

RunUO - [www.runuo.com] Version 2.1, Build 4413.368
Core: Running on .NET Framework Version 2.0.50727
Core: Optimizing for 1 64-bit processor
Scripts: Compiling C# scripts...failed (1 errors, 2 warnings)
Warnings:
+ Items/Addons/BaseAddonContainer.cs:
CS0108: Line 41: 'Server.Items.BaseAddonContainer.Resource' hides inherited
member 'Server.Items.BaseContainer.Resource'. Use the new keyword if hiding was
intended.
+ Expansions/Stygian Abyss/SA Mobiles/SA Peerless/SlasherOfVeils.cs:
CS0114: Line 115: 'Server.Mobiles.SlasherOfVeils.FireRing()' hides inherited
member 'Server.Mobiles.BasePeerless.FireRing()'. To make the current member ove
rride that implementation, add the override keyword. Otherwise add the new keywo
rd.
Errors:
+ Mobiles/Vendors/BaseVendor.cs:
CS0535: Line 24: 'Server.Mobiles.BaseVendor' does not implement interface me
mber 'Server.IVendor.OnBuyItems(Server.Mobile, System.Collections.Generic.List<S
erver.Mobiles.BuyItemResponse>)'
CS0535: Line 24: 'Server.Mobiles.BaseVendor' does not implement interface me
mber 'Server.IVendor.OnSellItems(Server.Mobile, System.Collections.Generic.List<
Server.Mobiles.SellItemResponse>)'
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
 

Attachments

  • BaseVendor.cs
    38.4 KB · Views: 2

Panbaked

Wanderer
I think your errors are caused by not properly implementing the interface IVendor. You'll need to go and find the methods OnBuyItems and OnSellItems and change their signature to take a list.

For the OnBuyItems this should be
Code:
 public virtual bool OnBuyItems( Mobile buyer, List<BuyItemResponse> list )
For the OnSellItems this should be
Code:
 public virtual bool OnSellItems( Mobile buyer, List<SellItemResponse> list)

Currently your methods take an array list, so you will need to convert a few things to use the new list type.
This should remove those errors, and work fine if you convert to using a list instead.

Also you may want to look at those warnings as they could result in unexpected behavior, you probably just want to use the override keyword with those methods you are overriding.
 
Top