How do I detect when the rift guardian is killed? [SOLVED] menu

Shout-Out

User Tag List

Results 1 to 6 of 6
  1. #1
    TheDiscordian's Avatar Member
    Reputation
    11
    Join Date
    Feb 2019
    Posts
    22
    Thanks G/R
    13/10
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How do I detect when the rift guardian is killed? [SOLVED]

    Hey, I've been working on a nephalem rift timer, and it's been going really well. I can detect when a rift ends, and when the portal is gone, however I can't detect when the rift guardian is killed. Right now I have some detection where I check for nearby enemies, which works sometimes. Is there a solid way to do this?
    Last edited by TheDiscordian; 02-05-2019 at 06:48 PM. Reason: Solved

    How do I detect when the rift guardian is killed? [SOLVED]
  2. #2
    JarJarD3's Avatar Contributor
    Reputation
    106
    Join Date
    Oct 2017
    Posts
    395
    Thanks G/R
    41/101
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    There is IMonsterKilledHandler for that purpose, I guess.

    RG is propably monster.Rarity == ActorRarity.Boss or monster.SnoMonster.Priority == MonsterPriority.boss bu that should be easy to find out?
    Check StandardMonsterPlugin and RiftPlugin code.
    Last edited by JarJarD3; 02-05-2019 at 03:40 AM. Reason: Added RiftPlugin

  3. Thanks TheDiscordian (1 members gave Thanks to JarJarD3 for this useful post)
  4. #3
    JackCeparou's Avatar Savvy ? 🐒
    Reputation
    534
    Join Date
    Mar 2017
    Posts
    588
    Thanks G/R
    51/490
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hide the Rum! --> Default theme customization 101 <--

  5. Thanks TheDiscordian (1 members gave Thanks to JackCeparou for this useful post)
  6. #4
    JarJarD3's Avatar Contributor
    Reputation
    106
    Join Date
    Oct 2017
    Posts
    395
    Thanks G/R
    41/101
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Looking from my old code it seems that nephalem rfit is closed when
    Hud.Game.SpecialArea == SpecialArea.None
    and in previous frame it was
    Hud.Game.SpecialArea == SpecialArea.Rift

    But my code was interested in total time spent in rifts that includes collecting loot and upgrading gems and I outputted my times to THUD debug log and kept in in tail on secondary monitor.
    Code:
    >>>>: NEW GAME
    Area: T13: Rift                          
    Time: T13: Rift                           = 3:45
    LOOT: T13: Rift                           Gold +73,6 M  CraftMats +33  Gems +8  BloodShard +199  DeathsBreath +26 in 4:23 avg 4:23 of 1
    Area: T13: Rift Level 01                 
    Area: 80: GreaterRift                    
    Time: 80: GreaterRift                     = 5:28
    LOOT: 80: GreaterRift                     Gold +1,5 M  CraftMats +50  Gems +3  BloodShard +367 in 6:15 avg 6:15 of 1

  7. Thanks TheDiscordian (1 members gave Thanks to JarJarD3 for this useful post)
  8. #5
    TheDiscordian's Avatar Member
    Reputation
    11
    Join Date
    Feb 2019
    Posts
    22
    Thanks G/R
    13/10
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think it actually switches from SpecialArea.Rift after the guardian appears, I could have tested it out incorrectly.

    Thanks for your replies guys! I'll be testing a few things out and hopefully have something to post which integrates with the default RiftPlugin.

    Edit: Just tested again, definitely changes when guardian is killed.
    Last edited by TheDiscordian; 02-05-2019 at 04:43 PM.

  9. #6
    TheDiscordian's Avatar Member
    Reputation
    11
    Join Date
    Feb 2019
    Posts
    22
    Thanks G/R
    13/10
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Alright this is what I came up with, time to clean up my changes and whatnot. This support thread is solved!

    PHP Code:
            public void OnMonsterKilled(IMonster monster)
            {
                if (
    NephalemRiftStartTime && Hud.Game.RiftPercentage >= 100 && monster.SnoMonster.Priority == MonsterPriority.boss)
                {
                    
    NephalemRiftTotalTime Hud.Game.CurrentGameTick NephalemRiftStartTime;
                    
    NephalemRiftStartTime 0;
                }
            } 

Similar Threads

  1. how do i getLocalizedText when i am not enter the world
    By ranassa in forum WoW Memory Editing
    Replies: 5
    Last Post: 11-30-2011, 07:57 AM
  2. how do i get on the server?
    By brendanm94 in forum Suggestions
    Replies: 1
    Last Post: 08-29-2008, 09:42 PM
  3. If I've made a whole instance or a Mall.. how do i put all the stuff in one .sql ?
    By Wheeze201 in forum World of Warcraft Emulator Servers
    Replies: 6
    Last Post: 12-26-2007, 04:49 PM
  4. How do i find out the account last name?
    By sineater213 in forum World of Warcraft General
    Replies: 3
    Last Post: 05-30-2007, 06:25 PM
All times are GMT -5. The time now is 04:21 PM. 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