RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Bank Crystal

V

Vengeance

Guest
is there a way to script the powercrystal.cs to have it blessed?
 

Igon

Wanderer
Vengeance said:
is there a way to script the powercrystal.cs to have it blessed?

to make any item blessed change an existing LootType designation or add the following in the [Constructable]:

Code:
LootType = LootType.Blessed;
 

Maxus

Sorceror
One issue with adding the bankbox check i have is when i drop it to my open pack, the crystal disappears forever instantly. If i drop it onto the pack on the paperdoll it is put in my pack properly.
I use the unedited with no bankbox check and it works fine when dropping it into my pack via paperdoll, and into the open pack.
 

jakar

Wanderer
Instead of "return true;" for the else, try "return base.OnDropInto( from, target, p );"

That should fix your problem.
 

septor

Sorceror
Making it:

Code:
public override bool OnDroppedInto( Mobile from, Container target, Point3D p )
			{
				if ( target is BankBox && target == from.BankBox )
				{
					from.SendMessage( "You can not put your Bank Crystal in there!" );
					return false;
				}
				else
					return base.OnDroppedInto( from, target, p );
			}

For anyone who's too lazy to copy and paste 2 things.

edit

By the way, it's OnDroppedInto, not, OnDropInto ;]
 

Greystar

Wanderer
septor said:
Making it:

Code:
public override bool OnDroppedInto( Mobile from, Container target, Point3D p )
			{
				if ( target is BankBox && target == from.BankBox )
				{
					from.SendMessage( "You can not put your Bank Crystal in there!" );
					return false;
				}
				else
					return base.OnDroppedInto( from, target, p );
			}

For anyone who's too lazy to copy and paste 2 things.

edit

By the way, it's OnDroppedInto, not, OnDropInto ;]


Thanks, for posting this i completely forgot about that.
 
Top