Ordush 185 Posted August 12, 2018 Share Posted August 12, 2018 (edited) Hey guys, anyone know how to make it so if you change i.e. wManagerSetting.CurrentSetting.Selling with your plugin, so that it changes the setting in WRobot too? As soon as wrobot is restarted wManagerSetting.CurrentSetting.Selling is changed back to what you set it to in wrobot. ? wManagerSetting.CurrentSetting.Save(); saves the data, but it dones't change in wrobot until wrobot is restarted. Also completely off-topic:@Droidz how are you getting current mount name in vanilla? Are you checking buffs? Or are you reading from memory? I just realized that button does not work, so i guess you are not ? Edited August 12, 2018 by Ordush Link to comment https://wrobot.eu/forums/topic/9931-change-wrobot-setting-with-plugin/ Share on other sites More sharing options...
Droidz 2738 Posted August 18, 2018 Share Posted August 18, 2018 Hello, You cannot do that, and if you use quester product, wrobot reset old settings when stopped. In vanilla I just check if IsMounted (ObjectManager.Me.IsMounted) I don't check if it is good mount name (you can try "Me.MountDisplayId" if you want check a specific mount). To dismount I use CancelPlayerBuff(...) and check texture name (GetPlayerBuffTexture(...)) Link to comment https://wrobot.eu/forums/topic/9931-change-wrobot-setting-with-plugin/#findComment-46692 Share on other sites More sharing options...
Ordush 185 Posted August 18, 2018 Author Share Posted August 18, 2018 37 minutes ago, Droidz said: Hello, You cannot do that, and if you use quester product, wrobot reset old settings when stopped. In vanilla I just check if IsMounted (ObjectManager.Me.IsMounted) I don't check if it is good mount name (you can try "Me.MountDisplayId" if you want check a specific mount). To dismount I use CancelPlayerBuff(...) and check texture name (GetPlayerBuffTexture(...)) Ah alright! Any chance that you will add so that the settings update without restarting wrobot? Not using quester ? Link to comment https://wrobot.eu/forums/topic/9931-change-wrobot-setting-with-plugin/#findComment-46695 Share on other sites More sharing options...
Droidz 2738 Posted August 18, 2018 Share Posted August 18, 2018 You can try, based on https://stackoverflow.com/a/302588 foreach (var instancesOfImplementingType in GetInstancesOfImplementingTypes<UserControlTabGeneralSettings>()) { instancesOfImplementingType.LoadGeneralSettings(); } (to refresh UI, but I'm not sure that it solves the problem) Link to comment https://wrobot.eu/forums/topic/9931-change-wrobot-setting-with-plugin/#findComment-46696 Share on other sites More sharing options...
Ordush 185 Posted August 18, 2018 Author Share Posted August 18, 2018 3 hours ago, Droidz said: You can try, based on https://stackoverflow.com/a/302588 foreach (var instancesOfImplementingType in GetInstancesOfImplementingTypes<UserControlTabGeneralSettings>()) { instancesOfImplementingType.LoadGeneralSettings(); } (to refresh UI, but I'm not sure that it solves the problem) Haven't tried it yet, but seems like it's exactly what I need! Cheers! Link to comment https://wrobot.eu/forums/topic/9931-change-wrobot-setting-with-plugin/#findComment-46697 Share on other sites More sharing options...
Ordush 185 Posted August 18, 2018 Author Share Posted August 18, 2018 @Droidz What reference do i need for this to work? I guess that i need using wManager.Wow.Forms; for the UserControlTabGeneralSettings However it says GetInstancesOfImplementingTypes doesn't exist in that context. Link to comment https://wrobot.eu/forums/topic/9931-change-wrobot-setting-with-plugin/#findComment-46699 Share on other sites More sharing options...
Droidz 2738 Posted August 18, 2018 Share Posted August 18, 2018 Add this method https://stackoverflow.com/questions/302542/how-do-i-get-all-instances-of-all-loaded-types-that-implement-a-given-interface/302588#302588 Link to comment https://wrobot.eu/forums/topic/9931-change-wrobot-setting-with-plugin/#findComment-46700 Share on other sites More sharing options...
Ordush 185 Posted August 19, 2018 Author Share Posted August 19, 2018 8 hours ago, Droidz said: Add this method https://stackoverflow.com/questions/302542/how-do-i-get-all-instances-of-all-loaded-types-that-implement-a-given-interface/302588#302588 Ah, not sure how i did not see that. I added the method, and the remaining references (PresentationCore, PresentationFramework and WindowsBase). And it doesn't give any errors, however. When i run foreach (var instancesOfImplementingType in GetInstancesOfImplementingTypes<UserControlTabGeneralSettings>()) { instancesOfImplementingType.LoadGeneralSettings(); } nothing happens for some reason. ? Link to comment https://wrobot.eu/forums/topic/9931-change-wrobot-setting-with-plugin/#findComment-46701 Share on other sites More sharing options...
Droidz 2738 Posted August 20, 2018 Share Posted August 20, 2018 Yes, code is bad. Wait next update and use wManager.Wow.Forms.UserControlTabGeneralSettings.RealoadGeneralSettings() happiness7 1 Link to comment https://wrobot.eu/forums/topic/9931-change-wrobot-setting-with-plugin/#findComment-46745 Share on other sites More sharing options...
Ordush 185 Posted August 20, 2018 Author Share Posted August 20, 2018 4 hours ago, Droidz said: Yes, code is bad. Wait next update and use wManager.Wow.Forms.UserControlTabGeneralSettings.RealoadGeneralSettings() Cheers mate! Link to comment https://wrobot.eu/forums/topic/9931-change-wrobot-setting-with-plugin/#findComment-46747 Share on other sites More sharing options...
Ordush 185 Posted August 22, 2018 Author Share Posted August 22, 2018 @Droidz Did you ever get this update out Droidz? (Vanilla) Also btw. ever since I've upgraded to win 10 i get this error: 21:04:52 - Error during download, please verif link. 21:04:50 - error: System.Net.WebException: The request was aborted: Could not create SSL/TLS secure channel. at System.Net.WebClient.DownloadFile(Uri address, String fileName) at System.Net.WebClient.DownloadFile(String address, String fileName) at UpdateManager.UpdateManager.() I've turned off firewall, anit-virus etc. It does however update when there are updates, so not sure why it's even saying it lol Link to comment https://wrobot.eu/forums/topic/9931-change-wrobot-setting-with-plugin/#findComment-46779 Share on other sites More sharing options...
Droidz 2738 Posted August 23, 2018 Share Posted August 23, 2018 13 hours ago, Ordush said: @Droidz Did you ever get this update out Droidz? (Vanilla) Also btw. ever since I've upgraded to win 10 i get this error: 21:04:52 - Error during download, please verif link. 21:04:50 - error: System.Net.WebException: The request was aborted: Could not create SSL/TLS secure channel. at System.Net.WebClient.DownloadFile(Uri address, String fileName) at System.Net.WebClient.DownloadFile(String address, String fileName) at UpdateManager.UpdateManager.() I've turned off firewall, anit-virus etc. It does however update when there are updates, so not sure why it's even saying it lol You have try to restart your computer? Link to comment https://wrobot.eu/forums/topic/9931-change-wrobot-setting-with-plugin/#findComment-46792 Share on other sites More sharing options...
Ordush 185 Posted August 23, 2018 Author Share Posted August 23, 2018 (edited) 56 minutes ago, Droidz said: You have try to restart your computer? Many times, I have had this issue for months. It's on ALL my pc's that run windows 10, even my work computer. ? https://stackoverflow.com/questions/2859790/the-request-was-aborted-could-not-create-ssl-tls-secure-channel Apparently it's an issue that's also discussed on stackoverflow Edited August 23, 2018 by Ordush Link to comment https://wrobot.eu/forums/topic/9931-change-wrobot-setting-with-plugin/#findComment-46795 Share on other sites More sharing options...
Droidz 2738 Posted August 23, 2018 Share Posted August 23, 2018 thank you, can you try with this .exe and tell me if problem is resolved: Updater.zip Link to comment https://wrobot.eu/forums/topic/9931-change-wrobot-setting-with-plugin/#findComment-46799 Share on other sites More sharing options...
Ordush 185 Posted August 23, 2018 Author Share Posted August 23, 2018 4 hours ago, Droidz said: thank you, can you try with this .exe and tell me if problem is resolved: Updater.zip Yep! That solved the problem! ? UserControlTabGeneralSettings.RealoadGeneralSettings(); Still does not work though. There is a spelling error: RealoadGeneralSettings(); Is supposed to be ReloadGeneralSettings(); However, that definition does not exists either yet. Is it me being completely retarded? ? Link to comment https://wrobot.eu/forums/topic/9931-change-wrobot-setting-with-plugin/#findComment-46809 Share on other sites More sharing options...
Droidz 2738 Posted August 24, 2018 Share Posted August 24, 2018 21 hours ago, Ordush said: UserControlTabGeneralSettings.RealoadGeneralSettings(); Still does not work though. There is a spelling error: RealoadGeneralSettings(); Is supposed to be ReloadGeneralSettings(); However, that definition does not exists either yet. Is it me being completely retarded? ? I heven't release update Link to comment https://wrobot.eu/forums/topic/9931-change-wrobot-setting-with-plugin/#findComment-46836 Share on other sites More sharing options...
Ordush 185 Posted August 24, 2018 Author Share Posted August 24, 2018 2 hours ago, Droidz said: I heven't release update Now, that explains it. ? Link to comment https://wrobot.eu/forums/topic/9931-change-wrobot-setting-with-plugin/#findComment-46837 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now