Bryan Fury
Page
[2.0 final] PvPHelperCommands
PvPHelperCommands for RunUO 2.0 final
by Bryan Fury
This is a small package that adds a few usefull [commands to your server:
So you don't have to use Razor for them to work properly.
Thanks a lot David and Lord Greywolf, without your kind help I would have never been able to finish this projekt.
Special thanks to milvaen - from his [bs / [bandself command script I've stolen a few codeparts shamelessly. ^^
In order to make the [PopPouch command work you have to make two little changes to your TrapableContainer.cs
1.) Find these lines in TrapableContainer.cs (around line 20):
and add those lines to the Set-part:
After these changes the code should look like:
2.) Find these lines in TrapableContainer.cs (around line 136):
and add those lines between the Effects-part and the break:
After these changes the code should look like:
Now save your TrapableContainer.cs. If you trap pouches after these changes they should look like this:
If they do you are able to use the [PopPouch command after copying the scripts from this package to your custom folder.
I hope you'll find these commands as usefull as I do!
Best regards,
Bryan Fury
PvPHelperCommands for RunUO 2.0 final
by Bryan Fury
This is a small package that adds a few usefull [commands to your server:
- [PopPouch
pops a trapped pouch to break para - [BandageSelf
use a bandage and apply to self - [DrinkCure
drink a greater cure potion - [DrinkHeal
drink a greater heal potion - [DrinkRefresh
drink a total refresh potion - [DrinkAgility
drink a greater agility potion - [DrinkStrength
drink a greater strength potion
So you don't have to use Razor for them to work properly.
Thanks a lot David and Lord Greywolf, without your kind help I would have never been able to finish this projekt.
Special thanks to milvaen - from his [bs / [bandself command script I've stolen a few codeparts shamelessly. ^^
In order to make the [PopPouch command work you have to make two little changes to your TrapableContainer.cs
1.) Find these lines in TrapableContainer.cs (around line 20):
Code:
[CommandProperty( AccessLevel.GameMaster )]
public TrapType TrapType
{
get
{
return m_TrapType;
}
set
{
m_TrapType = value;
}
}
Code:
if (( TrapType == TrapType.MagicTrap )&&(this.ItemID == 0xE79 ))
{
Hue = 38;
Name = "a pouch [trapped]";
}
else
{
Hue = 0;
}
Code:
[CommandProperty( AccessLevel.GameMaster )]
public TrapType TrapType
{
get
{
return m_TrapType;
}
set
{
m_TrapType = value;
if (( TrapType == TrapType.MagicTrap )&&(this.ItemID == 0xE79 ))
{
Hue = 38;
Name = "a pouch [trapped]";
}
else
{
Hue = 0;
}
}
}
Code:
case TrapType.MagicTrap:
{
if ( from.InRange( loc, 1 ) )
from.Damage( m_TrapPower );
Effects.PlaySound( loc, Map, 0x307 );
Effects.SendLocationEffect( new Point3D( loc.X - 1, loc.Y, loc.Z ), Map, 0x36BD, 15 );
Effects.SendLocationEffect( new Point3D( loc.X + 1, loc.Y, loc.Z ), Map, 0x36BD, 15 );
Effects.SendLocationEffect( new Point3D( loc.X, loc.Y - 1, loc.Z ), Map, 0x36BD, 15 );
Effects.SendLocationEffect( new Point3D( loc.X, loc.Y + 1, loc.Z ), Map, 0x36BD, 15 );
Effects.SendLocationEffect( new Point3D( loc.X + 1, loc.Y + 1, loc.Z + 11 ), Map, 0x36BD, 15 );
break;
}
Code:
Hue = 0;
Name = null;
Code:
case TrapType.MagicTrap:
{
if ( from.InRange( loc, 1 ) )
from.Damage( m_TrapPower );
Effects.PlaySound( loc, Map, 0x307 );
Effects.SendLocationEffect( new Point3D( loc.X - 1, loc.Y, loc.Z ), Map, 0x36BD, 15 );
Effects.SendLocationEffect( new Point3D( loc.X + 1, loc.Y, loc.Z ), Map, 0x36BD, 15 );
Effects.SendLocationEffect( new Point3D( loc.X, loc.Y - 1, loc.Z ), Map, 0x36BD, 15 );
Effects.SendLocationEffect( new Point3D( loc.X, loc.Y + 1, loc.Z ), Map, 0x36BD, 15 );
Effects.SendLocationEffect( new Point3D( loc.X + 1, loc.Y + 1, loc.Z + 11 ), Map, 0x36BD, 15 );
Hue = 0;
Name = null;
break;
}
If they do you are able to use the [PopPouch command after copying the scripts from this package to your custom folder.
I hope you'll find these commands as usefull as I do!
Best regards,
Bryan Fury