Rsps Community


Rsps Community


Rsps Community
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Rsps Community

Rsps Community
 
HomeHomeSearchLatest imagesRegisterLog in
Welcome To Ancientpk!

 

 the trade crash duping glitch solution.

Go down 
AuthorMessage
l roidz l
Members
l roidz l


Posts : 26
Join date : 2010-10-25
Age : 29
Location : Nottingham

the trade crash duping glitch solution. Empty
PostSubject: the trade crash duping glitch solution.   the trade crash duping glitch solution. EmptyTue Oct 26, 2010 8:35 pm

Open up TradeAndDuel.java
Under where it says

if(!Item.itemStackable[itemID] && !Item.itemIsNote[itemID]) {
,in the tradeItem method.



Change



for(int a = 0; a < amount; a++) {



To


for(int a = 0; a < amount && a < 28; a++) {


This is just a little one pritty simple but it solves thoughs idiots from duping a there you go I have post all 3 solutions for all 3 dupes Very Happy allthough someone will find another dupe but i'll just make a code for that and post it lol.
Back to top Go down
l roidz l
Members
l roidz l


Posts : 26
Join date : 2010-10-25
Age : 29
Location : Nottingham

the trade crash duping glitch solution. Empty
PostSubject: All of the main dupes that I know of in a PI base server.   the trade crash duping glitch solution. EmptyTue Oct 26, 2010 8:42 pm

Hello guys, I will just write down the name of the dupes and the solutions under them in this post ok here we go.

1> Move item in inventory dupe.

Solution:

Put this in MoveItem.java:

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. So that dupe
will be fixed.



2> Bank & Trade Dupe:


Solution:

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

if(c.inTrade) {
c.sendMessage("You can't store items while trading!");
return;
}


This prevents you from banking while in the trade screen.



3> Drop & trade Dupe:


Solution:

Openup DropItem.java and put this in it:


if(c.inTrade) {
c.sendMessage("You can't drop items while trading!");
return;
}


Prevents the person from dropping there items while trading there items.
Back to top Go down
 
the trade crash duping glitch solution.
Back to top 
Page 1 of 1
 Similar topics
-
» Duping arrows solution

Permissions in this forum:You cannot reply to topics in this forum
Rsps Community :: Ancientpk Server General :: General Discussion-
Jump to: