|
||
|
|||||||
| Server Support on Windows Get (and give) support on general questions related to the RunUO server itself. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Newbie
Join Date: Feb 2007
Age: 17
Posts: 40
|
Ok im having problems with this i used Questmaker 1.1 heres the quest if you need all the other items tell me
Code:
///////////name
Name = "Trinity";
///////////title
Title = "The Keeper of Keys";
///////////sex. 0x191 is female, 0x190 is male.
Body = 0x191;
///////////skincolor
Hue = Utility.RandomSkinHue();
///////////Random hair and haircolor
Utility.AssignRandomHair( this );
///////////clothing and hues
AddItem( new Server.Items.Doublet( Utility.RandomRedHue() ) );
AddItem( new Server.Items.Skirt( Utility.RandomRedHue() ) );
AddItem( new Server.Items.Shoes( Utility.RandomRedHue() ) );
///////////immortal and frozen to-the-spot features below:
Blessed = true;
CantWalk = true;
///////////Adding a backpack
Container pack = new Backpack();
pack.DropItem( new Gold( 2500, 3000 ) );
pack.Movable = false;
AddItem( pack );
}
public Trinity( Serial serial ) : base( serial ){}
public override void GetContextMenuEntries( Mobile from, List<ContextMenuEntry> list )
{ base.GetContextMenuEntries( from, list ); list.Add( new TrinityEntry( from, this ) ); }
public override void Serialize( GenericWriter writer ){base.Serialize( writer );writer.Write( (int) 0 );}
public override void Deserialize( GenericReader reader ){base.Deserialize( reader );int version = reader.ReadInt();}
public class TrinityEntry : ContextMenuEntry{private Mobile m_Mobile;private Mobile m_Giver;
public TrinityEntry( Mobile from, Mobile giver ) : base( 6146, 3 ){m_Mobile = from;m_Giver = giver;}
public override void OnClick(){if( !( m_Mobile is PlayerMobile ) )return;
PlayerMobile mobile = (PlayerMobile) m_Mobile;{
///////////gump name
if ( ! mobile.HasGump( typeof( ) ) ){
mobile.SendGump( new ( mobile ));}}}}
public override bool OnDragDrop( Mobile from, Item dropped ){ Mobile m = from;PlayerMobile mobile = m as PlayerMobile;
if ( mobile != null){
///////////item to be dropped
if( dropped is ){if(dropped.Amount!=1)
{this.PrivateOverheadMessage( MessageType.Regular, 1153, false, "There's not the right amount here!", mobile.NetState );return false;}
dropped.Delete();
///////////the reward
mobile.AddToBackpack( new Gold( 2000 ) );
mobile.AddToBackpack( new gatekey( ) );
///////////thanks message
this.PrivateOverheadMessage( MessageType.Regular, 1153, false, "Heed this warning with this key you will be released to hells asylum", mobile.NetState );
return true;}else if ( dropped is Whip){this.PrivateOverheadMessage( MessageType.Regular, 1153, 1054071, mobile.NetState );return false;}else{this.PrivateOverheadMessage( MessageType.Regular, 1153, false,"I have no need for this...", mobile.NetState );}}return false;}}}
THE ERRORS Code:
RunUO - [www.runuo.com] Version 1.0.0, Build 36918
Scripts: Compiling C# scripts...failed (14 errors, 0 warnings)
- Error: ScriptsCustomAsylum questHells AsylumQuest.cs: CS1001: (line 42, co
lumn 62) Identifier expected
- Error: ScriptsCustomAsylum questHells AsylumQuest.cs: CS1519: (line 42, co
lumn 79) Invalid token '>' in class, struct, or interface member declaration
- Error: ScriptsCustomAsylum questHells AsylumQuest.cs: CS1519: (line 42, co
lumn 86) Invalid token ')' in class, struct, or interface member declaration
- Error: ScriptsCustomAsylum questHells AsylumQuest.cs: CS1520: (line 43, co
lumn 8) Class, struct, or interface method must have a return type
- Error: ScriptsCustomAsylum questHells AsylumQuest.cs: CS1001: (line 43, co
lumn 35) Identifier expected
- Error: ScriptsCustomAsylum questHells AsylumQuest.cs: CS1001: (line 43, co
lumn 42) Identifier expected
- Error: ScriptsCustomAsylum questHells AsylumQuest.cs: CS1519: (line 43, co
lumn 53) Invalid token '(' in class, struct, or interface member declaration
- Error: ScriptsCustomAsylum questHells AsylumQuest.cs: CS1520: (line 43, co
lumn 59) Class, struct, or interface method must have a return type
- Error: ScriptsCustomAsylum questHells AsylumQuest.cs: CS1001: (line 43, co
lumn 77) Identifier expected
- Error: ScriptsCustomAsylum questHells AsylumQuest.cs: CS1031: (line 43, co
lumn 79) Type expected
- Error: ScriptsCustomAsylum questHells AsylumQuest.cs: CS1518: (line 44, co
lumn 17) Expected class, delegate, enum, interface, or struct
- Error: ScriptsCustomAsylum questHells AsylumQuest.cs: CS1518: (line 45, co
lumn 17) Expected class, delegate, enum, interface, or struct
- Error: ScriptsCustomAsylum questHells AsylumQuest.cs: CS1518: (line 54, co
lumn 17) Expected class, delegate, enum, interface, or struct
- Error: ScriptsCustomAsylum questHells AsylumQuest.cs: CS1022: (line 70, co
lumn 270) Type or namespace definition, or end-of-file expected
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
__________________
[6:34]Nick says: I am gonna be the next Hitler [6:34]Nick says: I am gonna kill all the Jews and 1 clown [6:35]Genocide says: WTF why the clown? [6:35]Nick says: See no one cares about the Jews Last edited by Genocide_666; 11-19-2007 at 10:28 PM. Reason: forgot errors |
|
|
|
|
|
#3 (permalink) | |
|
Newbie
Join Date: Feb 2007
Age: 17
Posts: 40
|
Quote:
THIS IS 42-54 Code:
public override void GetContextMenuEntries( Mobile from, List<ContextMenuEntry> list )
{ base.GetContextMenuEntries( from, list ); list.Add( new TrinityEntry( from, this ) ); }
public override void Serialize( GenericWriter writer ){base.Serialize( writer );writer.Write( (int) 0 );}
public override void Deserialize( GenericReader reader ){base.Deserialize( reader );int version = reader.ReadInt();}
public class TrinityEntry : ContextMenuEntry{private Mobile m_Mobile;private Mobile m_Giver;
public TrinityEntry( Mobile from, Mobile giver ) : base( 6146, 3 ){m_Mobile = from;m_Giver = giver;}
public override void OnClick(){if( !( m_Mobile is PlayerMobile ) )return;
PlayerMobile mobile = (PlayerMobile) m_Mobile;{
///////////gump name
if ( ! mobile.HasGump( typeof( ) ) ){
mobile.SendGump( new ( mobile ));}}}}
public override bool OnDragDrop( Mobile from, Item dropped ){ Mobile m = from;PlayerMobile mobile = m as PlayerMobile;
Code:
return true;}else if ( dropped is Whip){this.PrivateOverheadMessage( MessageType.Regular, 1153, 1054071, mobile.NetState );return false;}else{this.PrivateOverheadMessage( MessageType.Regular, 1153, false,"I have no need for this...", mobile.NetState );}}return false;}}}
__________________
[6:34]Nick says: I am gonna be the next Hitler [6:34]Nick says: I am gonna kill all the Jews and 1 clown [6:35]Genocide says: WTF why the clown? [6:35]Nick says: See no one cares about the Jews Last edited by Genocide_666; 11-20-2007 at 08:07 PM. |
|
|
|
|
|
|
#4 (permalink) |
|
Forum Expert
Join Date: Jan 2006
Location: Look behind you....
Age: 44
Posts: 1,356
|
Part of the problem is right here. The questmaker fails to add in the gump name.
Code:
if ( ! mobile.HasGump( typeof(*******Gump ) ) ){
mobile.SendGump( new (********Gump mobile ));}}}}
__________________
May you have the strength of eagles' wings, the faith and courage to fly to new heights, and the wisdom of the universe to carry you there. |
|
|
|
|
|
#5 (permalink) |
|
Forum Expert
|
i really hate it when i have an error on like line 37 and the compiler says my error is on 52...
makes me wish they could get a compiler that works right!!! but then the more advanced techniques you use, the harder it is for the compiler to know where exactly the error is. |
|
|
|
|
|
#6 (permalink) |
|
Forum Expert
Join Date: Jan 2006
Location: Look behind you....
Age: 44
Posts: 1,356
|
I agree.. and then its usually a forgotten { } or ; somewhere in between the 2 problems. Or worse yet, forgetting the final } at the end of the whole mess. lol
__________________
May you have the strength of eagles' wings, the faith and courage to fly to new heights, and the wisdom of the universe to carry you there. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|