Help with waittargettile please..

Ask for help

Moderators: Murderator+, Murderator

Post Reply
pim
Posts: 5
Joined: 2005-02-05 22:28:14

Help with waittargettile please..

Post by pim »

Hey.. i've using injection's scripts to macro for a while now, and something i really can't understand is the reason for the tilenumber on the "Waittargettile" function.. isn't there a way to avoid that number? because i made a macro for fishing and i m stucked on that tilenum, since it's variable on the water i fish =X

Any clues to make it work?
Thanks, pim
Yoko
Site Admin
Posts: 1964
Joined: 2004-04-03 16:49:38
Contact:

Post by Yoko »

ziemni
Posts: 22
Joined: 2004-09-07 22:36:09
Location: Poland

Re: Help with waittargettile please..

Post by ziemni »

pim wrote:Hey.. i've using injection's scripts to macro for a while now, and something i really can't understand is the reason for the tilenumber on the "Waittargettile" function.. isn't there a way to avoid that number? because i made a macro for fishing and i m stucked on that tilenum, since it's variable on the water i fish =X

Any clues to make it work?
Thanks, pim


Check it:

But take into account that graphs 6039 - 6066 are coast tiles. Just run this script when u stand at the coast :)

Code: Select all

sub asm_test()
  var x
  var y
  var string
  UO.asmTLMapClear()
  for var i = 6039 to 6066
    UO.asmTLMapAdd(i, 'water')
  next 
 UO.TextClear()
  for x = -10 to 10
    string = ""
    for y = -10 to 10   
      if UO.asmWaitTargetStaticTile('water', UO.GetX() + x, UO.GetY() + y * (-1), 0) then
        string = string + "#"
      else
        string = string + "."
      endif 
    next
    UO.TextPrint(string) 
  next
end sub
Post Reply