Author Topic: [XP] Blizz ABS Smart Auto Targeting  (Read 11457 times)

Offline LiTTleDRAgo

  • Astral Trancist
  • *****
  • Posts: 802
  • LV: 510
  • Gender: Male
  • 猫は可愛いです
    • View Profile
    • ~
[XP] Blizz ABS Smart Auto Targeting
« on: February 26, 2011, 05:21:24 AM »
Blizz ABS Smart Auto Targeting
Authors: LiTTleDRAgo
Version: 1.05
Type: Blizz-ABS Plugin
Key Term: Blizz-ABS Plugin

Introduction

It's just basically edit from Blizzard's Auto Targeting Script

Features

  • Remove selection screen when player is near an enemy
  • Automatically target nearest enemy at screen

Screenshots

---

Demo

---

Script

(click to show/hide)

Instructions

Put Below Blizz ABS

Compatibility

Needs Blizz ABS
Not Compatible with Blizzard Auto Targeting

Credits and Thanks

  • LiTTleDRAgo
  • Blizzard
  • Aqua

Author's Notes

Known Bugs :

1. Player can't select target when you want to use skill/item to party member,
The character will chose the target himself
2. Selection screen still appear on charged skill

Enjoy ~
« Last Edit: March 08, 2011, 02:08:30 AM by LiTTleDRAgo »

Offline Shalaren

  • Ethereal Devastator
  • ****
  • Posts: 442
  • LV: 46
  • Gender: Male
  • Also known as DexKyle
    • View Profile
Re: [XP] Smart Auto Targetting
« Reply #1 on: February 26, 2011, 06:19:57 AM »
I like how in your note you besically say
"theres a bug that will totally screw it up! enjoy!"  :P
imma test it on my game and Ill edit with some feedback <3

Edit: mmkay its pretty sweet o:, altough, another way it should know how to target is the enemies your faced to,
lets say there is a monster up, and a monster down, it should target depending on what direction your facing, otherwise
battle will be real hard against more then 1 enemy. targeting the enemies your faced to is the only thing I could find missing,

but in general i find it real helpful, lvl up*
« Last Edit: February 26, 2011, 06:28:26 AM by shalaren metropolis »

Offline LiTTleDRAgo

  • Astral Trancist
  • *****
  • Posts: 802
  • LV: 510
  • Gender: Male
  • 猫は可愛いです
    • View Profile
    • ~
Re: [XP] Smart Auto Targetting
« Reply #2 on: February 26, 2011, 01:19:23 PM »
oh, you want to be like that?
there you go, as requested

Offline Shalaren

  • Ethereal Devastator
  • ****
  • Posts: 442
  • LV: 46
  • Gender: Male
  • Also known as DexKyle
    • View Profile
Re: [XP] Smart Auto Targetting
« Reply #3 on: February 26, 2011, 05:12:12 PM »
 :up: totally using this :B

another suggestion though, now that u did the facing target it works really nice, except it might target far enemies when there is enemies real close to you from that same direction, the suggestion is to target to closest enemy from that direction.

Offline Zexion

  • Addicted to LoL
  • Chaos User
  • ******
  • Posts: 1500
  • LV: 69
  • Gender: Male
  • My anaconda don't...jk it does
    • View Profile
Re: [XP] Smart Auto Targetting
« Reply #4 on: February 26, 2011, 08:49:32 PM »
I tried this becuase i need this too, but if you face up or down the thing goes psycho!
EDIT: Actually, if you face in a direction that there is no enemy then it goes psycho!
« Last Edit: February 26, 2011, 08:56:46 PM by Zexion »

Offline Aqua

  • Lexima Warrior
  • *******
  • Posts: 2554
  • LV: 118
  • Gender: Female
  • Quack!
    • View Profile
Re: [XP] Smart Auto Targetting
« Reply #5 on: February 26, 2011, 09:05:01 PM »
Maybe you should have to check a skill's/item's scope to do the targeting?
That way things can be used on allies too xD

Offline Shalaren

  • Ethereal Devastator
  • ****
  • Posts: 442
  • LV: 46
  • Gender: Male
  • Also known as DexKyle
    • View Profile
Re: [XP] Smart Auto Targetting
« Reply #6 on: February 26, 2011, 09:50:04 PM »
I tried this becuase i need this too, but if you face up or down the thing goes psycho!
EDIT: Actually, if you face in a direction that there is no enemy then it goes psycho!

you mean ur facing down and it attacks the monster up? thats because there is no monster downwards then o-o.
thats the idea of the script lol.

Offline Zexion

  • Addicted to LoL
  • Chaos User
  • ******
  • Posts: 1500
  • LV: 69
  • Gender: Male
  • My anaconda don't...jk it does
    • View Profile
Re: [XP] Smart Auto Targetting
« Reply #7 on: February 26, 2011, 10:12:42 PM »
no i mean if im facing away from an enemy the target thing starts shifting through all the enemys on the screen untill i face an enemy. I'm gonna fix it by only making it target when u press the button, and press another to take it off, but yeah its a bug i think let me make a vid.

Edit: Actually, it wont let me upload it for some reason the page wont load, so here is a gif.
(click to show/hide)
That is exactly what happens when i'm not facing enemies.
« Last Edit: February 26, 2011, 10:57:06 PM by Zexion »

Offline Shalaren

  • Ethereal Devastator
  • ****
  • Posts: 442
  • LV: 46
  • Gender: Male
  • Also known as DexKyle
    • View Profile
Re: [XP] Smart Auto Targetting
« Reply #8 on: February 26, 2011, 10:45:42 PM »
no i mean if im facing away from an enemy the target thing starts shifting through all the enemys on the screen untill i face an enemy. I'm gonna fix it by only making it target when u press the button, and press another to take it off, but yeah its a bug i think let me make a vid.
you should o-o, I havent got into that bug yet.

