lisa wrote:because partybot uses in game commands and such just changing the value won't make it stop following, there is already a no follow command though that does everything for you.
I know about those commands, but even if I tell the bot to stop following, the party routine is still constantly called and I can't get it to run another waypoint, or anything else for that matter.
lisa wrote:As for stopping party bot itself, hmmm it would need some tweaking as the function called is a never ending loop, you only need to call the function once, not in a loop like you did. If you look at the waypoints provided for using party it purely calls it once.
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints>
<onLoad>
PartyHeals()
</onLoad>
</waypoints>
But if I don't start it in a loop, it just targets my main char and starts following him and then ends the script. The internal loop is not entered immediately, for some reason...
lisa wrote:So if you want to edit so you can leave the loop you will need to edit rom/classes/party.lua, the function is function Party(heal) and just need to create a way to exit the while loop in that.
You need to keep in mind though if you leave that function that bot will stop listening to your commands.
Ah, I was just looking for the function 'Party()' without any arguments, no wonder I couldn't find it
Thanks for your help!
-----
edit: I have another question
In my main char, I have the profile options set to this:
Code: Select all
<option name="PARTY" value="true" />
<option name="PARTY_ICONS" value="true" />
<option name="PARTY_INSTANCE" value="true" />
<option name="ICON_FIGHT" value="true" />
<option name="PARTY_FOLLOW_NAME" value="" />
<option name="HEAL_FIGHT" value="false" />
<option name="PARTYLEADER_WAIT" value="true" />
<option name="MONITOR_WHISPERS" value="false" />
The bot acts accordingly, always waiting on the other bot if it falls behind. But when I use changeProfileOption("PARTYLEADER_WAIT","false"); the MM window correctly prints that the value was changed from 'true' to 'false', but the main char still waits for the second bot. Even if I switch all party options to false, it still waits on the other one. Am I missing something obvious?
-----
edit2: Nevermind, just wrote my own party functions that are a lot simpler but do everything I want them too!