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!

Fishing in Pandaria 1-600 by Alisha

Code:
<?xml version="1.0" encoding="utf-8"?>
<Professionbuddy>
  <CustomAction Code="MyLog("Fishing in Pandaria1-600 by Alisha");" />
  <If Condition="Me.ZoneId != 6134" IgnoreCanRun="True">
    <CustomAction Code="MyErr("You need to move to Krasarang Wilds");" />
    <CustomAction Code="TreeRoot.Stop();" />
  </If>
  <CustomAction Code="MyLog("Leveling Fishing to 600");" />
  <If Condition="SecondaryBot.Name != "Combat bot"" IgnoreCanRun="True">
    <ChangeBotAction BotName="Combat bot" />
  </If>
  <If Condition="Fishing.MaxLevel == 0" IgnoreCanRun="True">
    <CallSubRoutine SubRoutineName="Training" />
  </If>
  <CustomAction Code="Lua.DoString("SetCVar(\"AutoLootDefault\", 1)");" />
  <While Condition="Fishing.Level < 600" IgnoreCanRun="True">
    <If Condition="(Fishing.MaxLevel - Fishing.Level <= 25 && Fishing.MaxLevel != 600) || Me.BagsFull" IgnoreCanRun="True">
      <CallSubRoutine SubRoutineName="Training" />
    </If>
    <If Condition="DistanceTo(-1442.071, -260.4499, 0.5469447) >=1.5" IgnoreCanRun="True">
      <FlyToAction Dismount="True" Location="-1442.071, -260.4499, 0.5469447" />
    </If>
    <If Condition="!IsFacing(-1.544366f)" IgnoreCanRun="True">
      <WaitAction Condition="false" Timeout="2000" />
      <CustomAction Code="MyLog("Facing towards water");
PulseSW.Reset();
Me.SetFacing(-1.544366f);
" />
    </If>
    <CustomAction Code="Fish();" />
  </While>
  <If Condition="Fishing.Level == 600" IgnoreCanRun="True">
    <CustomAction Code="Log("Maxed out fishing skill! Logging out");" />
    <CustomAction Code=" Lua.DoString("Logout()");TreeRoot.Stop();" />
  </If>
  <SubRoutine SubRoutineName="Training">
    <While Condition="DistanceTo(-1470.55, -259.8472, 0.1111361) >= 5" IgnoreCanRun="False">
      <FlyToAction Dismount="False" Location="-1470.55, -259.8472, 0.1111361" />
    </While>
    <CustomAction Code="MyLog("Training Skill");" />
    <TrainSkillAction NpcEntry="63721" Location="-1469.26, -257.042, 0.3785554" />
    <CustomAction Code="Lua.DoString("CloseTrainer()");" />
    <WaitAction Condition="false" Timeout="2000" />
    <SellItemAction Sell="All" NpcEntry="63721" Location="-1470.55, -259.8472, 0.1111361" SellItemType="Greys" ItemID="0" Count="0" />
  </SubRoutine>
  <Declaration Code="Stopwatch PulseSW = new Stopwatch();" />
  <Declaration Code="DateTime CastTimeStamp = DateTime.Now;" />
  <Declaration Code="void MyErr(string fmt,params object[] args)
{
    Log(Colors.Green,"Fishing1-600: ",Colors.Red,fmt,args);
}" />
  <Declaration Code="void MyLog(string fmt,params object[] args)
{
    Log(Colors.Green,"Fishing1-600: ",Colors.LightGreen,fmt,args);
}" />
[COLOR="#B22222"]  <Declaration Code="void Fish()
{
  if (!PulseSW.IsRunning)
    PulseSW.Start();
  using (StyxWoW.Memory.AcquireFrame())
  {
  if (PulseSW.ElapsedMilliseconds >= 1000)
  { 
    MyErr("Warning: It took {0} milliseconds to pulse.\nThis can cause missed bites. To fix try disabling all plugins",
        PulseSW.ElapsedMilliseconds); 
  }
  PulseSW.Reset(); PulseSW.Start();
  try
  {
    var bobber = ObjectManager.GetObjectsOfType<WoWGameObject>().
           FirstOrDefault(u => u.SubType == WoWGameObjectType.FishingNode && u.CreatedByGuid == Me.Guid);
    if (bobber != null && bobber.IsValid && ((WoWFishingBobber)bobber.SubObj).IsBobbing)
    {
       bobber.Interact();
    }
    else if (bobber == null && !Me.IsCasting && DateTime.Now -  CastTimeStamp >= TimeSpan.FromSeconds(1))
    {
      TreeRoot.StatusText= string.Format("Fishing level: {0}",Fishing.Level);
       SpellManager.Cast("Fishing");
       CastTimeStamp = DateTime.Now;
    }
  }
  catch(Exception ex){MyErr(ex.ToString());}
  }
}" />[/COLOR]
  <Declaration Code="bool IsFacing(float dirInRadians)
{
  var facePoint = WoWPoint.RayCast(Me.Location, dirInRadians, 1f);
  return WoWMathHelper.IsFacing(Me.Location, Me.RenderFacing, facePoint,0.5f);
}
" />
</Professionbuddy>

