Skip to content

Instantly share code, notes, and snippets.

@dicene
dicene / MapRando_RoomNames.asm
Last active April 14, 2023 00:41
MapRando RoomName ASM
'A' = $C0
'B' = $C1
'C' = $C2
'D' = $C3
'E' = $C4
'F' = $C5
'G' = $C6
'H' = $C7
'I' = $C8
'J' = $C9
@dicene
dicene / scrapeDND.lua
Created August 8, 2019 02:07
Mudlet Spell Scraper
function downloadSpell()
print("Downloading...")
--downloadFile(getMudletHomeDir().."/spell.html", [[https://www.dndbeyond.com/spells?filter-class=0&filter-search=acid+splash&filter-verbal=&filter-somatic=&filter-%20material=&filter-concentration=&filter-ritual=&filter-sub-class=]])
downloadFile(getMudletHomeDir().."/spell.html", [[http://regalgoblins.com/spells-5e.php]])
end
function trim(s)
return (s:gsub("^%s*(.-)%s*$", "%1"))
end
@dicene
dicene / test.lua
Created July 9, 2019 23:27
Lua Test
inv = {"item1", "item2"}
inv.pack = {"packitem1", "packitem2"}
backpack = inv.pack
echo("Inv:")
display(inv)
echo("Pack:")
display(inv.pack)
echo("Backpack:")
display(backpack)
table.insert(backpack, "another backpack item")
asdfasdf
@dicene
dicene / gist:b714660b13da4bd7767f89182476af4c
Last active November 1, 2018 23:02
Lua Scraping Function
// http://novicelab.org/jsonabc/ is a good resource to sort and beautify the json so that commits are clean.
function scrapeit()
print("Downloading...")
downloadFile(getMudletHomeDir().."/functions.html", "https://wiki.mudlet.org/w/Manual:Lua_Functions")
end
function trim(s)
return (s:gsub("^%s*(.-)%s*$", "%1"))
end
02:13:38: Running steps for project src...
02:13:38: Starting: "C:\Qt5.8\5.8\mingw53_32\bin\qmake.exe" C:\Users\Dicene\Documents\GitHub\Mudlet\src\src.pro -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug"
02:13:55: The process "C:\Qt5.8\5.8\mingw53_32\bin\qmake.exe" exited normally.
02:13:55: Starting: "C:\Qt5.8\Tools\mingw530_32\bin\mingw32-make.exe" qmake_all
mingw32-make: Nothing to be done for 'qmake_all'.
02:13:56: The process "C:\Qt5.8\Tools\mingw530_32\bin\mingw32-make.exe" exited normally.
02:13:56: Starting: "C:\Qt5.8\Tools\mingw530_32\bin\mingw32-make.exe"
C:/Qt5.8/Tools/mingw530_32/bin/mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory 'C:/Users/Dicene/Documents/GitHub/Mudlet/src'
g++ -pipe -fno-keep-inline-dllexport -Wall -Wno-deprecated -Wno-unused-local-typedefs -Wno-unused-parameter -g -O0 -std=gnu++11 -w -frtti -dM -E -o debug\moc_predefs.h C:\Qt5.8\5.8\mingw53_32\mkspecs\features\data\dummy.cpp