Krystyl_Rose
Wanderer
Same Parameter Types Error
I never fail to amaze myself with the new errors I can manage to get the console to give me... LOL
Ok here is what I am doing... I havent been able to find a fully working ethereal deed script so I am making my own (or attempting to anyway) I have managed to get the deed itself squared away, but the gump is giving me errors... first it was telling me that it expected an end of file, but I have managed to fix that (I think), now it is giving me this error instead:
and heres what I have right now for the script
what am I doing wrong? I have compared it to other scripts (granted the other scripts arent for the same thing so a good comparison is hard to do, but I WAS trying)
I never fail to amaze myself with the new errors I can manage to get the console to give me... LOL
Ok here is what I am doing... I havent been able to find a fully working ethereal deed script so I am making my own (or attempting to anyway) I have managed to get the deed itself squared away, but the gump is giving me errors... first it was telling me that it expected an end of file, but I have managed to fix that (I think), now it is giving me this error instead:
Code:
RunUO - [www.runuo.com] Version 1.0.0, Build 36918
Scripts: Compiling C# scripts...failed (1 errors, 0 warnings)
- Error: Scripts\Customs\MountDeed\EtherealDeed.cs: CS0111: (line 17, column 4)
Class 'Server.Items.EtherealMountDeed' already defines a member called 'Etherea
lMountDeed' with the same parameter types
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
and heres what I have right now for the script
Code:
using System;
using System.Net;
using Server;
using Server.Accounting;
using Server.Gumps;
using Server.Items;
using Server.Mobiles;
using Server.Network;
namespace Server.Gumps
{
public class EtherealMountGump : Gump
{
private Mobile m_Mobile;
private Item m_Deed;
public EtherealMountGump( Mobile from, Item deed ) : base( 30, 20 )
{
m_Mobile = from;
m_Deed = deed;
AddPage( 1 );
AddBackground( 0, 0, 300, 400, 5054 );
AddBackground( 8, 8, 284, 384, 3000 );
AddLabel( 40, 12, 0, "Ethereal List" );
Account a = from.Account as Account;
AddLabel( 52, 40, 0, "Ethereal Horse" );
AddButton( 12, 40, 4005, 4007, 1, GumpButtonType.Reply, 1 );
AddLabel( 52, 60, 0, "Ethereal Llama" );
AddButton( 12, 60, 4005, 4007, 2, GumpButtonType.Reply, 2 );
AddLabel( 52, 80, 0, "Etheral Ostard" );
AddButton( 12, 80, 4005, 4007, 3, GumpButtonType.Reply, 3 );
AddLabel( 52, 340, 0, "Etheral Ridgeback" );
AddButton( 12, 100, 4005, 4007, 4, GumpButtonType.Reply, 4 );
AddLabel( 52, 120, 0, "Ethereal Unicorn" );
AddButton( 12, 120, 4005, 4007, 5, GumpButtonType.Reply, 5 );
AddLabel( 52, 140, 0, "Ethereal Beetle" );
AddButton( 12, 140, 4005, 4007, 6, GumpButtonType.Reply, 6 );
AddLabel( 52, 160, 0, "Ethereal Ki-Rin" );
AddButton( 12, 160, 4005, 4007, 7, GumpButtonType.Reply, 7 );
AddLabel( 52, 180, 0, "Ethereal Swamp Dragon" );
AddButton( 12, 180, 4005, 4007, 8, GumpButtonType.Reply, 8 );
AddLabel( 52, 200, 0, "Ethereal Hiryu" );
AddButton( 12, 200, 4005, 4007, 9, GumpButtonType.Reply, 9 );
AddLabel( 52, 220, 0, "Close" );
AddButton( 12, 220, 4005, 4007, 0, GumpButtonType.Reply, 0 );
}
public override void OnResponse( NetState state, RelayInfo info )
{
Mobile from = state.Mobile;
switch ( info.ButtonID )
{
case 0: //Close Gump
{
from.CloseGump( typeof( EtherealMountGump ) );
break;
}
case 1: // Ethereal Horse
{
Item item = new EtherealHorse();
from.SendMessage( "An Ethereal Horse has been placed into your backpack." );
item.LootType = LootType.Blessed;
from.AddToBackpack( item );
m_Deed.Delete();
goto case 0;
}
case 2: // Ethereal Llama
{
Item item = new EtherealLlama();
from.SendMessage( "An Ethereal Llama has been placed into your backpack." );
item.LootType = LootType.Blessed;
from.AddToBackpack( item );
m_Deed.Delete();
goto case 0;
}
case 3: // Ethereal Ostard
{
Item item = new EtherealOstard();
from.SendMessage( "An Ethereal Ostard has been placed into your backpack." );
item.LootType = LootType.Blessed;
from.AddToBackpack( item );
m_Deed.Delete();
goto case 0;
}
case 4: // Ethereal Ridgeback
{
Item item = new EtherealRidgeback();
from.SendMessage( "An Ethereal Ridgeback has been placed into your backpack." );
item.LootType = LootType.Blessed;
from.AddToBackpack( item );
m_Deed.Delete();
goto case 0;
}
case 5: // Ethereal Unicorn
{
Item item = new EtherealUnicorn();
from.SendMessage( "An Ethereal Unicorn has been placed into your backpack." );
item.LootType = LootType.Blessed;
from.AddToBackpack( item );
m_Deed.Delete();
goto case 0;
}
case 6: //Ethereal Beetle
{
Item item = new EtherealBeetle();
from.SendMessage( "An Ethereal Beetle has been placed into your backpack." );
item.LootType = LootType.Blessed;
from.AddToBackpack( item );
m_Deed.Delete();
goto case 0;
}
case 7: //Ethereal Ki-Rin
{
Item item = new EtherealKirin();
from.SendMessage( "An Ethereal Ki-Rin has been placed into your backpack." );
item.LootType = LootType.Blessed;
from.AddToBackpack( item );
m_Deed.Delete();
goto case 0;
}
case 8: //Ethereal Swamp Dragon
{
Item item = new EtherealSwampDragon();
from.SendMessage( "An Ethereal Swamp Dragon has been placed into your backpack." );
item.LootType = LootType.Blessed;
from.AddToBackpack( item );
m_Deed.Delete();
goto case 0;
}
case 9: //Ethereal Hiryu
{
Item item = new EtherealHiryu();
from.SendMessage( "An Ethereal Hiryu has been placed into your backpack." );
item.LootType = LootType.Blessed;
from.AddToBackpack( item );
m_Deed.Delete();
goto case 0;
}
}
}
}
}
what am I doing wrong? I have compared it to other scripts (granted the other scripts arent for the same thing so a good comparison is hard to do, but I WAS trying)