When I try to use a command I installed to give myself an item I've placed in dat1.xml I get a strange "ART" error.
This only happens with custom items.
The item I made worked when it was in Addition.xml (Only moved it over, deleted it from addition.xml, and replaced "ext="true" with "type=0xc343")
Code for the item and command are below
(Note: Command doesn't belong to me, I adapted a command I found on MPGH to spawn the custom item.)
Image of error: https://puu.sh/qeGKG/dbabc5cd05.png
Command
Code:
internal class MaxPotCommand : Command
{
public MaxPotCommand() : base("8/8", 0)
{
}
protected override bool Process(Player player, RealmTime time, string[] args)
{
for (int i = 0; i < player.Inventory.Length; i++)
{
player.Inventory[4] = player.Manager.GameData.Items[0x3434]; //MaxPot
player.UpdateCount++;
}
player.SendInfo("Drink to Max your character 8/8");
return true;
}
}
Item:
Code:
<Object type="0x3434" id="8/8 Potion" >
<Class>Equipment</Class>
<Item/>
<Texture>
<File>lofiObj2</File>
<Index>0x35</Index>
</Texture>
<SlotType>10</SlotType>
<Soulbound/>
<Description>A potion that will instantly 8/8 your character</Description>
<Sound>use_potion</Sound>
<Activate stat="20" amount="100">IncrementStat</Activate>
<Activate stat="21" amount="100">IncrementStat</Activate>
<Activate stat="22" amount="100">IncrementStat</Activate>
<Activate stat="26" amount="100">IncrementStat</Activate>
<Activate stat="27" amount="100">IncrementStat</Activate>
<Activate stat="28" amount="100">IncrementStat</Activate>
<Activate stat="0" amount="1000">IncrementStat</Activate>
<Activate stat="3" amount="1000">IncrementStat</Activate>
<Consumable/>
<Potion/>
<BagType>5</BagType>
<feedPower>150</feedPower>
<DisplayId>8/8 Potion</DisplayId>
</Object>