Overview

Namespaces

  • aliuly
    • common
      • selectors
    • loader
  • xPaw

Classes

  • ArmorItems
  • BasicCli
  • BasicHelp
  • BasicPlugin
  • ChatSession
  • Cmd
  • CmdSelector
  • ExpandVars
  • FastTransfer
  • FileUtils
  • FreezeSession
  • GetMotd
  • GetMotdAsyncTask
  • InvisibleSession
  • InvUtils
  • ItemName
  • mc
  • mc2
  • MoneyAPI
  • MPMU
  • Npc
  • PermUtils
  • PluginAsyncTask
  • PluginCallbackTask
  • PMScript
  • QueryAsyncTask
  • Rcon
  • RconTask
  • Session
  • ShieldSession
  • ShoppingCart
  • SignUtils
  • SkinUtils
  • SpySession
  • SubCommandMap
  • TPUtils
  • Overview
  • Namespace
  • Class

Class ArmorItems

Armor related values

Abstract
Namespace: aliuly\common
Located at aliuly/common/ArmorItems.php
Methods summary
public static integer
# str2part( str $str )

Returns the armor part of a string

Returns the armor part of a string

Parameters

$str
  • string to parse

Returns

integer
public static integer
# str2quality( str $str )

Returns the armor quality of a string

Returns the armor quality of a string

Parameters

$str
  • string to parse

Returns

integer
public static integer
# getItemId( integer $q, integer $p )

Returns the item ID from an armor class / armor type constants

Returns the item ID from an armor class / armor type constants

Parameters

$q
  • armor quality
$p
  • armor part

Returns

integer
public static integer
# getArmorPart( integer $item )

Given an item ID, return the armor type constant that applies...

Given an item ID, return the armor type constant that applies...

Parameters

$item
  • item id

Returns

integer
Constants summary
integer ERROR
# -1
integer HEAD
# 0
integer BODY
# 1
integer LEGS
# 2
integer BOOTS
# 3
integer NONE
# 0
string LEATHER
# aliuly\common\Item::LEATHER_CAP
string CHAINMAIL
# aliuly\common\Item::CHAIN_HELMET
string IRON
# aliuly\common\Item::IRON_HELMET
string DIAMOND
# aliuly\common\Item::DIAMOND_HELMET
string GOLD
# aliuly\common\Item::GOLD_HELMET
API documentation generated by ApiGen