Metatable:Condition - RodrigoOt/forgottenserver GitHub Wiki

No description available at the moment. ###Available methods: [addDamage(rounds, time, value)](#addDamage{rounds, time, value})
clone()
getEndTime()
getIcons()
getId()
getSubId()
getTicks()
getType()
[setFormula(mina, minb, maxa, maxb)](#setFormula{mina, minb, maxa, maxb})
setOutfit(outfit)
[setOutfit(lookTypeEx, lookType, lookHead, lookBody, lookLegs, lookFeet[, lookAddons[, lookMount]])](#setOutfit{lookTypeEx, lookType, lookHead, lookBody, lookLegs, lookFeet[, lookAddons[, lookMount]]})
[setParameter(key, value)](#setParameter{key, value})
setTicks(ticks)


###### addDamage(rounds, time, value) > **Description:** N/A > **Parameters:**
  • _rounds_ - _No description_
  • _time_ - _No description_
  • _value_ - _No description_
> **Returns:** N/A > **Example:** ```Lua local condition = Condition(...) condition:addDamage(3, 2, 5) ``` > **Added in version:** 1.0
###### clone() > **Description:** N/A > **Parameters:** None > **Returns:** N/A > **Example:** ```Lua local condition = Condition(...) condition:clone() ``` > **Added in version:** 1.0
###### getEndTime() > **Description:** N/A > **Parameters:** None > **Returns:** N/A > **Example:** ```Lua local condition = Condition(...) condition:getEndTime() ``` > **Added in version:** 1.0
###### getIcons() > **Description:** N/A > **Parameters:** None > **Returns:** N/A > **Example:** ```Lua local condition = Condition(...) condition:getIcons() ``` > **Added in version:** 1.0
###### getId() > **Description:** N/A > **Parameters:** None > **Returns:** N/A > **Example:** ```Lua local condition = Condition(...) condition:getId() ``` > **Added in version:** 1.0
###### getSubId() > **Description:** N/A > **Parameters:** None > **Returns:** N/A > **Example:** ```Lua local condition = Condition(...) condition:getSubId() ``` > **Added in version:** 1.0
###### getTicks() > **Description:** N/A > **Parameters:** None > **Returns:** N/A > **Example:** ```Lua local condition = Condition(...) condition:getTicks() ``` > **Added in version:** 1.0
###### getType() > **Description:** N/A > **Parameters:** None > **Returns:** N/A > **Example:** ```Lua local condition = Condition(...) condition:getType() ``` > **Added in version:** 1.0
###### setFormula(mina, minb, maxa, maxb) > **Description:** N/A > **Parameters:**
  • _mina_ - _No description_
  • _minb_ - _No description_
  • _maxa_ - _No description_
  • _maxb_ - _No description_
> **Returns:** N/A > **Example:** ```Lua local condition = Condition(...) condition:setFormula(0, 0, 1, 1) ``` > **Added in version:** 1.0
###### setOutfit(outfit) > **Description:** N/A > **Parameters:**
  • _outfit_ - _No description_
> **Returns:** N/A > **Example:** ```Lua local condition = Condition(...) condition:setOutfit(unknown) ``` > **Added in version:** 1.0
###### setOutfit(lookTypeEx, lookType, lookHead, lookBody, lookLegs, lookFeet[, lookAddons[, lookMount]]) > **Description:** N/A > **Parameters:**
  • _lookTypeEx_ - _No description_
  • _lookType_ - _No description_
  • _lookHead_ - _No description_
  • _lookBody_ - _No description_
  • _lookLegs_ - _No description_
  • _lookFeet_ - _No description_
  • _lookAddons_ - _(optional)_
  • _lookMount_ - _(optional)_
> **Returns:** N/A > **Example:** ```Lua local condition = Condition(...) condition:setOutfit(0, 128, 0, 0, 0, 0, nil, nil) ``` > **Added in version:** 1.0
###### setParameter(key, value) > **Description:** N/A > **Parameters:**
  • _key_ - _No description_
  • _value_ - _No description_
> **Returns:** N/A > **Example:** ```Lua local condition = Condition(...) condition:setParameter(CONDITION_PARAM_SPEED, 150) ``` > **Added in version:** 1.0
###### setTicks(ticks) > **Description:** N/A > **Parameters:**
  • _ticks_ - _No description_
> **Returns:** N/A > **Example:** ```Lua local condition = Condition(...) condition:setTicks(1000) ``` > **Added in version:** 1.0
⚠️ **GitHub.com Fallback** ⚠️