Jump to content

sb360

Members
  • Posts

    35
  • Joined

  • Last visited

Posts posted by sb360

  1. Would this not work?

    Also this was some ugly code I worked on only once and never touched again. If I remember correctly, it doesnt work but is an easy fix.

    public void Resurrect()
    	{
    		while (ObjectManager.Me.IsDead)
    		{
    			if (!ObjectManager.Me.HaveBuff(8326))
    			{
    				Lua.LuaDoString("RepopMe();");
    				Thread.Sleep(2500);
    			}
    			else if (ObjectManager.Me.PositionCorpse.DistanceTo(ObjectManager.Me.Position) > 10)
    			{
    				wManager.Wow.Bot.Tasks.GoToTask.ToPosition(ObjectManager.Me.PositionCorpse);
    				Thread.Sleep(2500);
    			}
    			else
    			{
    				if (ObjectManager.Me.GetCorpseRecoveryDelay() > 0)
    				{
    					Thread.Sleep(ObjectManager.Me.GetCorpseRecoveryDelay() * 1000 + 1000);
    				}
    				else
    				{
    					Lua.LuaDoString("RetrieveCorpse();");
    				}
    			}	
    		}
    	}

     

  2. 35 minutes ago, Kr8zycdn said:

    IT"S FOR PRIVATE SERVER that will eventually close eventually

    Why are you getting so mad? I started using wrobot this year. I wasn't satisfied with the profiles so I made my own. It's not hard dude. Paid profiles have fancy stuff that you don't always need. If you want to pay for them you can. But it takes me like 30 min to make a viable fight class. Its honestly not worth crying about.

    I'd bet that even if someone gave you a paid profile for free, you'd be coming back for support, asking questions. You don't just pay for the product, you pay for the support. That's why you need to make stuff yourself so you can fix problems.

  3. I make two quests, first quest is completed when objective 1 is done, then it goes to the other quest and completes objective 2. I do this for all quests with multiple objectives. I might be wrong, but I don't think wrobot even knows which mob is for which objective. So it just continues killing the first mob in the list. 

  4. int bagSlots = 4;
    if (Lua.LuaDoString<bool>("show=MerchantFrame:IsShown();", "show"))
    {
      for (int i = 0; i < bagSlots; i++)
      {
        int numSlots = Lua.LuaDoString<int>("bagSlots=GetContainerNumSlots(" + i + ");", "bagSlots");
        for (int a = 1; a < numSlots; a++)
        {
          string itemLink = Lua.LuaDoString<string>("itemLink=GetContainerItemLink(" + i + ", " + a + ");", "itemLink");
          if (!wManager.wManagerSetting.CurrentSetting.DoNotSellList.Contains(System.Text.RegularExpressions.Regex.Match(itemLink, @"\[([^)]*)\]").Groups[1].Value) &&
              itemLink != "nil")
          {
            Logging.WriteDebug("Selling " + System.Text.RegularExpressions.Regex.Match(itemLink, @"\[([^)]*)\]").Groups[1].Value);
            Lua.LuaDoString("UseContainerItem(" + i + ", " + a + ");");
          }
          Thread.Sleep(500);
        }
      }
    }

     

×
×
  • Create New...