public EvilAttackRewardChest() : base( 0xE43 )
{
//Movable = false;
Weight = 5000;
Name = "a strange black chest"; /or what ever name you want
Hue = 0x497;
public override bool OnDragDropInto( Mobile from, Item item, Point3D p )
public override bool OnDragLift( Mobile from )
{
from.SendMessage ("You are unable to lift the chest, and the evil power shocks you");
from.Hits -= 25;
return false;
}
Lord_Greywolf;651387 said:ok - i have a fix for the chests
at least it works with svn 147 - but i believe will work with all of 2.0
the problem is that 2.0 if the chest is not movable, then contents is not also
so here is the fix - 1change/add & 1 add in the EvilAttackReward.cs file:
change this:
public EvilAttackRewardChest() : base( 0xE43 )
{
Movable = false;
Name = "a strange black chest";
Hue = 0x497;
to:
Code:public EvilAttackRewardChest() : base( 0xE43 ) { //Movable = false; Weight = 5000; Name = "a strange black chest"; /or what ever name you want Hue = 0x497;
and farther down in the file just above:Code:public override bool OnDragDropInto( Mobile from, Item item, Point3D p )
add in this:
Code:public override bool OnDragLift( Mobile from ) { from.SendMessage ("You are unable to lift the chest, and the evil power shocks you"); from.Hits -= 25; return false; }
this allows the stuff to be taken out, but the chest not to be moved, and anyone that tries to move it gets shocked - even GM's
Lord_Greywolf;651387 said:ok - i have a fix for the chests
at least it works with svn 147 - but i believe will work with all of 2.0
the problem is that 2.0 if the chest is not movable, then contents is not also
so here is the fix - 1change/add & 1 add in the EvilAttackReward.cs file:
change this:
public EvilAttackRewardChest() : base( 0xE43 )
{
Movable = false;
Name = "a strange black chest";
Hue = 0x497;
to:
Code:public EvilAttackRewardChest() : base( 0xE43 ) { //Movable = false; Weight = 5000; Name = "a strange black chest"; /or what ever name you want Hue = 0x497;
and farther down in the file just above:Code:public override bool OnDragDropInto( Mobile from, Item item, Point3D p )
add in this:
Code:public override bool OnDragLift( Mobile from ) { from.SendMessage ("You are unable to lift the chest, and the evil power shocks you"); from.Hits -= 25; return false; }
this allows the stuff to be taken out, but the chest not to be moved, and anyone that tries to move it gets shocked - even GM's