mirror of
https://github.com/ACEmulator/ACE
synced 2026-08-17 12:26:06 -04:00
* Adjust CharacterOption defaults These changes match client enums and pcaps * Update Player_Character.cs * Updates for OlthoiPlay - Handle OIthoi creation defaults - Handle Olthoi talking - Handle Olthoi global chat * . * Adjust tells from/to Olthoi * More IsOlthoiPlayer blocks * Update Player.cs * Bit o' refactor * Update AppraiseInfo.cs * Update TurbineChatHandler.cs * Update TurbineChatHandler.cs * Update Player_Inventory.cs * Update Player_Inventory.cs * Revert IsOlthoiPlayer to get/set * Update Player_Xp.cs * Update Player.cs * Update Player_Death.cs * Update Player.cs * Update Player_Allegiance.cs * Update Player_Fellowship.cs * Update Player_Character.cs * Update WorldObject_Use.cs * Update WorldObject_Magic.cs * Update DamageHistoryInfo.cs * Update Creature_Death.cs * Update Player_Death.cs * Update Player_Trade.cs
43 lines
1.1 KiB
C#
43 lines
1.1 KiB
C#
using System;
|
|
|
|
using ACE.Entity;
|
|
using ACE.Entity.Enum;
|
|
using ACE.Entity.Models;
|
|
|
|
namespace ACE.Server.WorldObjects
|
|
{
|
|
public class Lockpick : WorldObject
|
|
{
|
|
/// <summary>
|
|
/// A new biota be created taking all of its values from weenie.
|
|
/// </summary>
|
|
public Lockpick(Weenie weenie, ObjectGuid guid) : base(weenie, guid)
|
|
{
|
|
SetEphemeralValues();
|
|
}
|
|
|
|
/// <summary>
|
|
/// Restore a WorldObject from the database.
|
|
/// </summary>
|
|
public Lockpick(Biota biota) : base(biota)
|
|
{
|
|
SetEphemeralValues();
|
|
}
|
|
|
|
private void SetEphemeralValues()
|
|
{
|
|
ObjectDescriptionFlags |= ObjectDescriptionFlag.Lockpick;
|
|
}
|
|
|
|
public override void HandleActionUseOnTarget(Player player, WorldObject target)
|
|
{
|
|
if (player.IsOlthoiPlayer)
|
|
{
|
|
player.SendUseDoneEvent(WeenieError.OlthoiCannotInteractWithThat);
|
|
return;
|
|
}
|
|
|
|
UnlockerHelper.UseUnlocker(player, this, target);
|
|
}
|
|
}
|
|
}
|