Loading...   

  • event_say

    Triggered when a client has a npc targeted, the npc is not in combat and they /say something. Passes an event table as an argument:

    {
      NPC self;
      Client other;
      String message;
      Integer language;
    }
    
  • event_trade

    Triggered when a client trades money or items to a npc. Passes an event table as an argument:

    {
      NPC self;
      Client other;
      Trade trade;
    }
    

    The Trade table has the following structure:

    {
      ItemInst item1;
      ItemInst item2;
      ItemInst item3;
      ItemInst item4;
      Integer copper;
      Integer silver;
      Integer gold;
      Integer platinum;
    }
    
  • event_death

    Triggered when the npc dies. Passes an event table as an argument:

    {
      NPC self;
      Mob other;
      Integer damage;
      Spell spell;
      Integer skill_id;
    }
    

    Returning a non-zero value from this function will cancel the death

  • event_death_complete

    Triggered when the npc dies and the death is complete. Passes an event table as an argument:

    {
      NPC self;
      Mob other;
      Integer damage;
      Spell spell;
      Integer skill_id;
    }
    
  • event_spawn

    Triggered when the npc spawns for the first time. Passes an event table as an argument:

    {
      NPC self;
    }
    
  • event_combat

    Triggered when the the combat state of a npc changes Passes an event table as an argument:

    {
      NPC self;
      Boolean joined;
    }
    
  • event_slay

    Triggered when this npc slays an enemy Passes an event table as an argument:

    {
      NPC self;
      Mob other;
    }
    
  • event_waypoint_arrive

    Triggered when this npc arrives at a grid waypoint Passes an event table as an argument:

    {
      NPC self;
      Integer wp;
    }
    
  • event_waypoint_depart

    Triggered when this npc departs from a grid waypoint Passes an event table as an argument:

    {
      NPC self;
      Integer wp;
    }
    
  • event_timer

    Triggered when a timer attached to this npc is triggered Passes an event table as an argument:

    {
      NPC self;
      String timer;
    }
    
  • event_signal

    Triggered when this npc receives a signal Passes an event table as an argument:

    {
      NPC self;
      Integer signal;
    }
    
  • event_hp

    Triggered when this npc falls below the last hp event or rises above the last inc hp event. Passes an event table as an argument:

    {
      NPC self;
      Integer hp_event;
      Integer inc_hp_event;
    }
    
  • event_enter

    Triggered when a client enters our set proximity. Passes an event table as an argument:

    {
      NPC self;
      Client other;
    }
    
  • event_exit

    Triggered when a client exits our set proximity. Passes an event table as an argument:

    {
      NPC self;
      Client other;
    }
    
  • event_cast_on

    Triggered when a spell is cast on this npc. Passes an event table as an argument:

    {
      NPC self;
      Spell spell;
    }
    
  • event_aggro_say

    Triggered when a client has a npc targeted and they /say something. Passes an event table as an argument:

    {
      NPC self;
      Client other;
      String message;
      Integer language;
    }
    
  • event_proximity_say

    Triggered when a client has a npc targeted, the npc is not in combat and they /say something. Passes an event table as an argument:

    {
      NPC self;
      Client other;
      String message;
      Integer language;
    }
    
  • event_cast

    Triggered when this npc finishes casting a spell. Passes an event table as an argument:

    {
      NPC self;
      Spell spell;
    }
    
  • event_cast_begin

    Triggered when this npc begins casting a spell. Passes an event table as an argument:

    {
      NPC self;
      Spell spell;
    }
    
  • event_target_change

    Triggered when this npc has its' target change. Passes an event table as an argument:

    {
      NPC self;
      Mob other;
    }
    
  • event_hate_list

    Triggered when a target is added/removed to/from this npc's hatelist. Passes an event table as an argument:

    {
      NPC self;
      Mob other;
      Boolean joined;
    }
    
  • event_feign_death

    Triggered when a client attempts to feign death against this npc. Passes an event table as an argument:

    {
      NPC self;
      Client other;
    }
    

    Returning a non-zero value will cancel the feign death

  • event_task_accepted

    Triggered when a client accepts a task offered by this npc. Passes an event table as an argument:

    {
      NPC self;
      Client other;
      Integer task_id;
    }
    
  • event_enter_area

    Triggered when a npc enters an area defined by the quest system. Passes an event table as an argument:

    {
      NPC self;
      Integer area_id;
      Integer area_type;
    }
    
  • event_leave_area

    Triggered when a npc leaves an area defined by the quest system. Passes an event table as an argument:

    {
      NPC self;
      Integer area_id;
      Integer area_type;
    }