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

Help Please - How Do I Use ForceSetVendor to train a skill/spell

littlesten

Member
Joined
Jan 17, 2011
Messages
94
Reaction score
0
Hi ive been creating a quest profile for night elf,mainly for myself i may post it but theres seems to be alot of good quest profiles already on, Ive ran into a snag ive been trying to use
ForceTrain to train a skill and no matter what i do it comes up with use ForceSetVendor ...
So ive been trying to figure out how to do it, looked on wiki, that didnt work, is there any arguments i need to put in for it to work currently its this:
CustomBehavior File="ForceSetVendor" QuestId="26947" VendorType="Train"
ALL help will be appreciated and yes i have searched for over 30 mins trying to find my anwser :D
 
The call you have shown us looks fine.

It would help if you provided a log, or told us exactly how it was failing. Without this information, my guess is that QuestId 26947 is complete for you, and the ForceSetVendor is being skipped because of it. Here's the appropiate Wiki fragment:
* This behavior monitors quest completion

If quest associated with this behavior is complete, then the behavior will be skipped. If you want this behavior to be executed, you have these options:

* Associate the behavior with a quest known to be incomplete
The best choice is a quest you just picked up. An existing quest may be complete or partially complete if the user has stopped/started Honorbuddy.

* Omit the QuestId

This is undesirable for reasons previously stated; however, it may be necessary, occasionally.

That's my only guess at the moment without more information.

cheers & good luck with it,
chinajade
 
The call you have shown us looks fine.

It would help if you provided a log, or told us exactly how it was failing. Without this information, my guess is that QuestId 26947 is complete for you, and the ForceSetVendor is being skipped because of it. Here's the appropiate Wiki fragment:


That's my only guess at the moment without more information.

cheers & good luck with it,
chinajade


one second and i shall upload/quote the problem

[14:47:16:45] Starting the bot!
[14:47:16:53] Changed tilemap to Kalimdor, Tiled: True
[14:47:16:89] Warning: XML Error: Value "UserDefined" in "Type" is not supported! - On line 303 - [Type="UserDefined"]
[14:47:16:90] Warning: XML Error: Value "UserDefined" in "Type" is not supported! - On line 305 - [Type="UserDefined"]
[14:47:16:91] Warning: XML Error: Value "UserDefined" in "Type" is not supported! - On line 315 - [Type="UserDefined"]
[14:47:16:102] Warning: XML Error: Value "UserDefined" in "Type" is not supported! - On line 451 - [Type="UserDefined"]
[14:47:16:106] Warning: XML Error: Value "UserDefined" in "Type" is not supported! - On line 483 - [Type="UserDefined"]
[14:47:16:110] Changing current profile to [A - Quest] Night Elf - littlesten
[14:47:16:308] Cleared POI - Reason Starting up
[14:47:16:308] Cleared POI
[14:47:16:609] Activity: Loading Tile/s
[14:47:16:609] Loading Kalimdor_30_12
[14:47:16:951] Picking up A Woodsman's Training : 26947
[14:47:16:951] Goal: Picking up A Woodsman's Training
[14:47:16:951] Changed POI to: Type: QuestPickUp
[14:47:17:320] interact: 0x20B7F290
[14:47:17:321] interact done: 0x20B7F290
[14:47:20:331] Cleared POI - Reason Quest Completed
[14:47:20:331] Cleared POI
[14:47:20:515] Picking up A Woodsman's Training : 26947
[14:47:20:515] Goal: Picking up A Woodsman's Training
[14:47:20:782] Goal: CastSpellOn for "A Woodsman's Training"
[14:47:20:831] Activity: Casting Spell - 56641 On Mob: Training Dummy Yards Away 23.04276
[14:47:22:532] Start/Stop button pressed.
[14:47:22:581] Stopping the bot!
[14:47:22:581] Stop called!

ignore UserDefined thats getting changed when im up to it, it doesnt do anything wrong its Starts the quest, but skips out learning the spell then goes straight to trying to hit the dummy with the spell


and here is the coding

PHP:
<If Condition="Me.Class == WoWClass.Hunter">
	<PickUp QuestName="Etched Sigil" GiverName="Ilthalaine" QuestId="3117" GiverId="2079" /> <!-- Etched Signil (level 3) -->
	<TurnIn QuestName="Etched Sigil" TurnInName="Ayanna Everstride" QuestId="3117" TurnInId="3596" />
	
	<PickUp QuestName="A Woodsman's Training" GiverName="Ayanna Everstride" QuestId="26947" GiverId="3596" X="10448.12" Y="777.9965" Z="1322.666" />
				<If Condition="!Styx.Logic.Combat.SpellManager.HasSpell(56641)">
					<CustomBehavior File="ForceSetVendor" QuestId="26947" VendorType="Train"/>
				/If>
				<If Condition="(HasQuest(26947)) &amp;&amp; (!IsQuestCompleted(26947))">
					<CustomBehavior File="CastSpellOn" QuestId="26947" SpellId="56641" NpcId="44614" NumOfTimes="1" HpLeftAmount="100" MinRange="14" X="10454.93" Y="801.1702" Z="1322.547" />
				/If>
			<TurnIn QuestName="A Woodsman's Training" QuestId="26947" TurnInName="Anyanna Everstride" TurnInId="3596" X="10448.12" Y="777.9965" Z="1322.666" />
/If>



sorry i had to take all the "<" out so it would show
 
Last edited:
So, it looks like there's two issues here...
1) The quest does look complete, so the SetForcedVendor CB will be skipped.

[14:47:16:951] Picking up A Woodsman's Training : 26947
[14:47:16:951] Goal: Picking up A Woodsman's Training
[14:47:16:951] Changed POI to: Type: QuestPickUp
[14:47:17:320] interact: 0x20B7F290
[14:47:17:321] interact done: 0x20B7F290
[14:47:20:331] Cleared POI - Reason Quest Completed

because it the QuestId was used as a 'qualifier':
CustomBehavior File="ForceSetVendor" QuestId="26947" VendorType="Train"/>

This should be read as "don't execute the behavior if this Quest 26947 is complete".

and
2) It looks like the toon already knows the spell...
[14:47:20:831] Activity: Casting Spell - 56641 On Mob: Training Dummy Yards Away 23.04276

So your <If> condition prevents any attempt to execute the SetForcedVendor CB.

&lt;If Condition="!Styx.Logic.Combat.SpellManager.HasSpell(56641)">
&lt;CustomBehavior File="ForceSetVendor" QuestId="26947" VendorType="Train"/>
&lt;/If>

So, from what you've shown, it looks like everything is working fine according to the profile's instructions.


In short, if the quest is complete, the profile has two guards in place to prevent SetForcedVendor from being executed.

chinajade
 
Last edited:
littlestein, on dev forums, use the php instead of code and it will show

PHP:
like so :)
 
So, it looks like there's two issues here...
1) The quest does look complete, so the SetForcedVendor CB will be skipped.



because it the QuestId was used as a 'qualifier':


This should be read as "don't execute the behavior if this Quest 26947 is complete".

and
2) It looks like the toon already knows the spell...


So your <If> condition prevents any attempt to execute the SetForcedVendor CB.



So, from what you've shown, it looks like everything is working fine according to the profile's instructions.


In short, if the quest is complete, the profile has two guards in place to prevent SetForcedVendor from being executed.

chinajade

I see what your saying however it hasnt been completed before as its a new character and i havnt got that spell, i shall creat a new hunter and see how it goes

littlestein, on dev forums, use the php instead of code and it will show

PHP:
like so :)

PHP:
Ahhh thanks bud much appreciated!
 
tried it with a new guy and nothging ... hmm



ARGHHHHH!!! WHAT A NOOB MISTAKE!!!!!!!

I forgot to put TrainClass="Hunter" on the vendor bit ?.?
ARGHHHHH!!!! Im so sorry for waisting your time
 
Last edited:
Back
Top