Skip to content

Interface:Actions

Stefan A. Brannfjell edited this page Dec 19, 2017 · 7 revisions

Actions stuff... (TODO)

-- Empty!

Available events:

onUse()


onUse()

Description: This event runs each time a player uses an item by itself or with another item.
Parameters:

  • cid - Creature ID that uses the item.
  • item - Use or Use with... (first item)
  • fromPosition - Starting position
  • itemEx - Use with... (second item or creature)
  • toPosition - End position
  • isHotkey - Boolean, true if hotkey was used
Accepted return values: Boolean, false for a "You can not use this object." message, otherwise true
Example:
N/A  

Added in version: 1.0

Clone this wiki locally