ghetto but functional
@@ -0,0 +1,33 @@
+uint64 gameId
+int32 type
+uint32 key1
+uint32 key2
+int32 questTaskId
+int32 textId
+uint32 id
+bool autoClose
+uint32 unk5
+int32 unk6
+int32 unk7
+int32 unk8
+int32 maxRepeatCount
+byte unk10
+
+array buttons
+- int32 id
+- int32 index
+- int32 type
+- string text
+array unkArray
+- uint32 unk1
+- uint32 unk2
+- uint32 unk3
+- uint32 unk4
+- uint32 unk5
+- uint32 unk6
+- uint32 unk7
+- uint32 unk8
+- uint32 unk9
+- uint32 unk10
+- uint32 unk11
@@ -1,5 +1,6 @@
module.exports = function justspamf(d) {
- d.hook('S_DIALOG', 5, (e) => {
+ if(d.majorPatchVersion == 92) d.dispatch.addDefinition('S_DIALOG', 99, __dirname + '/S_DIALOG.def', true)
+ d.hook('S_DIALOG', '*', (e) => {
if (!e.buttons.length || !d.settings.enabled) return
for (let i = 0; i < e.buttons.length; i++) { if ([1, 2, 3, 4, 5, 51, 53, 54, 55, 56, 63].includes(e.buttons[i].type)) e.buttons[i].type = 43 }
e.type = 1
@@ -1,10 +1,9 @@
{
"files": {
+ "README.md": "c188202dee9f587fdc405f021367b7bf7ea7469af9010610f943001c3fc8bd57",
+ "S_DIALOG.def": "86dedec41fdb60dcf55aa9fc8dc8dd1d6da294c7cf3c08fc0aa7ba865209fd9e",
"config_generator.js": "fd4ec54089ed0a66a8d85784d5d0f61fbe93e5b72ac33f765b86a432b98889b4",
- "index.js": "df946575722a4006a890a53d640626e61b4c24b5ecc2107ee9d9b332ae6d0fe6",
+ "index.js": "3524d6d683e2ba5862066d8199c08d0b47670713a7de03668bbb95fa61543543",
"module.json": "719b5e0c0f09eb702bfe77cf470208d0ecd4e0d65942debdd847988b3673a875"
- },
- "defs": {
- "S_DIALOG": [3,4,5]
}
-}
+}