• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Opening guo-lai caches.

    Discussion in 'Requests & Discussion' started by Hultin, Apr 6, 2015.

    1. Hultin

      Hultin Member

      Joined:
      Jan 15, 2010
      Messages:
      75
      Likes Received:
      1
      Trophy Points:
      8
      How would I go about making a QB profile that opens guo-lai caches aslong as I have keys? Botted a total of 7k of them now and it'll take an eternity to manually open them up :p
       
    2. Rabbit112

      Rabbit112 Community Developer

      Joined:
      Jan 22, 2015
      Messages:
      370
      Likes Received:
      7
      Trophy Points:
      0
      PHP:
      <CustomBehavior File="ForcedDismount" />
      <While 
      Condition="GetItemCount(Keys) &gt; 1">
      <
      CustomBehavior File="Misc\RunLua" Lua="UseItemByName(caches)" />
      </While>

      Sometimes I need a wait time for item usage but sometimes you don't.
       
    3. Hultin

      Hultin Member

      Joined:
      Jan 15, 2010
      Messages:
      75
      Likes Received:
      1
      Trophy Points:
      8
      I don't think there should be a need for a waittime, unless the event is finished prior to finishing looting, but if I had to add that how would I do so?

      Thanks for the code though, really appreciate that!
       
    4. Rabbit112

      Rabbit112 Community Developer

      Joined:
      Jan 22, 2015
      Messages:
      370
      Likes Received:
      7
      Trophy Points:
      0
      Just add WaitTime="2000" (or whatever is needed) at the end of the lua line; sometimes it's needed sometimes it isn't.
       
    5. Hultin

      Hultin Member

      Joined:
      Jan 15, 2010
      Messages:
      75
      Likes Received:
      1
      Trophy Points:
      8
      Thanks for the help fellas, I worked it out and tested it with about 1k keys, this is the result and I hope I could get some feedback. As a rookie I might've overlooked something, ofcourse.

      Feels good finally starting to learn some with QB I must add, I feel like I can finally, even if slowly, start working out all the routines that bores the living fuck out of me ^^
       

      Attached Files:

      Last edited: Apr 9, 2015

    Share This Page