#W# Added: Added a new [bandself command.
This commit is contained in:
parent
2b5d1e62fc
commit
72ce92cf34
3 changed files with 99 additions and 3 deletions
|
|
@ -110,11 +110,11 @@
|
|||
{
|
||||
"Key": "young_player_system",
|
||||
"Description": "Enable the young player system",
|
||||
"Enabled": true,
|
||||
"Enabled": false,
|
||||
"DefaultEnabled": true,
|
||||
"Category": "System",
|
||||
"LastModified": "2026-09-21T12:58:21.3413169Z",
|
||||
"LastModifiedBy": "System"
|
||||
"LastModified": "2026-09-29T17:27:58.2253397Z",
|
||||
"LastModifiedBy": "Dungeon Keeper"
|
||||
},
|
||||
{
|
||||
"Key": "bitmap_pathfinding_cache",
|
||||
|
|
|
|||
54
Distribution/Data/Decoration/Underworld/Shame_Doors.cfg
Normal file
54
Distribution/Data/Decoration/Underworld/Shame_Doors.cfg
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
#Level 3
|
||||
DarkWoodDoor 1709 (Facing=EastCCW)
|
||||
1391 243 0
|
||||
|
||||
DarkWoodDoor 1711 (Facing=NorthCW)
|
||||
1391 242 0
|
||||
|
||||
DarkWoodDoor 1701 (Facing=WestCW)
|
||||
1378 246 0
|
||||
|
||||
DarkWoodDoor 1711 (Facing=NorthCCW)
|
||||
1386 250 0
|
||||
|
||||
DarkWoodDoor 1711 (Facing=NorthCW)
|
||||
1387 250 22
|
||||
|
||||
DarkWoodDoor 1701 (Facing=WestCCW)
|
||||
1379 246 22
|
||||
|
||||
DarkWoodDoor 1709 (Facing=SouthCW)
|
||||
1383 243 22
|
||||
|
||||
DarkWoodDoor 1703 (Facing=EastCW)
|
||||
1389 239 22
|
||||
|
||||
DarkWoodDoor 1711 (Facing=NorthCW)
|
||||
1385 236 22
|
||||
|
||||
DarkWoodDoor 1711 (Facing=NorthCCW)
|
||||
1387 235 0
|
||||
|
||||
MetalDoor 1655 (Facing=EastCW)
|
||||
1325 226 0
|
||||
|
||||
MetalDoor 1653 (Facing=WestCW)
|
||||
1315 230 0
|
||||
|
||||
MetalDoor 1655 (Facing=EastCCW)
|
||||
1316 230 0
|
||||
|
||||
MetalDoor 1661 (Facing=SouthCCW)
|
||||
1312 227 0
|
||||
|
||||
MetalDoor 1663 (Facing=NorthCW)
|
||||
1312 226 0
|
||||
|
||||
MetalDoor 1653 (Facing=WestCCW)
|
||||
1314 215 0
|
||||
|
||||
MetalDoor 1653 (Facing=WestCCW)
|
||||
1249 236 5
|
||||
|
||||
MetalDoor 1655 (Facing=EastCW)
|
||||
1250 236 5
|
||||
42
Projects/UOContent/Commands/BandSelf.cs
Normal file
42
Projects/UOContent/Commands/BandSelf.cs
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
using System;
|
||||
using Server;
|
||||
using Server.Items;
|
||||
using Server.Commands;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Commands
|
||||
{
|
||||
public class BandSelf
|
||||
{
|
||||
public static void Initialize()
|
||||
{
|
||||
CommandSystem.Register("Bandself", AccessLevel.Player, new CommandEventHandler(Bandself_OnCommand));
|
||||
}
|
||||
|
||||
[Usage("Bandself")]
|
||||
[Description("Uses a bandage from the player's backpack on themselves.")]
|
||||
public static void Bandself_OnCommand(CommandEventArgs e)
|
||||
{
|
||||
Mobile from = e.Mobile;
|
||||
|
||||
if (BandageContext.GetContext(from) != null)
|
||||
{
|
||||
from.SendMessage( 33, "You are already applying a bandage." );
|
||||
return;
|
||||
}
|
||||
Bandage bandage = from.Backpack.FindItemByType<Bandage>();
|
||||
|
||||
if (bandage != null)
|
||||
{
|
||||
if (BandageContext.BeginHeal(from, from) != null)
|
||||
{
|
||||
bandage.Consume();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
from.SendMessage("You do not have any bandages in your backpack.");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue