Author Topic: Throw Bola and Teleport towards target  (Read 6504 times)

0 Members and 1 Guest are viewing this topic.

Offline NoobieTopic starter

  • Sr. Member
  • *
  • Posts: 262
  • Activity:
    0%
  • Reputation Power: 1
  • Noobie has no influence.
  • Gender: Male
  • Respect: +13
  • Referrals: 1
    • View Profile
Throw Bola and Teleport towards target
« on: February 02, 2010, 08:18:23 AM »
0

Offline Cerveza

  • Hacksimus Maximus
  • Scripthack
  • *
  • Posts: 5857
  • Activity:
    0%
  • Reputation Power: 80
  • Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!
  • Gender: Male
  • So... Hows that Hopey-Changey thing working out?
  • Respect: +403
  • Referrals: 11
    • View Profile
Re: Throw Bola and Teleport towards target
« Reply #1 on: February 02, 2010, 08:36:10 AM »
0
If you have the #lTarget X and Y then you can get the direction they are in, then just teleport that direction....

if #lTargetX > #charPosX
return EAST

if #lTargetY > #charPosY
return SOUTH

Something along those lines....
XXXXXXXXXX________________________________________] 20%
I've forgotten more about this game then most people will ever know.
Thank you for controlling your children. Their manners reflect your love for them.
Give a man a fish and you feed him for a day. Don't teach a man to fish, and you feed yourself. He's a grown man. Fishing's not that hard.

Offline NoobieTopic starter

  • Sr. Member
  • *
  • Posts: 262
  • Activity:
    0%
  • Reputation Power: 1
  • Noobie has no influence.
  • Gender: Male
  • Respect: +13
  • Referrals: 1
    • View Profile
Re: Throw Bola and Teleport towards target
« Reply #2 on: February 02, 2010, 09:42:20 AM »
0
Would this work? Now all I would have to decide how I want to initiate it. HotKey is what i was thinking, but not sure.

Code: [Select]
Set %X ( #cliXRes - #cliLeft ) /  2  
Set %Y ( #cliYRes - #cliTop )  /  2


sub finddirection
IF #lTargetY > #charPosY && #lTargetX > #charPosX
gosub NE

IF #lTargetY < #charPosY && #lTargetX > #charPosX
gosub SE

IF #lTargetY > #charPosY && #lTargetX < #charPosX
gosub NW

IF #lTargetY < #charPosY && #lTargetX < #charPosX
gosub SW

IF #lTargetX > #charPosX
gosub E

IF #lTargetX < #charPosX
gosub W

IF #lTargetY < #charPosY
gosub S

IF #lTargetY > #charPosY
gosub N


sub NE
Set %Y %Y + 10
Set %X %X + 10
gosub offsetclick %X %Y

sub SE
Set %Y %Y - 10
Set %X %X + 10
gosub offsetclick %X %Y

sub NW
Set %Y %Y + 10
Set %X %X - 10
gosub offsetclick %X %Y

sub SW
Set %Y %Y - 10
Set %X %X - 10
gosub offsetclick %X %Y

sub N
Set %Y %Y + 10
gosub offsetclick %X %Y

sub S
Set %Y %Y - 10
gosub offsetclick %X %Y

sub E
Set %X %X + 10
gosub offsetclick %X %Y

sub W
Set %X - 10
gosub offsetclick %X %Y

« Last Edit: February 02, 2010, 09:54:41 AM by Noobie »

Offline Wilk

  • Sr. Member
  • *
  • Posts: 308
  • Activity:
    0%
  • Reputation Power: 3
  • Wilk has no influence.
  • Gender: Male
  • Respect: +24
  • Referrals: 0
    • View Profile
Re: Throw Bola and Teleport towards target
« Reply #3 on: February 02, 2010, 10:53:47 AM »
0
Throw bola.

Teleport near target.

Teleport near target a second time.

No script needed.  ::)

Scrripty

  • Guest
Re: Throw Bola and Teleport towards target
« Reply #4 on: February 02, 2010, 11:04:39 AM »
0
You could find the direction they are in, then use that info to see if they are within 11 tiles, and if they are, use their current x,y coords - one tile towards you to teleport next to them... only way it wouldn't work was if something was blocking that location, say a field, or a rock, or whatever... or someone/thing else on that tile...?

Offline NoobieTopic starter

  • Sr. Member
  • *
  • Posts: 262
  • Activity:
    0%
  • Reputation Power: 1
  • Noobie has no influence.
  • Gender: Male
  • Respect: +13
  • Referrals: 1
    • View Profile
Re: Throw Bola and Teleport towards target
« Reply #5 on: February 02, 2010, 11:26:03 AM »
0
Twinkle McNugget that was what i thought but, their XY coords are map based and my cursor XY is what i would have to set to click on the tile. So you have to convert their map XY into a cursor XY so that you can click on the tile next to them.

Offline Cerveza

  • Hacksimus Maximus
  • Scripthack
  • *
  • Posts: 5857
  • Activity:
    0%
  • Reputation Power: 80
  • Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!
  • Gender: Male
  • So... Hows that Hopey-Changey thing working out?
  • Respect: +403
  • Referrals: 11
    • View Profile
Re: Throw Bola and Teleport towards target
« Reply #6 on: February 02, 2010, 11:32:29 AM »
0
Or just start at 11 and move back 1 (closer to you) until you hit a teleport spot.
XXXXXXXXXX________________________________________] 20%
I've forgotten more about this game then most people will ever know.
Thank you for controlling your children. Their manners reflect your love for them.
Give a man a fish and you feed him for a day. Don't teach a man to fish, and you feed yourself. He's a grown man. Fishing's not that hard.