Offline Zexion

  • Addicted to LoL
  • Chaos User
  • ******
  • Posts: 1500
  • LV: 69
  • Gender: Male
  • My anaconda don't...jk it does
    • View Profile
Re: [XP] Smart Auto Targetting
« Reply #9 on: February 26, 2011, 11:30:38 PM »
added the gif by the way :P

Offline Shalaren

  • Ethereal Devastator
  • ****
  • Posts: 442
  • LV: 46
  • Gender: Male
  • Also known as DexKyle
    • View Profile
Re: [XP] Smart Auto Targetting
« Reply #10 on: February 26, 2011, 11:34:06 PM »
Wieeerd, doesn thappen to me o-o

Offline LiTTleDRAgo

  • Astral Trancist
  • *****
  • Posts: 802
  • LV: 510
  • Gender: Male
  • 猫は可愛いです
    • View Profile
    • ~
Re: [XP] Smart Auto Targetting
« Reply #11 on: February 27, 2011, 04:06:53 AM »
no i mean if im facing away from an enemy the target thing starts shifting through all the enemys on the screen untill i face an enemy. I'm gonna fix it by only making it target when u press the button, and press another to take it off, but yeah its a bug i think let me make a vid.

Edit: Actually, it wont let me upload it for some reason the page wont load, so here is a gif.
(click to show/hide)
That is exactly what happens when i'm not facing enemies.

fixed

Offline Zexion

  • Addicted to LoL
  • Chaos User
  • ******
  • Posts: 1500
  • LV: 69
  • Gender: Male
  • My anaconda don't...jk it does
    • View Profile
Re: [XP] Smart Auto Targetting
« Reply #12 on: February 27, 2011, 05:56:33 AM »
hmm your fix is like the proper way, but i did a simple edit and it fixed it :P I dunno if it will cause more errors for someone else, but doesn't cause any for me.

changed this:
(click to show/hide)
to this:
(click to show/hide)
note the simple != nil to = nil change.
I honestly was just messing around and it worked :P

Offline Wizered67

  • Astral Trancist
  • *****
  • Posts: 509
  • LV: 16
    • View Profile
Re: [XP] Smart Auto Targetting
« Reply #13 on: February 27, 2011, 06:34:59 AM »
Actually, in conditionals you use == and not =.

Offline LiTTleDRAgo

  • Astral Trancist
  • *****
  • Posts: 802
  • LV: 510
  • Gender: Male
  • 猫は可愛いです
    • View Profile
    • ~
Re: [XP] Smart Auto Targetting
« Reply #14 on: February 27, 2011, 07:39:00 AM »
if you didn't want auto change target that much just simply delete this line

Quote
  alias initer_update update
  def update
    initer_update
    changetarget
  end

update 1.03, added option to remove auto change target

Offline Shalaren

  • Ethereal Devastator
  • ****
  • Posts: 442
  • LV: 46
  • Gender: Male
  • Also known as DexKyle
    • View Profile
Re: [XP] Smart Auto Targetting
« Reply #15 on: February 27, 2011, 09:57:28 AM »
it might target far enemies when there is enemies real close to you from that same direction, the suggestion is to target the closest enemy from that direction.

Offline Zexion

  • Addicted to LoL
  • Chaos User
  • ******
  • Posts: 1500
  • LV: 69
  • Gender: Male
  • My anaconda don't...jk it does
    • View Profile
Re: [XP] Smart Auto Targetting
« Reply #16 on: February 27, 2011, 12:15:13 PM »
the thing is, if i took that one out, then when enemies die the targeter would just stay there, and not move at all, but it's ok I managed to get it working with pressing a button turns it on, pressing it again switches the targets, and pressing another button removes it.

Offline LiTTleDRAgo

  • Astral Trancist
  • *****
  • Posts: 802
  • LV: 510
  • Gender: Male
  • 猫は可愛いです
    • View Profile
    • ~
Re: [XP] Smart Auto Targetting
« Reply #17 on: February 28, 2011, 02:51:35 AM »
it might target far enemies when there is enemies real close to you from that same direction, the suggestion is to target the closest enemy from that direction.

unfortunately, I still didn't know how to do that (to check nearest enemies),
could someone help?

the thing is, if i took that one out, then when enemies die the targeter would just stay there, and not move at all, but it's ok I managed to get it working with pressing a button turns it on, pressing it again switches the targets, and pressing another button removes it.

is that so?
I'll check it later at home

Offline Aqua

  • Lexima Warrior
  • *******
  • Posts: 2554
  • LV: 118
  • Gender: Female
  • Quack!
    • View Profile
Re: [XP] Smart Auto Targetting
« Reply #18 on: February 28, 2011, 03:07:50 AM »
it might target far enemies when there is enemies real close to you from that same direction, the suggestion is to target the closest enemy from that direction.

unfortunately, I still didn't know how to do that (to check nearest enemies),
could someone help?

Use the distance formula to figure out which is the closest.
In coding terms... it's...
Code: [Select]
VAR = Math.hypot((x1 - x2).abs, (y1 - y2).abs)

Offline LiTTleDRAgo

  • Astral Trancist
  • *****
  • Posts: 802
  • LV: 510
  • Gender: Male
  • 猫は可愛いです
    • View Profile
    • ~
Re: [XP] Smart Auto Targetting
« Reply #19 on: February 28, 2011, 06:13:35 PM »
it might target far enemies when there is enemies real close to you from that same direction, the suggestion is to target the closest enemy from that direction.

done

Use the distance formula to figure out which is the closest.
In coding terms... it's...
Code: [Select]
VAR = Math.hypot((x1 - x2).abs, (y1 - y2).abs)


thanks Aqua
I'll put you in the credit