#W# Source and Scripts added. Added Scripts/Settings.cs to expose some basic tweak able settings.

This commit is contained in:
WarrentyExpired 2026-08-06 11:06:05 -04:00
parent b51c58f514
commit 3045c83799
3512 changed files with 627673 additions and 0 deletions

36
Scripts/Misc/Paperdoll.cs Normal file
View file

@ -0,0 +1,36 @@
using System;
using System.Collections.Generic;
using Server;
using Server.Network;
using Server.Multis;
using Server.Mobiles;
namespace Server.Misc
{
public class Paperdoll
{
public static void Initialize()
{
EventSink.PaperdollRequest += new PaperdollRequestEventHandler( EventSink_PaperdollRequest );
}
public static void EventSink_PaperdollRequest( PaperdollRequestEventArgs e )
{
Mobile beholder = e.Beholder;
Mobile beheld = e.Beheld;
beholder.Send( new DisplayPaperdoll( beheld, Titles.ComputeTitle( beholder, beheld ), beheld.AllowEquipFrom( beholder ) ) );
if ( ObjectPropertyList.Enabled )
{
List<Item> items = beheld.Items;
for ( int i = 0; i < items.Count; ++i )
beholder.Send( items[i].OPLPacket );
// NOTE: OSI sends MobileUpdate when opening your own paperdoll.
// It has a very bad rubber-banding affect. What positive affects does it have?
}
}
}
}