Implementing ActorAtributes in C#/C++ menu

User Tag List

Results 1 to 6 of 6
  1. #1
    Zwingling's Avatar Private
    Reputation
    1
    Join Date
    Jul 2012
    Posts
    5
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Implementing ActorAtributes in C#/C++

    I currently working on a framework for a Diabl 3 bot in C#/C++. The ObjectManager class works well but now i am trying to add a class for the ActorAtributes. I looked at the AutoIt code for ( [AutoIt] Diablo 3 Click To Move, Interaction, Actor Handling ) but i have some troubles understanding the Attribut structure.
    The code for iterate the atributes seems a bit vague:

    The size for the ActorAtribute structur is 384 (0x180)

    From Autoit ( func IterateActorAtribs($_GUID,$_REQ) ):

    Code:
       16           //$test = _MemoryRead($CurrentOffset+0x10, $d3, 'ptr')
    + 825 * 4       // for $i = 0 to 825 ( $CurretOffset = $CurretOffset +0x4 )
    = 3316 (0xCF4)
    Why 825? Isn't it reading data from the next Attribute?
    Please correct me if i am wrong

    Maybe someone has already made this in c# or C++ or can give me a little hint for doing this.
    Last edited by Zwingling; 07-18-2012 at 05:03 AM.

    Implementing ActorAtributes in C#/C++
  2. #2
    Valtharak's Avatar Master Sergeant
    Reputation
    51
    Join Date
    Feb 2011
    Posts
    105
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    check near the end of the post. relate to FAG pointer

    http://www.ownedcore.com/forums/diab...butes-oop.html (Read Attributes OOP)

  3. #3
    Zwingling's Avatar Private
    Reputation
    1
    Join Date
    Jul 2012
    Posts
    5
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Awesome...
    Another question:
    In my ObjectManager class I'm reading the whole objects at once and this every Update-Tick. So i don't have to Loop and read each object by itself.
    Is this a bad way to do it? In my opinion the performance is much better.

  4. #4
    welbewoll's Avatar Member
    Reputation
    2
    Join Date
    Jun 2012
    Posts
    25
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you probably would have to benchmark this to make at least a semi-qualified statement but in my mind the overhead of multiple dllcalls is higher than reading big chunks like you do

    ultimately however i would be very surprised if those few reads would really have any real world impact on performance, so the difference ought to be insignificant

  5. #5
    hellblader53's Avatar Member
    Reputation
    1
    Join Date
    Mar 2009
    Posts
    2
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Don't know if you noticed, but 825 is 0x339 which matches up to the number Attrib Data things in the Constants function of "[AutoIt] Diablo 3 Click To Move, Interaction, Actor Handling"

  6. #6
    Zwingling's Avatar Private
    Reputation
    1
    Join Date
    Jul 2012
    Posts
    5
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    welbewoll: Thank you for clarifying

    hellblader53: hahaha didn't noticed that...

Similar Threads

  1. I think I have an awesome idea for implementing a Death Knight Tier 1 and 2 set!
    By tbdcarakias in forum World of Warcraft Emulator Servers
    Replies: 9
    Last Post: 01-11-2010, 06:03 AM
  2. How do I implement a db
    By mtdewrush in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 05-05-2009, 07:28 PM
  3. Implement wowhead item tooltips/mouseovers
    By mudfish in forum Suggestions
    Replies: 4
    Last Post: 12-21-2008, 06:46 AM
  4. implementing ~T6 lock wings~
    By fame22 in forum WoW ME Questions and Requests
    Replies: 3
    Last Post: 09-22-2007, 05:10 AM
  5. Player housing will be implemented!
    By Rekei in forum World of Warcraft General
    Replies: 6
    Last Post: 06-16-2007, 01:52 PM
All times are GMT -5. The time now is 01:32 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search