1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Question paying for line of code

Discussion in 'Developer Support' started by guydatpwnz, May 31, 2019.

  1. guydatpwnz

    Joined:
    Dec 29, 2018
    Messages:
    18
    Likes Received:
    1
    I have a fully functional zulrah bot except for the jad phase
    no matter what i do i cant seem to code the jad phase to flick pray correctly

    i will pay someone for their time to code a zulrah pray flick that is fully funtional

    discord
    The Weed BAR#4004
     
  2. auxi

    Joined:
    May 24, 2016
    Messages:
    1,113
    Likes Received:
    990
    The issue likely stems from that you don't know how OSRS prayer flicking works. Afaik you need to turn on the appropriate prayer BEFORE it shoots the projectile, otherwise it will not work.
     
  3. guydatpwnz

    Joined:
    Dec 29, 2018
    Messages:
    18
    Likes Received:
    1
    no i know that, and i meant pray switch not flick
     
  4. CuppaJava

    CuppaJava cuppa.drink(java);

    Joined:
    Mar 13, 2018
    Messages:
    6,052
    Likes Received:
    1,360
    I've never made a zulrah bot, but I've heard people mention they made theirs by reading the animation and switching the prayer based off that. Not sure if that helps.
     
  5. guydatpwnz

    Joined:
    Dec 29, 2018
    Messages:
    18
    Likes Received:
    1
    ive tried reading the animations, reading the projectiles, just straight adding a execution delay before each switch(this actually worked best), ive tried experimental code that uses while loops, do while loops, and i feel like ive tried everything. some stuff has kind of worked, but nothing reliable enough.
     
  6. ViralPandemic

    Joined:
    Feb 18, 2019
    Messages:
    33
    Likes Received:
    7
    First thing, remove the loop delay if you are doing timing sensitive stuff and are using Looping or Treebot (this.setLoopDelay(0))

    Second, if you are waiting for something to happen that you know will be coming in the near future, instead of running your decision tree again, you want to either poll and keep checking your condition (animation switch, or if you are using listeners, the listeners can set a flag to let your main bot know that something happened), or use a delayUntil to wait for it. The idea here is you don't want to return to LoopingBot because it does a bunch of checks (like checking that you aren't logged out), that take time and will delay your response to stuff.
     
    sanyointhis and CuppaJava like this.

Share This Page

Loading...