Class Chat

java.lang.Object
net.storm.sdk.community.Chat

public class Chat extends Object
Utility class for sending chat messages in the game.

This class provides methods for sending messages through the game's chat system, including public chat and other chat modes.

Messages are sent by invoking the game's chat script directly.

  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    send(String message, int modes, int clanType, boolean useTarget, int target)
    Sends a chat message with full control over chat parameters.
    static void
    sendPublic(String message)
    Sends a public chat message visible to nearby players.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Chat

      public Chat()
  • Method Details

    • sendPublic

      public static void sendPublic(String message)
      Sends a public chat message visible to nearby players.
      Parameters:
      message - the message text to send
    • send

      public static void send(String message, int modes, int clanType, boolean useTarget, int target)
      Sends a chat message with full control over chat parameters.

      This method provides low-level access to the chat system, allowing messages to be sent through different channels with various options.

      Parameters:
      message - the message text to send
      modes - the chat mode flags
      clanType - the clan chat type (0 for non-clan messages)
      useTarget - whether to send the message to a specific target
      target - the target identifier (-1 if not using a target)