Browse Source

Update index.js

Owyn 9 years ago
parent
commit
1efc4d2713
1 changed files with 2 additions and 1 deletions
  1. 2 1
      index.js

+ 2 - 1
index.js

@@ -1,4 +1,5 @@
 const Command = require('command');
+const sysmsg = require('tera-data-parser').sysmsg;
 
 module.exports = function boxOpener(dispatch){
 	const command = Command(dispatch)
@@ -99,7 +100,7 @@ module.exports = function boxOpener(dispatch){
 		});
 		
 		hook('S_SYSTEM_MESSAGE', 1, event => {
-            if(event.message == "@1242")  // SMT_ITEM_MIX_NEED_METERIAL
+            if(event.message == "@" + sysmsg.map.name['SMT_ITEM_MIX_NEED_METERIAL'])  // SMT_ITEM_MIX_NEED_METERIAL // 1242
 			{
                 stop();
             }