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!

[RunUO 1.0 Final] Unholy and Holy Bless Deed

J MaNN

Wanderer
[RunUO 1.0 Final] Unholy and Holy Bless Deed

Hi! These are some scripts i made myself. They bless and item and hue them 1175 for unholy and 1154 for holy. They also name them with Holy Blessing and Blessed by Unholy Skull. There is one bug though. When it names it it removes it normal name. I want it to say for instance if i were to bless a skirt say "skirt with holy blessing". If anyone could help that would be great. This is for 1.0.
 

Attachments

  • Holy Bless Deed.cs
    2.7 KB · Views: 303
  • Unholy Deed of Blessing.cs
    2.8 KB · Views: 275

Kamron

Knight
If you use AOS, make an AddNameProperties override.
If you are using Pre-AOS, use an OnSingleClick override to make a new line.
 

J MaNN

Wanderer
Kamron said:
If you use AOS, make an AddNameProperties override.
If you are using Pre-AOS, use an OnSingleClick override to make a new line.
Ummm im not really much of a scriptor so can u explain more clearly :confused:
 

Killamus

Knight
Kamron said:
If you use AOS, make an AddNameProperties override.
If you are using Pre-AOS, use an OnSingleClick override to make a new line.
Why bother? I mean, it looks professional, but you'll have to modify base armor/weapon/clothing.cs, and its too much work for the little amount of extra properties.
 

Killamus

Knight
Duh, its for 1.0. Works perfectly on 1.0, but if you're using 2.0, it might throw errors.

Just noticed, its supposed to be item.Name ==, not item.Name =.
 

Kamron

Knight
Killamus said:
Why bother? I mean, it looks professional, but you'll have to modify base armor/weapon/clothing.cs, and its too much work for the little amount of extra properties.

I was simply responding to his request at the beginning of this thread. Whether or not a person wants to do script modifications is up to them, or the person who downloads it. I simply wanted to give the notion that it was possible.
 
X

Xplozive

Guest
holy and un holy

i think this is what your are looking for its work for me on 1.0

item.LootType = LootType.Blessed;
item.Hue = 1175;
if( item.Name == null || item.Name == "" )
{
item.Name = item.ItemData.Name + " blessed by Unholy Skull";
}
else
{
item.Name = item.Name + " blessed by Unholy Skull";
}
from.SendLocalizedMessage( 1010026 ); // You bless the item....
m_Deed.Delete(); // Delete the bless deed



And this for they Holy


item.LootType = LootType.Blessed;
item.Hue = 1154;
if( item.Name == null || item.Name == "" )
{
item.Name = item.ItemData.Name + " with Holy Blessing";
}
else
{
item.Name = item.Name + " with Holy Blessing";
}
from.SendLocalizedMessage( 1010026 ); // You bless the item....
m_Deed.Delete(); // Delete the bless deed
}
}
}
 
Top