Welcome, guest! Please login or register.

    * Shoutbox

    RefreshHistory
    • Travas: have you tried setting it to wumbo?
      Today at 06:08:31 PM
    • maindude5: i need help downloading the client
      Today at 04:49:54 PM
    • maindude5: i need help
      Today at 04:48:43 PM
    • Erix2k17: nvm anymore
      Today at 08:36:28 AM
    • Erix2k17: when i try to log in
      Today at 08:26:21 AM
    • Erix2k17: What does it mean when it says your account has been disabled check message board?
      Today at 08:26:16 AM
    • Equiiliibriium: If anyone is interested in joining a brand-new server that just opened less than a month ago, feel free to send me a PM or check us out @ [link]
      February 16, 2018, 06:07:11 AM
    • Travas: This server goes down on me more than EvilShadows23's mom
      February 15, 2018, 04:31:01 PM
    • EvilShadows23: serverdown?
      February 14, 2018, 03:41:31 PM
    • Travas: server was down for too long i want a refund
      February 13, 2018, 11:31:12 PM
    • Striker Fox2: Server should be back up
      February 13, 2018, 04:40:56 AM
    • Striker Fox2: Server is down for a bit longer than we thought, Blake the owner / Dev is on fixing some of the bigger bugs we have within the server, Once we have more info we will be sure to let yall know
      February 13, 2018, 03:06:03 AM
    • Travas: you gotta buy the correct viewing glasses
      February 09, 2018, 07:22:22 PM
    • birdwang: can someone help me with eclipse
      February 09, 2018, 05:46:25 PM
    • EvilShadows23: does anyone know? or is even anyone on the forums?
      February 09, 2018, 03:14:24 PM
    • EvilShadows23: why is server dowm?
      February 09, 2018, 03:09:58 PM
    • Striker Fox2: discord link [link]
      February 09, 2018, 11:02:49 AM
    • stCky: virus dont click, red name means hes banned but forum is broken so he can still use shoutbox #broken
      February 07, 2018, 08:19:33 PM
    • Travas: virus dont click that link
      February 07, 2018, 01:49:42 PM
    • Amcora:[link] <-- discord channel
      February 07, 2018, 04:04:09 AM

    Author Topic: Report Abuse Button [PI]  (Read 593 times)

    0 Members and 1 Guest are viewing this topic.

    Offlinebeale

    • Member
    • ***
    • Posts: 187
    • Thanks: +0/-0
      • View Profile
    Report Abuse Button [PI]
    « on: June 17, 2015, 11:24:12 PM »
    Wasn't sure if this was client sided or Server sided, so I will just leave it here in Server help section. I need to know how/where the report abuse interface is opened. I wish to change the button's purpose, and I want it to launch a new interface rather than the report abuse interface. I have already changed the text on the button, which was easy to find, but I cannot find where the interface for the report abuse (5875) is launched. Any help finding the proper class to look in, or just simply how to change it?
    RS2Ad banner

    Offlinesk8rdude461

    • MOPARSCAPE WAS HACKED
    • Member
    • ****
    • *
    • Posts: 12,471
    • Thanks: +0/-0
      • View Profile
    Re: Report Abuse Button [PI]
    « Reply #1 on: June 18, 2015, 12:11:05 PM »
    It's actually in the client.
    I honestly do not know why they would make a feature such as this client sided, because then it can be manipulated. (You can change it so you're "mod" and then it gives you the power to mute)
    But server sided checks would also prevent that :)

    The easiest way to find where the interface is opened, would be to search for this string:
    Code: [Select]
    "Please close the interface you have open before using 'report abuse'"You should get something like this:
    Code: Java
    1.                         if(j2 !=-1)
    2.                                 if(openInterfaceID ==-1){
    3.                                         clearTopInterfaces();
    4.                                         reportAbuseInput = s2.substring(j2 +5).trim();
    5.                                         canMute =false;
    6.                                         for(int i3 =0; i3 < RSInterface.interfaceCache.length; i3++){
    7.                                                 if(RSInterface.interfaceCache[i3]==null
    8.                                                                 || RSInterface.interfaceCache[i3].contentType!=600)
    9.                                                         continue;
    10.                                                 reportAbuseInterfaceID = openInterfaceID = RSInterface.interfaceCache[i3].parentID;
    11.                                                 break;
    12.                                         }
    13.  
    14.                                 }else{
    15.                                         pushMessage("Please close the interface you have open before using 'report abuse'", 0, "");
    16.                                 }
    RS2Ad banner

     

    Copyright © 2017 MoparScape. All rights reserved.
    Powered by SMFPacks SEO Pro Mod |
    SimplePortal 2.3.5 © 2008-2012, SimplePortal