#W# Bosses: Working on Dungeon Bosses. Added some reward drops to increase stat/skill/totalskill cap.
This commit is contained in:
parent
00c25cd506
commit
69a2b8772b
11 changed files with 406 additions and 3 deletions
|
|
@ -12,7 +12,7 @@ namespace Server.Custom.Events
|
|||
private bool _triggered;
|
||||
|
||||
[Constructible]
|
||||
public PortalSpawner() : base(0x0F6C)
|
||||
public PortalSpawner() : base(0xFF93)
|
||||
{
|
||||
Name = "a horrific tear";
|
||||
Hue = 1157;
|
||||
|
|
@ -24,6 +24,28 @@ namespace Server.Custom.Events
|
|||
{
|
||||
}
|
||||
|
||||
private bool _zAdjusted;
|
||||
|
||||
public override void OnMapChange()
|
||||
{
|
||||
base.OnMapChange();
|
||||
|
||||
// Now it checks the moment it officially enters the world
|
||||
if (!_zAdjusted && Map != null && Map != Map.Internal)
|
||||
{
|
||||
_zAdjusted = true;
|
||||
|
||||
// Wait one tick for the spawner to finish snapping it to the floor
|
||||
Timer.DelayCall(TimeSpan.Zero, () =>
|
||||
{
|
||||
if (!Deleted)
|
||||
{
|
||||
Z += 5; // Adjust as needed
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
public override bool HandlesOnMovement => true;
|
||||
|
||||
public override void OnMovement(Mobile m, Point3D oldLocation)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue