Welcome, guest! Please login or register.

    * Shoutbox

    RefreshHistory
    • ASDss: where do u download source and clients now
      August 18, 2017, 10:39:31 PM
    • ASDss: yo
      August 18, 2017, 10:39:20 PM
    • dan v jad: click me 4 da fun ;)[link]
      August 18, 2017, 04:39:58 PM
    • stCky: Palidinho is your OpenGL (was it OpenGL?) stuff open source anywhere?
      August 16, 2017, 09:07:22 PM
    • Travas:BUILD THE WALL
      August 15, 2017, 09:28:49 PM
    • Travas: i have ass cancer
      August 15, 2017, 09:23:29 PM
    • stCky: what are the fudge are you tryna ask?
      August 15, 2017, 08:21:35 PM
    • bader: what are the rsps community alive ?
      August 15, 2017, 05:46:16 PM
    • bader: yo guys
      August 15, 2017, 05:46:08 PM
    • Spacehost:[link] Updated our thread :)
      August 15, 2017, 09:40:34 AM
    • Adaro: The client is in Download section at Homepage
      August 15, 2017, 01:09:20 AM
    • FaTe_Of_GoDs: where do i get the client?????????????
      August 14, 2017, 05:23:14 PM
    • stCky: can anyone help me? I cant login to the shoutbox
      August 13, 2017, 05:45:15 PM
    • drubrkletern: appeal denied
      August 13, 2017, 02:35:27 PM
    • King_Trout:[link]
      August 13, 2017, 11:17:12 AM
    • Cole1497: no sorry
      August 13, 2017, 10:27:14 AM
    • ayz: yo can anyone explain something to me
      August 13, 2017, 08:08:51 AM
    • coolking12: Hi
      August 13, 2017, 04:16:06 AM
    • stCky: n+1
      August 11, 2017, 06:09:24 PM
    • PalidinoDH: How many more pages are going to show errors before this dude gets on and fixes shit
      August 11, 2017, 04:57:00 PM

    Author Topic: Rockcrab dupe fix (easy).  (Read 637 times)

    0 Members and 1 Guest are viewing this topic.

    Offlineseankroes

    • Member
    • **
    • Posts: 39
    • Thanks: +0/-0
      • View Profile
    Rockcrab dupe fix (easy).
    « on: February 28, 2015, 04:00:23 AM »

    Simple dupe fix it fixes the rockcrab logout dupe, so you can still drop items but you cant dupe items


    First in DropItem.java search for:
    Code: Java
    1. Server.itemHandler.createGroundItem(c, itemId, c.getX(), c.getY(), c.playerItemsN[slot], c.getId());

    Then replace this code:
    Code: Java
    1. Server.itemHandler.createGroundItem(c, itemId, c.getX(), c.getY(), c.playerItemsN[slot], c.getId());
    2. c.getItems().deleteItem(itemId, slot, c.playerItemsN[slot]);

    with this code:
    Code: Java
    1. Server.itemHandler.createGroundItem(c, itemId, c.getX(), c.getY(), c.playerItemsN[slot], c.getId());
    2. c.getItems().deleteItem(itemId, slot, c.playerItemsN[slot]);
    3. c.SaveGame();
    4. c.sendMessage("You drop your item.");
    http://www.ZaedenScape.r4u.nl - RSPS in development.


    Offlinelare69

    • Member
    • ****
    • *
    • Posts: 5,321
    • Thanks: +0/-0
      • View Profile
    Re: Rockcrab dupe fix (easy).
    « Reply #2 on: February 28, 2015, 11:13:43 AM »
    The proper fix for this is to make the character file save when the player disconnects...
    hi. check out luna:)


    Offlinesk8rdude461

    • MOPARSCAPE WAS HACKED
    • Member
    • ****
    • *
    • Posts: 12,471
    • Thanks: +0/-0
      • View Profile
    Re: Rockcrab dupe fix (easy).
    « Reply #3 on: February 28, 2015, 12:29:18 PM »
    The proper fix for this is to make the character file save when the player disconnects...
    Yes, that'd be what I'm talking about.

     

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