Here is the authors code with an edited section from another profile that was working for me, it seemed to fix the issue I was having with the bobber. I have highlighted the specific line that was edited in red.


This works, but I had to edit the code in Microsoft Visual Studio. When I did the edit in just regular notepad, it did not work. So, if anyone is still having problems, try that.
 
Fixed this profile.

Ok guys.. I don't know if I'm allowed to do this, but I fixed this to where you fly to a spot where the other faction WON'T attack you because guards will interfere and you actually click the bobble :)
 

Attachments

Ok guys.. I don't know if I'm allowed to do this, but I fixed this to where you fly to a spot where the other faction WON'T attack you because guards will interfere and you actually click the bobble :)

Works fine for me.

Thanks.
 
Starting my 90Druid at level 1 fishing w/ 4 36 Slot Tackleboxes (a good investment, they regularly sell for 10-15g on my realm).

Will report back.

EDIT

Just FYI, I had to start the profile in Krasarang Wilds to make it work. Starting now.
 
Last edited:
Hmm....checked back after an hour, no looted fish. watched the bot, its not looting when hooked.

Gonna have to try somethign else
 
Code:
<?xml version="1.0" encoding="utf-8"?>
<Professionbuddy>
  <CustomAction Code="MyLog("Fishing in Pandaria1-600 by Alisha");" />
  <If Condition="Me.ZoneId != 6134" IgnoreCanRun="True">
    <CustomAction Code="MyErr("You need to move to Krasarang Wilds");" />
    <CustomAction Code="TreeRoot.Stop();" />
  </If>
  <CustomAction Code="MyLog("Leveling Fishing to 600");" />
  <If Condition="SecondaryBot.Name != "Combat bot"" IgnoreCanRun="True">
    <ChangeBotAction BotName="Combat bot" />
  </If>
  <If Condition="Fishing.MaxLevel == 0" IgnoreCanRun="True">
    <CallSubRoutine SubRoutineName="Training" />
  </If>
  <CustomAction Code="Lua.DoString("SetCVar(\"AutoLootDefault\", 1)");" />
  <While Condition="Fishing.Level < 600" IgnoreCanRun="True">
    <If Condition="(Fishing.MaxLevel - Fishing.Level <= 25 && Fishing.MaxLevel != 600) || Me.BagsFull" IgnoreCanRun="True">
      <CallSubRoutine SubRoutineName="Training" />
    </If>
    <If Condition="DistanceTo(-1442.071, -260.4499, 0.5469447) >=1.5" IgnoreCanRun="True">
      <FlyToAction Dismount="True" Location="-1442.071, -260.4499, 0.5469447" />
    </If>
    <If Condition="!IsFacing(-1.544366f)" IgnoreCanRun="True">
      <WaitAction Condition="false" Timeout="2000" />
      <CustomAction Code="MyLog("Facing towards water");
