|
Post by stonajoe on May 26, 2016 16:17:10 GMT
I need a little help with a couple things if anyone out there knows how.
first I am trying to figure out how to:
-find a corpse when a creature dies -move to the creature's corpse via a boat so I can loot it
I assume it is a position variable? I have been messing around with it for a bit and just cant seem to figure it out
also
some sort of rail system? any ideas? something that will walk around and come back to a specific location
|
|
|
Post by Experience on May 27, 2016 3:26:33 GMT
if @findtype '0x2006' 'any' 'ground' 'any' '12' //(finds corpse within 12 tiles) setalias 'found' 'Dead' endif if not @inrange 'Dead' 2 if @x 'Dead' > x 'self' and @y 'Dead' > y 'self' run 'Southeast' elseif @x 'Dead' < x 'self' and @y 'Dead' > y 'self' run 'Southwest' elseif @x 'Dead' > x 'self' and @y 'Dead' < y 'self' run 'Northeast' elseif @x 'Dead' < x 'self' and @y 'Dead' < y 'self' run 'Northwest' elseif @x 'Dead' > x 'self' and @y 'Dead' == y 'self' run 'East' elseif @x 'Dead' < x 'self' and @y 'Dead' == y 'self' run 'West' elseif @x 'Dead' == x 'self' and @y 'Dead' > y 'self' run 'South' elseif @x 'Dead' == x 'self' and @y 'Dead' < y 'self' run 'North' endif pause 500 endif
Just change movement directions to boat commands. AFAIK there is no way of making a rail/detecting location. Maybe with the use of a Sextant/Journal scanning...
|
|
|
Post by stonajoe on May 27, 2016 4:17:30 GMT
thanks. I will try that out and let ya know how it works.
|
|
|
Post by nickodemos on Jun 21, 2016 14:52:28 GMT
Noticed you flipped the setalias. Also added a replay so the avatar will move to the corpse. Good on water but on land it can get hung up on things.
if @findtype '0x2006' 'any' 'ground' 'any' '12' //(finds corpse within 12 tiles) setalias 'Dead' 'found' endif if not @inrange 'Dead' 2 if @x 'Dead' > x 'self' and @y 'Dead' > y 'self' run 'Southeast' elseif @x 'Dead' < x 'self' and @y 'Dead' > y 'self' run 'Southwest' elseif @x 'Dead' > x 'self' and @y 'Dead' < y 'self' run 'Northeast' elseif @x 'Dead' < x 'self' and @y 'Dead' < y 'self' run 'Northwest' elseif @x 'Dead' > x 'self' and @y 'Dead' == y 'self' run 'East' elseif @x 'Dead' < x 'self' and @y 'Dead' == y 'self' run 'West' elseif @x 'Dead' == x 'self' and @y 'Dead' > y 'self' run 'South' elseif @x 'Dead' == x 'self' and @y 'Dead' < y 'self' run 'North' endif pause 500 replay endif
|
|
|
Post by Experience on Jun 22, 2016 21:47:50 GMT
Ah yes I did sorry about that. just wrote it up without checking haha. Shouldn't need the replay if you set the macro to loop
|
|
|
Post by Una on May 6, 2020 18:27:30 GMT
sildenafil citrate 100mg tab buy brand viagra intimax 100 sildenafil citrate tablets
|
|