Overwrite

Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
Unstable Kitsune
2023-11-28 23:20:26 -05:00
parent 3cd54811de
commit b918192e4e
11608 changed files with 2644205 additions and 47 deletions

View File

@@ -0,0 +1,95 @@
using System;
using Server;
using Server.Gumps;
using Server.Network;
using Server.Items;
using Server.Mobiles;
using Server.Commands;
namespace Server.Gumps
{
public class ElementQuestGump : Gump
{
public static void Initialize()
{
CommandSystem.Register("ElementQuestGump", AccessLevel.GameMaster, new CommandEventHandler(ElementQuestGump_OnCommand));
}
private static void ElementQuestGump_OnCommand(CommandEventArgs e)
{
e.Mobile.SendGump(new ElementQuestGump(e.Mobile));
}
public ElementQuestGump(Mobile owner)
: base(50, 50)
{
//----------------------------------------------------------------------------------------------------
AddPage(0);
AddImageTiled(54, 33, 369, 400, 2624);
AddAlphaRegion(54, 33, 369, 400);
AddImageTiled(416, 39, 44, 389, 203);
//--------------------------------------Window size bar--------------------------------------------
AddImage(97, 49, 9005);
AddImageTiled(58, 39, 29, 390, 10460);
AddImageTiled(412, 37, 31, 389, 10460);
AddLabel(140, 60, 0x34, "Four Elements's Quest");
AddHtml(107, 140, 300, 230, "<BODY>" +
//----------------------/----------------------------------------------/
"<BASEFONT COLOR=ORANGE><I>Oracle look at you fixedly while you approach.</I><BR><BR>" +
"<BASEFONT COLOR=ORANGE>Hello young adventurer ! I need help ! *pensive*<BR><BR>" +
"<BASEFONT COLOR=ORANGE>I made a stupid bet ! The Gods challenge me to find an adventurer capable to give me the four Elements which I need.<BR><BR>" +
"<BASEFONT COLOR=ORANGE>Are you the one who will deserve such a task ?. Each let me an enigma to resolve.<BR><BR>" +
"<BASEFONT COLOR=ORANGE>You must find so the solution of each of these enigma. You must go to visit each God to say his name followed by the solution.<BR><BR>" +
"<BASEFONT COLOR=ORANGE>He will give you then one of the Elements that you should bring me back.<BR><BR>" +
"<BASEFONT COLOR=ORANGE>If you manage to obtain me four Elements I shall know how to reward you !<BR><BR>" +
"<BASEFONT COLOR=ORANGE>Here is so the first enigma.<BR><BR>" +
"<BASEFONT COLOR=ORANGE><I>Without wing I fly.</I><BR><BR>" +
"<BASEFONT COLOR=ORANGE><I>Without voice I scream.</I><BR><BR>" +
"<BASEFONT COLOR=ORANGE><I>Without eyes I see.</I><BR><BR>" +
"<BASEFONT COLOR=ORANGE><I>Who am I ?</I><BR><BR>" +
"<BASEFONT COLOR=ORANGE>Visit Hephaistos the God of the Fire, he is somewhere on the ile of Lava and Chaos.<BR><BR>" +
"<BASEFONT COLOR=ORANGE>Go my friend, give he first answer and return for give me the Element of the Fire !<BR><BR>" +
"</BODY>", false, true);
AddImage(430, 9, 10441);
AddImageTiled(40, 38, 17, 391, 9263);
AddImage(6, 25, 10421);
AddImage(34, 12, 10420);
AddImageTiled(94, 25, 342, 15, 10304);
AddImageTiled(40, 427, 415, 16, 10304);
AddImage(-10, 314, 10402);
AddImage(56, 150, 10411);
AddImage(155, 120, 2103);
AddImage(136, 84, 96);
AddButton(225, 390, 0xF7, 0xF8, 0, GumpButtonType.Reply, 0);
//--------------------------------------------------------------------------------------------------------------
}
public override void OnResponse(NetState state, RelayInfo info) //Function for GumpButtonType.Reply Buttons
{
Mobile from = state.Mobile;
switch (info.ButtonID)
{
case 0: //Case uses the ActionIDs defenied above. Case 0 defenies the actions for the button with the action id 0
{
break;
}
}
}
}
}

View File

@@ -0,0 +1,94 @@
using System;
using Server;
using Server.Gumps;
using Server.Network;
using Server.Items;
using Server.Mobiles;
namespace Server.Gumps
{
public class ElementQuestGump : Gump
{
public static void Initialize()
{
Commands.Register("ElementQuestGump", AccessLevel.GameMaster, new CommandEventHandler(ElementQuestGump_OnCommand));
}
private static void ElementQuestGump_OnCommand(CommandEventArgs e)
{
e.Mobile.SendGump(new ElementQuestGump(e.Mobile));
}
public ElementQuestGump(Mobile owner)
: base(50, 50)
{
//----------------------------------------------------------------------------------------------------
AddPage(0);
AddImageTiled(54, 33, 369, 400, 2624);
AddAlphaRegion(54, 33, 369, 400);
AddImageTiled(416, 39, 44, 389, 203);
//--------------------------------------Window size bar--------------------------------------------
AddImage(97, 49, 9005);
AddImageTiled(58, 39, 29, 390, 10460);
AddImageTiled(412, 37, 31, 389, 10460);
AddLabel(140, 60, 0x34, "Four Elements's Quest");
AddHtml(107, 140, 300, 230, "<BODY>" +
//----------------------/----------------------------------------------/
"<BASEFONT COLOR=ORANGE><I>Oracle look at you fixedly while you approach.</I><BR><BR>" +
"<BASEFONT COLOR=ORANGE>Hello young adventurer ! I need help ! *pensive*<BR><BR>" +
"<BASEFONT COLOR=ORANGE>I made a stupid bet ! The Gods challenge me to find an adventurer capable to give me the four Elements which I need.<BR><BR>" +
"<BASEFONT COLOR=ORANGE>Are you the one who will deserve such a task ?. Each let me an enigma to resolve.<BR><BR>" +
"<BASEFONT COLOR=ORANGE>You must find so the solution of each of these enigma. You must go to visit each God to say his name followed by the solution.<BR><BR>" +
"<BASEFONT COLOR=ORANGE>He will give you then one of the Elements that you should bring me back.<BR><BR>" +
"<BASEFONT COLOR=ORANGE>If you manage to obtain me four Elements I shall know how to reward you !<BR><BR>" +
"<BASEFONT COLOR=ORANGE>Here is so the first enigma.<BR><BR>" +
"<BASEFONT COLOR=ORANGE><I>Without wing I fly.</I><BR><BR>" +
"<BASEFONT COLOR=ORANGE><I>Without voice I scream.</I><BR><BR>" +
"<BASEFONT COLOR=ORANGE><I>Without eyes I see.</I><BR><BR>" +
"<BASEFONT COLOR=ORANGE><I>Who am I ?</I><BR><BR>" +
"<BASEFONT COLOR=ORANGE>Visit Hephaistos the God of the Fire, he is somewhere on the ile of Avatar.<BR><BR>" +
"<BASEFONT COLOR=ORANGE>Go my friend, give he first answer and return for give me the Element of the Fire !<BR><BR>" +
"</BODY>", false, true);
AddImage(430, 9, 10441);
AddImageTiled(40, 38, 17, 391, 9263);
AddImage(6, 25, 10421);
AddImage(34, 12, 10420);
AddImageTiled(94, 25, 342, 15, 10304);
AddImageTiled(40, 427, 415, 16, 10304);
AddImage(-10, 314, 10402);
AddImage(56, 150, 10411);
AddImage(155, 120, 2103);
AddImage(136, 84, 96);
AddButton(225, 390, 0xF7, 0xF8, 0, GumpButtonType.Reply, 0);
//--------------------------------------------------------------------------------------------------------------
}
public override void OnResponse(NetState state, RelayInfo info) //Function for GumpButtonType.Reply Buttons
{
Mobile from = state.Mobile;
switch (info.ButtonID)
{
case 0: //Case uses the ActionIDs defenied above. Case 0 defenies the actions for the button with the action id 0
{
break;
}
}
}
}
}

View File

@@ -0,0 +1,81 @@
using System;
using Server;
using Server.Gumps;
using Server.Network;
using Server.Items;
using Server.Mobiles;
using Server.Commands;
namespace Server.Gumps
{
public class ElementQuestGump1 : Gump
{
public static void Initialize()
{
CommandSystem.Register("ElementQuestGump1", AccessLevel.GameMaster, new CommandEventHandler(ElementQuestGump1_OnCommand));
}
private static void ElementQuestGump1_OnCommand(CommandEventArgs e)
{
e.Mobile.SendGump(new ElementQuestGump1(e.Mobile));
}
public ElementQuestGump1(Mobile owner)
: base(50, 50)
{
//----------------------------------------------------------------------------------------------------
AddPage(0);
AddImageTiled(54, 33, 369, 400, 2624);
AddAlphaRegion(54, 33, 369, 400);
AddImageTiled(416, 39, 44, 389, 203);
//--------------------------------------Window size bar--------------------------------------------
AddImage(97, 49, 9005);
AddImageTiled(58, 39, 29, 390, 10460);
AddImageTiled(412, 37, 31, 389, 10460);
AddLabel(140, 60, 0x34, "Four Elements's Quest");
AddHtml(107, 140, 300, 230, "<BODY>" +
//----------------------/----------------------------------------------/
"<BASEFONT COLOR=ORANGE>What ? You managed to decipher my enigma !<BR><BR>" +
"<BASEFONT COLOR=ORANGE>I congratulate you young adventurer ! Well little found the answer of it ! *smiles*<BR><BR>" +
"<BASEFONT COLOR=ORANGE>Now take this phial and bring it to the Oracle which needs it.<BR><BR>" +
"<BASEFONT COLOR=ORANGE><I>The God give you Element of Fire.</I> You must Hurry, the time is counted !<BR><BR>" +
"</BODY>", false, true);
AddImage(430, 9, 10441);
AddImageTiled(40, 38, 17, 391, 9263);
AddImage(6, 25, 10421);
AddImage(34, 12, 10420);
AddImageTiled(94, 25, 342, 15, 10304);
AddImageTiled(40, 427, 415, 16, 10304);
AddImage(-10, 314, 10402);
AddImage(56, 150, 10411);
AddImage(155, 120, 2103);
AddImage(136, 84, 96);
AddButton(225, 390, 0xF7, 0xF8, 0, GumpButtonType.Reply, 0);
//--------------------------------------------------------------------------------------------------------------
}
public override void OnResponse(NetState state, RelayInfo info) //Function for GumpButtonType.Reply Buttons
{
Mobile from = state.Mobile;
switch (info.ButtonID)
{
case 0: //Case uses the ActionIDs defenied above. Case 0 defenies the actions for the button with the action id 0
{
break;
}
}
}
}
}

View File

@@ -0,0 +1,85 @@
using System;
using Server;
using Server.Gumps;
using Server.Network;
using Server.Items;
using Server.Mobiles;
using Server.Commands;
namespace Server.Gumps
{
public class ElementQuestGump10 : Gump
{
public static void Initialize()
{
CommandSystem.Register("ElementQuestGump10", AccessLevel.GameMaster, new CommandEventHandler(ElementQuestGump10_OnCommand));
}
private static void ElementQuestGump10_OnCommand(CommandEventArgs e)
{
e.Mobile.SendGump(new ElementQuestGump10(e.Mobile));
}
public ElementQuestGump10(Mobile owner)
: base(50, 50)
{
//----------------------------------------------------------------------------------------------------
AddPage(0);
AddImageTiled(54, 33, 369, 400, 2624);
AddAlphaRegion(54, 33, 369, 400);
AddImageTiled(416, 39, 44, 389, 203);
//--------------------------------------Window size bar--------------------------------------------
AddImage(97, 49, 9005);
AddImageTiled(58, 39, 29, 390, 10460);
AddImageTiled(412, 37, 31, 389, 10460);
AddLabel(140, 60, 0x34, "Four Elements's Quest");
AddHtml(107, 140, 300, 230, "<BODY>" +
//----------------------/----------------------------------------------/
"<BASEFONT COLOR=ORANGE>Very good ! *smiles* You have as much perspicacity as courage !<BR><BR>" +
"<BASEFONT COLOR=ORANGE>As promises, here is a reward amply deserved.<BR><BR>" +
"<BASEFONT COLOR=ORANGE><I>The Pythie give him a Bracelet of Elements.</I><BR><BR>" +
"<BASEFONT COLOR=ORANGE>This will be for you a big help.<BR><BR>" +
"<BASEFONT COLOR=ORANGE>Goodbye young adventurer !<BR><BR>" +
"</BODY>", false, true);
AddImage(430, 9, 10441);
AddImageTiled(40, 38, 17, 391, 9263);
AddImage(6, 25, 10421);
AddImage(34, 12, 10420);
AddImageTiled(94, 25, 342, 15, 10304);
AddImageTiled(40, 427, 415, 16, 10304);
AddImage(-10, 314, 10402);
AddImage(56, 150, 10411);
AddImage(155, 120, 2103);
AddImage(136, 84, 96);
AddButton(225, 390, 0xF7, 0xF8, 0, GumpButtonType.Reply, 0);
//--------------------------------------------------------------------------------------------------------------
}
public override void OnResponse(NetState state, RelayInfo info) //Function for GumpButtonType.Reply Buttons
{
Mobile from = state.Mobile;
switch (info.ButtonID)
{
case 0: //Case uses the ActionIDs defenied above. Case 0 defenies the actions for the button with the action id 0
{
break;
}
}
}
}
}

View File