PulseSW.Reset();
Me.SetFacing(-1.544366f);
" />
    </If>
    <CustomAction Code="Fish();" />
  </While>
  <If Condition="Fishing.Level == 600" IgnoreCanRun="True">
    <CustomAction Code="Log("Maxed out fishing skill! Logging out");" />
    <CustomAction Code=" Lua.DoString("Logout()");TreeRoot.Stop();" />
  </If>
  <SubRoutine SubRoutineName="Training">
    <While Condition="DistanceTo(-1470.55, -259.8472, 0.1111361) >= 5" IgnoreCanRun="False">
      <FlyToAction Dismount="False" Location="-1470.55, -259.8472, 0.1111361" />
    </While>
    <CustomAction Code="MyLog("Training Skill");" />
    <TrainSkillAction NpcEntry="63721" Location="-1469.26, -257.042, 0.3785554" />
    <CustomAction Code="Lua.DoString("CloseTrainer()");" />
    <WaitAction Condition="false" Timeout="2000" />
    <SellItemAction Sell="All" NpcEntry="63721" Location="-1470.55, -259.8472, 0.1111361" SellItemType="Greys" ItemID="0" Count="0" />
  </SubRoutine>
  <Declaration Code="Stopwatch PulseSW = new Stopwatch();" />
  <Declaration Code="DateTime CastTimeStamp = DateTime.Now;" />
  <Declaration Code="void MyErr(string fmt,params object[] args)
{
    Log(Colors.Green,"Fishing1-600: ",Colors.Red,fmt,args);
}" />
  <Declaration Code="void MyLog(string fmt,params object[] args)
{
    Log(Colors.Green,"Fishing1-600: ",Colors.LightGreen,fmt,args);
}" />
[COLOR="#B22222"]  <Declaration Code="void Fish()
{
  if (!PulseSW.IsRunning)
    PulseSW.Start();
  using (StyxWoW.Memory.AcquireFrame())
  {
  if (PulseSW.ElapsedMilliseconds >= 1000)
  { 
    MyErr("Warning: It took {0} milliseconds to pulse.\nThis can cause missed bites. To fix try disabling all plugins",
        PulseSW.ElapsedMilliseconds); 
  }
  PulseSW.Reset(); PulseSW.Start();
  try
  {
    var bobber = ObjectManager.GetObjectsOfType<WoWGameObject>().
           FirstOrDefault(u => u.SubType == WoWGameObjectType.FishingNode && u.CreatedByGuid == Me.Guid);
    if (bobber != null && bobber.IsValid && ((WoWFishingBobber)bobber.SubObj).IsBobbing)
    {
       bobber.Interact();
    }
    else if (bobber == null && !Me.IsCasting && DateTime.Now -  CastTimeStamp >= TimeSpan.FromSeconds(1))
    {
      TreeRoot.StatusText= string.Format("Fishing level: {0}",Fishing.Level);
       SpellManager.Cast("Fishing");
       CastTimeStamp = DateTime.Now;
    }
  }
  catch(Exception ex){MyErr(ex.ToString());}
  }
}" />[/COLOR]
  <Declaration Code="bool IsFacing(float dirInRadians)
{
  var facePoint = WoWPoint.RayCast(Me.Location, dirInRadians, 1f);
  return WoWMathHelper.IsFacing(Me.Location, Me.RenderFacing, facePoint,0.5f);
}
" />
</Professionbuddy>

Here is the authors code with an edited section from another profile that was working for me, it seemed to fix the issue I was having with the bobber. I have highlighted the specific line that was edited in red.

The solution has already been posted. Maybe the author will come back and fix the file, but until then you will need to fix it yourself. :)
 
The solution has already been posted. Maybe the author will come back and fix the file, but until then you will need to fix it yourself. :)

I have changed that red part on my profile, but it didn't work. It is still not taking the caught fish.
 
Ok guys.. I don't know if I'm allowed to do this, but I fixed this to where you fly to a spot where the other faction WON'T attack you because guards will interfere and you actually click the bobble :)

This profile fixed the issue of not looting the fish :)

Thank you both the creator of the original profile and the person who edited it! Keep it UP :)

PS: If you guys have a working cooking profile, or plug-in.. Please PM me or make a post about it (and also PM me :)

Thanks again!
 
Ok, since looking at the original post being back from 2012 I can assume that they are not going to be updating this. I have made a number of modifications to the file which I thought were necessary.
  • fixed the bobber issue
  • removed the zone check
  • changed the fishing location
  • no longer moves between training and fishing
  • sell the gold carps to the trainer
  • closes vendor window when done

For people who are on a pvp server, you may want to modify the location that this has you fish. There is a post up the thread that has been edited to a safer location. This new fishing location will put you right next to the trainer and allow for maximum levels of fishing without any pauses. And the zone check is now gone so you can start the bot in the shrine and it will take you to the location and begin. The only requirement is that you are somewhere in Pandaria and can fly.
 

Attachments

Ok, since looking at the original post being back from 2012 I can assume that they are not going to be updating this. I have made a number of modifications to the file which I thought were necessary.
  • fixed the bobber issue
  • removed the zone check
  • changed the fishing location
  • no longer moves between training and fishing
  • sell the gold carps to the trainer
  • closes vendor window when done

For people who are on a pvp server, you may want to modify the location that this has you fish. There is a post up the thread that has been edited to a safer location. This new fishing location will put you right next to the trainer and allow for maximum levels of fishing without any pauses. And the zone check is now gone so you can start the bot in the shrine and it will take you to the location and begin. The only requirement is that you are somewhere in Pandaria and can fly.

thanks thebbandit, this profile now is running perfectly
 
+rep was working on it when i stumbeled on your post save me a lot of time :) ty m8
 
So I downloaded this right and it fishes but it will not actually catch anything. I've had to manually press the line to get it to pull up any ideas?
 
Hello mate. How can i stop bot to sell golden carps ?i changed log files . Sell items all to none but it doesnt work-.-
 
Hello mate. How can i stop bot to sell golden carps ?i changed log files . Sell items all to none but it doesnt work-.-

Grats you made me unsubscribe the thread. Stupid ass questions. Read the posts dude. I gave you the files.
 
Back
Top