OP
Xeno
ServUO Version
Publish 57
Ultima Expansion
Time Of Legends
I am trying to make a drink to see what kind of uses it may be able to have aside from just getting drunk. I am getting this error.

Errors:
+ CUSTOM SCRIPTS PnP/Witchery/Drink/IntelDrink.cs:
CS0115: Line 20: 'IntelDrink.Drink(Mobile)': no suitable method found to override
Scripts: One or more scripts failed to compile or no script files were found.

This is the part it doesn't like, first line is line 20
C#:
public override void Drink(Mobile from)
{
    if (from.Int < 125)
    {
        from.SendMessage("You feel smarter!");
        from.Int += 15;
        from.Dex -= 5;
        from.BAC = 60; // Makes the player drunk
    }
    else
    {
        from.SendMessage("You are already at your intelligence limit.");
    }

    base.Drink(from);
}

Any suggestions?
 
Not specifically unless I need it to be. The drinks were hard to follow because they are mostly all in Beverages.cs and I only found MurkyMilk and Wine to go off of and they were not much help. I am very much in the learning stage. I know enough to have a feel for it but also to really fubar it lol.
 

Attachments

  • IntelDrink.cs
    1.3 KB · Views: 3
You dont have to, but BasePotion has Drink, BaseBeverage does not.
so change Drink to OnDoubleClick and you should be fine.

well some more checks if you can drink and all but yea then he will drink at least :)
 
Thank you! It worked great except for the drunk part, I may have to tweak that or something. It added the intel and removed the dex but I never got drunk lol

There have been some oversites. I do not have a timer in there so it is indefinite as well as the bottle is never ending. This has been more difficult than I thought it would be lol
 
Last edited:
Back