OnItemStacked
Usage
- No return behavior
Example Autogenerated
csharp
private void OnItemStacked( Item i, Item instance, ItemContainer newcontainer, int slot2 )
{
Puts( "OnItemStacked works!" );
}
csharp
private void OnItemStacked( Item item, Item instance, ItemContainer newcontainer )
{
Puts( "OnItemStacked works!" );
}
Location
- Item::MoveToContainer(ItemContainer newcontainer, int iTargetPos, bool allowStack, bool ignoreStackLimit, BasePlayer sourcePlayer, bool allowSwap)
- Item::MoveToContainer(ItemContainer newcontainer, int iTargetPos, bool allowStack, bool ignoreStackLimit, BasePlayer sourcePlayer, bool allowSwap)
csharp
//---
{
expr_25E(slot2, num2);
}
this.amount -= num2;
slot2.MarkDirty();
Interface.CallHook("OnItemStacked", slot2, this, newcontainer, num2);
this.MarkDirty();
if (this.amount <= 0)
{
this.RemoveFromWorld();
this.RemoveFromContainer();
//---
csharp
//---
{
expr_25E(slot2, num2);
}
this.amount -= num2;
slot2.MarkDirty();
Interface.CallHook("OnItemStacked", slot2, this, newcontainer, num2);
this.MarkDirty();
if (this.amount <= 0)
{
this.RemoveFromWorld();
this.RemoveFromContainer();
//---