• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • How can I get target NPC's ID with RBConsole?

    Discussion in 'Community Developer Forum' started by sciemus, Oct 3, 2015.

    1. sciemus

      sciemus New Member

      Joined:
      Sep 14, 2015
      Messages:
      5
      Likes Received:
      0
      Trophy Points:
      1
      Thanks for the help
       
    2. newb23

      newb23 Community Developer

      Joined:
      Nov 26, 2014
      Messages:
      397
      Likes Received:
      15
      Trophy Points:
      18
      Code:
      Log(Core.Me.CurrentTarget.NpcId);
      or for a lot more info about them in case that you need it:

      Code:
      GameObject s = GameObjectManager.GetObjectByNPCId(Core.Target.NpcId);
      {
       Log(s.EnglishName);
       foreach (var prop in s.GetType().GetProperties())
       {
        Log("\t" + prop.Name + ": " + prop.GetValue(s));
       }
      }
      
      
      
       
    3. mastahg

      mastahg Administrator Staff Member

      Joined:
      Feb 27, 2011
      Messages:
      5,343
      Likes Received:
      383
      Trophy Points:
      83
    4. sciemus

      sciemus New Member

      Joined:
      Sep 14, 2015
      Messages:
      5
      Likes Received:
      0
      Trophy Points:
      1
      thanks!
       

    Share This Page