How to get a spell Object's target and position? menu

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 15 of 25
  1. #1
    demonguy's Avatar Member
    Reputation
    2
    Join Date
    Feb 2012
    Posts
    111
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to get a spell Object's target and position?

    But how could i get a spell Object information?

    For example: How can i get the targets of "Flame orb" or the "Shadow orb" of Sinestra.... And sometimes there are more than one targets of a spell.. such as "Resconating Crystal" of Morchok in DragSoul...

    And "Flame Orb" ,a spell of Mage.... It's an Unit-Type Object ....Its target GUID is zero even if it is doing damage on a unit...... But there is a line between it and its target right?How to get it ...

    Besides...Some Spell-Effect have it's position.... For example....during the encounter "WarMaster Blackhorn" in DragSoul, Twilight Elite Slayer will cast a spell named "Blade Rush", before casting... There are will be some aura like spell effects on the ground to indicate its charge path and tell you to avoid it ... Unfortunately it isn't any type of Object....
    not Unit, not Dynamic Object,not GameObject.....But it should have a position right? I have trouble to get it!

    I've done something before, replaced entire row of Balde Rush in spell.dbc and the effects on the ground stood still... So I guess before casting ,sever will send some messages to tell client draw the path effect on the ground ...At first i guess it should be a Dynamic Object but unfortunately it isn't any type of Object.......That's sick...
    Last edited by demonguy; 05-06-2012 at 12:02 PM.

    How to get a spell Object's target and position?
  2. #2
    migtron's Avatar Corporal
    Reputation
    18
    Join Date
    Jun 2010
    Posts
    22
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This question does not make much sense, because spells aren't objects. While in many cases spells are cast by objects, this is not always the case.

    Objects can be affected by spells, which you can track through the combat log and/or by tracking auras of affected objects. In many cases, this is the only way to obtain the information you are looking for.

  3. #3
    demonguy's Avatar Member
    Reputation
    2
    Join Date
    Feb 2012
    Posts
    111
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is it? Some spells doesn't have any aura on target , Blz makes it on purpose . Such as Shadow Orb of Sinestra (Final Boss of Bastion of Twilight)

    Since I can see the target of Shadow Orb on my screen .. Then this information should be in the Memory Right ?So i want to know how to get it ......

  4. #4
    migtron's Avatar Corporal
    Reputation
    18
    Join Date
    Jun 2010
    Posts
    22
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by demonguy View Post
    Since I can see the target of Shadow Orb on my screen .. Then this information should be in the Memory Right ?So i want to know how to get it ......
    What does this have to do with spells? The Shadow Orb is an NPC, i.e. it is a CGUnit_C in terms of world objects. If you have a look at the associated descriptor to such an object, I am sure you will find the answer in no time.

  5. #5
    demonguy's Avatar Member
    Reputation
    2
    Join Date
    Feb 2012
    Posts
    111
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I know it's a Unit. And i solve this by get its target in the descriptor
    it's just an example ... What puzzled me is that how could i get multiple targets Unit
    eg. "Resconating Crystal" of Morchok in DragSoul...

    I know now i can use "UnitAura" lua function to get "Resconatin Cystal" target .. But just curiosity, What if there is no aura on target?

    And as well as "Flame Orb" ,a spell of Mage.... Its target GUID is zero even if it is doing damage on a unit...... But there is a line between it and its target right?How to get it ...
    Last edited by demonguy; 05-05-2012 at 11:57 AM.

  6. #6
    Apoc's Avatar Angry Penguin
    Reputation
    1388
    Join Date
    Jan 2008
    Posts
    2,750
    Thanks G/R
    0/13
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Its either going to be a GameObject, or a DynamicGameObject. Both of which have descriptors. Go look into them.

  7. #7
    demonguy's Avatar Member
    Reputation
    2
    Join Date
    Feb 2012
    Posts
    111
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No, it isn't......Because when i cast Flame Orb in a quiet place, only the number of Unit-Type Object increased... And its UnitName is "Flaming Orb"....

    Besides...Some Spell-Effect have it's position.... For example....during the encounter "WarMaster Blackhorn" in DragSoul, Twilight Elite Slayer will cast a spell named "Blade Rush", before casting... There are will be some aura like spell effects on the ground to indicate its charge path and tell you to avoid it ... Unfortunately it isn't any type of Object....
    not Unit, not Dynamic Object,not GameObject.....But it should have a position right? I have trouble to get it!
    Last edited by demonguy; 05-06-2012 at 01:46 AM.

  8. #8
    andy012345's Avatar Active Member
    Reputation
    59
    Join Date
    Oct 2007
    Posts
    124
    Thanks G/R
    0/7
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The reason Flame Orb is a NPC is because GameObjects and DynamicObjects don't have the ability to move alone splines. It's target GUID is 0 because it doesn't have a target, it just triggers spells on a random target in range. If it had a target it would face it when it stopped moving and was about to explode, which would look wierd.

    Remember flame orb used to trigger on 4 targets at once, you can't target 4 things at a time anyway. It's just a triggered spell. Probably caused by 58937 or 57750 aura on the flame orb NPC, I havn't looked into it much.

  9. #9
    andy012345's Avatar Active Member
    Reputation
    59
    Join Date
    Oct 2007
    Posts
    124
    Thanks G/R
    0/7
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The targets on the ground is part of blizzards "omg people had to install addons which used camera functions to draw aoe spells to avoid" thing. They are part of the spell animation.

  10. #10
    demonguy's Avatar Member
    Reputation
    2
    Join Date
    Feb 2012
    Posts
    111
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So, Is there any way to get the position XYZ of a spell animation??

  11. #11
    Jadd's Avatar 🐸 Premium Seller
    Reputation
    1515
    Join Date
    May 2008
    Posts
    2,433
    Thanks G/R
    81/336
    Trade Feedback
    1 (100%)
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Look at SpellWorldObject functions.

  12. #12
    demonguy's Avatar Member
    Reputation
    2
    Join Date
    Feb 2012
    Posts
    111
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Jadd View Post
    Look at SpellWorldObject functions.
    Where these functions are? I searched "SpellWorldObject" in IDA and found nothing..........Would you please give more information?
    I hope i'm not asking a stupid question

  13. #13
    Jadd's Avatar 🐸 Premium Seller
    Reputation
    1515
    Join Date
    May 2008
    Posts
    2,433
    Thanks G/R
    81/336
    Trade Feedback
    1 (100%)
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by demonguy View Post
    Where these functions are? I searched "SpellWorldObject" in IDA and found nothing..........Would you please give more information?
    I hope i'm not asking a stupid question
    I was wrong, it is indeed a unit. SpellWorldObject functions won't help you here.

  14. #14
    demonguy's Avatar Member
    Reputation
    2
    Join Date
    Feb 2012
    Posts
    111
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Are you saing Flame Orb? Yes It's a unit ,But what about this ?

    Originally Posted by demonguy View Post
    No, it isn't......Because when i cast Flame Orb in a quiet place, only the number of Unit-Type Object increased... And its UnitName is "Flaming Orb"....

    Besides...Some Spell-Effect have it's position.... For example....during the encounter "WarMaster Blackhorn" in DragSoul, Twilight Elite Slayer will cast a spell named "Blade Rush", before casting... There are will be some aura like spell effects on the ground to indicate its charge path and tell you to avoid it ... Unfortunately it isn't any type of Object....
    not Unit, not Dynamic Object,not GameObject.....But it should have a position right? I have trouble to get it!

  15. #15
    Xelper's Avatar ★ Elder ★
    Reputation
    1024
    Join Date
    Mar 2007
    Posts
    860
    Thanks G/R
    0/8
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You won't find objects or targets for these abilities. Units do not NEED to change their target to cast spells on people, obviously some do change their target.

    Flame Orb is an instant cast spell, which it casts on a valid unit nearby... It is also a server-side script handling the casting, they obviously have direct access to an object manager from their scripts and are probably using the GUID as the key for who they want it to attack next. It would be pretty pointless to do TargetUnit(GUID) CastSpell(X, GUID) when they can just call CastSpell. If you want to figure out this information there may be some function that is called when a unit/object casts a spell that MIGHT give you this information, but I have never looked into it.

Page 1 of 2 12 LastLast

Similar Threads

  1. how to get 200% spell haste as mage in mr. t
    By Joeydragon in forum World of Warcraft Guides
    Replies: 22
    Last Post: 06-07-2008, 11:23 AM
  2. How to get some places with Rocket boots and para cloak
    By domm3 in forum World of Warcraft Exploration
    Replies: 3
    Last Post: 01-09-2008, 02:07 PM
  3. How to get on top of IF AH and Bank
    By Ariix in forum World of Warcraft Exploits
    Replies: 5
    Last Post: 12-19-2007, 05:51 PM
  4. How to get out of BGs without AFKing and no deserter!!!
    By kicker2211 in forum World of Warcraft Exploits
    Replies: 12
    Last Post: 05-15-2007, 10:37 AM
All times are GMT -5. The time now is 11:21 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search