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

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

randomize locations

Pachi

Member
Joined
May 31, 2011
Messages
117
If I had 5 different "<MoveTo X="x" Y="y" Z="z" />" locations is there any way i could randomize the picking order?

Code:
   <If Condition="Me.Class == WoWClass.DeathKnight" > 
          <CustomBehavior File="RunCode" Code="SpellManager.Cast(50977); await Coroutine.Sleep(11000);" /> 
          <If Condition="SpellManager.CanCast(50977)"><!-- security --> 
                <CustomBehavior File="RunCode" Code="SpellManager.Cast(50977); await Coroutine.Sleep(11000);" /> 
          </If> 
          <If Condition="SpellManager.CanCast(50977)"><!-- security --> 
                <CustomBehavior File="RunCode" Code="SpellManager.Cast(50977); await Coroutine.Sleep(11000);" /> 
          </If> 
          <CustomBehavior File="InteractWith" MobId="190942"  WaitForNpcs="true" WaitTime="2000"  /> 
          <CustomBehavior File="WaitTimer" WaitTime="53500" /> 
          <CustomBehavior File="Misc\RunLua" Lua="ResetInstances();"  /> 
          <While Condition="Me.ZoneId == 139"> 
[SIZE=4]          [B]<MoveTo X="x" Y="y" Z="z" />
          <MoveTo X="x" Y="y" Z="z" />
          <MoveTo X="x" Y="y" Z="z" />
          <MoveTo X="x" Y="y" Z="z" />
          <MoveTo X="x" Y="y" Z="z" /> [/B][/SIZE]
           <CustomBehavior File="RunCode" Code="SpellManager.Cast(50977); await Coroutine.Sleep(11000);" /> 
               <If Condition="SpellManager.CanCast(50977)"><!-- security --> 
                <CustomBehavior File="RunCode" Code="SpellManager.Cast(50977); await Coroutine.Sleep(11000);" /> 
            </If> 
              <If Condition="SpellManager.CanCast(50977)"><!-- security --> 
                <CustomBehavior File="RunCode" Code="SpellManager.Cast(50977); await Coroutine.Sleep(11000);" /> 
            </If> 
           <CustomBehavior File="InteractWith" MobId="190942"  WaitForNpcs="true" WaitTime="2000"  /> 
           <CustomBehavior File="WaitTimer" TerminateWhen="Me.IsInInstance" WaitTime="60000" /> 

                <If Condition="Me.ZoneId == 139"> 
                    <CustomBehavior File="RunCode" Code="hearthCounter++;" /> 
                    <CustomBehavior File="RunCode" Code="Logging.Write(System.Windows.Media.Colors.Orange, "Teleport unsuccessful add +1 to counter");" /> 
                </If> 
          </While> 
          <CustomBehavior File="RunCode" Code="waitCounter++;" /> 
       </If>
 
Back
Top