Hello,
I tried adapting the code from earlier. My goal was to change the settings of a specific plugin using a RunCode. Is this even possible in this manner? I hope I haven't missed any forum posts where this issue was already addressed.
using robotManager.Helpful;
using wManager.Plugin;
using System.Windows.Forms;
using wManager.Wow.Helpers;
using wManager.Wow.ObjectManager;
public class Main : IPlugin
{
public void Initialize() {}
public void Dispose() {}
public void Settings()
{
sTemp.CreateHmpSetting();
}
}
class sTemp : Settings
{
public static void CreateHmpSetting()
{
var filePath = AdviserFilePathAndName("CustomPlugin-TagAndBag-" ObjectManager.Me.Name + "." + Usefuls.RealmName);
var fileContent =
@"<?xml version=""1.0"" encoding=""utf-8""?>
<PluginSettings xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema"">
<ChannelName>GemeinsamesLeveln</ChannelName>
<ChannelPassword>GemeinsamesLeveln</ChannelPassword>
<Followers />
<GroupRegen>true</GroupRegen>
<GroupTrain>false</GroupTrain>
</PluginSettings>";
Others.WriteFile(filePath, fileContent);
MessageBox.Show("HMP file created");
}
}
[E] 15:47:32 - Compilator Error (steps cache) :
c:\Projekt\WRobot\Data\temp\vya31g2p.0.cs(102,34) : error CS1513: } erwartet.
c:\Projekt\WRobot\Data\temp\vya31g2p.0.cs(140,15) : error CS1518: Klasse, Delegat, Enumeration, Schnittstelle oder Struktur erwartet.
c:\Projekt\WRobot\Data\temp\vya31g2p.0.cs(360,1) : error CS1022: Typ- oder Namespacedefinition oder Dateiende erwartet.
[E] 15:47:33 - Compilator Error :
c:\Projekt\WRobot\Data\temp\drcen3kt.0.cs(106,34) : error CS1513: } erwartet.
c:\Projekt\WRobot\Data\temp\drcen3kt.0.cs(144,1) : error CS1022: Typ- oder Namespacedefinition oder Dateiende erwartet.