• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • View on the ability for HB to do quests.

    Discussion in 'Archives' started by Spicy, Feb 3, 2010.

    1. Spicy

      Spicy New Member

      Joined:
      Jan 15, 2010
      Messages:
      30
      Likes Received:
      0
      Trophy Points:
      0
      I feel that HB should allow for the user to make actual scripts for HB that would do quests. HB already knows how to interact with NPC's the ability to make it be capable of accepting quests, and choosing rewards and all would be fairly simple. The bot couldn't do quests with special actions such as flying and bombing. The main change that would need to be made is the ability for the user to script a set of tasks for the bot to complete based on xp and completed quests. each individual quest would look similar to this.

      Code:
      [Quest]
      RequiredQuests: ...
      MinimumLevel: ...
      MaxLevel...
      Start npc:
      Task: (Travel to, or grind)
      If grinding here would be a normal grinding profile...
      If Traveling to npc, here would be a npc location...
      ETC.
       
    2. khurune

      khurune Member

      Joined:
      Jan 15, 2010
      Messages:
      836
      Likes Received:
      4
      Trophy Points:
      18
      This question has been covered many times before!

      This is what 1 quest looks like via plugins

      Code:
      namespace Styx.Bot.CustomClasses
      {
          using Logic;
          using System;
          using Helpers;
          using Logic.Pathing;
          using System.Threading;
          using System.Diagnostics;
          using Logic.Common.Combat;
          using Object_Dumping_Enumeration;
          using CustomCombat.CombatInterface;
          using Memory_Read_Write_Inject.Lua;
          using Object_Dumping_Enumeration.WoWObjects;
          using System.Collections.Generic;
          using System.IO;
          using System.Runtime.InteropServices;
          using System.Xml.Linq;
          using System.Linq;
          using System.Net;
          using Styx.Plugins.PluginClass;
          using Styx;
      
      
          public class eStat : HBPlugin
          {
              public bool Debut = true;
              public bool Encours=false;
              public bool FinishQuest=false;
              public override void Pulse()
              {
                  if (Debut)
                      TakeQuest();
      
                  if (Encours)
                      TestFinishQuest();
      
                  if (FinishQuest)
                  {
                      Navigator.GeneratePathFromMe(new WoWPoint(-6236.74, 331.1129, 382.8276));
                      var wp = new WoWPoint(-6236.74, 331.1129, 382.8276);
                      while (wp.Distance(ObjectManager.Me.Location) > 5)
                      {
                          Navigator.MoveTo(new WoWPoint(-6236.74, 331.1129, 382.8276));
                          Navigator.Pulse();
                      }
                      Target(658);
                      ObjectManager.Me.CurrentTarget.Interact();
                      //Lua.DoString("SelectGossipActiveQuest(1)");
                      Thread.Sleep(2000);
                      Lua.DoString("CompleteQuest()");
                      Thread.Sleep(1000);
                      Lua.DoString("GetQuestReward(1)");
                      Thread.Sleep(1000);
                      Lua.DoString("CompleteQuest()");
                      Thread.Sleep(5000);
      
                      FinishQuest = false;
                  }
              }
              
      
              public bool Target(uint Nom)
              {
                  ObjectManager.Update();
                  Thread.Sleep(5000);
                  foreach (WoWUnit wu in ObjectManager.GetObjectsOfType<WoWUnit>())
                  {
                      if (wu.Entry == Nom)
                      {
                          wu.Target();
                      }
                  }
                  Thread.Sleep(1000);
                  if (ObjectManager.Me.CurrentTarget.Entry == Nom)
                  {
                      return true;
                  }
                  return false;
              }
      
              public bool TakeQuest()
              {
                  Navigator.GeneratePathFromMe(new WoWPoint(-6236.74, 331.1129, 382.8276));
                  var wp =new WoWPoint(-6236.74, 331.1129, 382.8276);
                  while (wp.Distance(ObjectManager.Me.Location)>5)
                  {
                      Navigator.MoveTo(new WoWPoint(-6236.74, 331.1129, 382.8276));
                      Navigator.Pulse();
                  }
                  Target(658);
                  ObjectManager.Me.CurrentTarget.Interact();
                  Thread.Sleep(1000);
                  Lua.DoString("Acceptquest()");
                  Encours = true;
                  Debut = false;
                  return (true);
              }
      
              public bool TestFinishQuest()
              {
                  var items = ObjectManager.GetObjectsOfType<WoWItem>(true, false);
                  foreach (var item in items)
              			{
                              if (item.Name == "Tough Wolf Meat" && item.StackCount == 8)
                              {
                                  Encours = false;
                                  FinishQuest = true;
                                  return true;
                              }
                           }
      
                  return false;
              }
      
      
              public override string Name { get { return "eQuest"; } }
      
              public override string Author { get { return "Insidox "; } }
      
              public override Version Version { get { return new Version(1, 1); } }
      
              public override bool WantButton { get { return false; } }
          }
      }
      
      Fancy doing that a thousand times ?
      This is a post on THIS Forum, which you could of found by using search, As stated alot around this forum, the quest support is in the dev stages atm.

      Please search the forums to ensure your question has not already been answered.
       
    3. Imortel

      Imortel New Member

      Joined:
      Jan 15, 2010
      Messages:
      231
      Likes Received:
      1
      Trophy Points:
      0
      Actually for a team of 30-40 users this would be doable :).
      I mean if people would be motivated enough they might actually get to work on some quests.
       
    4. Spicy

      Spicy New Member

      Joined:
      Jan 15, 2010
      Messages:
      30
      Likes Received:
      0
      Trophy Points:
      0
      uhh, i do use search, and i have read those, fyi. This is MY VIEW on quests. I come from a runescape scripting background, and for the difference in xp and all. Doing that 1000 times would be worth it. The scripts for RS were very long and worth it. WoW is easier to bot because of the tools provided using reflection instead of color.

      In the future please read what a person has said, or even TITLED his/her thread befor you post negative feedback against them.
       
    5. ZoOoOoM

      ZoOoOoM Community Developer

      Joined:
      Jan 15, 2010
      Messages:
      1,213
      Likes Received:
      14
      Trophy Points:
      38
      Would you guys just wait till the questing feature is here and then discuss it?

      There WILL be questing on HB, just wait and see how the devs will make it :) .
       

    Share This Page