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,51 @@
using System;
using Server.Items;
using Server.Mobiles;
using Server.Gumps;
using Server.Network;
namespace Server.Engines.Quests
{
public class HumilityItemQuestGump : Gump
{
private HumilityQuestMobile m_Mobile;
private WhosMostHumbleQuest m_Quest;
private int m_NPCIndex;
public HumilityItemQuestGump(HumilityQuestMobile mobile, WhosMostHumbleQuest quest, int index) : base(50, 50)
{
m_Mobile = mobile;
m_Quest = quest;
m_NPCIndex = index;
AddBackground(0, 0, 350, 250, 2600);
AddHtml(100, 25, 175, 16, String.Format("{0} {1}", mobile.Name, mobile.Title), false, false);
AddHtmlLocalized(40, 60, 270, 140, mobile.Greeting + 1, 1, false, true);
}
public override void OnResponse(NetState state, RelayInfo info)
{
if (m_NPCIndex < 0 || m_NPCIndex >= m_Quest.Infos.Count)
return;
Mobile from = state.Mobile;
int cliloc;
string args;
if (0.5 > Utility.RandomDouble() || m_NPCIndex == 6)
{
cliloc = m_Mobile.Greeting + 2;
args = String.Format("#{0}", m_Quest.Infos[m_NPCIndex].NeedsLoc);
}
else
{
cliloc = m_Mobile.Greeting + 3;
args = String.Format("#{0}", m_Quest.Infos[m_NPCIndex].GivesLoc);
}
m_Mobile.SayTo(from, cliloc, args);
}
}
}

View File

@@ -0,0 +1,50 @@
using System;
using Server.Items;
using Server.Mobiles;
using Server.Gumps;
using Server.Network;
namespace Server.Engines.Quests
{
public class QuestInfoGump : BaseQuestGump
{
private int m_Cliloc;
public QuestInfoGump(int cliloc) : base(0, 0)
{
m_Cliloc = cliloc;
AddPage(0);
AddImageTiled(50, 20, 400, 400, 0x1404);
AddImageTiled(50, 29, 30, 390, 0x28DC);
AddImageTiled(34, 140, 17, 279, 0x242F);
AddImage(48, 135, 0x28AB);
AddImage(-16, 285, 0x28A2);
AddImage(0, 10, 0x28B5);
AddImage(25, 0, 0x28B4);
AddImageTiled(83, 15, 350, 15, 0x280A);
AddImage(34, 419, 0x2842);
AddImage(442, 419, 0x2840);
AddImageTiled(51, 419, 392, 17, 0x2775);
AddImageTiled(415, 29, 44, 390, 0xA2D);
AddImageTiled(415, 29, 30, 390, 0x28DC);
AddImage(370, 50, 0x589);
AddImage(379, 60, 0x15A9);
AddImage(425, 0, 0x28C9);
AddImage(90, 33, 0x232D);
AddImageTiled(130, 65, 175, 1, 0x238D);
AddHtmlObject(160, 108, 330, 16, 1075781, DarkGreen, false, false); // Test of Humility
AddHtmlObject(98, 156, 312, 180, cliloc, LightGreen, false, true);
AddButton(313, 395, 0x2EEC, 0x2EEE, 0, GumpButtonType.Reply, 0);
}
public override void OnResponse(Server.Network.NetState state, RelayInfo info)
{
if (m_Cliloc == 1075783)
state.Mobile.SendLocalizedMessage(1075787); // I feel that thou hast yet more to learn about Humility... Please ponder these things further, and visit me again on the 'morrow.
}
}
}