IsInMyPartyOrRaid always returns 0. menu

User Tag List

Results 1 to 2 of 2
  1. #1
    haku43's Avatar Member
    Reputation
    3
    Join Date
    Sep 2009
    Posts
    27
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    IsInMyPartyOrRaid always returns 0.

    Always returns 0, except (a2 == this).
    I tried different return types (byte, int, bool, char ).

    Code:
    [UnmanagedFunctionPointer(CallingConvention.ThisCall)]
            public delegate int IsInMyPartyOrRaidDelegate(uint u1, uint u2);
            public static IsInMyPartyOrRaidDelegate IsInMyPartyOrRaid;
    Code:
    char __thiscall CGUnit_C__IsInMyPartyOrRaid(int this, int a2)
    {
      char result; // al@2
      int v3; // eax@5
      int v4; // edi@5
      int v5; // esi@5
      int v6; // eax@8
      int v7; // esi@10
      int v8; // [sp+4h] [bp-8h]@8
      int v9; // [sp+8h] [bp-4h]@8
    
      if ( a2 == this )
      {
        result = 1;
      }
      else
      {
        if ( (*(_DWORD *)(*(_DWORD *)(this + 208) + 212) >> 3) & 1 && (*(_DWORD *)(*(_DWORD *)(a2 + 208) + 212) >> 3) & 1 )
        {
          v5 = CGUnit_C__GetControllingPlayer(this);
          v3 = CGUnit_C__GetControllingPlayer(a2);
          v4 = v3;
          result = v5
                && v3
                && ((unsigned __int8)CGObject_C__IsLocalPlayer(v5)
                 && (v6 = *(_DWORD *)(v4 + 8), v8 = *(_DWORD *)v6, v9 = *(_DWORD *)(v6 + 4), sub_5129F0(&v8))
                 || (unsigned __int8)CGObject_C__IsLocalPlayer(v4)
                 && (v7 = *(_DWORD *)(v5 + 8), v8 = *(_DWORD *)v7, v9 = *(_DWORD *)(v7 + 4), sub_5129F0(&v8)));
        }
        else
        {
          result = 0;
        }
      }
      return result;
    }
    However CanAttack works fine.
    char __thiscall CGUnit_C__CanAttack(int this, int a2)
    Last edited by haku43; 04-03-2011 at 08:24 PM.

    IsInMyPartyOrRaid always returns 0.
  2. #2
    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)
    Code:
    [UnmanagedFunctionPointer(CallingConvention.ThisCall)]
    public delegate byte IsInPartyOrRaidDelegate(IntPtr @this, IntPtr otherObject);
    2nd arg is a pointer to an object.

Similar Threads

  1. Always get STV Chest
    By Pixo in forum World of Warcraft Guides
    Replies: 17
    Last Post: 09-26-2015, 11:57 AM
  2. GetObjectByGUID return always NULL
    By goderion in forum WoW Memory Editing
    Replies: 22
    Last Post: 12-02-2008, 12:40 PM
  3. always get STV chest in the arena! only rogues,sorry!
    By thisistheend861 in forum World of Warcraft Guides
    Replies: 6
    Last Post: 01-29-2007, 08:34 PM
  4. Glider always on top?
    By HaSh in forum World of Warcraft General
    Replies: 1
    Last Post: 01-29-2007, 01:40 AM
  5. Replies: 52
    Last Post: 01-26-2007, 11:19 PM
All times are GMT -5. The time now is 11:13 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