Thread: Working harpoon

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1 Working harpoon 
    Registered Member Ishana's Avatar
    Join Date
    Oct 2008
    Age
    31
    Posts
    285
    Thanks given
    3
    Thanks received
    0
    Rep Power
    50
    I TAKE CREDITS FOR THIS!
    99% Credits to Owned_plox for his theiv base
    1% ME poor me =(

    Code:
    package ilikemilk.much.io.packets;
    
    import ilikemilk.much.Engine;
    import ilikemilk.much.players.Player;
    import ilikemilk.much.util.Misc;
    
    public class fishing {
    
    public static int randomfish[] = {7994, 995};
    
    public static int getfish() {
    return randomfish[(int)(Math.random()*randomfish.length)];
    }
    }
    Make that a new java and call it harpoon.java

    Then in npcoption1 import :

    Code:
    import ilikemilk.much.io.packets.fishing;
    Then add this under the last break; in the npcoption1
    Code:
    case 3848: // monkfishing spot
    if (p.skillLvl[##] >= 1 && p.equipment[3] == %%%) { // dunno how to make that if its in inv so you will need to make it or just work that way :D 
    p.addSkillXP(610, ##);
    p.requestAnim(0x621, 0); //since i dont have harpoon emote i will give u lobby emote
    pi.addItem(p, th.getfish(), 1);
    p.frames.sendMessage(p, "You fish a + th.getfish()+ .");
    } else {
    p.frames.sendMegssae(p, "You need to wield a harpoon" )
    }
    }
    break;
    if you didnt notice already i added anti leech =)
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Sep 2008
    Posts
    133
    Thanks given
    0
    Thanks received
    1
    Rep Power
    37
    Sorry but i laughed at this.
    Reply With Quote  
     

  3. #3  
    Registered Member Ishana's Avatar
    Join Date
    Oct 2008
    Age
    31
    Posts
    285
    Thanks given
    3
    Thanks received
    0
    Rep Power
    50
    Quote Originally Posted by Fabbeh View Post
    Sorry but i laughed at this.
    at least you didnt cry i am happy for you =)
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Oct 2008
    Posts
    314
    Thanks given
    0
    Thanks received
    39
    Rep Power
    33
    Not really a tut... What you did is called adding item when click on a fish spot.
    Reply With Quote  
     

  5. #5  
    Super Donator

    Sicc's Avatar
    Join Date
    Jun 2008
    Posts
    1,010
    Thanks given
    54
    Thanks received
    105
    Rep Power
    822
    lol'd at this tbh
    Reply With Quote  
     

  6. #6  
    Registered Member Ishana's Avatar
    Join Date
    Oct 2008
    Age
    31
    Posts
    285
    Thanks given
    3
    Thanks received
    0
    Rep Power
    50
    Quote Originally Posted by rsnoob View Post
    Not really a tut... What you did is called adding item when click on a fish spot.
    its called getting random item smarty
    Reply With Quote  
     

  7. #7  
    Registered Member
    Kelvin's Avatar
    Join Date
    Jun 2007
    Posts
    1,433
    Thanks given
    48
    Thanks received
    33
    Rep Power
    269
    Classes should start with a capital letter
    Reply With Quote  
     

  8. #8  
    Registered Member
    Shamon King's Avatar
    Join Date
    Aug 2007
    Posts
    3,335
    Thanks given
    90
    Thanks received
    228
    Rep Power
    1363
    Quote Originally Posted by Fabbeh View Post
    Sorry but i laughed at this.
    I did to
    When I read the title I was like. OMG PEOPLE LEARNED ANIMATIONS!!!

    Owell it's a start to fishing.
    Reply With Quote  
     

  9. #9  
    Registered Member

    Join Date
    Jan 2008
    Age
    31
    Posts
    1,380
    Thanks given
    76
    Thanks received
    384
    Rep Power
    962
    Quote Originally Posted by shamon king View Post
    I did to
    When I read the title I was like. OMG PEOPLE LEARNED ANIMATIONS!!!

    Owell it's a start to fishing.
    Lol, you can't even call this a start.
    Reply With Quote  
     

  10. #10  
    Registered Member

    Join Date
    Jan 2008
    Posts
    2,340
    Thanks given
    20
    Thanks received
    575
    Rep Power
    1202
    #1) You cant wield a harpoon


    Since you dont know how to check if an item is in your inventory , itd be:

    Code:
    PlayerItems pz = new PlayerItems();
    pz.invItemCount(p, IDHERE) > 1)
    Or declare ;

    Code:
    public boolean hasItem(Player plox, int itemId) {
    if (plox == null)
    return false;
    for (int e = 0; i < player.items.length; e++)
    if (plox.items[e] == itemId)
    return true;
    return false;
    }
    and usage is;

    Code:
    hasItem(p, IDHERE);
    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

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