This reverts commit 179cb50557.
This commit is contained in:
parent
179cb50557
commit
c2ecc76457
588 changed files with 16260 additions and 10926 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue