• Visit Rebornbuddy
  • [BuddyPad] Just an idea.

    Discussion in 'Development' started by neodite, Sep 30, 2013.

    Thread Status:
    Not open for further replies.
    1. neodite

      neodite New Member

      Joined:
      Oct 12, 2010
      Messages:
      498
      Likes Received:
      3
      Trophy Points:
      0
      So about a year ago I started working on something called BuddyPad.

      It was going to be a text editor for creating questing profiles, just to make it faster/easier.

      Now I probably am not going to start the projet up again, but thought I would make a post anyway to see if anyone would be willing to create it, I just done have the time to code anymore.

      Basicly I was thinking, you would enter in the quest ID, and it would gather all the needed information from wowhead needed for a questing profile, and you would say click a button for NPC and it would auto-fill in the code with the nps name + ID.

      Here is an example for someone.

      Code:
      using System;
      using System.Collections.Generic;
      using System.Linq;
      using System.Text;
      using System.Net;
      using System.IO;
      using HtmlAgilityPack;
      
      namespace ConsoleApplication1
      {
      class Program
      {
          static void Main(string[] args)
          {
              //Enter the Quest ID and set it as a WoWHead link
              Console.WriteLine("Enter quest ID");
              string ID = Console.ReadLine();
              Console.WriteLine("Gathering Quest information from: http://www.wowhead.com/quest=" + ID);
      
              //Load WoWHead and search for the quest name in <h1>
              HtmlWeb web = new HtmlWeb();
              HtmlDocument doc = web.Load("http://wowhead.com/quest=" + ID);
              HtmlNodeCollection Qname = doc.DocumentNode.SelectNodes("//h1");
      
              //Set QuestName as the second <h1> tag
              string QuestName = (Qname[1].InnerText);
      
              //Display information recivied
              Console.WriteLine("Quest ID: " + ID);
              Console.WriteLine("Quest Name: " + QuestName);
              Console.WriteLine("Quest Giver: " );
              Console.WriteLine("Quest Giver ID: ");
              Console.ReadLine();
          }
      }
      
      I'm sure you would admit it would make creating questing profiles a lot more simple.

      Reason for posting is I just found it in an old folder and thought someone might like it as a project.
       
    2. y2krazy

      y2krazy Community Developer

      Joined:
      Jun 21, 2011
      Messages:
      2,803
      Likes Received:
      70
      Trophy Points:
      48
      I would DEFINITELY use something like this to contribute back to the community. I can't find the time to write up profiles, even when I plan on it.

      Would even consider donating to whomever puts out a finished product and maintains it!
       
    3. neodite

      neodite New Member

      Joined:
      Oct 12, 2010
      Messages:
      498
      Likes Received:
      3
      Trophy Points:
      0
      I may pick this back up then at some point (Finding time to code things recently is the biggest thing)

      I think when I left this project I was struggling to find the quest giver and quest giver ID as they are not in the HTML, they are in a JS section.
       
    4. Lbniese

      Lbniese Active Member Buddy Store Developer

      Joined:
      Feb 13, 2011
      Messages:
      972
      Likes Received:
      25
      Trophy Points:
      28
      I'm pretty sure the Developer Tools are copying the quest info from WoWHead, like you're talking about.
      Try to ask a mod about it :)
       
    5. pookthetook

      pookthetook Member Buddy Store Developer

      Joined:
      Jan 28, 2012
      Messages:
      214
      Likes Received:
      21
      Trophy Points:
      18
      I managed to get it to output the Name, Quest Giver, the giver's ID, the giver's coordinates. In about 40 lines of code. Given the questID.

      Edit: For example..

      Quest Id: 31512
      Quest Name: A Witness to History
      Quest Giver: Anduin Wrynn
      Id: 64540
      Position: 68.8,43.2

      What else does it need to do?
       
    Thread Status:
    Not open for further replies.

    Share This Page