@@ -0,0 +1,84 @@
using System;
using Server;
using Server.Gumps;
using Server.Network;
using Server.Items;
using Server.Mobiles;
using Server.Commands;
namespace Server.Gumps
{
public class ElementQuestGump2 : Gump
{
public static void Initialize()
{
CommandSystem.Register("ElementQuestGump2", AccessLevel.GameMaster, new CommandEventHandler(ElementQuestGump2_OnCommand));
}
private static void ElementQuestGump2_OnCommand(CommandEventArgs e)
{
e.Mobile.SendGump(new ElementQuestGump2(e.Mobile));
}
public ElementQuestGump2(Mobile owner)
: base(50, 50)
{
//----------------------------------------------------------------------------------------------------
AddPage(0);
AddImageTiled(54, 33, 369, 400, 2624);
AddAlphaRegion(54, 33, 369, 400);
AddImageTiled(416, 39, 44, 389, 203);
//--------------------------------------Window size bar--------------------------------------------
AddImage(97, 49, 9005);
AddImageTiled(58, 39, 29, 390, 10460);
AddImageTiled(412, 37, 31, 389, 10460);
AddLabel(140, 60, 0x34, "Four Elements's Quest");
AddHtml(107, 140, 300, 230, "<BODY>" +
//----------------------/----------------------------------------------/
"<BASEFONT COLOR=ORANGE>What ? You succeeded ! I was sure of it !<BR><BR>" +
"<BASEFONT COLOR=ORANGE>Also, don't you stop now !<BR><BR>" +
"<BASEFONT COLOR=ORANGE>So Here is second Enigma.<BR><BR>" +
"<BASEFONT COLOR=ORANGE><I>As soon as one names me I don't exist any more.</I><BR><BR>" +
"<BASEFONT COLOR=ORANGE><I>Who am I ?.</I><BR><BR>" +
"<BASEFONT COLOR=ORANGE>You'll find Eole,the God of Winds somewhere in Wind.<BR><BR>" +
"<BASEFONT COLOR=ORANGE>You must go to see him, give him the answer and return me the Element of Air.<BR><BR>" +
"</BODY>", false, true);
AddImage(430, 9, 10441);
AddImageTiled(40, 38, 17, 391, 9263);
AddImage(6, 25, 10421);
AddImage(34, 12, 10420);
AddImageTiled(94, 25, 342, 15, 10304);
AddImageTiled(40, 427, 415, 16, 10304);
AddImage(-10, 314, 10402);
AddImage(56, 150, 10411);
AddImage(155, 120, 2103);
AddImage(136, 84, 96);
AddButton(225, 390, 0xF7, 0xF8, 0, GumpButtonType.Reply, 0);
//--------------------------------------------------------------------------------------------------------------
}
public override void OnResponse(NetState state, RelayInfo info) //Function for GumpButtonType.Reply Buttons
{
Mobile from = state.Mobile;
switch (info.ButtonID)
{
case 0: //Case uses the ActionIDs defenied above. Case 0 defenies the actions for the button with the action id 0
{
break;
}
}
}
}
}

View File

@@ -0,0 +1,82 @@
using System;
using Server;
using Server.Gumps;
using Server.Network;
using Server.Items;
using Server.Mobiles;
using Server.Commands;
namespace Server.Gumps
{
public class ElementQuestGump3 : Gump
{
public static void Initialize()
{
CommandSystem.Register("ElementQuestGump3", AccessLevel.GameMaster, new CommandEventHandler(ElementQuestGump3_OnCommand));
}
private static void ElementQuestGump3_OnCommand(CommandEventArgs e)
{
e.Mobile.SendGump(new ElementQuestGump3(e.Mobile));
}
public ElementQuestGump3(Mobile owner)
: base(50, 50)
{
//----------------------------------------------------------------------------------------------------
AddPage(0);
AddImageTiled(54, 33, 369, 400, 2624);
AddAlphaRegion(54, 33, 369, 400);
AddImageTiled(416, 39, 44, 389, 203);
//--------------------------------------Window size bar--------------------------------------------
AddImage(97, 49, 9005);
AddImageTiled(58, 39, 29, 390, 10460);
AddImageTiled(412, 37, 31, 389, 10460);
AddLabel(140, 60, 0x34, "Four Elements's Quest");
AddHtml(107, 140, 300, 230, "<BODY>" +
//----------------------/----------------------------------------------/
"<BASEFONT COLOR=ORANGE>What ? You managed to decipher my enigma !<BR><BR>" +
"<BASEFONT COLOR=ORANGE>I congratulate you young adventurer ! Well little found the answer of it ! *smiles*<BR><BR>" +
"<BASEFONT COLOR=ORANGE>Now take this phial and bring it to the Oracle which needs it.<BR><BR>" +
"<BASEFONT COLOR=ORANGE><I>The God give you Element of Air.</I> You must Hurry, the time is counted !<BR><BR>" +
"</BODY>", false, true);
AddImage(430, 9, 10441);
AddImageTiled(40, 38, 17, 391, 9263);
AddImage(6, 25, 10421);
AddImage(34, 12, 10420);
AddImageTiled(94, 25, 342, 15, 10304);
AddImageTiled(40, 427, 415, 16, 10304);
AddImage(-10, 314, 10402);
AddImage(56, 150, 10411);
AddImage(155, 120, 2103);
AddImage(136, 84, 96);
AddButton(225, 390, 0xF7, 0xF8, 0, GumpButtonType.Reply, 0);
//--------------------------------------------------------------------------------------------------------------
}
public override void OnResponse(NetState state, RelayInfo info) //Function for GumpButtonType.Reply Buttons
{
Mobile from = state.Mobile;
switch (info.ButtonID)
{
case 0: //Case uses the ActionIDs defenied above. Case 0 defenies the actions for the button with the action id 0
{
break;
}
}
}
}
}

View File

@@ -0,0 +1,88 @@
using System;
using Server;
using Server.Gumps;
using Server.Network;
using Server.Items;
using Server.Mobiles;
using Server.Commands;
namespace Server.Gumps
{
public class ElementQuestGump4 : Gump
{
public static void Initialize()
{
CommandSystem.Register("ElementQuestGump4", AccessLevel.GameMaster, new CommandEventHandler(ElementQuestGump4_OnCommand));
}
private static void ElementQuestGump4_OnCommand(CommandEventArgs e)
{
e.Mobile.SendGump(new ElementQuestGump4(e.Mobile));
}
public ElementQuestGump4(Mobile owner)
: base(50, 50)
{
//----------------------------------------------------------------------------------------------------
AddPage(0);
AddImageTiled(54, 33, 369, 400, 2624);
AddAlphaRegion(54, 33, 369, 400);
AddImageTiled(416, 39, 44, 389, 203);
//--------------------------------------Window size bar--------------------------------------------
AddImage(97, 49, 9005);
AddImageTiled(58, 39, 29, 390, 10460);
AddImageTiled(412, 37, 31, 389, 10460);
AddLabel(140, 60, 0x34, "Four Elements's Quest");
AddHtml(107, 140, 300, 230, "<BODY>" +
//----------------------/----------------------------------------------/
"<BASEFONT COLOR=ORANGE>What ? You succeeded ! I was sure of it !<BR><BR>" +
"<BASEFONT COLOR=ORANGE>Also, don't stop you here !<BR><BR>" +
"<BASEFONT COLOR=ORANGE>Here is third Enigma.<BR><BR>" +
"<BASEFONT COLOR=ORANGE><I>Sometimes I am strong.</I><BR><BR>" +
"<BASEFONT COLOR=ORANGE><I>Sometimes I am weak.</I><BR><BR>" +
"<BASEFONT COLOR=ORANGE><I>I speak about all the languages.</I><BR><BR>" +
"<BASEFONT COLOR=ORANGE><I>Without never having them learnt.</I><BR><BR>" +
"<BASEFONT COLOR=ORANGE><I>Who am I ?</I><BR><BR>" +
"<BASEFONT COLOR=ORANGE>You'll find Pos<6F>idon,the God of Seas somewhere along coast toward the temple of the Justice.<BR><BR>" +
"<BASEFONT COLOR=ORANGE>You must Go to see him, give him the answer and return me the Element of Water.<BR><BR>" +
"</BODY>", false, true);
AddImage(430, 9, 10441);
AddImageTiled(40, 38, 17, 391, 9263);
AddImage(6, 25, 10421);
AddImage(34, 12, 10420);
AddImageTiled(94, 25, 342, 15, 10304);
AddImageTiled(40, 427, 415, 16, 10304);
AddImage(-10, 314, 10402);
AddImage(56, 150, 10411);
AddImage(155, 120, 2103);
AddImage(136, 84, 96);
AddButton(225, 390, 0xF7, 0xF8, 0, GumpButtonType.Reply, 0);
//--------------------------------------------------------------------------------------------------------------
}
public override void OnResponse(NetState state, RelayInfo info) //Function for GumpButtonType.Reply Buttons
{
Mobile from = state.Mobile;
switch (info.ButtonID)
{
case 0: //Case uses the ActionIDs defenied above. Case 0 defenies the actions for the button with the action id 0
{
break;
}
}
}
}
}

View File

@@ -0,0 +1,81 @@
using System;
using Server;
using Server.Gumps;
using Server.Network;
using Server.Items;
using Server.Mobiles;
using Server.Commands;
namespace Server.Gumps
{
public class ElementQuestGump5 : Gump
{
public static void Initialize()
{
CommandSystem.Register("ElementQuestGump5", AccessLevel.GameMaster, new CommandEventHandler(ElementQuestGump5_OnCommand));
}
private static void ElementQuestGump5_OnCommand(CommandEventArgs e)
{
e.Mobile.SendGump(new ElementQuestGump5(e.Mobile));
}
public ElementQuestGump5(Mobile owner)
: base(50, 50)
{
//----------------------------------------------------------------------------------------------------
AddPage(0);
AddImageTiled(54, 33, 369, 400, 2624);
AddAlphaRegion(54, 33, 369, 400);
AddImageTiled(416, 39, 44, 389, 203);
//--------------------------------------Window size bar--------------------------------------------
AddImage(97, 49, 9005);
AddImageTiled(58, 39, 29, 390, 10460);
AddImageTiled(412, 37, 31, 389, 10460);
AddLabel(140, 60, 0x34, "Four Elements's Quest");
AddHtml(107, 140, 300, 230, "<BODY>" +
//----------------------/----------------------------------------------/
"<BASEFONT COLOR=ORANGE>What ? You managed to decipher my enigma !<BR><BR>" +
"<BASEFONT COLOR=ORANGE>I congratulate you young adventurer ! Well little found the answer of it ! *smile*<BR><BR>" +
"<BASEFONT COLOR=ORANGE>Now take this phial and bring it to the Oracle which needs it.<BR><BR>" +
"<BASEFONT COLOR=ORANGE><I>The God give you Element of Water.</I> You must Hurry, the time is counted !<BR><BR>" +
"</BODY>", false, true);
AddImage(430, 9, 10441);
AddImageTiled(40, 38, 17, 391, 9263);
AddImage(6, 25, 10421);
AddImage(34, 12, 10420);
AddImageTiled(94, 25, 342, 15, 10304);
AddImageTiled(40, 427, 415, 16, 10304);
AddImage(-10, 314, 10402);
AddImage(56, 150, 10411);
AddImage(155, 120, 2103);
AddImage(136, 84, 96);
AddButton(225, 390, 0xF7, 0xF8, 0, GumpButtonType.Reply, 0);
//--------------------------------------------------------------------------------------------------------------
}
public override void OnResponse(NetState state, RelayInfo info) //Function for GumpButtonType.Reply Buttons
{
Mobile from = state.Mobile;
switch (info.ButtonID)
{
case 0: //Case uses the ActionIDs defenied above. Case 0 defenies the actions for the button with the action id 0
{
break;
}
}
}
}
}

View File

@@ -0,0 +1,86 @@
using System;
using Server;
using Server.Gumps;
using Server.Network;
using Server.Items;
using Server.Mobiles;
using Server.Commands;
namespace Server.Gumps
{
public class ElementQuestGump6 : Gump
{
public static void Initialize()
{
CommandSystem.Register("ElementQuestGump6", AccessLevel.GameMaster, new CommandEventHandler(ElementQuestGump6_OnCommand));
}
private static void ElementQuestGump6_OnCommand(CommandEventArgs e)
{
e.Mobile.SendGump(new ElementQuestGump6(e.Mobile));
}
public ElementQuestGump6(Mobile owner)
: base(50, 50)
{
//----------------------------------------------------------------------------------------------------
AddPage(0);
AddImageTiled(54, 33, 369, 400, 2624);
AddAlphaRegion(54, 33, 369, 400);
AddImageTiled(416, 39, 44, 389, 203);
//--------------------------------------Window size bar--------------------------------------------
AddImage(97, 49, 9005);
AddImageTiled(58, 39, 29, 390, 10460);
AddImageTiled(412, 37, 31, 389, 10460);
AddLabel(140, 60, 0x34, "Four Elements's Quest");
AddHtml(107, 140, 300, 230, "<BODY>" +
//----------------------/----------------------------------------------/
"<BASEFONT COLOR=ORANGE>What ? You succeeded ! I was sure of it !<BR><BR>" +
"<BASEFONT COLOR=ORANGE>Also, don't stop her !<BR><BR>" +
"<BASEFONT COLOR=ORANGE>Here is the fourth and last Enigma.<BR><BR>" +
"<BASEFONT COLOR=ORANGE><I>As long as I live I destroy.</I><BR><BR>" +
"<BASEFONT COLOR=ORANGE><I>As soon as I drink I die.</I><BR><BR>" +
"<BASEFONT COLOR=ORANGE><I>Who am I ?</I><BR><BR>" +
"<BASEFONT COLOR=ORANGE>You'll find Ga<47>a the Goddess of the Earth somewhere in a caverne of Minoc.<BR><BR>" +
"<BASEFONT COLOR=ORANGE>You must Go to see him, give him the answer and return me the Element of Earth !<BR><BR>" +
"</BODY>", false, true);
AddImage(430, 9, 10441);
AddImageTiled(40, 38, 17, 391, 9263);
AddImage(6, 25, 10421);
AddImage(34, 12, 10420);
AddImageTiled(94, 25, 342, 15, 10304);
AddImageTiled(40, 427, 415, 16, 10304);
AddImage(-10, 314, 10402);
AddImage(56, 150, 10411);
AddImage(155, 120, 2103);
AddImage(136, 84, 96);
AddButton(225, 390, 0xF7, 0xF8, 0, GumpButtonType.Reply, 0);
//--------------------------------------------------------------------------------------------------------------
}
public override void OnResponse(NetState state, RelayInfo info) //Function for GumpButtonType.Reply Buttons
{
Mobile from = state.Mobile;
switch (info.ButtonID)
{
case 0: //Case uses the ActionIDs defenied above. Case 0 defenies the actions for the button with the action id 0
{
break;
}
}
}
}
}

View File

