Author Topic: sub wwon't work  (Read 2467 times)

0 Members and 1 Guest are viewing this topic.

Offline The GhostTopic starter

  • Elite
  • *
  • *
  • Posts: 1917
  • Activity:
    0%
  • Reputation Power: 25
  • The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.
  • Respect: +245
  • Referrals: 0
    • View Profile
sub wwon't work
« on: May 31, 2015, 04:41:39 AM »
0
I have this sub on my fisher,   If i use the sub ib his own, it work 100% of the time.   once it inside my Clean up the backpack, it go through the sub but do nothing.    can't figure why.   
Code: [Select]
sub dropboat
finditem %fishstakes C_ , #backpackid
 if #findkind <> 1
   {
   set %fishstakes #findid
   set %findstack #findstack
   exevent drag #findid #findstack
   set !dropmeatX #charposX + 0
   set !dropmeatY #charposY + 2
   exevent dropG !dropmeatX !dropmeatY #charposZ
   wait 30
   }
   until #findkind = -1
   return

Code: [Select]
; =======================================================================================
;                                    Clean up the backpack
; =======================================================================================
sub packcheck
   gosub findshoes  ; feed them to goat
   gosub cutfish    ; cut into steak
   gosub eatfish    ; eat special fish
   gosub dropboat
  gosub pearlcargo
return fishing
; ----------------------------------------

to fish afk I need to run this snippet on his own.
Code: [Select]
set %fishstakes IND
while #true
{
gosub dropboat
wait 1500s
}
sub dropboat
finditem %fishstakes C_ , #backpackid
 if #findkind <> 1
   {
   set %fishstakes #findid
   set %findstack #findstack
   exevent drag #findid #findstack
   set !dropmeatX #charposX + 0
   set !dropmeatY #charposY + 2
   exevent dropG !dropmeatX !dropmeatY #charposZ
   wait 30
   }
   until #findkind = -1
   return

Offline gimlet

  • Very Super Secret
  • Global Moderator
  • *
  • *
  • Posts: 6206
  • Activity:
    3%
  • Reputation Power: 71
  • gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!
  • Gender: Male
  • Respect: +274
  • Referrals: 3
    • View Profile
Re: sub wwon't work
« Reply #1 on: May 31, 2015, 05:36:43 AM »
0
if #findkind <> 1
   {

Shouldn't this be

if #findkind <> -1
   {

Tags: