Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {

Expand Down Expand Up @@ -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?)
Expand Down
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"files": {
"index.js": "dbe042968fdf8b429f3107ab5d037a60ce4dc18c943fa25bf1772d2c138ac152",
"index.js": "790a84928f9b994530e4b55d32f89c7f28b183459961e0d40822758257aeca54",
"module.json": "4f6303159a193c196fa2882f1c7cfa8331ea8af578a57544c00f806586286344",
"lib/configDefault.json": "4dfaf72641dbed16134f9835ff0dcaf57c5e385a57cb3b38b4fbe14343795016"
},
Expand All @@ -12,4 +12,4 @@
"S_DESPAWN_NPC": 3,
"S_LOAD_TOPO": 3
}
}
}