Scrripty

  • Guest
Re: Throw Bola and Teleport towards target
« Reply #7 on: February 02, 2010, 11:50:26 AM »
0
So post up some code and lets see what you got.

Offline NoobieTopic starter

  • Sr. Member
  • *
  • Posts: 262
  • Activity:
    0%
  • Reputation Power: 1
  • Noobie has no influence.
  • Gender: Male
  • Respect: +13
  • Referrals: 1
    • View Profile
Re: Throw Bola and Teleport towards target
« Reply #8 on: February 02, 2010, 11:57:53 AM »
0
Well that is all I have done at this point I did that here at work and have not even been able to test it yet just free writing still. After Class tonight I will see what else I can do. I will post so you can help me stream line it Twinkle McNugget. Thanks for the help as well Cerveza.

Offline OMGBurgers

  • Hero Member
  • *
  • Posts: 800
  • Activity:
    0%
  • Reputation Power: 7
  • OMGBurgers has no influence.
  • Respect: +44
  • Referrals: 0
    • View Profile
Re: Throw Bola and Teleport towards target
« Reply #9 on: February 02, 2010, 01:11:24 PM »
0
you'll also need to scan the tiles too to make sure there is nothing that will prevent the teleport.

honestly I think it would be too unreliable to bother with.

it really just takes practice.  that's all I do on my main shard where we actually fightning even numbers at times.  i usually crossheal & pull enemy bars.  once I have bars I just start picking them off one at a time.

the only useful script for bolaing that I would bother with would be one that picks up the bolas (on hotkey is how I would prefer it) and/or one that keeps your weapon armed (toast on a mage on foot if you forget it).  I hate scripts that auto pickup the bolas though that arn't on a hotkey.  all my stupid guildies take em and dont even use em it's such a pain.

Offline manwinc

  • Elite
  • *
  • *
  • Posts: 2556
  • Activity:
    0%
  • Reputation Power: 32
  • manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!
  • Gender: Male
  • "The Devs Hard at Work"
  • Respect: +123
  • Referrals: 1
    • View Profile
Re: Throw Bola and Teleport towards target
« Reply #10 on: February 03, 2010, 11:49:30 AM »
0
I like the

