There are a few more drop dupes..
|
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 :
Replace that with: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.");
Now Save & CompileCode: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.");
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
Under that post This :Code:int slot = c.getInStream().readUnsignedWordA();
Some more dupe fixes Thanks to DivisionCode:if (c.inTrade) { c.sendMessage("You cannot drop items in the trade screen."); return; }
Move Item in Inventory Dupe:
Put this in MoveItem.java:
When moving items around in your inventory it decline's a trade and duel.Code:if(c.inTrade) { c.getTradeAndDuel().declineTrade(); return; } if(c.tradeStatus == 1) { c.getTradeAndDuel().declineTrade(); return; } if(c.duelStatus == 1) { c.getTradeAndDuel().declineDuel(); return; }
So it prevents you from trading/dueling while moving items.
Bank & Trade Dupe:
Openup Bankall.java and add this under "case 5064:"
It prevents you from banking while in trade screen.Code:if(c.inTrade) { c.sendMessage("You can't store items while trading!"); return; }
Please leave a comment
If you know any other dupes please post them here and i will try to fix them. thank you
There are a few more drop dupes..
w000t i need thisok 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 :
Replace that with: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.");
Now Save & CompileCode: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.");
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
Under that post This :Code:int slot = c.getInStream().readUnsignedWordA();
Some more dupe fixes Thanks to DivisionCode:if (c.inTrade) { c.sendMessage("You cannot drop items in the trade screen."); return; }
Move Item in Inventory Dupe:
Put this in MoveItem.java:
When moving items around in your inventory it decline's a trade and duel.Code:if(c.inTrade) { c.getTradeAndDuel().declineTrade(); return; } if(c.tradeStatus == 1) { c.getTradeAndDuel().declineTrade(); return; } if(c.duelStatus == 1) { c.getTradeAndDuel().declineDuel(); return; }
So it prevents you from trading/dueling while moving items.
Bank & Trade Dupe:
Openup Bankall.java and add this under "case 5064:"
It prevents you from banking while in trade screen.Code:if(c.inTrade) { c.sendMessage("You can't store items while trading!"); return; }
Please leave a comment
If you know any other dupes please post them here and i will try to fix them. thank you
Nice gj.
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;
}
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |