Thread: Fishing Emote

Results 1 to 2 of 2
  1. #1 Fishing Emote 
    Registered Member
    Logical's Avatar
    Join Date
    Jan 2008
    Posts
    1,284
    Thanks given
    11
    Thanks received
    29
    Rep Power
    328
    I'm using 619 for the net fishing/lobster pots. How do I show the net/lobster pot in the players hands? Thank you.

    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Jan 2009
    Age
    31
    Posts
    2,661
    Thanks given
    66
    Thanks received
    207
    Rep Power
    0
    There's 2 Ways

    One is clientside other is serverside.

    both will do exactly the same thing.

    RuneScape does it client side ever since the 400+ engines.

    but basically you jsut do somthing like

    Code:
    private int[] hiddenEquipment = new int[14];
    then somthing like

    Code:
    protected void setHiddenEquipment(int slot, int id) {
              hiddenEquipment[slot] = id;
    }
    
    protected void deleteHiddenEquipment(int slot) {
             hiddenEquipment[slot] = -1;
    }

    now in your appearence update block you'd just do

    Code:
    if (playerEquipment[slot] > -1 || hiddenEquipment[slot] > -1) {
        if (hiddenEquipment[slot] > -1) {
            writeStuff(hiddenEquipment[slot]);
        } else {
            writeStuff(playerEquipment[slot]);
        }
    } else {
        writeStuff(0);
    }
    So then when you do fishing you do

    Code:
    player.setHiddenEquipment(3,fishingCageId);
    then basically it'll show a fishing cage wielded and all you need do is reset it when you finish fishing the item will never really exist but it will show there.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

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


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •