

LlInstantMessage(llGetOwner(), "There was an unknown problem when sending a Discord message. LlInstantMessage(llGetOwner(), "There was a problem with the request when sending a Discord message. LlOwnerSay("There was a server error when sending a Discord message. Http_response(key id, integer status, list meta, string body) WebRequest = llHTTPRequest(webhookUrl,, body) String body = DiscordMessage(agentName, (string)count)

If (llGetSubString(agentName, -9, -1) = "Resident")ĪgentName = llDeleteSubString(agentName, -9, -1) If (id = (key)value) blackList += (key)value Įlse if (value = Name2Username(value)) blackList += value If (id = (key)value) whiteList += (key)value Įlse if (value = Name2Username(value)) whiteList += value Value = llDeleteSubString(data, 0, index) Setting = llToLower(llGetSubString(data, 0, index - 1)) If ((index = llSubStringIndex(data, "=")) != -1) Integer index = llSubStringIndex(data, " //") ĭata = llGetSubString(data, 0, index - 1) If (data = llStringTrim(data, STRING_TRIM)) NotecardQuery = llGetNotecardLine(NOTECARD, ++notecardLine) LlSetLinkPrimitiveParamsFast(LINK_SET, )

LlSetObjectDesc("Discord Raid Alerts by Thunder Rahja: ") Return llDumpList2String(nameParts, ".") If (llList2String(nameParts, 1) = "resident") return llList2String(nameParts, 0) If (llGetListLength(nameParts) > 2) return "" List nameParts = llParseString2List(llToLower(name),, ) NotecardQuery = llGetNotecardLine(NOTECARD, notecardLine) If (newNotecardId) notecardId = newNotecardId Key newNotecardId = llGetInventoryKey(NOTECARD) If (llGetInventoryType(NOTECARD) != INVENTORY_NOTECARD) return Return llList2Key(llGetObjectDetails(llList2Key(attachedList, 0), (list)OBJECT_GROUP), 0) List attachedList = llGetAttachedList(agent) * = END AVANCED SETTINGS AND CUSTOMIZABLE FUNCTIONS = */ String message = "ALERT: " + agentName + " wants to raid " + llGetRegionName() + " with a party of " + String DiscordMessage(string agentName, string raiderCount) + " Make sure that all members of your party have the same group active." Įlse if (reason = 3) answer = "There was a problem sending the alert to Discord. If (reason = 1) answer = "You or your group are not allowed to use this system." Įlse if (reason = 2) answer = "Your party must have at least " + (string)partySize + " members to send an alert." Please allow up to 5 minutes for combatants to arrive.") LlRegionSayTo(agent, 0, "Discord alert sent. PRIM_TEXT, "Looking for combat?\nClick to ping our Discord server",, 1]) LlSetLinkPrimitiveParamsFast(INDICATOR_LINK, [PRIM_GLOW, ALL_SIDES, 0.1, PRIM_FULLBRIGHT, ALL_SIDES, TRUE, PRIM_TEXT, "Raid Alert\nPlease wait.",, 1]) LlSetLinkPrimitiveParamsFast(INDICATOR_LINK, [PRIM_GLOW, ALL_SIDES, 0, PRIM_FULLBRIGHT, ALL_SIDES, FALSE,

LlSetLinkColor(INDICATOR_LINK,, ALL_SIDES) Integer touchTimeout = 1800 // in seconds Integer INDICATOR_LINK = 2 // Link number of the status indicator prim. * = BEGIN ADVANCED SETTINGS AND CUSTOMIZABLE FUNCTIONS = */ Copy the following to a new script in your inventory named "Raid Alert".Do not share your webhook URL with anyone! Select a channel in which messages will appear.Enter a name, which will be displayed when receiving messages.Open Server Settings for your Discord server and select the Webhooks tab.You must have the Manage Webhooks permission in your Discord server to create a webhook.
