diff --git a/index.js b/index.js index f05e067..fc74228 100644 --- a/index.js +++ b/index.js @@ -8,9 +8,9 @@ To discover more ids, hook S_SPAWN_NPC and check huntingzoneid and templateId. O Configs are in config.json. If you do not have it, it will be auto generated on your first login */ - const path = require('path'), - fs = require('fs') + fs = require('fs'), + Vec3 = require('tera-vec3') module.exports = function markmob(mod) { @@ -164,7 +164,7 @@ module.exports = function markmob(mod) { function markthis(locs,idRef) { mod.send('S_SPAWN_DROPITEM', 6, { gameId: idRef, - loc:locs, + loc: new Vec3(0, 0, -1000).add(locs), item: Item_ID, amount: 1, expiry: 300000, //expiry time,milseconds (300000=5 mins?) diff --git a/manifest.json b/manifest.json index 60ca7b5..e2ca2e8 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "files": { - "index.js": "dbe042968fdf8b429f3107ab5d037a60ce4dc18c943fa25bf1772d2c138ac152", + "index.js": "790a84928f9b994530e4b55d32f89c7f28b183459961e0d40822758257aeca54", "module.json": "4f6303159a193c196fa2882f1c7cfa8331ea8af578a57544c00f806586286344", "lib/configDefault.json": "4dfaf72641dbed16134f9835ff0dcaf57c5e385a57cb3b38b4fbe14343795016" }, @@ -12,4 +12,4 @@ "S_DESPAWN_NPC": 3, "S_LOAD_TOPO": 3 } -} \ No newline at end of file +}