What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Profession Training Macro

tubajedimr

New Member
Joined
Apr 6, 2010
Messages
441
Reaction score
24
This is for use with the RunMacro.CS which you can download below.

You can now train professions with Honorbuddy using RunMacro and enter the following:


PHP:
/run LoadAddOn"Blizzard_TrainerUI" f=ClassTrainerTrainButton f.e = 0 if f:GetScript"OnUpdate" then f:SetScript("OnUpdate", nil)else f:SetScript("OnUpdate", function(f,e) f.e=f.e+e if f.e>.01 then f.e=0 f:Click() end end)end


However, when you intend to train a new profession, such as when it will say "Journeyman Riding", or what have you, you will need a different macro which I haven't figured out yet. It only trains learnable spells (or recipes), it does not train the next step in the profession, as mentioned. IF ANYONE CAN DO THIS PLEASE DO

Here would be the code for HB Profiles to do this:

PHP:
<CustomBehavior File="RunMacro" Macro="//run LoadAddOn&quot;Blizzard_TrainerUI&quot; f=ClassTrainerTrainButton f.e = 0 if f:GetScript&quot;OnUpdate&quot; then f:SetScript(&quot;OnUpdate&quot;, nil)else f:SetScript(&quot;OnUpdate&quot;, function(f,e) f.e=f.e+e if f.e&gt;.01 then f.e=0 f:Click() end end)end" NumOfTimes="1" WaitTime="2000" />


You will need to provide Honorbuddy with the opportunity to speak to the trainer prior to doing this. It is recommended that you include the following behavior tags:


PHP:
<CustomBehavior File="InteractWith" QuestId="14069" MobId="34830" NumOfTimes="1" CollectionDistance="50" ObjectType="Npc" X="-3517.482" Y="3576.992" Z="277.5767" />

Since interact with does require a performable quest, profile writers will want to perform this task between picking up a quest and turning that quest in, and simply associate the behavior with that quest.

NOTE that you will want to change any tags within the quotations surrounding the Macro name to their appropriate tag change.

Go here to encode
 

Attachments

Last edited:
Back
Top