private function _0g5(param1:IDataInput) : void
{
var loc5:Portrait = null;
var loc6:String = null;
var loc7:ByteArray = null;
var loc8:* = null;
var loc2:Dictionary = new Dictionary();
var loc3:int = param1.readInt();
var loc4:int = 0;
while(loc4 < loc3)
{
loc6 = param1.readUTF();
loc7 = new ByteArray();
param1.readBytes(loc7,0,param1.readInt());
loc2[loc6] = loc7;
loc4++;
}
for each(loc5 in ObjectLibrary._1eh)
{
if(loc5.isRemoteTexture() && loc2.hasOwnProperty(loc5.id()))
{
loc8 = loc5.id() + "_mask";
if(loc2[loc8] != null)
{
loc5.setTexture(_S_n._0Y_R_(loc2[loc5.id()]),_S_n._0Y_R_(loc2[loc8]));
}
else
{
loc5.setTexture(_S_n._0Y_R_(loc2[loc5.id()]));
}
}
}
completeTask(true);
if(this._0v2 != null)
{
this._0S_c();
}
}
<Object type="0x7035" id="America Sword"> <Class>Equipment</Class> <Item /> <RemoteTexture> <Instance>draw</Instance> <Id>1023436625</Id> </RemoteTexture> <SlotType>1</SlotType> <Description>America!</Description> <RateOfFire>1</RateOfFire> <Sound>weapon/mithril_sword</Sound> <Projectile> <ObjectId>Infinity Proj</ObjectId> <Speed>100</Speed> <MinDamage>160</MinDamage> <MaxDamage>180</MaxDamage> <LifetimeMS>380</LifetimeMS> <MultiHit /> <ArmorPiercing /> </Projectile> <Undead /> <BagType>8</BagType> <FameBonus>5</FameBonus> <OldSound>bladeSwing</OldSound> <Shop> <Name>america</Name> <Price>1776</Price> </Shop> </Object>

