Loading...   

  • event_say

    Triggered when a client /says something. Passes an event table as an argument:

    {
      Client self;
      String message;
      Integer language;
    }
    
  • event_death

    Triggered when a client dies. Passes an event table as an argument:

    {
      Client self;
      Mob other;
      Integer damage;
      Spell spell;
      Integer skill;
    }
    

    Returning a non-zero value will cancel the death.

  • event_death_complete

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

    {
      Client self;
      Mob other;
      Integer damage;
      Spell spell;
      Integer skill;
    }
    
  • event_timer

    Triggered when a timer attached to this client expires. Passes an event table as an argument:

    {
      Client self;
      String timer;
    }
    
  • event_signal

    Triggered when a client is signaled. Passes an event table as an argument:

    {
      Client self;
      Integer signal;
    }
    
  • event_enter_zone

    Triggered when a client enters the zone. Passes an event table as an argument:

    {
      Client self;
    }
    
  • event_click_door

    Triggered when a client clicks on a door. Passes an event table as an argument:

    {
      Client self;
      Door door;
    }
    
  • event_loot

    Triggered when a client loots an item. Passes an event table as an argument:

    {
      Client self;
      ItemInst item;
    }
    
  • event_zone

    Triggered when a client attempts to zone to a new zone. Passes an event table as an argument:

    {
      Client self;
      Integer zone_id;
    }
    
  • event_level_up

    Triggered when a client levels up. Passes an event table as an argument:

    {
      Client self;
    }
    
  • event_task_stage_complete

    Triggered when a client completes a task stage. Passes an event table as an argument:

    {
      Client self;
      Integer task_id;
      Integer activity_id;
    }
    
  • event_task_update

    Triggered when a client has a task update progress. Passes an event table as an argument:

    {
      Client self;
      Integer task_id;
      Integer activity_id;
      Integer count;
    }
    
  • event_task_complete

    Triggered when a client has a task complete. Passes an event table as an argument:

    {
      Client self;
      Integer task_id;
      Integer activity_id;
      Integer count;
    }
    
  • event_task_fail

    Triggered when a client has a task fail. Passes an event table as an argument:

    {
      Client self;
      Integer task_id;
    }
    
  • event_player_pickup

    Triggered when a client picks an item up. Passes an event table as an argument:

    {
      Client self;
      ItemInst item;
    }
    
  • event_popup_response

    Triggered when a client picks an item up. Passes an event table as an argument:

    {
      Client self;
      Integer popup_id;
    }
    
  • event_cast

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

    {
      Client self;
      Spell spell;
    }
    
  • event_cast_begin

    Triggered when a client starts casting a spell. Passes an event table as an argument:

    {
      Client self;
      Spell spell;
    }
    
  • event_target_change

    Triggered when a client changes their target. Passes an event table as an argument:

    {
      Client self;
    }
    
  • event_combine_success

    Triggered when a client successfully combines a tradeskill recipe. Passes an event table as an argument:

    {
      Client self;
      Integer recipe_id;
      String recipe_name;
    }
    
  • event_combine_failure

    Triggered when a client fails to combine a tradeskill recipe. Passes an event table as an argument:

    {
      Client self;
      Integer recipe_id;
      String recipe_name;
    }
    
  • event_group_change

    Triggered when a client changes their group. Passes an event table as an argument:

    {
      Client self;
    }
    
  • event_forage_success

    Triggered when a client forages an item. Passes an event table as an argument:

    {
      Client self;
      ItemInst item;
    }
    
  • event_forage_failure

    Triggered when a client fails to forage an item. Passes an event table as an argument:

    {
      Client self;
    }
    
  • event_fish_start

    Triggered when a client starts to fish. Passes an event table as an argument:

    {
      Client self;
    }
    
  • event_fish_success

    Triggered when a client catches something while fishing. Passes an event table as an argument:

    {
      Client self;
      ItemInst item;
    }
    
  • event_fish_failure

    Triggered when a client fails to catch something while fishing. Passes an event table as an argument:

    {
      Client self;
    }
    
  • event_click_object

    Triggered when a client clicks on an object. Passes an event table as an argument:

    {
      Client self;
      Object object;
    }
    
  • event_discover_item

    Triggered when a client discovers an item (eg: the item is first seen on the server by this player). Passes an event table as an argument:

    {
      Client self;
      Item item;
    }
    
  • event_disconnect

    Triggered when a client disconnects from the server. Passes an event table as an argument:

    {
      Client self;
    }
    
  • event_connect

    Triggered when a client zones in for the first time from world. Passes an event table as an argument:

    {
      Client self;
    }
    
  • event_duel_win

    Triggered when a client wins a duel. Passes an event table as an argument:

    {
      Client self;
      Client other;
    }
    
  • event_duel_lose

    Triggered when a client loses a duel. Passes an event table as an argument:

    {
      Client self;
      Client other;
    }
    
  • event_command

    Triggered when a client enters a #command. Passes an event table as an argument:

    {
      Client self;
      String command;
      StringArray args;
    }
    

    Returning a non-zero value will suppress the command not found message

  • event_feign_death

    Triggered when a client feigns death. Passes an event table as an argument:

    {
      Client self;
      NPC other;
    }
    

    If a non-zero value is returned from this function then the feign death is canceled in the same way it is on the NPC version of event_feign_death.

  • event_enter_area

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

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

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

    {
      Client self;
      Integer area_id;
      Integer area_type;
    }
    
  • event_respawn

    Triggered when a client clicks respawn on the respawn window. Passes an event table as an argument:

    {
      Client self;
      Integer option;
      Boolean resurrect;
    }
    
  • event_unhandled_opcode

    Triggered when a client sends/receives an unhandled opcode. Passes an event table as an argument:

    {
      Client self;
      Packet packet;
      Boolean connecting;
    }