sahisahi
Member
Hellooooooooo let me explain;
So i have an item lets call it ''p''. If theres a p on the way its passable, player can just pass throught it, but if theres a ''stack''' (2 p item) it blocks player path and it became impassable, hence blocks player movement.
tldr:
1 p = you can walk over it.
2 p = you will get blocked.
Can someone enlighnt me?
Does the Height flag in tiledata plays any role here? thanks
the next code doesnt work
So i have an item lets call it ''p''. If theres a p on the way its passable, player can just pass throught it, but if theres a ''stack''' (2 p item) it blocks player path and it became impassable, hence blocks player movement.
tldr:
1 p = you can walk over it.
2 p = you will get blocked.
Can someone enlighnt me?
Does the Height flag in tiledata plays any role here? thanks
the next code doesnt work
Code:
public override bool OnMoveOver( Mobile m )
{
if (m != null && m is PlayerMobile)
{
foreach (Item item in GetItemsInRange(0))
{
if (item is GiftBox && item.Items.Count >= 2)
{
return false;
}
}
}
return true;
}
Last edited: