- ServUO Version
- Publish 57
- Ultima Expansion
- Time Of Legends
C#:
if (from.FindBuffIndex(BuffIcon.Cunning) != -1)
{
from.SendMessage("Cannot drnk more Cerebral Beer, you are already under it's effects.");
}
The arror I am getting is
+ CUSTOM SCRIPTS PnP/Witchery/Drink/CerebralBeer2.cs:
CS1061: Line 26: 'Mobile' does not contain a definition for 'FindBuffIndex' and no accessible extension method 'FindBuffIndex' accepting a first argument of type 'Mobile' could be found (are you missing a using directive or an assembly reference?)
I cannot think of any scripts off hand that check for a buff icon before doing something. I do not mind looking at one to see how to implement it. Any help with solving this or letting me know of a distro script I can look at would be greatly appreciated!