Table of Contents

Class HasBankItemCondition

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

Condition that checks if a character's bank contains a specific item template.

[Serializable]
public class HasBankItemCondition : BaseCondition, ICondition
Inheritance
HasBankItemCondition
Implements
Inherited Members

Fields

ItemTemplateID

The ID of the item template to check for in the character's bank.

public int ItemTemplateID

Field Value

int

Methods

Evaluate(ICharacter, EventData)

Evaluates whether the character (or event target) has the specified item in their bank.

public override bool Evaluate(ICharacter initiator, EventData eventData)

Parameters

initiator ICharacter

The character to check, or the fallback if no event target is present.

eventData EventData

Optional event data that may provide a different character to check.

Returns

bool

True if the character's bank contains the item; otherwise, false.