Thread: [PI]Soulsplit source Drop Dupe fix

Page 1 of 3 123 LastLast
Results 1 to 10 of 26
  1. #1 [PI]Soulsplit source Drop Dupe fix 
    Banned rexz0rd's Avatar
    Join Date
    Jan 2009
    Posts
    721
    Thanks given
    38
    Thanks received
    101
    Rep Power
    0
    ok i'm using Soulsplit source
    And it occured to me that drops were off becouse of dupes Fix under here
    this is how to enable Player Drops

    Rep+ would be appreciated

    Purpose: Turning player drops on
    Difficulty: 1/10
    Knowledge To read and C&P
    Classes Modified: Dropitem.Java

    Ok first go to : Source\src\server\model\players\packets\Dropitem.j ava

    Search for :
    Code:
    				c.sendMessage("Your item Dissapears when it touches the ground.");
    				c.getItems().deleteItem(itemId, slot, c.playerItemsN[slot]);
    				server.model.players.PlayerSave.saveGame(c);
    			} else {
    				c.sendMessage("This item cannot be dropped.");
    Replace that with:

    Code:
    				Server.itemHandler.createGroundItem(c, itemId, c.getX(), c.getY(), c.playerItemsN[slot], c.getId());
    				c.getItems().deleteItem(itemId, slot, c.playerItemsN[slot]);
    			} else {
    				c.sendMessage("This item cannot be dropped.");
    Now Save & Compile

    Then youre done Drops are enabled now

    Please leave a Comment

    Drop trade Dupe fix 100% credits to hiImRusty

    Difficulty 0/10
    Author: HiImRusty


    Go to DropItem.java
    Find
    Code:
    int slot = c.getInStream().readUnsignedWordA();
    Under that post This :

    Code:
    		if (c.inTrade) {
    			c.sendMessage("You cannot drop items in the trade screen.");
    			return;
    		}
    Some more dupe fixes Thanks to Division

    Move Item in Inventory Dupe:

    Put this in MoveItem.java:

    Code:
    		if(c.inTrade) {
    			c.getTradeAndDuel().declineTrade();
                                 		return;
                            	}
    		if(c.tradeStatus == 1) {
    			c.getTradeAndDuel().declineTrade();
                                 		return;
                            	}
    		if(c.duelStatus == 1) {
    			c.getTradeAndDuel().declineDuel();
    			return;
    		}
    When moving items around in your inventory it decline's a trade and duel.
    So it prevents you from trading/dueling while moving items.

    Bank & Trade Dupe:

    Openup Bankall.java and add this under "case 5064:"

    Code:
    if(c.inTrade) {
    c.sendMessage("You can't store items while trading!");
    return;
    }
    It prevents you from banking while in trade screen.


    Please leave a comment

    If you know any other dupes please post them here and i will try to fix them. thank you
    Reply With Quote  
     

  2. #2  
    Super Donator


    Join Date
    Sep 2008
    Age
    30
    Posts
    1,894
    Thanks given
    677
    Thanks received
    776
    Rep Power
    456
    There are a few more drop dupes..
    Reply With Quote  
     

  3. #3  
    Banned rexz0rd's Avatar
    Join Date
    Jan 2009
    Posts
    721
    Thanks given
    38
    Thanks received
    101
    Rep Power
    0
    Quote Originally Posted by Liberty View Post
    There are a few more drop dupes..
    i fixed them all but idk the posts and fixes anymore xD
    Reply With Quote  
     

  4. #4  
    Registered Member
    Division's Avatar
    Join Date
    Dec 2009
    Age
    29
    Posts
    2,208
    Thanks given
    41
    Thanks received
    78
    Rep Power
    97
    The bank trade dupe
    Reply With Quote  
     

  5. #5  
    Banned rexz0rd's Avatar
    Join Date
    Jan 2009
    Posts
    721
    Thanks given
    38
    Thanks received
    101
    Rep Power
    0
    Quote Originally Posted by Division View Post
    The bank trade dupe
    ill add yours to btw thanks tho
    with 100% creds ofc
    Reply With Quote  
     

  6. #6  
    Registered Member Akeid's Avatar
    Join Date
    May 2009
    Posts
    911
    Thanks given
    22
    Thanks received
    15
    Rep Power
    37
    ok i'm using Soulsplit source
    And it occured to me that drops were off becouse of dupes Fix under here
    this is how to enable Player Drops

    Purpose: Turning player drops on
    Difficulty: 1/10
    Knowledge To read and C&P
    Classes Modified: Dropitem.Java

    Ok first go to : Source\src\server\model\players\packets\Dropitem.j ava

    Search for :
    Code:
    				c.sendMessage("Your item Dissapears when it touches the ground.");
    				c.getItems().deleteItem(itemId, slot, c.playerItemsN[slot]);
    				server.model.players.PlayerSave.saveGame(c);
    			} else {
    				c.sendMessage("This item cannot be dropped.");
    Replace that with:

    Code:
    				Server.itemHandler.createGroundItem(c, itemId, c.getX(), c.getY(), c.playerItemsN[slot], c.getId());
    				c.getItems().deleteItem(itemId, slot, c.playerItemsN[slot]);
    			} else {
    				c.sendMessage("This item cannot be dropped.");
    Now Save & Compile

    Then youre done Drops are enabled now

    Please leave a Comment

    Drop trade Dupe fix 100% credits to hiImRusty

    Difficulty 0/10
    Author: HiImRusty


    Go to DropItem.java
    Find
    Code:
    int slot = c.getInStream().readUnsignedWordA();
    Under that post This :

    Code:
    		if (c.inTrade) {
    			c.sendMessage("You cannot drop items in the trade screen.");
    			return;
    		}
    Some more dupe fixes Thanks to Division

    Move Item in Inventory Dupe:

    Put this in MoveItem.java:

    Code:
    		if(c.inTrade) {
    			c.getTradeAndDuel().declineTrade();
                                 		return;
                            	}
    		if(c.tradeStatus == 1) {
    			c.getTradeAndDuel().declineTrade();
                                 		return;
                            	}
    		if(c.duelStatus == 1) {
    			c.getTradeAndDuel().declineDuel();
    			return;
    		}
    When moving items around in your inventory it decline's a trade and duel.
    So it prevents you from trading/dueling while moving items.

    Bank & Trade Dupe:

    Openup Bankall.java and add this under "case 5064:"

    Code:
    if(c.inTrade) {
    c.sendMessage("You can't store items while trading!");
    return;
    }
    It prevents you from banking while in trade screen.


    Please leave a comment

    If you know any other dupes please post them here and i will try to fix them. thank you
    w000t i need this
    Reply With Quote  
     

  7. #7  
    Banned rexz0rd's Avatar
    Join Date
    Jan 2009
    Posts
    721
    Thanks given
    38
    Thanks received
    101
    Rep Power
    0
    Quote Originally Posted by akeid View Post
    w000t i need this
    Glad to hear this but why quote the whole thing?
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Jan 2010
    Posts
    336
    Thanks given
    11
    Thanks received
    4
    Rep Power
    16
    Nice gj.
    «The original Nick»
    Reply With Quote  
     

  9. #9  
    Registered Member

    Join Date
    Oct 2009
    Age
    30
    Posts
    1,037
    Thanks given
    4
    Thanks received
    8
    Rep Power
    338
    With vv Do i overwrite my c.inTrade?

    if(c.inTrade) {
    c.getTradeAndDuel().declineTrade();
    return;
    }
    if(c.tradeStatus == 1) {
    c.getTradeAndDuel().declineTrade();
    return;
    }
    if(c.duelStatus == 1) {
    c.getTradeAndDuel().declineDuel();
    return;
    }
    Reply With Quote  
     

  10. #10  
    Banned rexz0rd's Avatar
    Join Date
    Jan 2009
    Posts
    721
    Thanks given
    38
    Thanks received
    101
    Rep Power
    0
    Quote Originally Posted by Acid View Post
    With vv Do i overwrite my c.inTrade?
    If you already got those you dont need to overwrite anything
    you just got to add them
    Reply With Quote  
     

Page 1 of 3 123 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •