What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Randomly select a hotspot in a profile?

BurgerKing

New Member
Joined
Mar 8, 2015
Messages
7
Reaction score
0
I'm playing around with a profile that is largely stolen from everyone on here who knows what they're doing and merged so that I have a money making profile (Clusters, Cocoons) and that would also farm Silver Sovereigns, Umbral Rocks, and Fragrant Logs all at the same time.

I'd like to make it so when I run back to fish, it doesn't always go to the first FishSpot in line.. I could manually change which one to target based on the piece of the profile, but I was wondering if there is any way to randomly select a FishSpot through xml. My google-fu was weak on this one and I wasn't able to find much that was helpful at all.

This specific chunk of xml:
Code:
	<FishSpots>
		<FishSpot XYZ="142.4022, 57.68546, 930.2143" Heading="0.8122025" />
		<FishSpot XYZ="135.7394, 58.55893, 940.8663" Heading="0.9687042" />
		<FishSpot XYZ="130.9483, 59.73428, 948.3847" Heading="0.6300395" />
		<FishSpot XYZ="109.0178, 59.71759, 950.4835" Heading="6.053735" />
		<FishSpot XYZ="97.6573, 60.01523, 948.7998" Heading="5.830524" />
		<FishSpot XYZ="90.14629, 59.66103, 943.6596" Heading="5.4739" />
	</FishSpots>

So... random function in XML?
 
I don't think random is available in XML since it's a static language like HTML
 
I'm guessing you're using kagamihiiragi17's FishTag. You shouldn't need to randomly select a fishspot, if the first one in the list is overfished, it'll automatically move on to the next one. If you're planning on running a profile for an extended amount of time, you should be using 2 completely different fishing holes per game day. even if you used a different fishspot within the same fishing pool, you'll run into the anti-bot measure that prevents you from fishing in the same fish spot for a few hours.

to answer your question directly though, you should be able to start with a random fishspot by calling FishSpots.Next() a random number of times at the end of FishTag.Onstart.
 
Back
Top