Go Back   RunUO - Ultima Online Emulation > RunUO > Server Support on Windows

Server Support on Windows Get (and give) support on general questions related to the RunUO server itself.

Reply
 
Thread Tools Display Modes
Old 11-19-2007, 10:27 PM   #1 (permalink)
Newbie
 
Join Date: Feb 2007
Age: 17
Posts: 40
Default Help with this quest

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;}}}
Thats the quest if you need the gump and the items that go with it just post it

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
Genocide_666 is offline   Reply With Quote
Old 11-20-2007, 02:37 AM   #2 (permalink)
Forum Expert
 
Join Date: Nov 2004
Posts: 1,656
Send a message via ICQ to Murzin Send a message via AIM to Murzin Send a message via MSN to Murzin
Default

what lines that you posted are lines# 42, 43, 44, 45, 54, 70

that cannot be the whole script.
Murzin is offline   Reply With Quote
Old 11-20-2007, 08:05 PM   #3 (permalink)
Newbie
 
Join Date: Feb 2007
Age: 17
Posts: 40
Default

Quote:
Originally Posted by Murzin View Post
what lines that you posted are lines# 42, 43, 44, 45, 54, 70

that cannot be the whole script.

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;
This is 70
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;}}}
I used "Ilutzio's Questmaker 1.1" if there is any other questmaker please let me know I dont believe this one works or can you give a quick tutorial about how to make a quest
__________________
[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.
Genocide_666 is offline   Reply With Quote
Old 11-21-2007, 12:09 AM   #4 (permalink)
Forum Expert
 
Hammerhand's Avatar
 
Join Date: Jan 2006
Location: Look behind you....
Age: 44
Posts: 1,356
Default

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 ));}}}}
But I can tell you right now, to be able to effectively help you, we need to be able to see the script, not just pieces of it. Things like line42 or whatever dont help much when the error in that line could be caused by something on the previous one. Or a misplaced ;
__________________
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.
Hammerhand is offline   Reply With Quote
Old 11-21-2007, 12:33 AM   #5 (permalink)
Forum Expert
 
Join Date: Nov 2004
Posts: 1,656
Send a message via ICQ to Murzin Send a message via AIM to Murzin Send a message via MSN to Murzin
Default

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.
Murzin is offline   Reply With Quote
Old 11-21-2007, 01:27 AM   #6 (permalink)
Forum Expert
 
Hammerhand's Avatar
 
Join Date: Jan 2006
Location: Look behind you....
Age: 44
Posts: 1,356
Default

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.
Hammerhand is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5