Advertisement
Guest User

Untitled

a guest
Jun 24th, 2018
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. (function (f) {
  2. newNpc = function (n) {
  3. f.apply(null, arguments);
  4.  
  5. for (var i in n) {
  6. if (!n.hasOwnProperty(i) || isset(n[i].del))
  7. continue;
  8.  
  9. if (n[i].wt > 19 && n[i].wt < 30) {
  10. if (unix_time() < margoStorage.get(`e2msg/${n[i].nick}`))
  11. continue;
  12.  
  13. const text = `/k E2: ${n[i].nick} (${n[i].lvl}lvl)`;
  14. _g('chat', {c: text});
  15.  
  16. margoStorage.set(`e2msg/${n[i].nick}`, unix_time() + 60 * 1);
  17. }
  18. }
  19. }
  20. })(newNpc);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement