Close
Page 1 of 4 1 2 3 ... LastLast
Showing results 1 to 10 of 38

Thread: Targeted AoE...

  1. #1

    Lightbulb Targeted AoE...

    Well uh, a quick search didn't yield much results so I figured no one must've utilized this method yet...

    Basically, since we can't move the cursor, why not move the camera instead? We know where the cursor is through the API, so all that's left is to adjust the camera so that it points at something.

    But how do we know where to point? Well, there's plenty of methods I suppose, some of which might require a higher understanding of mathematics, which I sadly do not possess. So I chose the simple method of comparing cursor coordinates with nameplate coordinates, and through some primitive algorithms, got it to barely work in optimal circumstances. Of course there are some interesting side effects when everything doesn't go as planned, but anyways...

    Here's a little sample of what I was able to produce :P
    http://www.youtube.com/watch?v=Qk4m1LxnXQ0

    Currently it can only target through names (which are also case sensitive), but it could be possible to target raid target icons or the current selected target. I might introduce those features later if my patience with this project doesn't run out before that :P

    The usage for the slash command seen in the video is /pnklook target lock
    For example, if you want to point at Thrall, you type /pnklook Thrall
    but if you want to lock your cursor on Thrall, you type /pnklook Thrall lock
    If you need some lua functionalism in the name selecting, you can use the function lookAt( string name, bool lock )
    /run lookAt( "Thrall", false ) and /run lookAt( "Thrall", true ) produce the above results.
    Also - the parsing for the slash command doesn't handle special characters well so you might use the lua function in that case.

    Third edit: the addon also utilizes SetView(2) in an attempt to get a wide view to search for the name plates. So you might want to set a wide view for the B camera (values used in video: 40 pitch 40 distance 0 yaw). If you use SetView(2) for something else, go ahead and edit it to use some other point or take it out altogether :P

    Some known bugs (or unfeatures, rather) include earthquakism and cameraman suddenly flying into outer space. And if the camera is blocked by something, say a ceiling, it might yield unwanted results, since it currently relies on camera zoom to adjust the Y difference between cursor and nameplate (I tried to combine zoom and pitch together but that proved quite difficult :P)
    Having your cursor in the upper region of the window is pretty much a requirement to get any reliable results as of now. I might improve the algorithms later but thought I'd put this piece of garbage out for you to enjoy for now.

    Fourth edit: aaaalso... the nameplate finding function is quite modest, so nameplate addons might break it up.

    You'll find the addon attached.
    Attached Files Attached Files
    Last edited by panker : 03-12-2010 at 06:03 PM

  2. #2

    Default

    sick! and in 119 lines of lua at that. going to try it out now

  3. #3

    Default

    Very nice, looks promising.
    I'm going to live forever, or die trying.
    5 Shaman Northrend Heroics - My YouTube Channel - Details about my setup (outdated)
    T2 Heroics: lvl 80 Heroics wearing lvl 60 armour
    Running 5-6 accounts on one computer, currently playing Horde on US-Skywall.
    My main teams:
    5x Shamans lvl 85
    5-class team lvl 100: Paladin, Druid, Shaman, Mage, Priest

  4. #4

    Default

    Nice and creative. Good find, good code. Thanks for sharing this with us.
    brainie pala 80 - blastcast shaman 80 - deadcast shaman 80 - swientie holy priest 80 - magrin mage 80 -- Aggramar EU

  5. #5

    Default

    Great job - I could see that being extremely useful if it could find raid target icons or something else that would uniquely identify a target on screen. I assume using nameplates would be problematic in a typical scenario where there a number of identically named targets on the screen...
    Easy spammable /click /castsequence macros - http://multibox.me

  6. #6

    Default

    Very clever, but .. I don't see any good coming of this to be honest.

    It's got "bot" written all over it (if the game were an FPS, this would be called an aimbot). If you show someone that video without providing the code for the Addon, that's probably going to be their first thought. If I were in Blizzard's shoes, I would probably be working on disabling this.
    Lax
    Author of ISBoxer
    Video: ISBoxer Quick Start

  7. #7
    Member
    Join Date
    Sep 2008
    Location
    Calgary, AB and Vancouver, BC
    Posts
    7638
    Blog Entries
    2

    Default

    Very nice potential here.

    Have to point out, you can use Raid Targets on an npc, but cannot mark an opposing player.
    The nameplate will be the stronger option for PvP, but Raid Targets will be a nice option for PvE for sure.

    If you could lock onto the current target of the active window, rather then a slash command.
    Possibly a hotkey to set the lock/target to the currently selected unit.
    That would make this a lot stronger/easier to use, in actual play.

    I have to agree, Blizzard won't really like something like this.
    Thank you for developing this and sharing with the community.
    Last edited by Ualaa : 03-13-2010 at 01:49 AM
    EverQuest I: Bard / Enchanter / Druid / Wizard / 2x Magician.
    Diablo III: 4x Crusader & 4x Wizard.

    My Guide to IS Boxer http://www.dual-boxing.com/showthread.php?t=26231 (somewhat dated).
    Streaming in 1080p HD: www.twitch.tv/ualaa
    Twitter: @Ualaa


  8. #8

    Default

    I'd simply set this to keep the cursor on my main. Having Blizzard/Rain of Fire cast around my tank is pretty much ideal. If this was to work I could see mages becoming very dominant in boxing...

    Flamestrike
    Blizzard
    PoM-Flamestrike
    Blizzard

    Loot.
    5 Boxing (85):
    Paladin, 2xMage, Warlock, Priest
    Paldius, Magria, Magrib, Walina, Priset
    Currently:
    5 Boxing (85):
    Paladin, 3xWarlock, Shaman
    Ghallo, Warlisia, Warlisib, Warlisic, Pleo!

  9. #9

    Default

    It would be helpful if you could describe the code (ie pseudocode).

  10. #10

    Default

    Great call Ghallo. Exactly right. Need consecrate to control aggro anyway.
    80 Blood Elf Paladin, 80 Blood Elf Priest,80 Troll Mage, 80 Undead Warlock, 80 Tauren Druid, 80 Undead Rogue
    80 x4 Shaman (Orc x3, Troll)

    Madoran - Horde - PvE

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •