Thread: [PI] req for fishing fix

Results 1 to 9 of 9
  1. #1 [PI] req for fishing fix 
    Registered Member SinfulPS's Avatar
    Join Date
    Dec 2011
    Posts
    410
    Thanks given
    8
    Thanks received
    18
    Rep Power
    54
    I'm looking for a bait and feather fix as it won't delete them when a fish is caught? Anyone that can help?




    Xbox Live - mynameisntjef
    Skype = alexrogershere
    Reply With Quote  
     

  2. #2  
    Registered Member
    Zivik's Avatar
    Join Date
    Oct 2007
    Age
    28
    Posts
    4,421
    Thanks given
    891
    Thanks received
    1,527
    Rep Power
    3285
    Maybe post some code
    Reply With Quote  
     

  3. #3  
    Registered Member
    _Ali's Avatar
    Join Date
    Apr 2014
    Posts
    382
    Thanks given
    67
    Thanks received
    147
    Rep Power
    252
    Quote Originally Posted by Mkat View Post
    I'm looking for a bait and feather fix as it won't delete them when a fish is caught? Anyone that can help?
    Send me your skype, i'll help.

    Otherwise just add delete method whereever you're adding the fish to a players inventory.
    Reply With Quote  
     

  4. #4  
    'Slutty McFur'

    Owain's Avatar
    Join Date
    Sep 2014
    Age
    26
    Posts
    2,894
    Thanks given
    2,360
    Thanks received
    2,200
    Rep Power
    5000
    Plenty of better fishing releases for PI, or could rip from a source release.


    Spoiler for wat:
    Attached image
    Attached image

    Attached image


    Reply With Quote  
     

  5. #5  
    Registered Member SinfulPS's Avatar
    Join Date
    Dec 2011
    Posts
    410
    Thanks given
    8
    Thanks received
    18
    Rep Power
    54
    Quote Originally Posted by _Ali View Post
    Send me your skype, i'll help.

    Otherwise just add delete method whereever you're adding the fish to a players inventory.
    What's your Skype? Because I've tried and it hasn't worked?
    Reply With Quote  
     

  6. #6  
    Why you reading this?

    LoveandPower's Avatar
    Join Date
    Sep 2010
    Posts
    2,166
    Thanks given
    907
    Thanks received
    288
    Rep Power
    390
    Yeah...there are oodles of tutorials out there for this

    to delete an item you do something like this

    Code:
     c.deleteItem(xxx, c.getItemSlot(xxx), 1);
    Spoiler for sig too large:


    Reply With Quote  
     

  7. #7  
    Registered Member SinfulPS's Avatar
    Join Date
    Dec 2011
    Posts
    410
    Thanks given
    8
    Thanks received
    18
    Rep Power
    54
    Quote Originally Posted by LoveandPower View Post
    Yeah...there are oodles of tutorials out there for this

    to delete an item you do something like this

    Code:
     c.deleteItem(xxx, c.getItemSlot(xxx), 1);
    i'll show you what i have...

    Code:
             if (c.fishing && c.fishtimer <= 0 && c.getItems().freeSlots() > 0) {
                if (c.getItems().playerHasItem(c.fishitem)) {
                    if (c.playerLevel[10] >= c.fishreqt) {
                     if(c.fishitem == 335|| c.fishitem == 339|| c.fishitem == 327|| c.fishitem == 345){
                        if(c.getItems().playerHasItem(313, 1)){
                            c.getItems().deleteItem(313, 1);
                        }else{
                           c.sendMessage("You need bait to catch this fish.");
                        }
                        } else if (c.fishitem == 309 && !c.getItems().playerHasItem(314)) {
                           c.sendMessage("You need feathers to fish here!");
                            c.fishing = false;
    			} else {




    Xbox Live - mynameisntjef
    Skype = alexrogershere
    Reply With Quote  
     

  8. #8  
    Why you reading this?

    LoveandPower's Avatar
    Join Date
    Sep 2010
    Posts
    2,166
    Thanks given
    907
    Thanks received
    288
    Rep Power
    390
    this is the part of the code that does what you are looking for I assume, I don't see any issue with it from a quick glance

    Code:
     if(c.fishitem == 335|| c.fishitem == 339|| c.fishitem == 327|| c.fishitem == 345){
                        if(c.getItems().playerHasItem(313, 1)){
                            c.getItems().deleteItem(313, 1);
    Have you tested your deleteItem and playerHasItem methods with other codes to confirm they are working as they should? (such as other object interactions that require the same functionality)
    Spoiler for sig too large:


    Reply With Quote  
     

  9. #9  
    Registered Member SinfulPS's Avatar
    Join Date
    Dec 2011
    Posts
    410
    Thanks given
    8
    Thanks received
    18
    Rep Power
    54
    Quote Originally Posted by LoveandPower View Post
    this is the part of the code that does what you are looking for I assume, I don't see any issue with it from a quick glance

    Code:
     if(c.fishitem == 335|| c.fishitem == 339|| c.fishitem == 327|| c.fishitem == 345){
                        if(c.getItems().playerHasItem(313, 1)){
                            c.getItems().deleteItem(313, 1);
    Have you tested your deleteItem and playerHasItem methods with other codes to confirm they are working as they should? (such as other object interactions that require the same functionality)
    yeah they work, but fishing doesn't? i'm baffled..




    Xbox Live - mynameisntjef
    Skype = alexrogershere
    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

Similar Threads

  1. [PI] Req for portals, doors.
    By Dafuto Kami in forum Help
    Replies: 2
    Last Post: 06-18-2011, 03:11 PM
  2. PI paying for fix ;)
    By Someone in forum Help
    Replies: 0
    Last Post: 03-23-2011, 05:58 PM
  3. Replies: 6
    Last Post: 02-13-2011, 04:18 PM
  4. [pi] need a dupe fix for this
    By jessie thompson in forum Help
    Replies: 7
    Last Post: 12-10-2010, 04:42 AM
  5. [PI] Paying $20 for dupe fix [/PI]
    By muthigani in forum Help
    Replies: 3
    Last Post: 10-11-2010, 09:48 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
  •