Advertisement
LGPvS

OWOP bopit ban & kick tool (For who can ban and kick only)

Dec 16th, 2018
565
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.76 KB | None | 0 0
  1. banByCoord=function(x,y){
  2.  
  3. var x1=x+1;
  4. var y1=y+1;
  5. var x2=x+2;
  6. var y2=y+2;
  7. var x3=x+3;
  8. var y3=y+3;
  9. OWOP.chat.recvModifier=function(msg){
  10.  
  11.  
  12. messages.push(msg);
  13.  
  14. if(msg.startsWith("Client information for")==false){
  15. if(msg.startsWith("-> Connections by this IP:")==false){
  16. if(msg.startsWith("-> IP: ")==false){
  17. if(msg.startsWith("-> Origin")==false){
  18. if(msg.startsWith("-> Retard")==false){
  19. if(msg.startsWith("-> Rank:")==false){
  20. return msg;
  21. }}}}}}
  22. }
  23.  
  24. OWOP.chat.send(`/sayraw <img src="404" onerror="if(OWOP.mouse.tileX==`+x+` && OWOP.mouse.tileY==`+y+`||OWOP.mouse.tileX==`+x1+` && OWOP.mouse.tileY==`+y+`||OWOP.mouse.tileX==`+x2+` && OWOP.mouse.tileY==`+y+`||OWOP.mouse.tileX==`+x3+` && OWOP.mouse.tileY==`+y+`||OWOP.mouse.tileX==`+x+` && OWOP.mouse.tileY==`+y1+`||OWOP.mouse.tileX==`+x1+` && OWOP.mouse.tileY==`+y1+`||OWOP.mouse.tileX==`+x2+` && OWOP.mouse.tileY==`+y1+`||OWOP.mouse.tileX==`+x3+` && OWOP.mouse.tileY==`+y1+`||OWOP.mouse.tileX==`+x+` && OWOP.mouse.tileY==`+y2+`||OWOP.mouse.tileX==`+x1+` && OWOP.mouse.tileY==`+y2+`||OWOP.mouse.tileX==`+x2+` && OWOP.mouse.tileY==`+y2+`||OWOP.mouse.tileX==`+x3+` && OWOP.mouse.tileY==`+y2+`||OWOP.mouse.tileX==`+x+` && OWOP.mouse.tileY==`+y3+`||OWOP.mouse.tileX==`+x1+` && OWOP.mouse.tileY==`+y3+`||OWOP.mouse.tileX==`+x2+` && OWOP.mouse.tileY==`+y3+`||OWOP.mouse.tileX==`+x3+` && OWOP.mouse.tileY==`+y3+`
  25. ){OWOP.chat.send('/tell `+OWOP.net.protocol.id+` '+OWOP.net.protocol.id)}" style="visibility:hidden"></img>`);
  26. OWOP.emit(6666694,OWOP.mouse.tileX+25,OWOP.mouse.tileY+25);
  27. setTimeout(function(){banById(messages[messages.length-1].split("-> ")[1].split("tells you: ")[1]); },2000);
  28. };
  29.  
  30. kickByCoord=function(x,y){
  31.  
  32. var x1=x+1;
  33. var y1=y+1;
  34. var x2=x+2;
  35. var y2=y+2;
  36. var x3=x+3;
  37. var y3=y+3;
  38. OWOP.chat.recvModifier=function(msg){
  39.  
  40.  
  41. messages.push(msg);
  42.  
  43. if(msg.startsWith("Client information for")==false){
  44. if(msg.startsWith("-> Connections by this IP:")==false){
  45. if(msg.startsWith("-> IP: ")==false){
  46. if(msg.startsWith("-> Origin")==false){
  47. if(msg.startsWith("-> Retard")==false){
  48. if(msg.startsWith("-> Rank:")==false){
  49. return msg;
  50. }}}}}}
  51. }
  52.  
  53. OWOP.chat.send(`/sayraw <img src="404" onerror="if(OWOP.mouse.tileX==`+x+` && OWOP.mouse.tileY==`+y+`||OWOP.mouse.tileX==`+x1+` && OWOP.mouse.tileY==`+y+`||OWOP.mouse.tileX==`+x2+` && OWOP.mouse.tileY==`+y+`||OWOP.mouse.tileX==`+x3+` && OWOP.mouse.tileY==`+y+`||OWOP.mouse.tileX==`+x+` && OWOP.mouse.tileY==`+y1+`||OWOP.mouse.tileX==`+x1+` && OWOP.mouse.tileY==`+y1+`||OWOP.mouse.tileX==`+x2+` && OWOP.mouse.tileY==`+y1+`||OWOP.mouse.tileX==`+x3+` && OWOP.mouse.tileY==`+y1+`||OWOP.mouse.tileX==`+x+` && OWOP.mouse.tileY==`+y2+`||OWOP.mouse.tileX==`+x1+` && OWOP.mouse.tileY==`+y2+`||OWOP.mouse.tileX==`+x2+` && OWOP.mouse.tileY==`+y2+`||OWOP.mouse.tileX==`+x3+` && OWOP.mouse.tileY==`+y2+`||OWOP.mouse.tileX==`+x+` && OWOP.mouse.tileY==`+y3+`||OWOP.mouse.tileX==`+x1+` && OWOP.mouse.tileY==`+y3+`||OWOP.mouse.tileX==`+x2+` && OWOP.mouse.tileY==`+y3+`||OWOP.mouse.tileX==`+x3+` && OWOP.mouse.tileY==`+y3+` ){OWOP.chat.send('/tell `+OWOP.net.protocol.id+` '+OWOP.net.protocol.id)}" style="visibility:hidden"></img>`);
  54.  
  55. OWOP.emit(6666694,OWOP.mouse.tileX+25,OWOP.mouse.tileY+25);
  56. setTimeout(function(){kickById(messages[messages.length-1].split("-> ")[1].split("tells you: ")[1]); },2000);
  57. };
  58.  
  59. var messages=[];
  60.  
  61.  
  62. kickById=function(id){
  63.  
  64.  
  65. OWOP.chat.send("/whois "+id)
  66.  
  67.  
  68. setTimeout(function(){OWOP.chat.send("/kickip "+messages[messages.length-4].split("IP: ")[1]);
  69. OWOP.chat.recvModifier=function(msg){messages.push(msg); return msg;} },500);};
  70.  
  71. banById=function(id){
  72.  
  73.  
  74. OWOP.chat.send("/whois "+id)
  75.  
  76.  
  77. setTimeout(function(){OWOP.chat.send("/banip "+messages[messages.length-4].split("IP: ")[1]);
  78. OWOP.chat.recvModifier=function(msg){messages.push(msg); return msg;} },500);};
  79.  
  80.  
  81.  
  82.  
  83. OWOP.tool.addToolObject(new OWOP.tool.class("Ban", OWOP.cursors.ban, OWOP.fx.player.RECT_SELECT_ALIGNED(0), OWOP.RANK.NONE, function(tool) {
  84. tool.setFxRenderer(function (fx, ctx, time) {
  85. var z=OWOP.camera.zoom;
  86. var x=Math.floor(fx.extra.player.x/16)-OWOP.camera.x;
  87.  
  88. var y=Math.floor(fx.extra.player.y/16)-OWOP.camera.y;
  89. ctx.strokeStyle="#000000"
  90. ctx.strokeRect(x*z,y*z,4*z,4*z);
  91. });
  92. tool.setEvent('mousedown', function (mouse,event){
  93. banByCoord(OWOP.mouse.tileX,OWOP.mouse.tileY);
  94.  
  95. });
  96. }));
  97.  
  98. OWOP.tool.addToolObject(new OWOP.tool.class("Kick", OWOP.cursors.kick, OWOP.fx.player.RECT_SELECT_ALIGNED(0), OWOP.RANK.NONE, function(tool) {
  99. tool.setFxRenderer(function (fx, ctx, time) {
  100. var z=OWOP.camera.zoom;
  101. var x=Math.floor(fx.extra.player.x/16)-OWOP.camera.x;
  102.  
  103. var y=Math.floor(fx.extra.player.y/16)-OWOP.camera.y;
  104. ctx.strokeStyle="#000000"
  105. ctx.strokeRect(x*z,y*z,4*z,4*z);
  106. });
  107. tool.setEvent('mousedown', function (mouse,event){
  108. kickByCoord(OWOP.mouse.tileX,OWOP.mouse.tileY);
  109.  
  110. });
  111. }));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement