I'm trying to let PB do something that depends on which character you are logged in as. Right now I have something like this:
This doesn't work because Me.Name never changes, not even when a relog occures. I tested with this:
The name stays the same as before the relog, so i thought i could use .Update to refresh everything, but doesnt work.
Is there a way to get your actual character name?
PHP:
while(true) {
if(Me.Name == "Something") {
//Do stuff
}
if(Me.Name == "Something else") {
//Do other stuff
}
}
This doesn't work because Me.Name never changes, not even when a relog occures. I tested with this:
PHP:
<?xml version="1.0" encoding="utf-8"?>
<Professionbuddy>
<CustomAction Code="MessageBox.Show(ObjectManager.Me.Name);" />
<CustomAction Code="SwitchCharacter("Gideonpabank", "Turalyon", "Gatherbuddy2");" />
<WaitAction Condition="Me.ZoneId == 1537" Timeout="15000" />
<CustomAction Code="ObjectManager.Update();" />
<CustomAction Code="MessageBox.Show(ObjectManager.Me.Name);" />
</Professionbuddy>
The name stays the same as before the relog, so i thought i could use .Update to refresh everything, but doesnt work.
Is there a way to get your actual character name?