|
||
|
|||||||
| Modification Suggestions This is where you can suggest a modifcation to RunUO! |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Newbie
|
I would like to see this function virtual by default in \Items\Addons\BaseAddon.cs:
public virtual void OnChop( Mobile from ) There are a lot of Addons that might have a function or something like this and are not always allowed to be redeeded. This would allow more control about the redeed process without any modifications in BaseAddon.cs (and I think the less you have to change for a custom script, the less mistakes people make, who also want to use this script). Example, what gives an error with current BaseAddon.cs, but works with the virtual method: Code:
public class UltimateMachine: BaseAddon
{
[...]
public override void OnChop(Mobile from)
{
if (m_Public)
from.LocalOverheadMessage(MessageType.Regular, 0x33, false, NotYourOwnMessage);
else
base.OnChop(from);
}
[...]
}
Last edited by Brutus5000; 12-01-2006 at 01:11 PM. |
|
|
|
|
|
#6 (permalink) | |
|
Master of the Internet
Join Date: Oct 2005
Age: 45
Posts: 6,283
|
Which is exactly why I answered with this:
Quote:
|
|
|
|
|
|
|
#7 (permalink) |
|
Newbie
|
Sorry i misunderstood (english is not my native language). What I posted is an example of a custom script that might use it. You are right it's easy to make it virtual myself but:
A lot of people release their scripts and say copy this files to your folder an override existing files. This makes trouble if you mix up several custom scripts. That's the reason why I would like to see the BaseAddon-OnChop function virtual in the release code of RunUO. As you agree it's not a big thing. You make it on your own, but it just one word, so why don't put it into the svn? Hope you understand why i created this topic ![]() Maybe it's a crappy idea. So far you can delete this thread. Whatever. |
|
|
|
|
|
#8 (permalink) | ||
|
Forum Expert
|
Quote:
Quote:
|
||
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|