Revert "Updates Packets & Randomizer (#43)" (#61)

This reverts commit 179cb50557.
This commit is contained in:
Kamron Batman 2019-11-11 08:46:11 -08:00 committed by GitHub
parent 179cb50557
commit c2ecc76457
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
588 changed files with 16260 additions and 10926 deletions

View file

@ -491,7 +491,7 @@ namespace Server.Items
scroll.Delete();
Packets.SendPlaySound(from.NetState, 0x249, GetWorldLocation());
from.Send(new PlaySound(0x249, GetWorldLocation()));
return true;
}
}
@ -569,16 +569,49 @@ namespace Server.Items
return;
if (Parent == null)
SendWorldPacketFor(ns);
{
to.Send(WorldPacket);
}
else if (Parent is Item)
{
// What will happen if the client doesn't know about our parent?
Packets.SendContainerContentUpdate(ns, this);
if (ns.ContainerGridLines)
to.Send(new ContainerContentUpdate6017(this));
else
to.Send(new ContainerContentUpdate(this));
}
else if (Parent is Mobile)
{
// What will happen if the client doesn't know about our parent?
Packets.SendEquipUpdate(ns, this);
to.Send(new EquipUpdate(this));
}
Packets.SendDisplayContainer(ns, Serial);
Packets.SendSpellbookContent(ns, Serial, ItemID, BookOffset + 1, m_Content);
if (ns.HighSeas)
to.Send(new DisplaySpellbookHS(this));
else
to.Send(new DisplaySpellbook(this));
if (ObjectPropertyList.Enabled)
{
if (ns.NewSpellbook)
{
to.Send(new NewSpellbookContent(this, ItemID, BookOffset + 1, m_Content));
}
else
{
if (ns.ContainerGridLines)
to.Send(new SpellbookContent6017(SpellCount, BookOffset + 1, m_Content, this));
else
to.Send(new SpellbookContent(SpellCount, BookOffset + 1, m_Content, this));
}
}
else
{
if (ns.ContainerGridLines)
to.Send(new SpellbookContent6017(SpellCount, BookOffset + 1, m_Content, this));
else
to.Send(new SpellbookContent(SpellCount, BookOffset + 1, m_Content, this));
}
}
public override void GetProperties(ObjectPropertyList list)
@ -777,9 +810,11 @@ namespace Server.Items
}
}
Attributes ??= new AosAttributes(this);
if (Attributes == null)
Attributes = new AosAttributes(this);
SkillBonuses ??= new AosSkillBonuses(this);
if (SkillBonuses == null)
SkillBonuses = new AosSkillBonuses(this);
if (Core.AOS && Parent is Mobile mobile)
SkillBonuses.AddTo(mobile);