Since there's 5 pages, which means you're trying, I'm going to throw out some help....
Code:
RunUO - [www.runuo.com] Version 1.0.0, Build 36918
Scripts: Compiling C# scripts...failed (2 errors, 0 warnings)
- Error: Scripts\Customs\fortowns\AlicesWon\Food\DrinkMe.cs: CS0115: (line 7, c
olumn 23) 'Server.Items.DrinkMe.Bonus': no suitable method found to override
- Error: Scripts\Customs\fortowns\AlicesWon\Food\DrinkMe.cs: CS0115: (line 8, c
olumn 28) 'Server.Items.DrinkMe.Type': no suitable method found to override
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
These two errors mean the same thing. When you use 'override', it means it's trying to make something from the parent class equal something else. So if you wanted to do 'override int Bonus' and your parent class is Item, 'Item' would have to have a variable called 'Bonus' for you to override. Since you can't (dont want to actually) edit Item class, you don't want to use 'override'.
Instead, you probably want to define the variable for your actual class...
Code:
public int Bonus{ get{ return 5; } }
public StatType Type{ get{ return StatType.Int; } }
(like Packer898's example)
This will define the variables for your DrinkMe class. If you are deriving things
from the DrinkMe class and want to be able to 'override' those values, you would do
Code:
public virtual int Bonus{ get{ return 5; } }
public virtual StatType Type{ get{ return StatType.Int; } }
(I believe, might be abstract instead of virtual)
This allows you to do something like this:
Code:
public class DrinkThis : DrinkMe
{
public override int Bonus{ get{ return 10; } }
public override StatType Type{ get{ return StatType.Str; } }
...
}