kikco76

Initiate
i need help making xml spawner for abyss mini champs i read teh turtile about it but dont understand on how to do it any help would be appicated plz
thxs in adnace
 
A little more information is needed.

Levels are applied, based on real UO. How do you want to see them applied?
 
I wanted them to be labeld "Treasure Chests" and then with a label under it stating its difficulty
 
You would need to look at the script

BaseTreasureChest.cs

then code that other parts yourself.
 
is that whats its called in resource?
[doublepost=1480305504][/doublepost]can you sedn the scripted to me in discord ?
 
BaseTreasureChest.cs
Code:
public override void OnSingleClick(Mobile from)
{
	base.OnSingleClick(from);
	LabelTo( from, "Difficulty: {0}", m_TreasureLevel );
}

Put it where indicated:
Code:
        public override string DefaultName
        {
            get
            {
                if (this.Locked)
                    return "a locked treasure chest";

                return "a treasure chest";
            }
        }
< ==== HERE ==== >
        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);

            writer.Write((int)0);
            writer.Write((byte)this.m_TreasureLevel);
            writer.Write(this.m_MinSpawnTime);
            writer.Write(this.m_MaxSpawnTime);
        }

Also please, if you request for help on the forums, finish the problem on the forums, otherwise those who have similar problems won't be able to get the finished answer and less people would be able to assist you or give feedback.
 

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back