Tailean
Member
[RUNUO 2.6] So I downloaded this Paragon Deed from Servuo that if used on a base creature turns it into a paragon. My question is about the following code:
What I want to do is make it so you can use this deed just on some creatures so can I take this part of the code:
and do this:
and so on..will this work? Or am I missing something.
Code:
protected override void OnTarget(Mobile from, object target)
{
if (target is BaseCreature)
{
BaseCreature p = (BaseCreature)target;
if (p.ControlMaster != null)
{
from.SendMessage("That is a pet belonging to someone else!");
}
else if (p.Tamable == false)
{
from.SendMessage("That creature cannot turn into a paragon!");
}
else
{
p.IsParagon = true;
from.SendMessage("Your target has evolved into a paragon version of itself.");
if (m_Deed != null)
{
m_Deed.Delete(); // Delete the deed
}
if (IsParagon == true)
{
// To Do - Refresh HP/Stam/Mana
}
}
}
else
{
from.SendMessage("That is not a valid target.");
}
}
What I want to do is make it so you can use this deed just on some creatures so can I take this part of the code:
Code:
if (target is BaseCreature)
{
BaseCreature p = (BaseCreature)target;
and do this:
Code:
if (target is BaseCreature)
{
BaseCreature p = (Dragon, Slim, Rat)target;
and so on..will this work? Or am I missing something.
Last edited: