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

CustomBehavior File="InteractWith" Question

paxxx

Community Developer
Joined
Jan 15, 2010
Messages
260
Reaction score
9
Hi,

I am using
PHP:
 <custombehavior file="InteractWith" 
                        QuestId="26294"
                   ObjectType="Npc"
                   MobId="42673"
                  NumOfTimes="3"
                   CollectionDistance="50" X="2392.984" Y="-4796.818" Z="126.7942" />
for info: the quest is split into 2 parts for completion.
for the first part, he proceeds using the object three times,but sometimes the quest part is already complete after the first object use.
but because of the numoftimes="3" he searches for 2 other objects and proceed there as well.

Now how can I stop that behavior?
Because if I set numofTimes to ="1" , the quest part is not finished sometimes as he needs 2 or even all 3 objects to be "right-clicked"....

I hope you understand what I mean... Thanks for any help!
 
Hi,

I am using
PHP:
 <custombehavior file="InteractWith" 
                          QuestId="26294"
                          ObjectType="Npc"
                          MobId="42673"
                          NumOfTimes="3"
                          CollectionDistance="50" X="2392.984" Y="-4796.818" Z="126.7942" />
for info: the quest is split into 2 parts for completion.
for the first part, he proceeds using the object three times,but sometimes the quest part is already complete after the first object use.
but because of the numoftimes="3" he searches for 2 other objects and proceed there as well.

Now how can I stop that behavior?
Because if I set numofTimes to ="1" , the quest part is not finished sometimes as he needs 2 or even all 3 objects to be "right-clicked"....

I hope you understand what I mean... Thanks for any help!

Simple. Use this:

HTML:
<While Condition="!IsQuestCompleted(26294) &amp;&amp; HasQuest(26294)">
<custombehavior file="InteractWith" 
                          QuestId="26294"
                          ObjectType="Npc"
                          MobId="42673"
                          NumOfTimes="1"
                          CollectionDistance="50" X="2392.984" Y="-4796.818" Z="126.7942" />
</While>

That way the object will be used until the quest is complete.
 
Simple. Use this:

HTML:
<While Condition="!IsQuestCompleted(26294) &amp;&amp; HasQuest(26294)">
<custombehavior file="InteractWith" 
                          QuestId="26294"
                          ObjectType="Npc"
                          MobId="42673"
                          NumOfTimes="1"
                          CollectionDistance="50" X="2392.984" Y="-4796.818" Z="126.7942" />
</While>

That way the object will be used until the quest is complete.

Perfect! Thats what I searched for! Thanks!
 
Back
Top