Package games.stendhal.server.entity.npc.condition
package games.stendhal.server.entity.npc.condition
This package contains conditions frequently used in quests. Please use the
conditions that fit best. (e. g. use QuestNotStartedCondition instead of
Not(QuestStartedCondition) because this will make it easier to read the state
transition diagrams.
-
ClassDescriptionIs the player an admin?Is the player's age greater than the specified age?Is the player's age less than the specified age?This condition returns always false.This condition returns always true.Is constructed from a group of conditions.Checks if there is room for a player within a restricted area.Checks whether something is available.Checks the current day light phase.Is player emoting to npc?Checks if an optional subject in the user input matches the NPC name.Has the player killed at least one of each specified creature, with or without the help of any other player.Checks the records of kills.Checking sum of quest creatures kills in player's quest and kills slots..Checking if player's quest slot need update with newer creatures and update it if required Quest string should have in proper quest index string like "creature1,w,x,y,z,creature2,a,b,c,d,creature3,..." Where creature1, creature2 - names of creatures to kill; w,x and a,b - number of creatures to kill, solo and shared; y,z and c,d - number of creatures killed by player before starting this quest, both solo and shared.Is the player's level greater than the specified one?Is the player's level smaller than the specified one?check whether a player has killed at least the specified number of creatures of any kindIs the player naked? (e.An inverse condition.An or condition.Can this outfit be worn with normal clothes ?Can the player equip the specified item? (has enough space in his bag or other slots)Did the player get at least this number of items from the wishing well?has the player completed the specified number of the specified achievements?Checks to see if the player has a gate key that matches the identifier of the raiser (usually the gate but can be any entity with the "identifier" attribute)Checks if a player has harvested a minimum number of an itemDoes the player carry the specified item with the specified infostring?Check if the Player has equipped an item in a specified slotDoes the player carry the specified item?Checks if a player has killed the specified creature at least the specified number of times This can be with or without the help of other players.Does the player have a pet or sheep?Does the player carry the specified item?Checks whether the player has a shield equippedIs there a storable entity in the specified list that has name of the current player as identifier?Is the player in the specified area?Check if a player is a good boy, e.Does the player wear (at least a part of) the specified outfit?Checks if a player has looted a minimum number of item(s).Condition to check if a player's mana is greater than a numberChecks if a player has mined a given number of itemsChecks if the player is next to an entity.Does the player owns a item (including the bank)?Checks if a player has produced a given number of itemsCompares an integer value attribution.Checks if player has visited a list of certain zonesChecks if player has visited certain zones in a regionWas this quest started but not completed?Was this quest completed?Is this quest in this state?Is this quest either unknown, completed or rejected?Is this quest not completed?Is this quest not in this state?Was this quest not started yet?Checks if a quest is registered in the world.Is this quest state smaller than the value in this condition?Was this quest at least started? See QuestActiveCondition to check that it was started but not completed.Condition to check if the value in a quest slot is greater than an expected value.Does the quest state start with the specified String?Checks whether the sentence has an error.Is the specified system property set?Does this trigger contain a number?Did this trigger have additional parameters?Has 'delay' time passed since the quest was last done? If the quest slot isn't in the expected format, returns trueCheck if current system time reached a timestamp stored in a quest slot.Was one of these trigger phrases said exactly ignoring case? (Use with a ""-trigger in npc.add)Was one of theses trigger phrases said? (Use with a ""-trigger in npc.add)Was the trigger phrase a name of an NPC for an unstarted quest in the region? (Use with a ""-trigger in npc.add)Was a trigger phrase said, which is a produced item of this class? (Use with a ""-trigger in npc.add)was the content of a quest slot said?