jamisoncrzy
Member
So I am trying to make dungeon coins which will be obtained from killing certain mobs and looting certain chests in dungeons. I decided to use a sliths eye as the base item. I basically just copied the slithseye.cs file and changed a couple things and renamed it. I worked kind of..
My problem is when a stack of dungeon coins are spawned/looted they appear as "a slith's eye"
But if the dungeon coins are added 1 at a time they appear as "dungeon coins"
How can I make the stack be dungeon coins instead of "a slith's eye"?
My problem is when a stack of dungeon coins are spawned/looted they appear as "a slith's eye"
But if the dungeon coins are added 1 at a time they appear as "dungeon coins"
How can I make the stack be dungeon coins instead of "a slith's eye"?
Code:
using System;
namespace Server.Items
{
public class DungeonCoins : Item
{
[Constructable]
public DungeonCoins()
: this(1)
{
Name = "Dungeon Coins";
Hue = 37;
LootType = LootType.Blessed;
}
[Constructable]
public DungeonCoins(int amount)
: base(0x5749)
{
this.Stackable = true;
this.Amount = amount;
}
public DungeonCoins(Serial serial)
: base(serial)
{
}
public override int LabelNumber
{
get
{
return 1112396;
}
}// DungeonCoins
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write((int)0); // version
}
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
}
}
}