Fargariel
Initiate
I wanted to add PlayerConstructed props to Bolt.cs
i have added StackWith too
crafted items have PlayerConstructed = True, bought False - in craftitem.cs
Now when i move few items from PlayerConstructed pile, i have two piles with different values (new one is True, old one is False).
Any idea?
Code:
[CommandProperty(AccessLevel.GameMaster)]
public bool PlayerConstructed
{
get
{
return this.m_PlayerConstructed;
}
set
{
this.m_PlayerConstructed = value;
InvalidateProperties();
}
}
i have added StackWith too
Code:
public override bool StackWith(Mobile from, Item dropped, bool playSound)
{
if (dropped is Bolt && ((Bolt)dropped).PlayerConstructed == this.PlayerConstructed)
return base.StackWith(from, dropped, playSound);
else
return false;
}
crafted items have PlayerConstructed = True, bought False - in craftitem.cs
Code:
if (item is Bolt)
{
((Bolt)item).PlayerConstructed = true;
}
Now when i move few items from PlayerConstructed pile, i have two piles with different values (new one is True, old one is False).
Any idea?