-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathPRS.lua
More file actions
23 lines (19 loc) · 793 Bytes
/
PRS.lua
File metadata and controls
23 lines (19 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
-- Procedural Realms Script (PRS) for Mudlet
-- by Stack (https://ilpdev.com/prs) & Dalem
local version = "@VERSION@"
-- check if the generic_mapper package is installed and, if so, uninstall it
if table.contains(getPackages(), "generic_mapper") then
uninstallPackage("generic_mapper")
end
registerAnonymousEventHandler("PRSState.Char.player", function()
PRSstats.stats()
end, true)
-- set Discord button to PR invite
setDiscordGameUrl("https://discord.gg/rRFEjc6vV9", "Procedural Realms")
-- Discord Rich Text Integration
setDiscordApplicationID("947477099596378142")
setDiscordGame("Procedural Realms")
local currentarea = getRoomArea(getPlayerRoom())
local areaname = getAreaTableSwap()[currentarea]
setDiscordDetail(areaname)
setDiscordElapsedStartTime(os.time(os.date("*t")))