TTS on low health menu

User Tag List

Results 1 to 4 of 4
  1. #1
    VitaKaninen's Avatar Member
    Reputation
    2
    Join Date
    Aug 2016
    Posts
    19
    Thanks G/R
    20/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    TTS on low health

    Could someone please assist me with writing a simple plugin that will speak the word "Health", when my health drops below a certain threshold?

    In case you are wondering, I play multiple accounts, and sometimes I leave one guy at the door in HC while carrying him in GRs on the other. Sometimes I miss a mob at the door, but don't notice that my other guy is losing health, and it would be nice to get an audible notification that he is taking damage.
    Last edited by VitaKaninen; 11-15-2017 at 01:29 PM.

    TTS on low health
  2. #2
    gjuz's Avatar Contributor
    Reputation
    121
    Join Date
    Mar 2017
    Posts
    228
    Thanks G/R
    49/118
    Trade Feedback
    0 (0%)
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Health information you can get from "IPlayerDefenseInfo"

    e.g. health below 50%
    PHP Code:
    if (Hud.Game.Me.Defense.HealthPct 0.5f //or 50f //not tested/used HealthPct before
    {
        
    //do something
        
    Hud.Sound.Speak("Health");

    don't foreget to start a watch (lastspeak), because you don't want to hear
    HealthHealthHealthHealthHealthHealthHealthHealthHealthHealthHealthHealth....



    greetz gjuz

  3. Thanks VitaKaninen (1 members gave Thanks to gjuz for this useful post)
  4. #3
    VitaKaninen's Avatar Member
    Reputation
    2
    Join Date
    Aug 2016
    Posts
    19
    Thanks G/R
    20/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the help!

    Could someone please look at this and tell me what I am missing? I don;t know how to make a CreateWatch.

    PHP Code:
    using Turbo.Plugins.Default;
    using System.Collections.Generic;
    using System.Linq;
    using System;
    namespace 
    Turbo.Plugins.User
    {
        public class 
    HealthSpeak BasePluginIInGameWorldPainter
        
    {
            public 
    bool EnableSpeak getset; }
     
            public 
    HealthSpeak()
            {
                
    Enabled true;
                
    EnableSpeak true;
            }
            
            public 
    void PaintWorld(WorldLayer layer)
            {
                {
                    if (
    EnableSpeak && (Hud.Game.Me.Defense.HealthPct 90f ))
                    {
                        
    Hud.Sound.Speak("Health");
                    }
                }
            }
        }

    Last edited by VitaKaninen; 11-17-2017 at 06:36 AM.

  5. #4
    gjuz's Avatar Contributor
    Reputation
    121
    Join Date
    Mar 2017
    Posts
    228
    Thanks G/R
    49/118
    Trade Feedback
    0 (0%)
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    use this:

    PHP Code:
    if (EnableSpeak && (Hud.Game.Me.Defense.HealthPct 90f ) && Hud.Sound.LastSpeak.TimerTest(3000)) 
    this will remind you every 3s

    and not "HealthHealthHealthHealthHealthHealthHealthHealthHealth"


    greetz gjuz

  6. Thanks VitaKaninen (1 members gave Thanks to gjuz for this useful post)

Similar Threads

  1. Druid Thorns doing full damage on low-levels.
    By holllyywood in forum World of Warcraft Exploits
    Replies: 24
    Last Post: 04-28-2009, 06:10 AM
  2. Thorns buff on low levels exploit
    By TheLastEmperor in forum World of Warcraft Exploits
    Replies: 3
    Last Post: 04-27-2009, 03:55 PM
  3. summon lvl 70s on low lvl meeting stones
    By wingedwolf123 in forum World of Warcraft Guides
    Replies: 27
    Last Post: 08-14-2007, 06:02 AM
  4. lvl 35 enchants on low lvl items
    By nkes in forum World of Warcraft General
    Replies: 1
    Last Post: 08-10-2007, 02:46 PM
All times are GMT -5. The time now is 09:39 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search