Yoko

All sides of Injection
It is currently 2024-03-28 19:28:37

All times are UTC+02:00




Post new topic  Reply to topic  [ 1 post ] 
Author Message
PostPosted: 2011-04-19 21:00:40 
Offline

Joined: 2010-12-01 08:01:12
Posts: 19
hey guys
what wrong on this 1? it should be fishing at one spot, once its done and it says "there are no fish here" then it should distance + 1 to make another spot...

but it doest, at the moment it finish the first spot and then it just stop and do nothing more...

ive tried to put just a while (plus adding a line distance = distance + 1 at the end of the wend WHERE IT SHOULD BE) instead of that for function... but it didnt help at all... ive tried even repeat and no help as well... its real basic some of my mates did look at it but didnt figure out nothing usefull...

thanks

Code:
sub fishing()

uo.deletejournal()

var distance
var MyX = UO.GetX("self")
var MyY = UO.GetY("self")

while NOT uo.dead()

  for distance = 1 to 6

    while NOT uo.injournal("Try fishing in water|That is too far away|There are no fish here|location")

      uo.deletejournal()
      uo.waittargettile("1341", str(MyX-distance), str(MyY), "0")
      uo.usetype("0x0DBF")
      wait(500)
      while NOT uo.injournal("You pull|You fish|Cancelled|Unexpected|see the target")
        wait(200)
      wend

    wend

  next

wend

end sub


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 1 post ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 17 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited