Jump to content

Gargaroth95

WRobot user
  • Posts

    21
  • Joined

Everything posted by Gargaroth95

  1. Thank you. I will take a look at it. But my final general question to you: Isn't there a simple code that I can integrate into my Quester that changes the settings of a plugin?
  2. I already have a completed quester for WOTLK. Strong classes like Paladin, Warrior, Druid, etc. can handle this on their own. For the weaker classes, I now want to run the same quester as a group. In doing so, the two group members switch roles at the predetermined points in the quester using the built-in chat command. Now, here's my question regarding the code. There's this plugin: Tag and Bag, where characters can follow the leader. For this, I want to incorporate a RunCode in my quester that changes the plugin's settings: Leader = true or Leader = false.
  3. Sorry to ask about this topic again. But I've really tried for a long time to find a solution. I can't find any errors with the {}. The error also occurs when I simply copy the original code from Droidz. This code is very important to me. It's the last missing piece to complete a group quester. The goal is to swap the leader role through the plugin using a RunCode. Would you perhaps have a moment to take a look at it? If not, I understand. I'll continue searching for the solution in the meantime.
  4. 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.
  5. There is a buggy Questgiver on my server. The Bot does not interact with him.
  6. Hello community, can anyone tell me, if it's possible to rightclick on a specific position? ClickOnTerrain.Pulse(new Vector3(1738.88, -1184.93, 59.2689)); --> But instead a rightclick? Thank you!
  7. Hello, I have a word document where I saved a lots of codes from this forum. I think this code was from a free profile in this forum.
  8. Thank you. But does it work for recipes for a profession? I got this codes for the beginning and it works fine. <QuestsSorted Action="While" NameClass="!Skill.Has(SkillLine.Cooking)" /> <QuestsSorted Action="RunLuaCode" NameClass="DEFAULT_CHAT_FRAME:AddMessage(&quot;|cFFFFCE2ETramBot|r Learn Apprentice Cooking&quot;)" /> <QuestsSorted Action="RunCode" NameClass="wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithNpc(new Vector3(-9466.99, -4.53396, 56.9501), 1430, 1, false);" /> <QuestsSorted Action="RunLuaCode" NameClass="BuyTrainerSkill(&quot;Apprentice Cook&quot;)" /> <QuestsSorted Action="RunCode" NameClass="SpellManager.UpdateSpellBook();" /> <QuestsSorted Action="EndWhile" NameClass="" /> Do you mean something like this? <QuestsSorted Action="While" NameClass="!Skill.Has("Cooking", "Roast Raptor")" /> <QuestsSorted Action="EndWhile" NameClass="" /> or <QuestsSorted Action="While" NameClass="!Skill.Has("Roast Raptor")" /> <QuestsSorted Action="EndWhile" NameClass="" /> Unfortunately both codes are not working.
  9. For example this works fine. <QuestsSorted Action="While" NameClass="!wManager.Wow.Helpers.SpellManager.KnowSpell(18260)" /> <QuestsSorted Action="RunLuaCode" NameClass="DEFAULT_CHAT_FRAME:AddMessage(&quot;|cFFFFCE2ETramBot|r Learn Artisan Cook&quot;)" /> <QuestsSorted Action="RunCode" NameClass="wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithNpc(new Vector3(-8610.9, 364.64, 99.62309), 5482, 1, false);" /> <QuestsSorted Action="RunLuaCode" NameClass="BuyTrainerSkill(&quot;Artisan Cook&quot;)" /> <QuestsSorted Action="RunCode" NameClass="SpellManager.UpdateSpellBook();" /> <QuestsSorted Action="EndWhile" NameClass="" />
  10. Thank you for your response. I already use SkillLine for the While Conditions. Is there another option to check if the char knows the profession skill? Because if I restart the bot the char goes to the trainer until the while condition is finished. <QuestsSorted Action="While" NameClass="Skill.GetValue(SkillLine.Cooking) &lt; 225" /> <QuestsSorted Action="RunCode" NameClass="wManager.wManagerSetting.CurrentSetting.DoNotSellList.Add(&quot;Raptor Flesh&quot;);" /> <QuestsSorted Action="RunLuaCode" NameClass="DEFAULT_CHAT_FRAME:AddMessage(&quot;|cFFFFCE2ETramBot|r Farm Raptor Flesh&quot;)" /> <QuestsSorted Action="Pulse" NameClass="RaptorFlesh" /> <QuestsSorted Action="RunLuaCode" NameClass="DEFAULT_CHAT_FRAME:AddMessage(&quot;|cFFFFCE2ETramBot|r Learn Skill Roast Raptor&quot;)" /> <QuestsSorted Action="Pulse" NameClass="BuyRecipeRoastRaptor" /> <QuestsSorted Action="RunMacroLua" NameClass="/use Recipe: Roast Raptor" /> <QuestsSorted Action="RunLuaCode" NameClass="DEFAULT_CHAT_FRAME:AddMessage(&quot;|cFFFFCE2ETramBot|r Cook Roast Raptor&quot;)" /> <QuestsSorted Action="Pulse" NameClass="Roast Raptor" /> <QuestsSorted Action="RunCode" NameClass="wManager.Wow.Bot.States.ToTown.ForceToTown = true;" /> <QuestsSorted Action="EndWhile" NameClass="" />
  11. Hello ? Is it possible to check if the character know a specific profession skill? for example: !wManager.Wow.Helpers.SpellManager.KnowSpell(2698) (Recipe Cooked Claw) https://db.rising-gods.de/?item=2698#sold-by-npc It works fine for class spells but not for professions skills. Can someone help me there please?
  12. It works!!! Thank you really much! Now I can finish my afk profiles. This is the example for a paladin on 3.3.5a for holy light rank 2 <QuestsSorted Action="While" NameClass="!wManager.Wow.Helpers.SpellManager.KnowSpell(639)" /> <QuestsSorted Action="Pulse" NameClass="PathPaladinTrainerGoldshire" /> <QuestsSorted Action="Wait" NameClass="500" /> <QuestsSorted Action="RunCode" NameClass="wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithNpc(new Vector3(-9468.14, 108.976, 57.47771), 927, 1, false);" /> <QuestsSorted Action="Wait" NameClass="500" /> <QuestsSorted Action="RunLuaCode" NameClass="BuyTrainerSkill(&quot;Holy Light&quot;)" /> <QuestsSorted Action="Wait" NameClass="500" /> <QuestsSorted Action="RunCode" NameClass="SpellManager.UpdateSpellBook();" /> <QuestsSorted Action="EndWhile" NameClass="" />
  13. Maybe it's better to explain the problem. In the file above the paladin goes to the trainer in northshire and learns the new spell "devotion aura". He uses the spell because I have unchecked "check if know spell" in my fightclass but then he will learn the spell again and again. I have the complete condition: return wManager.Wow.Helpers.SpellManager.KnowSpell(465); After I restart the bot he will go to the next task. Please excuse my bad english. ?
×
×
  • Create New...