Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user