TheDoc
Member
I'm trying to add a [fill command that calls Fill(Mobile m) for the Master Storage Key. Can someone point me to the right way to reference the mobile in this command. I have never worked much with commands and keep getting "an object reference is required for the non-static... "
This is what I have...
This is the method I am trying to make the command call...
Thanks
This is what I have...
Code:
public class Fill
{
public static void Initialize()
{
CommandSystem.Register("fill",AccessLevel.Player,new CommandEventHandler(Fill_Callback));
}
[Usage("fill")]
[Description("Call fill method")]
public static void Fill_Callback(CommandEventArgs e)
{
// reference
MasterItemStoreKey.Fill(pm);
} }
This is the method I am trying to make the command call...
Code:
//these are accessed through the context menu use
public void Fill( Mobile from )
{
if( _KeyTypes == null )
{
return;
}
FillEntriesFromBackpack( from );
}
Thanks