@@ -0,0 +1,80 @@
using System;
using Server;
using Server.Gumps;
using Server.Network;
using Server.Items;
using Server.Mobiles;
using Server.Commands;
namespace Server.Gumps
{
public class ElementQuestGump7 : Gump
{
public static void Initialize()
{
CommandSystem.Register("ElementQuestGump7", AccessLevel.GameMaster, new CommandEventHandler(ElementQuestGump7_OnCommand));
}
private static void ElementQuestGump7_OnCommand(CommandEventArgs e)
{
e.Mobile.SendGump(new ElementQuestGump7(e.Mobile));
}
public ElementQuestGump7(Mobile owner)
: base(50, 50)
{
//----------------------------------------------------------------------------------------------------
AddPage(0);
AddImageTiled(54, 33, 369, 400, 2624);
AddAlphaRegion(54, 33, 369, 400);
AddImageTiled(416, 39, 44, 389, 203);
//--------------------------------------Window size bar--------------------------------------------
AddImage(97, 49, 9005);
AddImageTiled(58, 39, 29, 390, 10460);
AddImageTiled(412, 37, 31, 389, 10460);
AddLabel(140, 60, 0x34, "Four Elements's Quest");
AddHtml(107, 140, 300, 230, "<BODY>" +
//----------------------/----------------------------------------------/
"<BASEFONT COLOR=ORANGE>What ? You managed to decipher my enigma !<BR><BR>" +
"<BASEFONT COLOR=ORANGE>I congratulate you young adventurer ! Well little found the answer of it ! *smiles*<BR><BR>" +
"<BASEFONT COLOR=ORANGE>Now take this phial and bring it to the Oracle which needs it.<BR><BR>" +
"<BASEFONT COLOR=ORANGE><I>The God give you Element of Earth.</I> You must Hurry, the time is counted !<BR><BR>" +
"</BODY>", false, true);
AddImage(430, 9, 10441);
AddImageTiled(40, 38, 17, 391, 9263);
AddImage(6, 25, 10421);
AddImage(34, 12, 10420);
AddImageTiled(94, 25, 342, 15, 10304);
AddImageTiled(40, 427, 415, 16, 10304);
AddImage(-10, 314, 10402);
AddImage(56, 150, 10411);
AddImage(155, 120, 2103);
AddImage(136, 84, 96);
AddButton(225, 390, 0xF7, 0xF8, 0, GumpButtonType.Reply, 0);
//--------------------------------------------------------------------------------------------------------------
}
public override void OnResponse(NetState state, RelayInfo info) //Function for GumpButtonType.Reply Buttons
{
Mobile from = state.Mobile;
switch (info.ButtonID)
{
case 0: //Case uses the ActionIDs defenied above. Case 0 defenies the actions for the button with the action id 0
{
break;
}
}
}
}
}

View File

@@ -0,0 +1,85 @@
using System;
using Server;
using Server.Gumps;
using Server.Network;
using Server.Items;
using Server.Mobiles;
using Server.Commands;
namespace Server.Gumps
{
public class ElementQuestGump8 : Gump
{
public static void Initialize()
{
CommandSystem.Register("ElementQuestGump8", AccessLevel.GameMaster, new CommandEventHandler(ElementQuestGump8_OnCommand));
}
private static void ElementQuestGump8_OnCommand(CommandEventArgs e)
{
e.Mobile.SendGump(new ElementQuestGump8(e.Mobile));
}
public ElementQuestGump8(Mobile owner)
: base(50, 50)
{
//----------------------------------------------------------------------------------------------------
AddPage(0);
AddImageTiled(54, 33, 369, 400, 2624);
AddAlphaRegion(54, 33, 369, 400);
AddImageTiled(416, 39, 44, 389, 203);
//--------------------------------------Window size bar--------------------------------------------
AddImage(97, 49, 9005);
AddImageTiled(58, 39, 29, 390, 10460);
AddImageTiled(412, 37, 31, 389, 10460);
AddLabel(140, 60, 0x34, "Four Elements's Quest");
AddHtml(107, 140, 300, 230, "<BODY>" +
//----------------------/----------------------------------------------/
"<BASEFONT COLOR=ORANGE>What ? You succeeded ! I was sure of it !<BR><BR>" +
"<BASEFONT COLOR=ORANGE>You brought me four El<45>ments !<BR><BR>" +
"<BASEFONT COLOR=ORANGE>Now, join the fragments of the parchments that I gave you.<BR><BR>" +
"<BASEFONT COLOR=ORANGE>Go to the library and give the parchment of knowledge to Archambeau his conservative.<BR><BR>" +
"<BASEFONT COLOR=ORANGE>He'll say you where is the Pythie which will put back you your reward.<BR><BR>" +
"</BODY>", false, true);
AddImage(430, 9, 10441);
AddImageTiled(40, 38, 17, 391, 9263);
AddImage(6, 25, 10421);
AddImage(34, 12, 10420);
AddImageTiled(94, 25, 342, 15, 10304);
AddImageTiled(40, 427, 415, 16, 10304);
AddImage(-10, 314, 10402);
AddImage(56, 150, 10411);
AddImage(155, 120, 2103);
AddImage(136, 84, 96);
AddButton(225, 390, 0xF7, 0xF8, 0, GumpButtonType.Reply, 0);
//--------------------------------------------------------------------------------------------------------------
}
public override void OnResponse(NetState state, RelayInfo info) //Function for GumpButtonType.Reply Buttons
{
Mobile from = state.Mobile;
switch (info.ButtonID)
{
case 0: //Case uses the ActionIDs defenied above. Case 0 defenies the actions for the button with the action id 0
{
break;
}
}
}
}
}

View File

@@ -0,0 +1,83 @@
using System;
using Server;
using Server.Gumps;
using Server.Network;
using Server.Items;
using Server.Mobiles;
using Server.Commands;
namespace Server.Gumps
{
public class ElementQuestGump9 : Gump
{
public static void Initialize()
{
CommandSystem.Register("ElementQuestGump9", AccessLevel.GameMaster, new CommandEventHandler(ElementQuestGump9_OnCommand));
}
private static void ElementQuestGump9_OnCommand(CommandEventArgs e)
{
e.Mobile.SendGump(new ElementQuestGump9(e.Mobile));
}
public ElementQuestGump9(Mobile owner)
: base(50, 50)
{
//----------------------------------------------------------------------------------------------------
AddPage(0);
AddImageTiled(54, 33, 369, 400, 2624);
AddAlphaRegion(54, 33, 369, 400);
AddImageTiled(416, 39, 44, 389, 203);
//--------------------------------------Window size bar--------------------------------------------
AddImage(97, 49, 9005);
AddImageTiled(58, 39, 29, 390, 10460);
AddImageTiled(412, 37, 31, 389, 10460);
AddLabel(140, 60, 0x34, "Four Elements's Quest");
AddHtml(107, 140, 300, 230, "<BODY>" +
//----------------------/----------------------------------------------/
"<BASEFONT COLOR=ORANGE>Hello young adventurer, I see that you managed to obtain the Parchment of the Knowledge.<BR><BR>" +
"<BASEFONT COLOR=ORANGE>But it is not sufficient, you must give the Parchment of the Wisdom to the Pythie.<BR><BR>" +
"<BASEFONT COLOR=ORANGE>You will find her towards the Temple of the Justice, she will know how to reward you.<BR><BR>" +
"</BODY>", false, true);
AddImage(430, 9, 10441);
AddImageTiled(40, 38, 17, 391, 9263);
AddImage(6, 25, 10421);
AddImage(34, 12, 10420);
AddImageTiled(94, 25, 342, 15, 10304);
AddImageTiled(40, 427, 415, 16, 10304);
AddImage(-10, 314, 10402);
AddImage(56, 150, 10411);
AddImage(155, 120, 2103);
AddImage(136, 84, 96);
AddButton(225, 390, 0xF7, 0xF8, 0, GumpButtonType.Reply, 0);
//--------------------------------------------------------------------------------------------------------------
}
public override void OnResponse(NetState state, RelayInfo info) //Function for GumpButtonType.Reply Buttons
{
Mobile from = state.Mobile;
switch (info.ButtonID)
{
case 0: //Case uses the ActionIDs defenied above. Case 0 defenies the actions for the button with the action id 0
{
break;
}
}
}
}
}

View File

@@ -0,0 +1,44 @@
using System;
using Server;
namespace Server.Items
{
public class BraceletElements : GoldBracelet
{
public override int LabelNumber{ get{ return 1061103; } } // Bracelet Elements
public override int ArtifactRarity{ get{ return 11; } }
[Constructable]
public BraceletElements()
{
Hue = 1167;
Attributes.Luck = 100;
Attributes.CastSpeed = 3;
Attributes.CastRecovery = 4;
Resistances.Fire = 20;
Resistances.Cold = 20;
Resistances.Poison = 20;
Resistances.Energy = 20;
LootType = LootType.Blessed;
Name = "Bracelet of Elements";
}
public BraceletElements( Serial serial ) : base( serial )
{
}
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();
}
}
}

