Author Topic: working on my fishing script  (Read 3494 times)

0 Members and 1 Guest are viewing this topic.

Offline camotbikTopic starter

  • Sr. Member
  • *
  • Posts: 349
  • Activity:
    0%
  • Reputation Power: 3
  • camotbik has no influence.
  • Gender: Male
  • Hello! I'm a UO addict.
  • Respect: +38
  • Referrals: 0
    • View Profile
working on my fishing script
« on: January 18, 2011, 12:26:07 AM »
0
The main issue is that ignoreitem isnt working as it should, when i lounch check_serpent again, it runs again to the ignored corpse. Cann't see where's the problem.

Code: [Select]
sub check_serpent
  set %timer #sCnt
  finditem %serpent G_
  if #findcnt > 0
  {
    set %atacked_serpent #findid
    set #ltargetid #findid
    event macro 27
    wait 1
    while #findcnt > 0
    {
      finditem %atacked_serpent G_
      wait 1s
    }
    finditem %serpent_body G_8
    if #findcnt > 0
    {
      set %timer ( #sCnt + 10 )
      set %findx #findx - 1
      set %findy #findy - 1
      move %findx %findy 1 50
      wait 2s
    }
    finditem %serpent_body G_2
    if #findcnt > 0
    {
      set %current_serp #findid
      finditem %dagger C_ , #BACKPACKID
      if #FINDCNT > 0
      {
        set #lobjectid #findid
        set #ltargetid %current_serp
        set #ltargetkind 1
        event macro 17
        target 10s
        event macro 22
        wait 20
        set #lobjectid %current_serp
        event macro 17
        repeat
          {
            wait 2s
          }
        until #CONTNAME = container_gump && #CONTTYPE = YFM || #sCnt > %timer
        finditem %fished_stuff C_ , %current_serp
        while #findcnt > 0
        {
          Exevent Drag #findid #findstack
          wait 10
          Exevent Dropc #BACKPACKID
          wait 10
          finditem %fished_stuff C_ , %current_serp
        }
      }    
    }
   ignoreitem %current_serp
  }
  return


updated: Thank you Dixie Wrecked for noticing the missing bracket
« Last Edit: January 18, 2011, 01:29:02 AM by camotbik »
What you witness -- is whatver..
uogamers hybrid.

Offline Dixie Wrecked

  • Full Member
  • ***
  • Posts: 124
  • Activity:
    0%
  • Reputation Power: 3
  • Dixie Wrecked has no influence.
  • Gender: Male
  • Respect: +31
  • Referrals: 1
    • View Profile
Re: working on my fishing script
« Reply #1 on: January 18, 2011, 12:59:16 AM »
0
The main issue is that ignoreitem isnt working as it should, when i lounch check_serpent again, it runs again to the ignored corpse. Cann't see where's the problem.

You're missing a "}" somewhere in there...
"hmm, theres no examples and directions sticky in new member intros.  you have to admit script library would have been a good place to put it"
- karrde

Tags: Fishing