Results 1 to 10 of 10
  1. #1
    FainTMako's Avatar
    Join Date
    Nov 2013
    Gender
    male
    Posts
    332
    Reputation
    10
    Thanks
    244
    My Mood
    Inspired

    Auto Accept Trade [Realm Relay]

    This script will automatically accept incoming trades for you. its very fast.
    If you have any suggestions please let me know and i will surely do my best to implement them.

     

    Code:
    //accepttrade.js
    
    var ID_REQUESTTRADE = $.findPacketId("REQUESTTRADE");
    var ID_TRADEREQUESTED = $.findPacketId("TRADEREQUESTED");
    
    
    
    // This is the main function.
    
    function onServerPacket(event) 
    {
        // get the packet involved in this event
        packet = event.getPacket();
    
        if (packet.id() == ID_TRADEREQUESTED) 
    	{
    
           	   $.echo("!< Received a traderequested packet.");
    	   $.echo(">packet.name : " + packet.name);
    		//send trade request
    		var trade_packet = event.createPacket(ID_REQUESTTRADE);
    		trade_packet.name = packet.name;
    			event.sendToServer(trade_packet);
    
        	}
    
    
    }

  2. #2
    The richest man is not the one who has the most but the one who needs the least.
    MPGH Member
    Alde.'s Avatar
    Join Date
    Oct 2012
    Gender
    male
    Posts
    1,706
    Reputation
    166
    Thanks
    3,627
    My Mood
    Sleepy
    Great script Faint! Here is a shiny version of your script. Nothing added, just a little bit pruuuutty!

    Code:
    //accepttrade.js
    var ID_REQUESTTRADE = $.findPacketId("REQUESTTRADE");
    var ID_TRADEREQUESTED = $.findPacketId("TRADEREQUESTED");
    
    function onServerPacket(event) {
        packet = event.getPacket();
    
        if (packet.id() == ID_TRADEREQUESTED) {
    
            var trade_packet = event.createPacket(ID_REQUESTTRADE);
            trade_packet.name = packet.name;
            event.sendToServer(trade_packet);
    
        }
    
    
    }
    Last edited by Alde.; 01-08-2014 at 07:54 PM.
    Alde is Alde is

  3. #3
    infern000's Avatar
    Join Date
    Jul 2012
    Gender
    male
    Posts
    294
    Reputation
    10
    Thanks
    74
    Quote Originally Posted by ZBORNOX View Post
    Great script Faint! Here is a shiny version of your script. Nothing added, just a little bit pruuuutty!

    Code:
    //accepttrade.js
    var ID_TRADEREQUESTED = $.findPacketId("TRADEREQUESTED");
    
    function onServerPacket(event) {
        packet = event.getPacket();
    
        if (packet.id() == ID_TRADEREQUESTED) {
    
            var trade_packet = event.createPacket(ID_REQUESTTRADE);
            trade_packet.name = packet.name;
            event.sendToServer(trade_packet);
    
        }
    
    
    }
    aaaaaaaaaaaaaaaaaaaand u missed finding ID_REQUESTTRADE :/

  4. #4
    The richest man is not the one who has the most but the one who needs the least.
    MPGH Member
    Alde.'s Avatar
    Join Date
    Oct 2012
    Gender
    male
    Posts
    1,706
    Reputation
    166
    Thanks
    3,627
    My Mood
    Sleepy
    Quote Originally Posted by infern000 View Post
    aaaaaaaaaaaaaaaaaaaand u missed finding ID_REQUESTTRADE :/
    Ohhhh I'm stupid.. I didnt tought we needed it
    Alde is Alde is

  5. #5
    HACKLEARNER's Avatar
    Join Date
    Jan 2014
    Gender
    male
    Posts
    226
    Reputation
    10
    Thanks
    52
    Cheers, been looking for this for quite a while.. so it will auto accept a trade when you click accept?

  6. #6
    The richest man is not the one who has the most but the one who needs the least.
    MPGH Member
    Alde.'s Avatar
    Join Date
    Oct 2012
    Gender
    male
    Posts
    1,706
    Reputation
    166
    Thanks
    3,627
    My Mood
    Sleepy
    Quote Originally Posted by HACKLEARNER View Post
    when you click accept?
    When.. You do nothing..
    Alde is Alde is

  7. #7
    HACKLEARNER's Avatar
    Join Date
    Jan 2014
    Gender
    male
    Posts
    226
    Reputation
    10
    Thanks
    52
    Quote Originally Posted by ZBORNOX View Post


    When.. You do nothing..
    oh.. ok then thanks

  8. #8
    x-noob's Avatar
    Join Date
    Jul 2015
    Gender
    female
    Posts
    2
    Reputation
    10
    Thanks
    0

    Unhappy ??????

    how do i use this every time i try it it says

    Error: Invalid evaluation at line 2

    please help me

  9. #9
    x-noob's Avatar
    Join Date
    Jul 2015
    Gender
    female
    Posts
    2
    Reputation
    10
    Thanks
    0
    i think this isnt real....

  10. #10
    AmejiOrape's Avatar
    Join Date
    Dec 2014
    Gender
    male
    Posts
    184
    Reputation
    27
    Thanks
    99
    My Mood
    Relaxed
    Quote Originally Posted by x-noob View Post
    i think this isnt real....
    Nice fucking necro

Similar Threads

  1. Realm Relay auto nexus/pot
    By zekikez in forum Realm of the Mad God Tutorials & Source Code
    Replies: 36
    Last Post: 06-01-2015, 03:34 PM
  2. Realm Relay Updates + Ability Auto Aim
    By Nisuxen in forum Realm of the Mad God Tutorials & Source Code
    Replies: 157
    Last Post: 03-19-2015, 04:18 AM
  3. auto reply to message realm relay
    By FainTMako in forum Realm of the Mad God Help & Requests
    Replies: 2
    Last Post: 01-04-2014, 08:45 PM
  4. [WTS] LEVEL 30 EUW Account, Accept trades
    By Klazz in forum League of Legends Marketplace
    Replies: 0
    Last Post: 01-20-2013, 07:18 AM
  5. Black Ops | accept: trade-paysafe
    By viovio in forum Selling Accounts/Keys/Items
    Replies: 1
    Last Post: 05-13-2011, 11:45 AM