mirror of
https://github.com/ServUO/ServUO
synced 2026-08-11 20:23:04 -04:00
* - Internal Galleon Update: Galleon Facing now uses the Multi Component List to change the ID's of fixtures. Some of the ID's (weapon pads) were not using the correct ID's, and this way the code is much more simplified. All fixture lists have been consolidated into one list. - Gargish Jewels no longer drop on non-SA Core - Fixed issue with trapped boxes - Added Event Sink for sending detailed house foundation packet. - Fixed issue where imbued jewelry weren't getting durability. * update solution fixed graphical issue * Bug Fixes - Added Blackthorne DUngeon stealables - Added proper base resists to Leather Ninja Hood - Medusa now drops Medusa Floor Tile Addon Deed (THANKS MILVA!) - AOSWeaponAttributes now work on Armor - Protection now expires after player death - Fixed crash in PVP Arena Gumps - Exceptional Damage Inc no longer gives extra points for Clean up Britannia Turn In - Fixed Loyalty Gump Crash - Fixed Stygian Dragon arty drops per EA * Potential Crash Fix * csproj update * Fixed conflict issue... WTF? * Bug Fixes *Requires Core Recompile* - Fixed cliloc on new belt craftables - failed craft no longer deletes crimson cincture and luck mempo - Added a core edit to Container.cs (had to do it folks) for better resource evaluation when considering resources to consume while crafting. In this instance, we don't want VvV or Faction items being used as craftable resources due to thier ease of obtaining. - Consolidated no-delete resources in CraftSystem.cs - Fellowship Data now serializes to prevent generation at each server start * Resolve Conflicts * Bug Fixes - Shield bash forumula no more EA like (still not perfect) - Healers now show to dead players (needs work) - Honor buff now persists through death - * crash fix * Initial Commit - Publish 105 Forgotten Treasures - Removed Remove trap skill prerequisites * Moongate Fix - You have to be 1 tile to double click it. All other range checks are correct. * Commit #2 * crash fix * Commit #3 * Crash Fix * Commit #3 * More updates and additions. Compiles! * Final Commit * Project Update * Shields no longer engraveable w/ armor engraving tool.
85 lines
2.4 KiB
C#
85 lines
2.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
using Server;
|
|
using Server.SkillHandlers;
|
|
|
|
namespace Server.Items
|
|
{
|
|
public class CylinderTrapTrainingKit : PuzzleChest, IRemoveTrapTrainingKit
|
|
{
|
|
public override int LabelNumber { get { return 1159015; } } // Cylinder Trap Training Kit
|
|
public int Title { get { return 1159017; } } // A Cylinder Trap
|
|
|
|
[Constructable]
|
|
public CylinderTrapTrainingKit()
|
|
: base(41875)
|
|
{
|
|
Solution = new PuzzleChestSolution();
|
|
Movable = true;
|
|
}
|
|
|
|
public override void DisplayTo(Mobile to)
|
|
{
|
|
}
|
|
|
|
public override bool CheckLocked(Mobile from)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
public void OnRemoveTrap(Mobile from)
|
|
{
|
|
PuzzleChestSolution solution = GetLastGuess(from);
|
|
|
|
if (solution != null)
|
|
solution = new PuzzleChestSolution(solution);
|
|
else
|
|
solution = new PuzzleChestSolution(PuzzleChestCylinder.None, PuzzleChestCylinder.None, PuzzleChestCylinder.None, PuzzleChestCylinder.None, PuzzleChestCylinder.None);
|
|
|
|
from.CloseGump(typeof(PuzzleChest.PuzzleGump));
|
|
from.CloseGump(typeof(PuzzleChest.StatusGump));
|
|
from.SendGump(new PuzzleChest.PuzzleGump(from, this, solution, 0));
|
|
}
|
|
|
|
public override void DoDamage(Mobile to)
|
|
{
|
|
}
|
|
|
|
public override void OnDoubleClick(Mobile m)
|
|
{
|
|
if (m.InRange(GetWorldLocation(), 1))
|
|
{
|
|
m.SendLocalizedMessage(1159008); // That appears to be trapped, using the remove trap skill would yield better results...
|
|
}
|
|
}
|
|
|
|
public override void LockPick(Mobile from)
|
|
{
|
|
from.SendLocalizedMessage(1159009); // You successfully disarm the trap!
|
|
|
|
from.CheckTargetSkill(SkillName.RemoveTrap, this, 0, 100);
|
|
|
|
Solution = new PuzzleChestSolution();
|
|
}
|
|
|
|
public CylinderTrapTrainingKit(Serial serial)
|
|
: base(serial)
|
|
{
|
|
}
|
|
|
|
public override void Serialize(GenericWriter writer)
|
|
{
|
|
base.Serialize(writer);
|
|
|
|
writer.WriteEncodedInt(0); // version
|
|
}
|
|
|
|
public override void Deserialize(GenericReader reader)
|
|
{
|
|
base.Deserialize(reader);
|
|
|
|
int version = reader.ReadEncodedInt();
|
|
}
|
|
}
|
|
}
|