📖RagnaScript Overview

Build custom Discord integrations with RagnaScript

RagnaScript lets you send any message from your server to Discord. Build custom announcements, event notifications, NPC interactions - anything you can imagine.

What You Can Build

  • Event announcements - Notify players when events start/end

  • Custom NPC messages - Let NPCs post to Discord

  • Achievement alerts - Celebrate player milestones

  • Staff notifications - Alert GMs to important events

  • Automated updates - Server status, maintenance notices

  • Player interactions - Let players send messages to Discord

Syntax

ragnascript("[action: action_name][field: value][field2: value2]...");

Messages use square brackets with key: value pairs.

Quick Example

// Send a message when a player completes a quest
ragnascript("[action: npc_message][channel: YOUR_CHANNEL_ID][npc_name: Quest Master][message: " + strcharinfo(0) + " completed the Dragon Slayer quest!][account_id: " + getcharid(3) + "][char_id: " + getcharid(0) + "]");

Available Actions

Action
Use For

message

Player chat messages

npc_message

NPC announcements

support_message

Staff alerts

Required Fields

Field
Description

action

What type of message to send

channel

Discord channel ID

account_id

Player's account ID (use 1 for system)

char_id

Player's character ID (use 0 for system)


Ready to build? See NPC Examples for copy-paste scripts.

Last updated