• Visit Rebornbuddy
  • TaggerObjectId/TappedByOther

    Discussion in 'Community Developer Forum' started by kaihaider, Nov 13, 2014.

    1. kaihaider

      kaihaider Community Developer

      Joined:
      May 18, 2010
      Messages:
      1,325
      Likes Received:
      5
      Trophy Points:
      38
      TappedByOther is returning true when it's tapped by me

      TaggerObjectId seems to be working well but how do I find out what my id is to compare it to?

      TaggerObjectId only returns a 5 digit uint but regular object ids are 10 digits?

      Also mobs that are tagged by someone else for duty, thus unattackable, still return .canattack, can anyone help me out here? :S
       
      Last edited: Nov 13, 2014
    2. mastahg

      mastahg Administrator Staff Member

      Joined:
      Feb 27, 2011
      Messages:
      5,232
      Likes Received:
      364
      Trophy Points:
      83
      TappedByOther logic was inveterted whoops. Just compare core.player.objectid == target.taggerobjectid idk anything about digits...
       
    3. kaihaider

      kaihaider Community Developer

      Joined:
      May 18, 2010
      Messages:
      1,325
      Likes Received:
      5
      Trophy Points:
      38
      core.player.objectid == target.taggerobjectid wasn't worked for me and when I looked at them the sizes were completely different :S

      I'll check it again tonight though

      edit: i meant value not size? :S response confused me
       
      Last edited: Nov 15, 2014
    4. mastahg

      mastahg Administrator Staff Member

      Joined:
      Feb 27, 2011
      Messages:
      5,232
      Likes Received:
      364
      Trophy Points:
      83
      They are both unsigned ints.
       
    5. kaihaider

      kaihaider Community Developer

      Joined:
      May 18, 2010
      Messages:
      1,325
      Likes Received:
      5
      Trophy Points:
      38
      Code:
      Logging.Write("" + (Core.Player.ObjectId==(Core.Player.CurrentTarget as BattleCharacter).TaggerObjectId));
      Logging.Write("" + (Core.Player.CurrentTarget as BattleCharacter).TaggerObjectId);
      Logging.Write("" + Core.Player.ObjectId );
      It's false, taggerobjectid has a value with 5 digits ObjectId has 9 digits :S
       
    6. mastahg

      mastahg Administrator Staff Member

      Joined:
      Feb 27, 2011
      Messages:
      5,232
      Likes Received:
      364
      Trophy Points:
      83
      How are you testing it? I tested it with 3 accounts before I posted.
       
    7. kaihaider

      kaihaider Community Developer

      Joined:
      May 18, 2010
      Messages:
      1,325
      Likes Received:
      5
      Trophy Points:
      38
      rebornconsole

      do I need core.target and not currenttarget :S

      edit:
      no that didn't make a differance :p
       
      Last edited: Nov 15, 2014
    8. mastahg

      mastahg Administrator Staff Member

      Joined:
      Feb 27, 2011
      Messages:
      5,232
      Likes Received:
      364
      Trophy Points:
      83
      No..How are you testing it, ie what is your methodology....
       
    9. kaihaider

      kaihaider Community Developer

      Joined:
      May 18, 2010
      Messages:
      1,325
      Likes Received:
      5
      Trophy Points:
      38
      you mean how did I tag the mob?

      Usually I walked up and waked it another time was a fate mob, other time I watched someone fighting in a duty and check their id and mob tagger id. All showed the same value difference.

      I posted the code above into the rebornconsole and hit run and looked at the log :S

      I'm very confused by the question
       
      Last edited: Nov 15, 2014
    10. mastahg

      mastahg Administrator Staff Member

      Joined:
      Feb 27, 2011
      Messages:
      5,232
      Likes Received:
      364
      Trophy Points:
      83
      THis is what im doing..

      1)Find a mob not in combat log its taggerid, its 0
      2)Smack mob with 2nd account, check taggerid with first account, its the objectid of the 2nd account
       
    11. kaihaider

      kaihaider Community Developer

      Joined:
      May 18, 2010
      Messages:
      1,325
      Likes Received:
      5
      Trophy Points:
      38
      I did the same thing but with one account, tagger starts as 0 but after tag it's another number that's smaller than my objectid...
       
    12. kaihaider

      kaihaider Community Developer

      Joined:
      May 18, 2010
      Messages:
      1,325
      Likes Received:
      5
      Trophy Points:
      38
      Just tested again with someone farming on neutral mobs and tagger is higher in value than his objectid
       
    13. kaihaider

      kaihaider Community Developer

      Joined:
      May 18, 2010
      Messages:
      1,325
      Likes Received:
      5
      Trophy Points:
      38
      omfg i figured it out, i had to dismiss combat pet

      the people i were testing it on had their birds out too...

      but tagger id is not bird.objectid :(
       
      Last edited: Nov 15, 2014
    14. mastahg

      mastahg Administrator Staff Member

      Joined:
      Feb 27, 2011
      Messages:
      5,232
      Likes Received:
      364
      Trophy Points:
      83
      Idc if its higher or lower, start giving actual values.
       
    15. mastahg

      mastahg Administrator Staff Member

      Joined:
      Feb 27, 2011
      Messages:
      5,232
      Likes Received:
      364
      Trophy Points:
      83
      What?
       
    16. kaihaider

      kaihaider Community Developer

      Joined:
      May 18, 2010
      Messages:
      1,325
      Likes Received:
      5
      Trophy Points:
      38
      Do you actually want values?

      If I do not have a combat pet and I check with a mob that i tagged, then the result is as intended

      If I do have a combat pet, !(taggerobjectid == myobjectid || taggerobjectid == birdobjectid)

      The above also happens if the person I'm testing has a combat pet or not.
       
    17. mastahg

      mastahg Administrator Staff Member

      Joined:
      Feb 27, 2011
      Messages:
      5,232
      Likes Received:
      364
      Trophy Points:
      83
      I just tested it with two arcanists, and my results are the exact same. No matter what combination of pets out I have the taggerobjectid is always the first person to attack the target.
      If you could get me some values when you encounter it being incorrect that would be great: playerobjectid,targetobjectid,target-taggerobjectid,and petobjectid
       
    18. mastahg

      mastahg Administrator Staff Member

      Joined:
      Feb 27, 2011
      Messages:
      5,232
      Likes Received:
      364
      Trophy Points:
      83
      I assumed when you said bird you meant the garuda pet. Tried with the chocobo and now I can reproduce the issue. Looking into it now.
       
    19. kaihaider

      kaihaider Community Developer

      Joined:
      May 18, 2010
      Messages:
      1,325
      Likes Received:
      5
      Trophy Points:
      38
      I was about to assume my computer was possessed XD
       

    Share This Page