Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function (f) {
- newNpc = function (n) {
- f.apply(null, arguments);
- for (var i in n) {
- if (!n.hasOwnProperty(i) || isset(n[i].del))
- continue;
- if (n[i].wt > 19 && n[i].wt < 30) {
- if (unix_time() < margoStorage.get(`e2msg/${n[i].nick}`))
- continue;
- const text = `/k E2: ${n[i].nick} (${n[i].lvl}lvl)`;
- _g('chat', {c: text});
- margoStorage.set(`e2msg/${n[i].nick}`, unix_time() + 60 * 1);
- }
- }
- }
- })(newNpc);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement