Supported actions and their behavior are described below. Use XML item configuration to set the desired default_action.
- Creating an Item
- Define the item in the XML file (data/items/).
- Specify default_action from the list below.
- ACTION_SHOW_HTML
- Displays an HTML page from the help/ folder named {itemId}.htm.
- Example: <etcitem id="6317" name="Mixing Manual"> with default_action="ACTION_SHOW_HTML".
- Required: help/6317.htm file in the server’s data folder.
- ACTION_SHOW_SSQ_STATUS
- Shows the Seven Signs (SSQ) status for the player.
- Example: <etcitem id="XXXX" name="SSQ Status Item"> with default_action="ACTION_SHOW_SSQ_STATUS".
- ACTION_XMAS_OPEN
- Opens the Christmas event interface for the specified itemId.
- Example: <etcitem id="XXXX" name="XMas Seal"> with default_action="ACTION_XMAS_OPEN".
- ACTION_CALC
- Opens a calculator for the specified itemId.
- Example: <etcitem id="XXXX" name="Calculator"> with default_action="ACTION_CALC".
- ACTION_DICE
- Rolls a die (1-6) and broadcasts the result around the player.
- Restrictions: Cannot be used in Olympiad or while sitting.
- Example: <etcitem id="XXXX" name="Dice"> with default_action="ACTION_DICE".
- ACTION_HARVEST
- Performs a "harvest" action on a dead monster using skill (ID 2098, level 1).
- Required: Target must be a dead monster.
- Example: <etcitem id="5125" name="Harvester"> with default_action="ACTION_HARVEST".
- ACTION_NICK_COLOR
- Opens the nickname color change interface for the specified itemId.
- Example: <etcitem id="XXXX" name="Nick Color Changer"> with default_action="ACTION_NICK_COLOR".
- ACTION_SHOW_MAP
- Displays a minimap for the specified itemId.
- Example: <etcitem id="XXXX" name="Map"> with default_action="ACTION_SHOW_MAP".
- ACTION_SHOW_MULTISELL
- Opens a multisell shop for the specified itemId.
- Required: Corresponding multisell file in data/multisell/.
- Example: <etcitem id="XXXX" name="Multisell Item"> with default_action="ACTION_SHOW_MULTISELL".
- Creating an Item
- Example XML:
Code:
<etcitem id="6317" name="Mixing Manual">
<set name="default_action" value="ACTION_SHOW_HTML"/>
<set name="tradeable" value="true"/>
<set name="dropable" value="false"/>
<set name="class" value="OTHER"/>
<set name="crystal_type" value="NONE"/>
<set name="icon" value="icon.etc_spellbook_red_i00"/>
<set name="price" value="1"/>
<set name="type" value="OTHER"/>
<set name="weight" value="20"/>
</etcitem>
- Additional Files
- For ACTION_SHOW_HTML: Create an HTML file in data/help/ named {itemId}.htm.
- For ACTION_SHOW_MULTISELL: Configure the multisell in data/multisell/{itemId}.xml Also, this multiseller configuration must specify <config showall="true" notax="true" no_merchant="true" keepenchanted="false" />
Code:
<?xml version='1.0' encoding='utf-8'?>
<!-- Adventure guildsman - Use Life Crystals (Aden) -->
<list>
<config showall="true" notax="true" no_merchant="true" keepenchanted="false" />
<!-- Crystal Staff -->
<item id="1">
<ingredient id="8158" count="102"/>
<ingredient id="8161" count="28"/>
<ingredient id="8164" count="112"/>
<ingredient id="8167" count="56"/>
<production id="192" count="1"/>
</item>
</list>
Last edited:

