Browse Source

GF v110.2

Dmitry Shin 5 years ago
parent
commit
b3ac535357
4 changed files with 12 additions and 11 deletions
  1. 0 5
      C_REQUEST_CONTRACT.50.def
  2. 9 2
      index.js
  3. 2 3
      manifest.json
  4. 1 1
      module.json

+ 0 - 5
C_REQUEST_CONTRACT.50.def

@@ -1,5 +0,0 @@
-int32 type
-int64 target
-int32 value
-string name
-bytes data

+ 9 - 2
index.js

@@ -1,8 +1,15 @@
 module.exports = function NpcSummoner(mod) {
 module.exports = function NpcSummoner(mod) {
-	const path = require("path");
 	let zoneHw = false;
 	let zoneHw = false;
 
 
-	mod.dispatch.addDefinition("C_REQUEST_CONTRACT", 50, path.join(__dirname, "C_REQUEST_CONTRACT.50.def"));
+	mod.dispatch.addDefinition("C_REQUEST_CONTRACT", 50, [
+		["name", "refString"],
+		["data", "refBytes"],
+		["type", "int32"],
+		["target", "int64"],
+		["value", "int32"],
+		["name", "string"],
+		["data", "bytes"]
+	]);
 
 
 	Object.keys(mod.settings.npc).forEach(name => {
 	Object.keys(mod.settings.npc).forEach(name => {
 		mod.command.add(name, () => {
 		mod.command.add(name, () => {

+ 2 - 3
manifest.json

@@ -1,9 +1,8 @@
 {
 {
     "files": {
     "files": {
-        "C_REQUEST_CONTRACT.50.def": "2247897b86830f04c7b96500055087d9cb05070ffc8e21f679b797f760f03a89",
         "README.md": "18bf09cf92eadb42820d8d172c293aed65ca055cfee519cd960e8ade9f9e6212",
         "README.md": "18bf09cf92eadb42820d8d172c293aed65ca055cfee519cd960e8ade9f9e6212",
-        "index.js": "9b4222dc7a5896f1414e2c7e69534f84bdcdb1120a8f5ab3928b8e9c375d7050",
-        "module.json": "6d4b2c75270e1f967ff4ab7e6fdabd529a3e8fcbe63c5e9e4bda140318854b76",
+        "index.js": "9d5fd32d95978d97d882efa757c343b4d5f2f049b365cd4541ff89839bc36171",
+        "module.json": "0dd610430ea1eb46d05a7650bc1974616cc8842e90d498d3a7128fe61c5c6de5",
         "settings_migrator.js": "da402468235eade6a090bf1949a8fbcd1711a5af6eb1fb257ca512fe6edc7a00"
         "settings_migrator.js": "da402468235eade6a090bf1949a8fbcd1711a5af6eb1fb257ca512fe6edc7a00"
     },
     },
     "defs": {
     "defs": {

+ 1 - 1
module.json

@@ -11,5 +11,5 @@
     },
     },
     "servers": ["https://raw.githubusercontent.com/hsdn/npc-summoner/master/"],
     "servers": ["https://raw.githubusercontent.com/hsdn/npc-summoner/master/"],
     "disableAutoUpdate": false,
     "disableAutoUpdate": false,
-    "version": "10/20/2021"
+    "version": "10/22/2021"
 }
 }