Thread: [Pi] Mine Ticket. Help? it's Equipting

Page 1 of 2 12 LastLast
Results 1 to 10 of 18
  1. #1 [Pi] Mine Ticket. Help? it's Equipting 
    Registered Member xoodreyoox's Avatar
    Join Date
    May 2013
    Posts
    141
    Thanks given
    5
    Thanks received
    0
    Rep Power
    11
    //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>
    Reply With Quote  
     

  2. #2  
    Registered Member xoodreyoox's Avatar
    Join Date
    May 2013
    Posts
    141
    Thanks given
    5
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by xoodreyoox View Post
    //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>
    Anyone? Please Help
    Reply With Quote  
     

  3. #3  
    Donator
    Darkness's Avatar
    Join Date
    Nov 2012
    Age
    26
    Posts
    876
    Thanks given
    121
    Thanks received
    75
    Rep Power
    47
    Actually it gives PC points and you want it to give PK points?
    Attached image
    Reply With Quote  
     

  4. #4  
    Registered Member xoodreyoox's Avatar
    Join Date
    May 2013
    Posts
    141
    Thanks given
    5
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by Olinice View Post
    Actually it gives PC points and you want it to give PK points?
    Yes that is how my pc points are layed out they are my pk point's
    anyway's


    when i click the ticket's they go in wepon slot? how would i make i t not do that.
    Reply With Quote  
     

  5. #5  
    Donator
    Darkness's Avatar
    Join Date
    Nov 2012
    Age
    26
    Posts
    876
    Thanks given
    121
    Thanks received
    75
    Rep Power
    47
    Where's that code in? Clickitem.java?
    Attached image
    Reply With Quote  
     

  6. #6  
    Registered Member xoodreyoox's Avatar
    Join Date
    May 2013
    Posts
    141
    Thanks given
    5
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by Olinice View Post
    Where's that code in? Clickitem.java?
    yes
    it's in clickitem.java
    Reply With Quote  
     

  7. #7  
    Donator
    Darkness's Avatar
    Join Date
    Nov 2012
    Age
    26
    Posts
    876
    Thanks given
    121
    Thanks received
    75
    Rep Power
    47
    Go to wearitem.java find 5023 and delete it from there
    Attached image
    Reply With Quote  
     

  8. #8  
    Registered Member xoodreyoox's Avatar
    Join Date
    May 2013
    Posts
    141
    Thanks given
    5
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by Olinice View Post
    Go to wearitem.java find 5023 and delete it from there
    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
    Reply With Quote  
     

  9. #9  
    Registered Member xoodreyoox's Avatar
    Join Date
    May 2013
    Posts
    141
    Thanks given
    5
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by xoodreyoox View Post
    :\
    that's wear.java
    anyone please help..?
    Reply With Quote  
     

  10. #10  
    Member
    Join Date
    Aug 2012
    Posts
    261
    Thanks given
    3
    Thanks received
    39
    Rep Power
    0
    The solution should lie in Class8 or ItemDef in your client.
    Post whichever class your client defines item actions in.
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. [PI] Voting Ticket Help
    By HiImRusty in forum Help
    Replies: 1
    Last Post: 01-11-2012, 09:29 PM
  2. InsidiaX Help! its urgent please help! (PI)
    By shopkeeper in forum Help
    Replies: 2
    Last Post: 12-14-2011, 05:42 PM
  3. [HELP] ITS URGENTS [pi] PLEASE!!
    By JokerScape in forum Help
    Replies: 0
    Last Post: 08-08-2011, 04:45 PM
  4. [pi] agility store making it accept tickets.
    By secret wish in forum Help
    Replies: 0
    Last Post: 06-11-2011, 10:56 PM
  5. [PI]Jad need help with it
    By cruelity in forum Help
    Replies: 2
    Last Post: 10-06-2010, 02:27 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •