Adding additional tiers to your As3 Client!![Smile](images/emotions/emo5.png)
Haven't done a tutorial in a while. Anyhow, if you want to add Set Tiers to your client or your own Tier of unique items and you're wondering how...well here's how lol
First, open up your IntelliJ or whatever you use to edit your As3 client and go to _E_7>EquipmentToolTip.
Find this function
Code:
private function _07X_():void{
this._V_0 = new SimpleText(16, 0xFFFFFF, false, 30, 0, "Myriad Pro");
this._P_V_.setBold(true);
this._V_0.y = ((this._5U_.height / 2) - (this._P_V_._I_x / 2));
this._V_0.x = (_be - 30);
if ((((this._I_z.hasOwnProperty("Consumable") == false)) && ((this._tO_() == false))))
{
if (this._I_z.hasOwnProperty("Tier"))
{
this._V_0.text = ("T" + this._I_z.Tier);
}
else
{
this._V_0.setColor(9055202);
this._V_0.text = "UT";
}
this._V_0.updateMetrics();
addChild(this._V_0);
};
}
Now add an if statement under the else statement like so
Code:
if (this._I_z.Tier == "Put your Tier name right here!")
{
this._V_0.setColor(Put the color code for text in here);
this._V_0.text = "Put your Tier name right here!";
};
If you want your text to be bold just slap setBold onto it :P
Next you need to go to the server and go to Descriptors.cs.
Now find the start of
Code:
if ((n = elem.Element("Tier")) != null)
replace this block 'o code with
if ((n = elem.Element("Tier")) != null)
try
{
Tier = Utils.FromString(n.Value);
}
catch
{
Tier = -1;
}
else
Tier = -1;
All you have to do now is just add <Tier>Put your Tier name right here!</Tier> to an item and it should pop up once you look at the tier! Enjoy!