[Question] ChCliQuest and ChCliReward menu

User Tag List

Results 1 to 1 of 1
  1. #1
    sacred2's Avatar Member
    Reputation
    1
    Join Date
    Aug 2015
    Posts
    1
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Question] ChCliQuest and ChCliReward

    I reversed a bit ChCliQuest structure, it's located at ControlledPlayerPtr + 0x65C.
    But i can't find where is current quest step value is stored, maybe someone can help me.

    My code:
    Code:
    public class Gw2Quest : NativeObject
    {
    
            public Gw2Quest(IntPtr ptr) : base(ptr)
            {
            }
    
            public IntPtr ActiveQuestPtr
            {
                get { return Memory.Read<IntPtr>(NativePtr + 0x28); }
            }
    
            public IntPtr QuestDefPtr
            {
                get { return Memory.Read<IntPtr>(ActiveQuestPtr + 0x28); }
            }
    
            public IntPtr ActiveGoalPtr
            {
                get { return Memory.Read<IntPtr>(ActiveQuestPtr + 0x4); }
            }
    
            public int ActiveGoalId
            {
                get { return Memory.Read<int>(ActiveGoalPtr + 0x10); }
            }
    
            public string ActiveGoalDescription
            {
                get
                {
                    var contentId = Memory.Read<int>(ActiveGoalPtr + 0x20);
                    if (contentId != 0)
                    {
                        return API.DecodeStringById(contentId);
                    }
                    return "Empty";
                }
            }
    
            public string ActiveGoalDescriptionFull
            {
                get
                {
                    var contentId = Memory.Read<int>(ActiveGoalPtr + 0x24);
                    if (contentId != 0)
                    {
                        return API.DecodeStringById(contentId);
                    }
                    return "Empty";
                }
            }
    
            public string Name
            {
                get
                {
                    var contentId = Memory.Read<int>(QuestDefPtr + 0x24);
                    if (contentId != 0)
                    {
                        return API.DecodeStringById(contentId);
                    }
                    return "Empty";
                }
            }
    
            public int DataId
            {
                get { return Memory.Read<int>(QuestDefPtr + 0x20); }
            }
    
            public bool IsCompleted
            {
                get { return (Memory.Read<int>(ActiveQuestPtr + 0x40) & 1) == 1; }
            }
            
            public IEnumerable<int> QuestSteps
            {
                get
                {
                    var activePtr = ActiveQuestPtr;
                    var v2 = Memory.Read<int>(activePtr + 0x30);
                    var v6 = v2 + (4 * Memory.Read<int>(activePtr + 0x38));
                    if (v2 >= v6)
                    {
                        yield break;
                    }
                    IntPtr v3 = IntPtr.Zero;
                    while (true)
                    {
                        v3 = Memory.Read<IntPtr>((IntPtr)v2);
    
                        if (v3 == IntPtr.Zero)
                        {
                           yield break;
                        }
    
                        var v4 = Core.Memory.Read<IntPtr>(v3 + 4);
    
                        if (v4 == IntPtr.Zero)
                        {
                            yield break;
                        }
    
                        v2 += 4;
    
                        yield return Core.Memory.Read<int>(v4 + 20);
    
                        if (v2 >= v6)
                        {
                            yield break;
                        }
                    }
                }
            }
        }
    And i also have some questions about ChCliReward. I've only found it's location at ControlledPlayerPtr + 0x714, but that's all. I'd like to know is there's a way to read current available rewards?

    Thank you.

    [Question] ChCliQuest and ChCliReward

Similar Threads

  1. [Question] Noggit and me
    By Demonshade in forum WoW ME Questions and Requests
    Replies: 4
    Last Post: 12-03-2007, 07:22 PM
  2. [Question] Upper And Lower Torso Issue
    By Xcynic in forum WoW ME Questions and Requests
    Replies: 1
    Last Post: 10-14-2007, 08:35 AM
  3. [Question] sound and changable hair
    By ovre in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 10-07-2007, 06:37 PM
  4. Question: TOS and Model Changing
    By Sergioz in forum WoW ME Questions and Requests
    Replies: 1
    Last Post: 07-22-2007, 05:25 PM
  5. [Question] Action and change of race ?
    By Werteur in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 06-06-2007, 06:20 AM
All times are GMT -5. The time now is 11:16 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