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

problem with CastSpell behaviour

panYama

Community Developer
Joined
Jan 15, 2010
Messages
2,629
Reaction score
49
having trouble using the
HTML:
<CustomBehavior File="CastSpellOn" QuestId="26918" SpellId="20271" NpcId="44548" NumOfTimes="1" HpLeftAmount="100" MinRange="6" X="-8965.271" Y="-146.3909" Z="81.51053"  />
The character keeps standing at approx. 20 yards or so, so the whole thing doesn't work.
 
having trouble using the
HTML:
<CustomBehavior File="CastSpellOn" QuestId="26918" SpellId="20271" NpcId="44548" NumOfTimes="1" HpLeftAmount="100" MinRange="6" X="-8965.271" Y="-146.3909" Z="81.51053"  />
The character keeps standing at approx. 20 yards or so, so the whole thing doesn't work.
i believe the xyz cords are the toons location to cast the spell on the target, not the targets location. just make sure that XYZ is a place thats meshed and honorbuddy isnt spamming in the navigation log that it cant get there
 
i believe the xyz cords are the toons location to cast the spell on the target, not the targets location. just make sure that XYZ is a place thats meshed and honorbuddy isnt spamming in the navigation log that it cant get there

The xyz coords, is the position, from which the CustomBehavior will search within a range of 100 yards for any objects with the user specified npc id.
 
Got the same Problem

1.
HTML:
<PickUp QuestName="Charging into Battle" QuestId="24969" GiverName="Dannal Stern" GiverId="2119" />
<While Condition="HasQuest(24969) &amp;&amp; !IsQuestCompleted(24969) " />
<CustomBehavior File="ForceSetVendor" VendorType="Train" />
<CustomBehavior File="WaitTimer" WaitTime="1000"/>
<CustomBehavior File="CastSpellOn" QuestId="24969" NumOfTimes="1" SpellId="100" NpcId="44794" MinRange="20" X="1821.053" Y="1603.528" Z="95.80138" />
</While>
<TurnIn QuestName="Charging into Battle" QuestId="24969" TurnInName="Dannal Stern" TurnInId="2119" />

Trying the Undead Warrior Charge Quest. Char pick up the Quest, checks for available Spells and standing still. Doesnt go to the Dummys outside the House. They are not Avoided.

2.
Possible to set the Dummys as Avoid and for Quests like this unAvoid them?

Sorry im total beginning with Profile writing, hope someone can Help and explain me why it doesnt work.

thank you
 
Last edited by a moderator:
try a /tar target dummy in the runmacro... then runlua castspellbyname() with the id of the spell inside of the ()

PHP:
				<CustomBehavior File="RunMacro" Macro="/tar Target Dummy" NumOfTimes="1" WaitTime="1000" />
				<CustomBehavior File="Misc\RunLua" Lua="CastSpellByName(12345)" WaitTime="1000" />
 
Last edited:
Got the same Problem

1.
HTML:
<PickUp QuestName="Charging into Battle" QuestId="24969" GiverName="Dannal Stern" GiverId="2119" />
<While Condition="HasQuest(24969) &amp;&amp; !IsQuestCompleted(24969) " />
<CustomBehavior File="ForceSetVendor" VendorType="Train" />
<CustomBehavior File="WaitTimer" WaitTime="1000"/>
<CustomBehavior File="CastSpellOn" QuestId="24969" NumOfTimes="1" SpellId="100" NpcId="44794" MinRange="20" X="1821.053" Y="1603.528" Z="95.80138" />
</While>
<TurnIn QuestName="Charging into Battle" QuestId="24969" TurnInName="Dannal Stern" TurnInId="2119" />

Trying the Undead Warrior Charge Quest. Char pick up the Quest, checks for available Spells and standing still. Doesnt go to the Dummys outside the House. They are not Avoided.

2.
Possible to set the Dummys as Avoid and for Quests like this unAvoid them?

Sorry im total beginning with Profile writing, hope someone can Help and explain me why it doesnt work.

thank you

does it try to cast the spell or is it just completely freezing?
 
it doesnt target the dummy. after kickazz modifications it works. but not fine, because i have to put the german Mobname into the /tar command. is there a way to use the ID?
 
Back
Top