ignore players

Posts 1–11 of 11 · Page 1 of 1
ignore players
Hello guys, I'm making a script and i'm stuck.

I am trying to make it auto ignore a player after 3 canceled trade attempts.

my problem is grabbing the username to ignore. Do you know of any ways to get a player name into the clipboard from the client?
As soon as I get my computer I'll code that for you. Keep me updated.
What script? AHK, RR etc.?
Quote Originally Posted by Notsomeone View Post
What script? AHK, RR etc.?
I dont see any ways this could work in AHK lol
Quote Originally Posted by Alde. View Post

I dont see any ways this could work in AHK lol
I don't either, but then there is:

Quote Originally Posted by FainTMako View Post
Do you know of any ways to get a player name into the clipboard from the client?
Quote Originally Posted by Notsomeone View Post
I don't either, but then there is:
Ohhh... I red too fast..

I dont think I'm hable to do that..

I'll try my best :/
well realm relay auto ignore based on 3 canceled or rejected trades for the same player within 3 minutes would be great but I am using muledump to login to my mules and muledump does not like to work with realm relay for some reason. I have been trying for days and cant figure it out.
Try this

 
AntiTrade Script

// AntiTrade.js
var ID_TRADEREQUESTED = $.findPacketId("TRADEREQUESTED");
var count = 0;
var needReset = false;
var forceReset = false;

function onServerPacket(event) {
var packet = event.getPacket();
switch (packet.id()) {

case ID_TRADEREQUESTED: {
count++;
if(count > 3){
event.cancel();
if(needReset == false) {
needReset = true;
$.echo("Max Trades Reached");
$.scheduleEvent(20, "ResetCount");
}
}
}
}
if(count > 0) {
if(forceReset == false) {
forceReset = true;
$.scheduleEvent(10, "ResetCount");
}
}
}
function ResetCount(event) {
count = 0;
needReset = false;
forceReset = false;
$.echo("Trade Count Reset");
}


What this does is. in 10 seconds if someone tries to trade you 3 times within that time it will cancel all trade attemps until trade count gets reset

Find a way to place this script below into the above script so when you type /reset into chat it should then re-enable trade requests

 
/reset command

case ID_PLAYER_TEXT: {
var text = packet.text;
if(text == "/reset"){
event.cancel();
ability = !ability;
if(ability)
this.displayNotification(event, player_id, 0xFF3333, "Auto-Aim abilities enabled");
else
this.displayNotification(event, player_id, 0xFF3333, "Auto-Aim abilities disabled");
}
break;
Quote Originally Posted by rocker1988 View Post
Try this

 
AntiTrade Script

// AntiTrade.js
var ID_TRADEREQUESTED = $.findPacketId("TRADEREQUESTED");
var count = 0;
var needReset = false;
var forceReset = false;

function onServerPacket(event) {
var packet = event.getPacket();
switch (packet.id()) {

case ID_TRADEREQUESTED: {
count++;
if(count > 3){
event.cancel();
if(needReset == false) {
needReset = true;
$.echo("Max Trades Reached");
$.scheduleEvent(20, "ResetCount");
}
}
}
}
if(count > 0) {
if(forceReset == false) {
forceReset = true;
$.scheduleEvent(10, "ResetCount");
}
}
}
function ResetCount(event) {
count = 0;
needReset = false;
forceReset = false;
$.echo("Trade Count Reset");
}


What this does is. in 10 seconds if someone tries to trade you 3 times within that time it will cancel all trade attemps until trade count gets reset

Find a way to place this script below into the above script so when you type /reset into chat it should then re-enable trade requests

 
/reset command

case ID_PLAYER_TEXT: {
var text = packet.text;
if(text == "/reset"){
event.cancel();
ability = !ability;
if(ability)
this.displayNotification(event, player_id, 0xFF3333, "Auto-Aim abilities enabled");
else
this.displayNotification(event, player_id, 0xFF3333, "Auto-Aim abilities disabled");
}
break;
Nice script, but eww... You should learn to use indentation.
thanks for the help guys. i'd like to assign each user i trade to a variable if that wouldnt be too laggy so i could keep track of completed and failed trades of every person i trade.

Realm relay is back up as a option as I got it to work with the bot i made and i entirely eliminated mule dump.

Thanks so far for your help and suggestions.
Posts 1–11 of 11 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us