ScriptUO

Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: Casanova on January 17, 2013, 06:40:33 PM

Title: Target Relative (mining)
Post by: Casanova on January 17, 2013, 06:40:33 PM
Good Evening SUO,

I'm trying to make a hotkey activated fisher (attended) that can cast without discretion similiar to how UOAssist uses the target relative (mining).
Goal is for me to maunally recall to the boat hit my hotkey and let him fish until I stop it to either unload or kill a serpent.

I mean as of now I can recall to my boat and hit my uoassist (I know everyone uses razor, right?!) macro thats simply:
Use Item
Target Relative (mining)

and wherever I am on the boat it just cast to the water.

Thanks,
Casa
Title: Re: Target Relative (mining)
Post by: The Ghost on January 17, 2013, 08:45:42 PM
If you are looking for Fishing Script Try this one.
http://www.scriptuo.com/index.php?topic=9770.0;highlight=chest+fisher

if you want to use UOA no matter where you are, just record macro
Use Item
Target
Pause 8500

now just loop it.
Title: Re: Target Relative (mining)
Post by: Endless Night on January 17, 2013, 08:47:35 PM
heres another fisher   http://www.scriptuo.com/index.php?topic=7698.0


Personally i never fish attended way too boring... sometimes i watch him fishing just for fun, but only sometimes ;)


Title: Re: Target Relative (mining)
Post by: KaliOfLS on January 17, 2013, 09:17:50 PM
I use openEUO, and I have a script that you may be interested in.  It's the bones of an unattended I plan to make... eventually.

It will cast in a radius around you hitting all 4 resource tiles if you know how to find the node :D  It basically works like this:

If you want to make your own, I dig, I do that all the time.

What you want to do is this sort of idea:

Cast 2 tiles away from yourself in a direction.  I go with matrix
X-----X
--------
---M---
--------
X-----X

That equates to my position with a +2,+2,|| -2,+2,|| -2,-2,|| +2,-2 offset.

in euox, for the first node:
Code: [Select]
set #ltargetx #charposx + 2
set #ltargety #charposy + 2
set #ltargetz #charposz
set #ltargetkind 2
event macro 22 0
Title: Re: Target Relative (mining)
Post by: Casanova on January 17, 2013, 09:50:21 PM
Thanks Gents.

I think you're all on to something..... Fishing is possibly the most boring thing I've done in UO.

Haha but either way I'll give those a go, but check this super ghetto piece I made!!

Code: [Select]

Repeat
 onhotkey 8
  gosub hotkey 8
  sleep 1
 until false

sub hotkey 8
 while #maxhits = #maxhits
{
 key F2
 wait 80
 key F1
 Wait 70
}
Stop


I wasn't looking for pure automation so for what I wanted, I give it a 7/10.

I found the hotkey and key commands in the wiki and the end result was I he'd cast the fishing line, equip his bow, shoot anything targeting him, real a fish in, equip the pole and cast it..... Over and over until he filled up and then I'd go unfill him. Simple stupid!

Casa
Title: Re: Target Relative (mining)
Post by: Endless Night on January 17, 2013, 10:03:45 PM
if it works and your happy with it thats all that really counts in the end
Title: Re: Target Relative (mining)
Post by: Casanova on January 17, 2013, 10:15:31 PM
Definitely true EN. And I'm still learning so these types of little projects help me the most. I've never programmed or written any significant code in my life, so I have far to go but I look forward to the journey!

Casa
Title: Re: Target Relative (mining)
Post by: The Ghost on January 18, 2013, 03:30:11 PM
UOA have a little program call  UOA-loop.  You can Google it. That will replay a recoding macro over and over.  I used that  for fishing at first and still use it lot for healing my pet.
Title: Re: Target Relative (mining)
Post by: The Ghost on January 18, 2013, 03:38:17 PM
Kali let me know when you finish your fishing, so I can get it a test run :)   
Title: Re: Target Relative (mining)
Post by: gimlet on January 18, 2013, 04:25:55 PM
I use uoaf to run uoassist in a loop.
I have attacched my copy below. I have used it since 2000 or so - so I am pretty sure it is clean.
Title: Re: Target Relative (mining)
Post by: Casanova on January 19, 2013, 02:08:56 AM
I use uoaf to run uoassist in a loop.
I have attacched my copy below. I have used it since 2000 or so - so I am pretty sure it is clean.

Thank you Gimlet. I didn't have a chance to try it out today but I'll give it a go tomorrow!

Casa