Pick Up Bola
Use Bola
Select Nearest Hostile
Throw Bola

Macro :)

Cracks me up when I get put on my ass by some  large group and I just pick up the bola and relaunch it at someone. IT was better back when you could instantly remount.
Monkeys and Typewriters!

" Oh I know, We'll make a Boss Encounter that requires 3 keys per player to enter, Then we'll make it not a closed instance so you never know if you are going to pop into a fresh room or a boss that has 1% Health left with 20 dudes smashing its face in, wasting your time and effort"

Offline Cerveza

  • Hacksimus Maximus
  • Scripthack
  • *
  • Posts: 5857
  • Activity:
    0%
  • Reputation Power: 80
  • Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!
  • Gender: Male
  • So... Hows that Hopey-Changey thing working out?
  • Respect: +403
  • Referrals: 11
    • View Profile
Re: Throw Bola and Teleport towards target
« Reply #11 on: February 03, 2010, 12:12:07 PM »
0
I remember when the first anti-bola scripts came out.... we'd run around spamming "menacingly" and watch entire guilds dismount in unison. Funny.
XXXXXXXXXX________________________________________] 20%
I've forgotten more about this game then most people will ever know.
Thank you for controlling your children. Their manners reflect your love for them.
Give a man a fish and you feed him for a day. Don't teach a man to fish, and you feed yourself. He's a grown man. Fishing's not that hard.

Offline NoobieTopic starter

  • Sr. Member
  • *
  • Posts: 262
  • Activity:
    0%
  • Reputation Power: 1
  • Noobie has no influence.
  • Gender: Male
  • Respect: +13
  • Referrals: 1
    • View Profile
Re: Throw Bola and Teleport towards target
« Reply #12 on: February 03, 2010, 12:40:42 PM »
0
That would be sweet. I wonder if anyone is still using one like that. Will have to see tonight. Creveza what you should hit me up with a PM about what shard you are on I could make me a new toon there to hang out a bit.

Offline UOMaddog

  • Maddog
  • Elite
  • *
  • *
  • Posts: 1625
  • Activity:
    0%
  • Reputation Power: 22
  • UOMaddog might someday be someone...UOMaddog might someday be someone...UOMaddog might someday be someone...UOMaddog might someday be someone...
  • Gender: Male
  • Biggest B@D@$$ of the Universe
  • Respect: +165
  • Referrals: 8
    • View Profile
    • Insane UO
Re: Throw Bola and Teleport towards target
« Reply #13 on: February 03, 2010, 12:43:32 PM »
0
Yea I have to agree that it's better to just practice it! Mainly because you can do all the math to teleport towards your target, but you still have to check to make sure it's a clear spot, and if it isn't then you have to recast and find a new target and it's just not worth it, they'll be gone by then! Just have a script to pick them up as was mentioned before, then just make a macro that is Use Bola -> Last Target -> Cast teleport and do the clicking yourself!
There are 10 kinds of people in this world: those that understand binary and those that don't!

Windows:  A 64-bit tweak of a 32-bit extension to a 16-bit user interface for an 8-bit operating system based on a 4-bit architecture from a 2-bit company that can't stand 1 bit of competition!

Scrripty

  • Guest
Re: Throw Bola and Teleport towards target
« Reply #14 on: February 03, 2010, 12:49:21 PM »
0
Yea I have to agree that it's better to just practice it! Mainly because you can do all the math to teleport towards your target, but you still have to check to make sure it's a clear spot, and if it isn't then you have to recast and find a new target and it's just not worth it, they'll be gone by then! Just have a script to pick them up as was mentioned before, then just make a macro that is Use Bola -> Last Target -> Cast teleport and do the clicking yourself!

I still think it would be easy to do an offset click from the location of your target... then you could just teleport over and over anytime you liked.  Hit a macro and it would try to teleport to them -1 tile...

Tags: