April 24, 20187 yr Hello, I'm working on some quester profile but I struggle with adding a counter, I'm not so exped in C# but I believe it's something easy to do. What the quest order should look like: 1) var counter = 0 2) Pulse "quest 1" 3) var counter = counter + 1 4) If counter = 10 5) Msgbox "Counter equals to 10" 6) Go To Step "9" 7) Endif 8) Go To Step "2" 9) Pulse "quest 2" Any help?
April 24, 20187 yr Author Nevermind, I found with RunLuaCode i can just set a variable and recall/check it when necessary, easier than I thought :) EDIT: I cannot set a "If variable = X, then GoToStep" step with lua, so I'm again at the starting point, need to find a solution..
April 25, 20187 yr Author This is for a bot, using the quester profile, in order to do repetitive stuff, for example, buying gems and send them to an alt when reached a certain amount.
April 25, 20187 yr Hello, use https://wrobot.eu/forums/topic/8588-declaration-code/?do=findComment&comment=39434 (RunCode) Var.SetVar("counter", 0); (RunCode) Var.SetVar("counter", Var.GetVar<int>("counter") + 1); (If) Var.GetVar<int>("counter") == 10
April 25, 20187 yr Author I get an error CS1525: '=' is not a valid term in the expression CS1026: Expected ) symbol CS1002: Expected ; symbol CS1525: ')' is not a valid term in the expression This is when I add the IF condition
April 25, 20187 yr Author 2 hours ago, Droidz said: You have put "Var.GetVar<int>("counter") == 10"? Exactly like that without the ""
April 30, 20187 yr Author On 4/28/2018 at 7:26 PM, Droidz said: can you share sample profile ou screenshot I can't screenshot cuz it becomes black once I paste it into Photoshop, I give u directly the xml of the profile (Quester). testcounter.xml
Create an account or sign in to comment