Jump to content

CyberFish

Members
  • Posts

    4
  • Joined

  • Last visited

  • Feedback

    0%

Profile Information

  • Gender
    Male

CyberFish's Achievements

Newbie

Newbie (1/10)

0

Reputation

  1. Ok for my first script i wanted to attempt a simple lumbridge fishing bot that would net shrimps and anchovies. At the start of the code i thought i better off define where my player is, because if he isn't at the swamp then hes not going to be able to interact with the Fishing spots. I identified two areas one was Lumbridge Castle and the other was the fishing spot and used this code as testing. public int onLoop() { if (!LumbridgeSwamp.Area_1.contains(myPosition())) { log("Not At Swamp"); { if (!LumbridgeCastle.Area.contains(myPosition())) { log("Not At Castle"); //TELEPORT HOME localWalker.walkPath(LumbridgeSwamp.Path_1); } else if (!LumbridgeSwamp.Area_1.contains(myPosition())) { log("Im at the Swamp"); //begin fishing code here } } } return random(200, 800); // The amount of time in milliseconds before // the loop starts over } Please can someone explain to me how areas are used, and also why he walks the path and then when he has arrived he keeps walking there when i would tell it to start fishing. Thanks CybeFish
×
×
  • Create New...