Maffyx
Active Member
- Joined
- Feb 13, 2010
- Messages
- 1,078
Hello All,
I’ve seen a lot of requests around the forums for a guide on how to write profiles. I’ve seen a lot of requests for grinding profiles but I feel that using the questing bot is a more useful since we can take advantage of Quest Behaviors and this can make our profiles more robust. This guide is not meant to be all inclusive but to be a starting point for those who want to begin building profiles. I apologize in advance for any poor formatting in this post, I'll try and edit it and fix it up as I go.
First I want to start off with getting set up with a text editor. I personally use Notepad++ to write my profiles. It allows me to quickly edit and change text without much hassle.
You can find Notepad++ here, and I don’t personally like the default background style for the editor, I use the Obsidian style. This can be changed in Settings > Style Configurator > Select Theme > Obsidian. I feel that one is pretty easy on the eyes.
Another note on this is that you may want to change some of the text color settings. To do this go to the Language column on the left and scroll down to XML since this is what the profiles will be coded in. I opted to make my comments foreground color to be a lime green color so they stand out when I write them in. Of course you can mess around with these to be whatever you like.
Second is that you will most likely want to distribute your profiles. That means you’ll probably want to set up an SVN. I personally use Assembla to host my files and then I use TortoiseSVN to add and commit them to the SVN host.
How to use:
1. Make your SVN account and have it set up
2. Make a folder somewhere that’s not in the Honorbuddy folder, I suggest on your desktop or in your documents. I just named mine my forum username.
3. Now you’ll want to have your SVN trunk link ready.
b. It should have automatically pasted your SVN trunk link into the “URL of Repository” field.
c. If the link looks right, hit okay and let it run, it should download everything from your repository. Right now it should be empty and show only a few folders called Trunk, Tag and Branches. For the purpose of this guide we’ll only use the trunk folder.
d. If you want more information on the other folders check out this article.
4. Okay so we should have our local repository set up and ready to go. Whenever you start a profile, save it to the trunk folder. I would recommend making a file structure convention based on the type of profile. Such as having a Farming folder then have sub folders for each expansion IE.
a. Farming
b. Reputation
5. Now that we have our folder structure down let’s get into some of the resources we’ll need to start writing profiles.
a. The most important thing you’ll be using for these profiles is the Honorbuddy Developers Tools.
b. The next big thing we’re going to want to look at is the quest behaviors.
c. Now that we have learned what some of these do, let’s implement them into a profile.
6. Test Profile
1.This is what a profile is going to look like and this is what we’ll have to fill in depending on what we want to do.
3. http://wiki.thebuddyforum.com/index...Levelbot:Grammar:Condition_attribute_examples
Here is the SVN to the Test Profile I wrote for this guide. It is fully documented and shows a few examples of KillUntilComplete and InteractWith.
7. Helpful Resources
a. https://www.thebuddyforum.com/honorbuddy-forum/community-developer-forum/
b. http://docs.honorbuddy.com/html/cd33c286-7af4-90b0-df04-9b928247da3e.htm
c. https://en.wikipedia.org/wiki/List_..._entity_references#Predefined_entities_in_XML
8. Publishing or Posting your Profile
a. Now that we've finished our profile we need to publish it to our SVN.
b. This is an easy process, make sure the file is in the correct folder based on your structure this is important because if you change this it may break later so make sure it's where you want it to begin with.
c. Go to the file and right click on it and select SVN Commit
d. After that a window should pop up and automate some stuff, you may be required to log in for this step, if so enter in the pertinent information.
e. From there all you have to do is go to your SVN trunk link and navigate to the link of your profile. Right click on it and copy link address, this will save your link and you can save it to your posts or however you want to distribute it.
Hopefully that helps some of you and enables more people to write profiles, I will try and add more information as I think of important things to add. These profiles can be as simple or as complex as needed. Thank you for reading and as always feel free to post any comments or feedback.
Enjoy
I’ve seen a lot of requests around the forums for a guide on how to write profiles. I’ve seen a lot of requests for grinding profiles but I feel that using the questing bot is a more useful since we can take advantage of Quest Behaviors and this can make our profiles more robust. This guide is not meant to be all inclusive but to be a starting point for those who want to begin building profiles. I apologize in advance for any poor formatting in this post, I'll try and edit it and fix it up as I go.
First I want to start off with getting set up with a text editor. I personally use Notepad++ to write my profiles. It allows me to quickly edit and change text without much hassle.
You can find Notepad++ here, and I don’t personally like the default background style for the editor, I use the Obsidian style. This can be changed in Settings > Style Configurator > Select Theme > Obsidian. I feel that one is pretty easy on the eyes.
![cOrIkwP.png](http://i.imgur.com/cOrIkwP.png)
Another note on this is that you may want to change some of the text color settings. To do this go to the Language column on the left and scroll down to XML since this is what the profiles will be coded in. I opted to make my comments foreground color to be a lime green color so they stand out when I write them in. Of course you can mess around with these to be whatever you like.
![zgS8Bsr.png](http://i.imgur.com/zgS8Bsr.png)
Second is that you will most likely want to distribute your profiles. That means you’ll probably want to set up an SVN. I personally use Assembla to host my files and then I use TortoiseSVN to add and commit them to the SVN host.
How to use:
1. Make your SVN account and have it set up
a. If you’re using Assembla you’ll want to get your SVN trunk link
b. This can be found under the SVN tab > Instructions sub tab at the top
c. This link is what you’ll be checking out in the next couple of steps.
b. This can be found under the SVN tab > Instructions sub tab at the top
c. This link is what you’ll be checking out in the next couple of steps.
![ndvacy9.png](http://i.imgur.com/ndvacy9.png)
2. Make a folder somewhere that’s not in the Honorbuddy folder, I suggest on your desktop or in your documents. I just named mine my forum username.
3. Now you’ll want to have your SVN trunk link ready.
a. Right click on the newly created folder and select SVN Checkout
![Wp791JE.png](http://i.imgur.com/Wp791JE.png)
b. It should have automatically pasted your SVN trunk link into the “URL of Repository” field.
![WZqRFaY.png](http://i.imgur.com/WZqRFaY.png)
c. If the link looks right, hit okay and let it run, it should download everything from your repository. Right now it should be empty and show only a few folders called Trunk, Tag and Branches. For the purpose of this guide we’ll only use the trunk folder.
d. If you want more information on the other folders check out this article.
4. Okay so we should have our local repository set up and ready to go. Whenever you start a profile, save it to the trunk folder. I would recommend making a file structure convention based on the type of profile. Such as having a Farming folder then have sub folders for each expansion IE.
a. Farming
i. Classic
ii. Burning Crusade
iii. Wrath of the Lich King
iv. Cataclysm
v. Mists of Pandaria
vi. Warlords of Draenor
ii. Burning Crusade
iii. Wrath of the Lich King
iv. Cataclysm
v. Mists of Pandaria
vi. Warlords of Draenor
b. Reputation
i. Classic
ii. Burning Crusade
iii. Wrath of the Lich King
iv. Cataclysm
v. Mists of Pandaria
vi. Warlords of Draenor
ii. Burning Crusade
iii. Wrath of the Lich King
iv. Cataclysm
v. Mists of Pandaria
vi. Warlords of Draenor
5. Now that we have our folder structure down let’s get into some of the resources we’ll need to start writing profiles.
a. The most important thing you’ll be using for these profiles is the Honorbuddy Developers Tools.
![yXSJ7k4.png](http://i.imgur.com/yXSJ7k4.png?1)
![RD5d7Fg.png](http://i.imgur.com/RD5d7Fg.png?1)
b. The next big thing we’re going to want to look at is the quest behaviors.
i. These can be found in your Honorbuddy Folder under Quest Behaviors
ii. The documentation on these can sometimes be fuzzy so it can sometimes be advantageous to look at established profiles to reverse engineer them. I’ll go over a few of the main ones so we can see how they work.
1. InteractWith - Interacts with a mob or object, has a lot of different variables
2. KillUntilComplete - Will grind on mobs until a condition is met
3. UseItem - Uses an item in your bag
4. RunMacro - Runs a macro command such as one you would use in game
2. KillUntilComplete - Will grind on mobs until a condition is met
3. UseItem - Uses an item in your bag
4. RunMacro - Runs a macro command such as one you would use in game
c. Now that we have learned what some of these do, let’s implement them into a profile.
6. Test Profile
1.This is what a profile is going to look like and this is what we’ll have to fill in depending on what we want to do.
a. I like to add a comments section at the top of my profile so that people know what the profile is for and how it is used regardless of where they got the profile. This way if they download it and forget about it they don’t have to try and find a post for it, they can read it inside the profile.
b. Tags
http://wiki.thebuddyforum.com/index.php?title=Honorbuddy:Levelbot:Grammar:HBProfile
a. This will give us all the Elements we can use inside the Honorbuddy profile.
a. This will give us all the Elements we can use inside the Honorbuddy profile.
c. Conditions
a. These are how conditions are made for profiles, these will be checked before actions can be taken, this is how to structure them.
3. http://wiki.thebuddyforum.com/index...Levelbot:Grammar:Condition_attribute_examples
a. As the page states these are not conclusive and could be potentially outdated or wrong.
b. These just give you an idea of what you can do with the profile.
b. These just give you an idea of what you can do with the profile.
Here is the SVN to the Test Profile I wrote for this guide. It is fully documented and shows a few examples of KillUntilComplete and InteractWith.
7. Helpful Resources
a. https://www.thebuddyforum.com/honorbuddy-forum/community-developer-forum/
i.This is where you should ask for help if you need help writing a profile or if you need a specific answer. Most people are willing to help if you have shown that you put in the effort to research and provide as much detail about what you’re looking for.
b. http://docs.honorbuddy.com/html/cd33c286-7af4-90b0-df04-9b928247da3e.htm
i. This website shows all of the API information, you’ll find information related to the backend of the bot, some of the condition information can be found here, there isn’t a whole lot of documentation so it can take some guesswork.
c. https://en.wikipedia.org/wiki/List_..._entity_references#Predefined_entities_in_XML
i. Since our profiles are in XML they require special characters to function so normal brackets like < and > don’t always function like we want them to.
ii. So say we want to say If I’m level 27 or lower then we would mathematically put <= 27 however the bot can’t read that and we need to pass it something else. So we would put <= 27
iii. There are a lot of different quirks like this that can take some time to learn.
ii. So say we want to say If I’m level 27 or lower then we would mathematically put <= 27 however the bot can’t read that and we need to pass it something else. So we would put <= 27
iii. There are a lot of different quirks like this that can take some time to learn.
8. Publishing or Posting your Profile
a. Now that we've finished our profile we need to publish it to our SVN.
b. This is an easy process, make sure the file is in the correct folder based on your structure this is important because if you change this it may break later so make sure it's where you want it to begin with.
c. Go to the file and right click on it and select SVN Commit
![GZtBR7W.png](http://i.imgur.com/GZtBR7W.png)
d. After that a window should pop up and automate some stuff, you may be required to log in for this step, if so enter in the pertinent information.
e. From there all you have to do is go to your SVN trunk link and navigate to the link of your profile. Right click on it and copy link address, this will save your link and you can save it to your posts or however you want to distribute it.
Hopefully that helps some of you and enables more people to write profiles, I will try and add more information as I think of important things to add. These profiles can be as simple or as complex as needed. Thank you for reading and as always feel free to post any comments or feedback.
Enjoy
Attachments
Last edited by a moderator: