<script>
me.wowLog("Profile Join Example");

me.wowLog("loading travel waypoints profile");
me.wowRunProfile("p1.txt","Travel");

me.wowLog("loading grinding profile");

while(me.wowBotRun) {
  var res = me.wowDoFishing();
  if (res) me.wowLog("Caught Fish");
  if (me.inCombat) {
    //some mob hitting me.
    me.wowOneFight();
  }
}

</script>