Class DeathEvent

java.lang.Object
net.storm.sdk.script.blocking_events.BlockingEvent
net.storm.sdk.script.blocking_events.DeathEvent

public class DeathEvent extends BlockingEvent
A blocking event that handles player death and interaction with Death's office.

When a player dies, they are teleported to Death's office where they must interact with Death to reclaim their items. This event automates that process by:

  • Talking to the Death NPC
  • Navigating through dialog options
  • Selecting incomplete dialog options (those not marked with strikethrough)
  • Using the portal to exit once all dialogs are completed
See Also:
  • Constructor Details

    • DeathEvent

      public DeathEvent()
  • Method Details

    • validate

      public boolean validate()
      Validates whether the death event should be active.

      The event is valid when the player is in an instanced region and the Death NPC is nearby, indicating the player is in Death's office.

      Specified by:
      validate in class BlockingEvent
      Returns:
      true if the player is in Death's office, false otherwise
    • loop

      public int loop()
      Executes the death event logic.

      Handles the interaction with Death NPC, navigates dialogs, and uses the portal to exit once all required dialogs have been completed.

      Specified by:
      loop in class BlockingEvent
      Returns:
      sleep duration in milliseconds (always 1000ms or -1 on completion)