Class DeathEvent
java.lang.Object
net.storm.sdk.script.blocking_events.BlockingEvent
net.storm.sdk.script.blocking_events.DeathEvent
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 Summary
Constructors -
Method Summary
-
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:
validatein classBlockingEvent- Returns:
trueif the player is in Death's office,falseotherwise
-
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:
loopin classBlockingEvent- Returns:
- sleep duration in milliseconds (always 1000ms or -1 on completion)
-