<?xml version="1.0" encoding="utf-8"?>
<Professionbuddy>
<Declaration Code="string Realm;" />
<CustomAction Code="Realm = Lua.GetReturnVal<string>("return GetRealmName()",0);" />
<CustomAction Code="CharacterSettings.Instance.MailRecipient = (string)Settings["BankerName"];" />
<CustomAction Code="SwitchCharacter((string)Settings["BankerName"],Realm,"Combat Bot"" />
</Professionbuddy>
Profile like that dosen't work, only logout and clear my textbox with Mail Recipient.... tested on others profiles with switches characters and too dont work.
<Professionbuddy>
<Declaration Code="string Realm;" />
<CustomAction Code="Realm = Lua.GetReturnVal<string>("return GetRealmName()",0);" />
<CustomAction Code="CharacterSettings.Instance.MailRecipient = (string)Settings["BankerName"];" />
<CustomAction Code="SwitchCharacter((string)Settings["BankerName"],Realm,"Combat Bot"" />
</Professionbuddy>
Profile like that dosen't work, only logout and clear my textbox with Mail Recipient.... tested on others profiles with switches characters and too dont work.