PcCafe packet improvements.
Contributed by darkillust.
This commit is contained in:
@ -357,7 +357,7 @@ public class MultiSellChoose implements IClientIncomingPacket
|
||||
case PC_CAFE_POINTS:
|
||||
{
|
||||
player.setPcCafePoints((int) (player.getPcCafePoints() - totalCount));
|
||||
player.sendPacket(new ExPCCafePointInfo(player.getPcCafePoints(), (int) totalCount, 1));
|
||||
player.sendPacket(new ExPCCafePointInfo(player.getPcCafePoints(), (int) -totalCount, 1));
|
||||
break;
|
||||
}
|
||||
default:
|
||||
|
@ -47,8 +47,8 @@ public class ExPCCafePointInfo implements IClientOutgoingPacket
|
||||
_points = points;
|
||||
_mAddPoint = pointsToAdd;
|
||||
_mPeriodType = 1;
|
||||
_remainTime = 42; // No idea why but retail sends 42..
|
||||
_pointType = pointsToAdd < 0 ? 3 : 0; // When using points is 3
|
||||
_remainTime = 0; // No idea why but retail sends 42..
|
||||
_pointType = pointsToAdd < 0 ? 2 : 1; // When using points is 3
|
||||
_time = time;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user