• Visit Rebornbuddy
  • What's the ActorSnoId of LoN WD's Phantasms?

    Discussion in 'Community Developer Forum' started by apollogg, Jul 28, 2017.

    1. apollogg

      apollogg Member

      Joined:
      Apr 12, 2015
      Messages:
      101
      Likes Received:
      2
      Trophy Points:
      18
      Trinity use SpellHistory.FindSpells to identity how many Phantasms at a given position.

      if (Runes.WitchDoctor.Phantasm.IsActive)
      {
      var numPhantasmsAtTarget = SpellHistory.FindSpells(skill.SNOPower, target.Position, 12f, 5).Count();
      if (numPhantasmsAtTarget >= 3)
      return false;
      }

      I want to know the count and position of Phantasm in current game. Is Is it possible to get LoN WD's Phantasm position and count from DB directly? such as ZetaDia.Actors.GetActorsOfType<DiaUnit>(true).Count(o => o.IsValid && PhantasmIds.Contains(o.ActorSnoId));

      What's the ActorSnoId of LoN WD's Phantasms?

      Best reagards
       
    2. apollogg

      apollogg Member

      Joined:
      Apr 12, 2015
      Messages:
      101
      Likes Received:
      2
      Trophy Points:
      18
      WD_spiritBarrage_ghost = 175354,
      WD_spiritBarrageRune_heal_ghost = 181767,
      WD_sacrifice_resurrect_proxy = 181773,
      WD_spiritBarrageRune_mana_ghost = 181818,
      WD_spiritBarrageRune_multi_ghost = 181842,
      WD_spiritBarrageRune_turret_ghost = 181867,
      WD_spiritBarrageRune_turret_ghostModel = 181871,
      WD_spiritBarrageRune_AOE_ghostModel = 181880,

      That's what I find in DB. What's the Phantasm? Thanks
       
    3. apollogg

      apollogg Member

      Joined:
      Apr 12, 2015
      Messages:
      101
      Likes Received:
      2
      Trophy Points:
      18
      And the same question about the counts of Necro's Skeletal Mages.
      Can somebody let me know the ActorSnoId of Necro's Skeletal Mages?
      I found in Bantou's routine, he use TargetUtil.AuraUnits(SNOPower.P6_Necro_RaiseDead, 60f, true).Count < 4 to know how many mages are alive in game. But I don't understand the reason why Mage is a Aura Unit. I think it should be a pet same to Barb's ancients, WD's dogs, fetishes.
       
    4. ski

      ski Well-Known Member

      Joined:
      Feb 12, 2010
      Messages:
      3,720
      Likes Received:
      48
      Trophy Points:
      48
      Code:
      ActorId: 472606, Type: Monster, Name: p6_necro_skeletonMage_C-4077, Distance2d: 8.787213, CollisionRadius: 0, MinimapActive: 0, MinimapIconOverride: -1, MinimapDisableArrow: 0 
      
       
    5. apollogg

      apollogg Member

      Joined:
      Apr 12, 2015
      Messages:
      101
      Likes Received:
      2
      Trophy Points:
      18
      Thanks very much. Can you find spiritBarrage ActorSnoID?
       
    6. apollogg

      apollogg Member

      Joined:
      Apr 12, 2015
      Messages:
      101
      Likes Received:
      2
      Trophy Points:
      18
      I tested this ActorSnoId. It only works with Singularity rune, not work with other runes.
       
    7. ski

      ski Well-Known Member

      Joined:
      Feb 12, 2010
      Messages:
      3,720
      Likes Received:
      48
      Trophy Points:
      48
      Yup, it will be different for every rune as they are treated as different actors. I don't have a WD handy so I can't pull the actorID for that, but you should be able to just dump actors when you have one around and find the #
       
    8. apollogg

      apollogg Member

      Joined:
      Apr 12, 2015
      Messages:
      101
      Likes Received:
      2
      Trophy Points:
      18
      Thanks for your help.
      Just curious where is the dump files and how to extract the info of actors and how to search the actors I want to know?
       
    9. ski

      ski Well-Known Member

      Joined:
      Feb 12, 2010
      Messages:
      3,720
      Likes Received:
      48
      Trophy Points:
      48
      With DB running, click the adventurer tab and click Dump All Actors (might just say All Actors, I forget) and it will dump the ID and variables for any actors in range. So in your case, cast a few phantasms then dump the actors to see the ID.
       

    Share This Page