View File

@@ -0,0 +1,41 @@
using System;
using Server;
namespace Server.Items
{
public class ElementAir : Item
{
[Constructable]
public ElementAir() : this( 1 )
{
}
[Constructable]
public ElementAir( int amount ) : base( 0x1844 )
{
Name = "Element of Air";
Stackable = false;
Hue = 1272;
Weight = 1.0;
Amount = amount;
}
public ElementAir( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 ); // version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}

View File

@@ -0,0 +1,41 @@
using System;
using Server;
namespace Server.Items
{
public class ElementEau : Item
{
[Constructable]
public ElementEau() : this( 1 )
{
}
[Constructable]
public ElementEau( int amount ) : base( 0x1844 )
{
Name = "Element of Water";
Stackable = false;
Hue = 1266;
Weight = 1.0;
Amount = amount;
}
public ElementEau( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 ); // version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}

View File

@@ -0,0 +1,41 @@
using System;
using Server;
namespace Server.Items
{
public class ElementFeu : Item
{
[Constructable]
public ElementFeu() : this( 1 )
{
}
[Constructable]
public ElementFeu( int amount ) : base( 0x1844 )
{
Name = "Element of Fire";
Stackable = false;
Hue = 1360;
Weight = 1.0;
Amount = amount;
}
public ElementFeu( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 ); // version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}

View File

@@ -0,0 +1,41 @@
using System;
using Server;
namespace Server.Items
{
public class ElementTerre : Item
{
[Constructable]
public ElementTerre() : this( 1 )
{
}
[Constructable]
public ElementTerre( int amount ) : base( 0x1844 )
{
Name = "Element of Earth";
Stackable = false;
Hue = 1501;
Weight = 1.0;
Amount = amount;
}
public ElementTerre( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 ); // version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}

View File

@@ -0,0 +1,55 @@
using System;
using Server;
using Server.Network;
using System.Collections;
namespace Server.Items
{
public class aeParchment1 : Item
{
[Constructable]
public aeParchment1()
{
ItemID = 5357;
Weight = 1.0;
Name = "A section of Parchment of Knowledge";
Hue = 1321;
}
public override void OnDoubleClick(Mobile from)
{
Item n = from.Backpack.FindItemByType(typeof(aeParchment2));
if (n != null)
{
from.AddToBackpack(new aeParchment3());
n.Delete();
Delete();
}
else
{
from.PrivateOverheadMessage(MessageType.Regular, 1153, false, "You lack the other peice to combine with this", from.NetState);
}
}
public aeParchment1(Serial serial)
: base(serial)
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 ); // version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}

View File

@@ -0,0 +1,56 @@
using System;
using Server;
using Server.Network;
using System.Collections;
namespace Server.Items
{
public class aeParchment2 : Item
{
[Constructable]
public aeParchment2()
{
ItemID = 5357;
Weight = 1.0;
Name = "A section of Parchment of Knowledge";
Hue = 1321;
}
public override void OnDoubleClick(Mobile from)
{
Item nm = from.Backpack.FindItemByType(typeof(aeParchment1));
if (nm != null)
{
from.AddToBackpack(new aeParchment3());
nm.Delete();
Delete();
}
else
{
from.PrivateOverheadMessage(MessageType.Regular, 1153, false, "You lack the other peice to combine with this", from.NetState);
}
}
public aeParchment2(Serial serial)
: base(serial)
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 ); // version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}

View File

@@ -0,0 +1,38 @@
using System;
using Server;
namespace Server.Items
{
public class aeParchment3 : Item
{
[Constructable]
public aeParchment3()
{
ItemID = 5360;
Weight = 1.0;
Name = "Parchment of Knowledge";
Hue = 1321;
}
public aeParchment3(Serial serial)
: base(serial)
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 ); // version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}

View File

@@ -0,0 +1,55 @@
using System;
using Server;
using Server.Network;
using System.Collections;
namespace Server.Items
{
public class eParchment1 : Item
{
[Constructable]
public eParchment1()
{
ItemID = 5357;
Weight = 1.0;
Name = "A section of Parchment of Wisdom";
Hue = 669;
}
public override void OnDoubleClick(Mobile from)
{
Item n = from.Backpack.FindItemByType(typeof(eParchment2));
if (n != null)
{
from.AddToBackpack(new eParchment3());
n.Delete();
Delete();
}
else
{
from.PrivateOverheadMessage(MessageType.Regular, 1153, false, "You lack the other peice to combine with this", from.NetState);
}
}
public eParchment1(Serial serial)
: base(serial)
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 ); // version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}

View File

@@ -0,0 +1,55 @@
using System;
using Server;
using Server.Network;
using System.Collections;
namespace Server.Items
{
public class eParchment2 : Item
{
[Constructable]
public eParchment2()
{
ItemID = 5357;
Weight = 1.0;
Name = "A section of Parchment of Wisdom";
Hue = 669;
}
public override void OnDoubleClick(Mobile from)
{
Item nm = from.Backpack.FindItemByType(typeof(eParchment1));
if (nm != null)
{
from.AddToBackpack(new eParchment3());
nm.Delete();
Delete();
}
else
{
from.PrivateOverheadMessage(MessageType.Regular, 1153, false, "You lack the other peice to combine with this", from.NetState);
}
}
public eParchment2(Serial serial)
: base(serial)
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 ); // version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}

View File

@@ -0,0 +1,38 @@
using System;
using Server;
namespace Server.Items
{
public class eParchment3 : Item
{
[Constructable]
public eParchment3()
{
ItemID = 5360;
Weight = 1.0;
Name = "Parchment of Wisdom";
Hue = 669;
}
public eParchment3(Serial serial)
: base(serial)
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 ); // version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}

View File

@@ -0,0 +1,123 @@
using System.Collections.Generic;
using System;
using System.Collections;
using Server.Items;
using Server.Targeting;
using Server.ContextMenus;
using Server.Gumps;
using Server.Misc;
using Server.Network;
namespace Server.Mobiles
{
[CorpseName("Corpse of Archambeau")]
public class Archambeau : BaseCreature
{
public virtual bool IsInvulnerable { get { return true; } }
[Constructable]
public Archambeau()
: base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
{
Name = "Archambeau";
Title = "Guard of Knowledge";
Body = 400;
CantWalk = true;
Hue = 33770;
CantWalk = true;
//int hairHue = 0;
Blessed = true;
AddItem(new LongHair(0));
AddItem(new Vandyke(0));
AddItem(new Cloak(1882));
AddItem(new Sandals(1530));
AddItem(new Robe(1530));
Backpack backpack = new Backpack();
backpack.Hue = 1530;
backpack.Movable = false;
AddItem(backpack);
}
public Archambeau(Serial serial)
: base(serial)
{
}
public override void GetContextMenuEntries(Mobile from, List<ContextMenuEntry> list)
{
base.GetContextMenuEntries(from, list);
list.Add(new ArchambeauEntry(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 ArchambeauEntry : ContextMenuEntry
{
private Mobile m_Mobile;
private Mobile m_Giver;
public ArchambeauEntry(Mobile from, Mobile giver)
: base(6146, 3)
{
m_Mobile = from;
m_Giver = giver;
}
}
public override bool HandlesOnSpeech(Mobile from)
{
base.HandlesOnSpeech(from);
return true;
}
public override bool OnDragDrop(Mobile from, Item dropped)
{
Mobile m = from;
PlayerMobile mobile = m as PlayerMobile;
if (mobile != null)
{
if (dropped is aeParchment3)
{
dropped.Delete();
mobile.SendGump(new ElementQuestGump9(from));
return true;
}
else
{
from.PrivateOverheadMessage(MessageType.Regular, 1153, false, "Have we met before ?", from.NetState);
return false;
}
}
else
{
from.PrivateOverheadMessage(MessageType.Regular, 1153, false, "What am I to do with this ?", from.NetState);
return false;
}
}
}
}

View File

@@ -0,0 +1,110 @@
using System.Collections.Generic;
using System;
using System.Collections;
using Server.Items;
using Server.Targeting;
using Server.ContextMenus;
using Server.Gumps;
using Server.Misc;
using Server.Network;
namespace Server.Mobiles
{
[CorpseName("Corpse of Eole")]
public class Eole : BaseCreature
{
public virtual bool IsInvulnerable { get { return true; } }
[Constructable]
public Eole()
: base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
{
Name = "Eole";
Title = "God of Winds";
Body = 13;
BaseSoundID = 655;
CantWalk = true;
Blessed = true;
}
public Eole(Serial serial)
: base(serial)
{
}
public override void GetContextMenuEntries(Mobile from, List<ContextMenuEntry> list)
{
base.GetContextMenuEntries(from, list);
list.Add(new EoleEntry(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 EoleEntry : ContextMenuEntry
{
private Mobile m_Mobile;
private Mobile m_Giver;
public EoleEntry(Mobile from, Mobile giver)
: base(6146, 3)
{
m_Mobile = from;
m_Giver = giver;
}
}
public override bool HandlesOnSpeech(Mobile from)
{
base.HandlesOnSpeech(from);
return true;
}
public override void OnSpeech(SpeechEventArgs e)
{
bool isMatch = false;
Mobile from = e.Mobile;
string keyword = this.Name + " silence";
if (keyword != null && e.Speech.ToLower().IndexOf(keyword.ToLower()) >= 0)
{
isMatch = true;
if (!isMatch)
return;
from.SendGump(new ElementQuestGump3(from));
from.AddToBackpack(new ElementAir());
e.Handled = true;
}
base.OnSpeech(e);
}
}
}

View File

@@ -0,0 +1,110 @@
using System.Collections.Generic;
using System;
using System.Collections;
using Server.Items;
using Server.Targeting;
using Server.ContextMenus;
using Server.Gumps;
using Server.Misc;
using Server.Network;
namespace Server.Mobiles
{
[CorpseName("Corpse of Ga<47>a")]
public class Gaia : BaseCreature
{
public virtual bool IsInvulnerable { get { return true; } }
[Constructable]
public Gaia()
: base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
{
Name = "Gaia";
Title = "Goddess of the Earth";
Body = 14;
BaseSoundID = 268;
CantWalk = true;
Blessed = true;
}
public Gaia(Serial serial)
: base(serial)
{
}
public override void GetContextMenuEntries(Mobile from, List<ContextMenuEntry> list)
{
base.GetContextMenuEntries(from, list);
list.Add(new GaiaEntry(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 GaiaEntry : ContextMenuEntry
{
private Mobile m_Mobile;
private Mobile m_Giver;
public GaiaEntry(Mobile from, Mobile giver)
: base(6146, 3)
{
m_Mobile = from;
m_Giver = giver;
}
}
public override bool HandlesOnSpeech(Mobile from)
{
base.HandlesOnSpeech(from);
return true;
}
public override void OnSpeech(SpeechEventArgs e)
{
bool isMatch = false;
Mobile from = e.Mobile;
string keyword = this.Name + " fire";
if (keyword != null && e.Speech.ToLower().IndexOf(keyword.ToLower()) >= 0)
{
isMatch = true;
if (!isMatch)
return;
from.SendGump(new ElementQuestGump7(from));
from.AddToBackpack(new ElementTerre());
e.Handled = true;
}
base.OnSpeech(e);
}
}
}

View File

@@ -0,0 +1,111 @@
using System.Collections.Generic;
using System;
using System.Collections;
using Server.Items;
using Server.Targeting;
using Server.ContextMenus;
using Server.Gumps;
using Server.Misc;
using Server.Network;
namespace Server.Mobiles
{
[CorpseName("Corpse of Hephaistos")]
public class Hephaistos : BaseCreature
{
public virtual bool IsInvulnerable { get { return true; } }
[Constructable]
public Hephaistos()
: base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
{
Name = "Hephaistos";
Title = "God of Fire";
Body = 15;
BaseSoundID = 838;
CantWalk = true;
Blessed = true;
}
public Hephaistos(Serial serial)
: base(serial)
{
}
public override void GetContextMenuEntries(Mobile from, List<ContextMenuEntry> list)
{
base.GetContextMenuEntries(from, list);
list.Add(new HephaistosEntry(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 HephaistosEntry : ContextMenuEntry
{
private Mobile m_Mobile;
private Mobile m_Giver;
public HephaistosEntry(Mobile from, Mobile giver)
: base(6146, 3)
{
m_Mobile = from;
m_Giver = giver;
}
}
public override bool HandlesOnSpeech(Mobile from)
{
base.HandlesOnSpeech(from);
return true;
}
public override void OnSpeech(SpeechEventArgs e)
{
bool isMatch = false;
Mobile from = e.Mobile;
string keyword = this.Name + " wind";
if (keyword != null && e.Speech.ToLower().IndexOf(keyword.ToLower()) >= 0)
{
isMatch = true;
if (!isMatch)
return;
from.SendGump(new ElementQuestGump1(from));
from.AddToBackpack(new ElementFeu());
e.Handled = true;
}
base.OnSpeech(e);
}
}
}

View File

@@ -0,0 +1,178 @@
using System.Collections.Generic;
using System;
using System.Collections;
using Server.Items;
using Server.Targeting;
using Server.ContextMenus;
using Server.Gumps;
using Server.Misc;
using Server.Network;
namespace Server.Mobiles
{
[CorpseName("Corpse of Oracle")]
public class Oracle : BaseCreature
{
public override bool IsInvulnerable { get { return true; } }
[Constructable]
public Oracle()
: base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
{
Name = "Oracle";
Title = "I was, I'm, I'll be";
Body = 400;
CantWalk = true;
Hue = 33770;
CantWalk = true;
Blessed = true;
AddItem(new LongHair(0));
AddItem(new Cloak(1153));
AddItem(new Sandals(1153));
AddItem(new Robe(1153));
AddItem(new Bandana(1153));
GoldNecklace goldnecklace = new GoldNecklace();
goldnecklace.Hue = 0;
goldnecklace.Movable = false;
AddItem(goldnecklace);
GoldRing goldring = new GoldRing();
goldring.Hue = 0;
goldring.Movable = false;
AddItem(goldring);
Backpack backpack = new Backpack();
backpack.Hue = 1530;
backpack.Movable = false;
AddItem(backpack);
}
public Oracle(Serial serial)
: base(serial)
{
}
public override void GetContextMenuEntries(Mobile from, List<ContextMenuEntry> list)
{
base.GetContextMenuEntries(from, list);
list.Add(new OracleEntry(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 OracleEntry : ContextMenuEntry
{
private Mobile m_Mobile;
private Mobile m_Giver;
public OracleEntry(Mobile from, Mobile giver)
: base(6146, 3)
{
m_Mobile = from;
m_Giver = giver;
}
}
public override bool HandlesOnSpeech(Mobile from)
{
base.HandlesOnSpeech(from);
return true;
}
public override void OnSpeech(SpeechEventArgs e)
{
bool isMatch = false;
Mobile from = e.Mobile;
string keyword = this.Name + " Hail";
if (keyword != null && e.Speech.ToLower().IndexOf(keyword.ToLower()) >= 0)
{
isMatch = true;
if (!isMatch)
return;
from.SendGump(new ElementQuestGump(from));
e.Handled = true;
}
base.OnSpeech(e);
}
public override bool OnDragDrop(Mobile from, Item dropped)
{
Mobile m = from;
PlayerMobile mobile = m as PlayerMobile;
if (mobile != null)
{
if (dropped is ElementFeu)
{
dropped.Delete();
mobile.SendGump(new ElementQuestGump2(from));
mobile.AddToBackpack(new eParchment1());
return true;
}
else if (dropped is ElementAir)
{
dropped.Delete();
mobile.SendGump(new ElementQuestGump4(from));
mobile.AddToBackpack(new eParchment2());
return true;
}
else if (dropped is ElementEau)
{
dropped.Delete();
mobile.SendGump(new ElementQuestGump6(from));
mobile.AddToBackpack(new aeParchment1());
return true;
}
else if (dropped is ElementTerre)
{
dropped.Delete();
mobile.SendGump(new ElementQuestGump8(from));
mobile.AddToBackpack(new aeParchment2());
return true;
}
else
{
from.PrivateOverheadMessage(MessageType.Regular, 1153, false, "Have we met before ?", from.NetState);
return false;
}
}
else
{
from.PrivateOverheadMessage(MessageType.Regular, 1153, false, "What am I to do with this ?", from.NetState);
return false;
}
}
}
}

View File

@@ -0,0 +1,111 @@
using System.Collections.Generic;
using System;
using System.Collections;
using Server.Items;
using Server.Targeting;
using Server.ContextMenus;
using Server.Gumps;
using Server.Misc;
using Server.Network;
namespace Server.Mobiles
{
[CorpseName("Corpse of Poseidon")]
public class Poseidon : BaseCreature
{
public virtual bool IsInvulnerable { get { return true; } }
[Constructable]
public Poseidon()
: base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
{
Name = "Poseidon";
Title = "God of Seas";
Body = 16;
BaseSoundID = 278;
CantWalk = true;
Blessed = true;
}
public Poseidon(Serial serial)
: base(serial)
{
}
public override void GetContextMenuEntries(Mobile from, List<ContextMenuEntry> list)
{
base.GetContextMenuEntries(from, list);
list.Add(new PoseidonEntry(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 PoseidonEntry : ContextMenuEntry
{
private Mobile m_Mobile;
private Mobile m_Giver;
public PoseidonEntry(Mobile from, Mobile giver)
: base(6146, 3)
{
m_Mobile = from;
m_Giver = giver;
}
}
public override bool HandlesOnSpeech(Mobile from)
{
base.HandlesOnSpeech(from);
return true;
}
public override void OnSpeech(SpeechEventArgs e)
{
bool isMatch = false;
Mobile from = e.Mobile;
string keyword = this.Name + " echo";
if (keyword != null && e.Speech.ToLower().IndexOf(keyword.ToLower()) >= 0)
{
isMatch = true;
if (!isMatch)
return;
from.SendGump(new ElementQuestGump5(from));
from.AddToBackpack(new ElementEau());
e.Handled = true;
}
base.OnSpeech(e);
}
}
}

View File

@@ -0,0 +1,134 @@
using System.Collections.Generic;
using System;
using System.Collections;
using Server.Items;
using Server.Targeting;
using Server.ContextMenus;
using Server.Gumps;
using Server.Misc;
using Server.Network;
namespace Server.Mobiles
{
[CorpseName("Corpse of Pythie")]
public class Pythie : BaseCreature
{
public virtual bool IsInvulnerable { get { return true; } }
[Constructable]
public Pythie()
: base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
{
Name = "Pythie";
Title = "Handmaid of the Gods";
Body = 401;
CantWalk = true;
Hue = 33770;
CantWalk = true;
Blessed = true;
AddItem(new LongHair(0));
AddItem(new Cloak(1153));
AddItem(new Sandals(1153));
AddItem(new Robe(1153));
AddItem(new Bandana(1153));
GoldNecklace goldnecklace = new GoldNecklace();
goldnecklace.Hue = 0;
goldnecklace.Movable = false;
AddItem(goldnecklace);
GoldRing goldring = new GoldRing();
goldring.Hue = 0;
goldring.Movable = false;
AddItem(goldring);
Backpack backpack = new Backpack();
backpack.Hue = 1530;
backpack.Movable = false;
AddItem(backpack);
}
public Pythie(Serial serial)
: base(serial)
{
}
public override void GetContextMenuEntries(Mobile from, List<ContextMenuEntry> list)
{
base.GetContextMenuEntries(from, list);
list.Add(new PythieEntry(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 PythieEntry : ContextMenuEntry
{
private Mobile m_Mobile;
private Mobile m_Giver;
public PythieEntry(Mobile from, Mobile giver)
: base(6146, 3)
{
m_Mobile = from;
m_Giver = giver;
}
}
public override bool HandlesOnSpeech(Mobile from)
{
base.HandlesOnSpeech(from);
return true;
}
public override bool OnDragDrop(Mobile from, Item dropped)
{
Mobile m = from;
PlayerMobile mobile = m as PlayerMobile;
if (mobile != null)
{
if (dropped is eParchment3)
{
dropped.Delete();
mobile.SendGump(new ElementQuestGump10(from));
mobile.AddToBackpack(new BraceletElements());
return true;
}
else
{
from.PrivateOverheadMessage(MessageType.Regular, 1153, false, "Have we met before ?", from.NetState);
return false;
}
}
else
{
from.PrivateOverheadMessage(MessageType.Regular, 1153, false, "What am I to do with this ?", from.NetState);
return false;
}
}
}
}

View File

@@ -0,0 +1,55 @@
Quest with enigmae and keywords
--------------------------------------------------------------------------------
First of all I wish to thank everybody.
I am nb also be indulgent.
It is my first script of quest and I am French also, you will have certainly to retouch the dialogues of the pnj.
Quest of Elements is a quest with enigmae and keywords.
Oracle made a bet with the Gods. He gives you alternately 4 enigmae to be resolved.
In every found solution, you have to visit the corresponding God, to say the name followed by the keyword which is solution of the enigma. The God gives you then one of the Elements that you have to bring back to the Oracle.
To begin the Quest, visit Oracle and say : oracle hail
Quest takes place on Trammel.
I arranged the pnj so but you can choose the other places, it will then be necessary to think of modifying the logs of gumps:
Oracle: near the Hall of Virtues to Britain
Hephaistos: 4593 36136 30
Eole : 5132 157 0
Poseidon : 1319 550 30
Gaia: 2594 461 60
Archambeau: in Britain's library
Pythie: in the temple of the Justice
To begin the Quest, visit Oracle and say : oracle hail
In every found solution, you have to visit the corresponding God, to say the name followed by the keyword which is solution of the enigma. The God gives you then one of the Elements that you have to bring back to the Oracle.
The keywords are on each mobile's files like Hephaistos.cs line 84
Edit the file and search "string keyword"
Code:
string keyword = this.Name + " wind";
Each time you must say pnj's name and the keyword like this : hephaistos wind.
The Oracle give you each time a section of parchment. When you have the four sections clic on this.
Give the Parchment of Knowledge to Archambeau, he'll say you where is the Pythie.
Give the Parchment of Wisdom to the Pythie and she'll give you a reward : the bracelet of elements.
I hope to help you
Angeline