OTS_Spell __construct(
int
$type,
$spell
)
|
|
Sets spell info.
Sets spell info.
Parameters:
|
int |
$type: |
Spell type. |
|
DOMElement |
$spell: |
Spell info. |
API Tags:
Information Tags:
| Version: | 0.0.7 |
| Since: | 0.0.7 |
Creates conjure item.
Creates conjure item.
Note: You need to have global items list resource loaded in order to use this method.
API Tags:
| Return: | Conjured item. |
| Access: | public |
Information Tags:
| Version: | 0.1.0 |
| Version: | 0.0.7 |
| Throws: | DOMException On DOM operation error. |
| Throws: | E_OTS_NotLoaded When there is no global items list available. |
| Since: | 0.0.7 |
| Since: | 0.1.0 |
Number of rune charges.
Number of rune charges.
API Tags:
| Return: | Rune charges. |
| Access: | public |
Information Tags:
| Version: | 0.0.7 |
| Throws: | DOMException On DOM operation error. |
| Since: | 0.0.7 |
Returns item type of conjured item.
Returns item type of conjured item.
Note: You need to have global items list resource loaded in order to use this method.
API Tags:
| Return: | Returns item type of conjure item (null if not exists). |
| Access: | public |
Information Tags:
| Version: | 0.1.0 |
| Version: | 0.0.7 |
| Throws: | DOMException On DOM operation error. |
| Throws: | E_OTS_NotLoaded When there is no global items list available. |
| Since: | 0.0.7 |
| Since: | 0.1.0 |
Returns amount of items conjured by this spell.
Returns amount of items conjured by this spell.
API Tags:
| Return: | Items count. |
| Access: | public |
Information Tags:
| Version: | 0.0.7 |
| Throws: | DOMException On DOM operation error. |
| Since: | 0.0.7 |
API Tags:
| Return: | Item ID. |
| Deprecated: | 0.1.0 Use getConjure()->getId(). |
| Access: | public |
Information Tags:
| Version: | 0.0.7 |
| Since: | 0.0.7 |
Returns rune item id.
Returns rune item id.
API Tags:
| Return: | Rune item ID. |
| Access: | public |
Information Tags:
| Version: | 0.0.7 |
| Throws: | DOMException On DOM operation error. |
| Since: | 0.0.7 |
Level required for use.
Level required for use.
API Tags:
| Return: | Required level. |
| Access: | public |
Information Tags:
| Version: | 0.0.7 |
| Throws: | DOMException On DOM operation error. |
| Since: | 0.0.7 |
Magic level required to cast.
Magic level required to cast.
API Tags:
| Return: | Required magic level. |
| Access: | public |
Information Tags:
| Version: | 0.0.7 |
| Throws: | DOMException On DOM operation error. |
| Since: | 0.0.7 |
Mana cost.
Mana cost.
API Tags:
| Return: | Mana usage. |
| Access: | public |
Information Tags:
| Version: | 0.0.7 |
| Throws: | DOMException On DOM operation error. |
| Since: | 0.0.7 |
Returns spell name.
Returns spell name.
API Tags:
| Return: | Name. |
| Access: | public |
Information Tags:
| Version: | 0.0.7 |
| Throws: | DOMException On DOM operation error. |
| Since: | 0.0.7 |
Returns item type of reagent item.
Returns item type of reagent item.
Note: You need to have global items list resource loaded in order to use this method.
API Tags:
| Return: | Returns item type of reagent item (null if not exists). |
| Access: | public |
Information Tags:
| Version: | 0.1.0 |
| Version: | 0.0.7 |
| Throws: | DOMException On DOM operation error. |
| Throws: | E_OTS_NotLoaded When there is no global items list available. |
| Since: | 0.0.7 |
| Since: | 0.1.0 |
API Tags:
| Return: | Reagent ID. |
| Deprecated: | 0.1.0 Use getReagent()->getId(). |
| Access: | public |
Information Tags:
| Version: | 0.0.7 |
| Since: | 0.0.7 |
Soul points cost.
Soul points cost.
API Tags:
| Return: | Soul points usage. |
| Access: | public |
Information Tags:
| Version: | 0.0.7 |
| Throws: | DOMException On DOM operation error. |
| Since: | 0.0.7 |
Returns spell type.
Returns spell type.
API Tags:
| Return: | Spell type. |
| Access: | public |
Information Tags:
| Version: | 0.0.7 |
| Since: | 0.0.7 |
Returns list of vocations that are allowed to learn this spell.
Returns list of vocations that are allowed to learn this spell.
API Tags:
| Return: | List of vocation names. |
| Access: | public |
Information Tags:
| Version: | 0.0.7 |
| Throws: | DOMException On DOM operation error. |
| Since: | 0.0.7 |
Returns spell formula.
Returns spell formula.
API Tags:
| Return: | Formula. |
| Access: | public |
Information Tags:
| Version: | 0.0.7 |
| Throws: | DOMException On DOM operation error. |
| Since: | 0.0.7 |
Checks if spell has parameter.
Checks if spell has parameter.
API Tags:
| Return: | True if spell takes a parameter. |
| Access: | public |
Information Tags:
| Version: | 0.0.7 |
| Throws: | DOMException On DOM operation error. |
| Since: | 0.0.7 |
API Tags:
| Return: | Is spell aggressive. |
| Deprecated: | 0.1.0 Use isAggressive(). |
| Access: | public |
Information Tags:
| Version: | 0.1.0 |
| Version: | 0.0.7 |
| Since: | 0.0.7 |
Checks if spell is threated as unfriendly by other creatures.
Checks if spell is threated as unfriendly by other creatures.
API Tags:
| Return: | Is spell aggressive. |
| Access: | public |
Information Tags:
| Version: | 0.1.0 |
| Version: | 0.0.7 |
| Throws: | DOMException On DOM operation error. |
| Since: | 0.1.0 |
| Since: | 0.0.7 |
Checks if spell is enabled.
Checks if spell is enabled.
API Tags:
| Return: | Is spell enabled. |
| Access: | public |
Information Tags:
| Version: | 0.0.7 |
| Throws: | DOMException On DOM operation error. |
| Since: | 0.0.7 |
Checks if distance use allowed.
Checks if distance use allowed.
API Tags:
| Return: | Is it possible to use this spell from distance. |
| Access: | public |
Information Tags:
| Version: | 0.0.7 |
| Throws: | DOMException On DOM operation error. |
| Since: | 0.0.7 |
Checks if spell needs to be learned.
Checks if spell needs to be learned.
API Tags:
| Return: | Does this spell need to be learned. |
| Access: | public |
Information Tags:
| Version: | 0.0.7 |
| Throws: | DOMException On DOM operation error. |
| Since: | 0.0.7 |
Checks if spell requires PACC.
Checks if spell requires PACC.
API Tags:
| Return: | Is spell only for Premium Account. |
| Access: | public |
Information Tags:
| Version: | 0.0.7 |
| Throws: | DOMException On DOM operation error. |
| Since: | 0.0.7 |
mixed __get(
string
$name
)
|
|
Magic PHP5 method.
Magic PHP5 method.
Parameters:
|
string |
$name: |
Property name. |
API Tags:
| Return: | Property value. |
| Access: | public |
Information Tags:
| Version: | 0.1.0 |
| Version: | 0.0.7 |
| Throws: | OutOfBoundsException For non-supported properties. |
| Throws: | E_OTS_NotLoaded When there is no global items list available. |
| Since: | 0.0.7 |
| Throws: | DOMException On DOM operation error. |
| Since: | 0.1.0 |
Returns string representation of XML.
Returns string representation of XML.
If any display driver is currently loaded then it uses it's method. Otherwise just returns spell XML format.
API Tags:
| Return: | String representation of object. |
| Access: | public |
Information Tags:
| Version: | 0.1.3 |
| Version: | 0.0.7 |
| Since: | 0.0.7 |
| Since: | 0.1.0 |