FISHING

Ask for scripts here

Moderators: Murderator+, Murderator

Post Reply
DogStyle
Posts: 17
Joined: 2007-03-19 18:25:51

FISHING

Post by DogStyle »

hey.... im from brazil and i only know english :O well...

i need a fishing script.... i know there are couple fishing scripts but they never work here... im using this one:

Code: Select all

sub fishing_2() 
var x, y, z, i, j
   x = UO.GetX("self")
   y = UO.GetY("self")
   z = UO.GetZ("self")
   for i = x-140 to x+140
      for j = y-150 to y+150
         UO.DeleteJournal()
         while not UO.InJournal("Nao parece ter peixe aqui") and not UO.InJournal("Voce nao consegue ver este local!") and not UO.InJournal("Isso esta muito longe") and not UO.InJournal("Voce nao pode pescar ai!")
            UO.DeleteJournal()
            UO.Print("Now Fishing In: "+str(x-i)+" "+str(y-j))
            UO.Waittargettile("1341", str(x-i), str(y-j), str(z))
            UO.Usetype("0x0DBF")
            while not UO.InJournal("Nao parece ter peixe aqui") and not UO.InJournal("Voce nao consegue ver este local!") and not UO.InJournal("Isso esta muito longe") and not UO.InJournal("Voce nao pode pescar ai!")
            wait (500)
            wend
         wend
      next
   next
end sub


dont care about the UO.injournal i change into my language...

but the problem is... it never hits the fucking water!!! never and i dont know why.... it trys and shows you cant fish there,you cant fish there,you cant fish there,you cant fish there,you cant fish there,you cant fish there, and go on....

i think i have to change the type of location... like real X,Y but i dont know how to do it...

so if anyone know..plz help me

thx
Nmy
Expert!
Posts: 2152
Joined: 2005-09-14 15:31:58
Location: Latvia

Post by Nmy »

Code: Select all

   for i = x-140 to x+140
      for j = y-150 to y+150

the problem is that this script is trying to fish like 140 tiles from you... you must change it to:

Code: Select all

   for i = x-4 to x+4
      for j = y-4 to y+4
DogStyle
Posts: 17
Joined: 2007-03-19 18:25:51

Post by DogStyle »

i tried theese numbers too... but it keep saying "you cant fish there"

is there a way to use real X,Y? i mean... not tiles like co-ordinated
Ex: x=1344 y6758


in injection we have the command ramdom?

thx
Nmy
Expert!
Posts: 2152
Joined: 2005-09-14 15:31:58
Location: Latvia

Post by Nmy »

Code: Select all

UO.Waittargettile("1341", str(i), str(j), str(z)) 
DogStyle
Posts: 17
Joined: 2007-03-19 18:25:51

Post by DogStyle »

as i said!

same thing... "you cant fish there"

is there another way to set co-ordinate ??????

plz write something ¬¬

and ths for ur help!
Nmy
Expert!
Posts: 2152
Joined: 2005-09-14 15:31:58
Location: Latvia

Post by Nmy »

if i write something in code I mean you need to replace something in your code ...
Nmy
Expert!
Posts: 2152
Joined: 2005-09-14 15:31:58
Location: Latvia

Post by Nmy »

try this:

Code: Select all

sub fishing_2()
var x, y, z, i, j
   x = UO.GetX("self")
   y = UO.GetY("self")
   z = UO.GetZ("self")
   for i = x-4 to x+4
      for j = y-4 to y+4
         UO.DeleteJournal()
         while not UO.InJournal("Nao parece ter peixe aqui") and not UO.InJournal("Voce nao consegue ver este local!") and not UO.InJournal("Isso esta muito longe") and not UO.InJournal("Voce nao pode pescar ai!") and not UO.InJournal("fish there")
            UO.DeleteJournal()
            UO.Print("Now Fishing In: "+str(i)+" "+str(j))
            UO.Waittargettile("1341", str(i), str(j), str(z))
            UO.Usetype("0x0DBF")
            while not UO.InJournal("Nao parece ter peixe aqui") and not UO.InJournal("Voce nao consegue ver este local!") and not UO.InJournal("Isso esta muito longe") and not UO.InJournal("Voce nao pode pescar ai!")
            wait (500)
            wend
         wend
      next
   next
end sub


keep in mind that if you need some help you must give maximum information, like in this case you have message in journal and it stops fishing
DogStyle
Posts: 17
Joined: 2007-03-19 18:25:51

Post by DogStyle »

hey... i have found out the problem!!!

look:

Code: Select all

UO.Waittargettile("1341", str(i), str(j), str(z))


the problem is here in this line....
i dont know why but the injection is only reading the TILE INFORMATION (1341) and not the i,j,z.... and i have no idea WHY!

and i change FOR by RANDOM command. i think is the same.

now is like that:

Code: Select all

sub main() 
var x, y, z
inicio:
x=UO.Random(50)
y=UO.Random(80)
z=0
UO.DeleteJournal()
while not UO.InJournal("Nao parece ter peixe aqui") and not UO.InJournal("Voce nao consegue ver este local!") and not UO.InJournal("Isso esta muito longe") and not UO.InJournal("Voce nao pode pescar ai!")
UO.DeleteJournal()
UO.Print("Now Fishing In: "+str(x)+" "+str(y))
UO.Waittargettile("1341", str(x), str(y), str(z))
UO.Usetype("0x0DBF")
while not UO.InJournal("Nao parece ter peixe aqui") and not UO.InJournal("Voce nao consegue ver este local!") and not UO.InJournal("Isso esta muito longe") and not UO.InJournal("Voce nao pode pescar ai!")
wait(500)
wend
wend
goto inicio
end sub


MY SERVER IS POL EMULATOR !!!!

i need t change the way to CLICK.... is there a way?
Nmy
Expert!
Posts: 2152
Joined: 2005-09-14 15:31:58
Location: Latvia

Post by Nmy »

how do you fish ? d-click and then target the water ?
DogStyle
Posts: 17
Joined: 2007-03-19 18:25:51

Post by DogStyle »

but it is strange...why its not workint here....????
Nmy
Expert!
Posts: 2152
Joined: 2005-09-14 15:31:58
Location: Latvia

Post by Nmy »

okey lets go back to my script ... does it hit water atleast once ?
DogStyle
Posts: 17
Joined: 2007-03-19 18:25:51

Post by DogStyle »

no, never.... it only show you cant fish there!

i changed this line:

Code: Select all

UO.Waittargettile("1341", str(i), str(j), str(z))

to

Code: Select all

UO.Waittargettile("lasttile", str(i), str(j), str(z))


so i click on water and what happen? now the script hit the same place everytime, even with i j z locations.... same tile everytime....

so i think that the problem is in this line...

remember im playing with POL emulator.....

thx NMY for help me
Nmy
Expert!
Posts: 2152
Joined: 2005-09-14 15:31:58
Location: Latvia

Post by Nmy »

write down ,infotile and hit the water

Code: Select all

sub fishing_2()
var x, y, z, i, j
   x = UO.GetX()
   y = UO.GetY()
   z = UO.GetZ()
   for i = x-4 to x+4
      for j = y-4 to y+4
         UO.DeleteJournal()
         while not UO.InJournal("Nao parece ter peixe aqui") and not UO.InJournal("Voce nao consegue ver este local!") and not UO.InJournal("Isso esta muito longe") and not UO.InJournal("Voce nao pode pescar ai!") and not UO.InJournal("fish there")
            UO.DeleteJournal()
            UO.Print("Now Fishing In: "+str(i)+" "+str(j))
            UO.Waittargettile("1341", str(i), str(j), str(z))
            UO.Usetype("0x0DBF")
            while not UO.InJournal("Nao parece ter peixe aqui") and not UO.InJournal("Voce nao consegue ver este local!") and not UO.InJournal("Isso esta muito longe") and not UO.InJournal("Voce nao pode pescar ai!")
            wait (500)
            wend
         wend
      next
   next
end sub
DogStyle
Posts: 17
Joined: 2007-03-19 18:25:51

Post by DogStyle »

i knew this command ,infotile

it shows 6039

works BUT not properly, cause even hiting the graund he try to fish lol... and shows a little bugged tile where im fishing!!!!

well... i think we cant solve it... but its ok i will cry alone!!

:D

thx
Post Reply