+ Reply to Thread
Results 1 to 2 of 2

Thread: [Snipped] Conjure Mana Gem

  1. #1
    WowRobot User With life dermoeter is on a distinguished road
    Join Date
    Sep 2009
    Posts
    195

    Default [Snipped] Conjure Mana Gem

    Ive tried this but still not workin:

    Code:
    private int gem = 0 ;
    
     if (gem < 1)
                {
    				ConjureGem.Launch();
    				gem = 3;
    			}
    			if (API.Info.PlayerInfo.Mana < 8000 && UseGem.isReady())
    			{
    				API.KeyBoard.SendToChat("/use Mana Sapphire");
    				gem = gem - 1;
    			}
    
    Thanks 4 help.
    Deutscher freier Supporter für WoW-Robot.

    -Helfe gerne aus. Einfach PM an mich.-

    Schaut euch meine Mage CC an!

  2. #2
    Super Moderator theGardener is on a distinguished road
    Join Date
    Sep 2009
    Location
    USA
    Posts
    99

    Lightbulb Click rather than use...

    Code:
    private int gem = 0 ;
    
     if (gem < 1)
                {
    				ConjureGem.Launch();
    				gem = 3;
    			}
    			if (API.Info.PlayerInfo.Mana < 8000 && UseGem.isReady())
    			{
    				API.KeyBoard.SendToChat("/use Mana Sapphire");
    				gem = gem - 1;
    			}
    
    really old post/response and I know the poster has left WR, but nobody else shared and I feel like I'm the only one "developing" here, so....

    I'd put the gem in a slot and use
    Code:
    API.KeyBoard.PressSlotBarKey("{2;6}");
    
    instead of sending to the keyboard.

    The {2;6} is the bar/slot the gem is on.

    That code works to "press" bar/slot

    I also don't know what Rival is doing with timers, so I try to avoid them. Set your own variable "gemtimer" and check how long it has been since it was last used...

    public DateTime gemtimer = DateTime.Now;

    Code:
    public DateTime gemtimer = DateTime.Now;
    private int gem = 0 ;
    
     if (gem < 1)
                {
    				API.KeyBoard.PressSlotBarKey("{2;5}"); // Make gem
    				gem = 3;
    
    			}
    			if (API.Info.PlayerInfo.Mana < 8000 && gemtimer < DateTime.now)
    			{
    				API.KeyBoard.PressSlotBarKey("{2;6}"); // Use gem
    				gem = gem - 1;
                                    gemtimer = DateTime.Now.AddSeconds(600); // No idea how many seconds to wait to recast
    			}
    
    GL.

    tG

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts