|
//pkp ticket
if(itemId == 5020) {
c.getItems().deleteItem(5020, 1);
c.pcPoints += 100;
c.sendMessage("@gre@You Gain 1000 PKP!!!");
}
if(itemId == 5021) {
c.getItems().deleteItem(5021, 1);
c.pcPoints += 500;
c.sendMessage("@gre@You Gain 500 PKP!!!");
}
if(itemId == 5022) {
c.getItems().deleteItem(5022, 1);
c.pcPoints += 1000;
c.sendMessage("@gre@You Gain 1,000 PKP!!!");
}
if(itemId == 5023) {
c.getItems().deleteItem(5023, 1);
c.pcPoints += 10000;
c.sendMessage("@gre@You Gain 10,000 PKP!!!");
}
//pkp ticket
trying to make it so once you click you recive the pc points = pkp point's please help>
:\package server.model.players.packets;
import server.model.players.Client;
import server.model.players.PacketType;
/**
* Wear Item
**/
public class WearItem implements PacketType {
@Override
public void processPacket(Client c, int packetType, int packetSize) {
c.wearId = c.getInStream().readUnsignedWord();
c.wearSlot = c.getInStream().readUnsignedWordA();
c.interfaceId = c.getInStream().readUnsignedWordA();
int oldCombatTimer = c.attackTimer;
if (c.playerIndex > 0 || c.npcIndex > 0)
c.getCombat().resetPlayerAttack();
if (c.wearId >= 5509 && c.wearId <= 5515) {
int pouch = -1;
int a = c.wearId;
if (a == 5509)
pouch = 0;
if (a == 5510)
pouch = 1;
if (a == 5512)
pouch = 2;
if (a == 5514)
pouch = 3;
c.getPA().emptyPouch(pouch);
return;
}
//c.attackTimer = oldCombatTimer;
c.getItems().wearItem(c.wearId, c.wearSlot);
}
}
that's wear.java
The solution should lie in Class8 or ItemDef in your client.
Post whichever class your client defines item actions in.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |