How can I send gold in the profile by mail? p.s. Oh, I was wrong with the section. Wanted to write in Community Developer Forum.
Code: public async Task MailGold() { if (Styx.CommonBot.Frames.MailFrame.Instance != null && Styx.CommonBot.Frames.MailFrame.Instance.IsVisible && Styx.Helpers.CharacterSettings.Instance.MailRecipient != "" && Styx.Helpers.CharacterSettings.Instance.MailRecipient != "Recipient") { Lua.DoString("local a={0} SetSendMailMoney(a*10000) SendMail(\"{1}\",a..' gold','')", Me.Gold - 1000, Styx.Helpers.CharacterSettings.Instance.MailRecipient); await Coroutine.Sleep(2000); } } <If Condition="Me.Gold >= 10000" > <If Condition="!MailFrame.Instance.IsVisible"> <CustomBehavior File="InteractWith" MobId="123" X="123" Y="123" Z="123" /> </If> <If Condition="MailFrame.Instance.IsVisible"> <CustomBehavior File="RunCode" Code="await MailGold()" /> </If> </If>