Loading...   

Item Scripts are quest scripts attached to Items. Items will load a script on the first event that triggers them and will load one and only one from the following location. Which ever it finds first in the following order:

  • ./quests/zone/items/item_script.lua
  • ./quests/global/items/item_script.lua
  • ./quests/zone/items/default.lua
  • ./quests/global/items/default.lua

The format of the item_script is as follows:

If ScriptFileID != 0
    item_script = "script_" + ScriptFileID
Else If CharmFile != ""
    item_script = CharmFile
Else
    item_script = item_id