ScripterQQ 88 Posted April 24, 2018 Share Posted April 24, 2018 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? Link to comment Share on other sites More sharing options...
ScripterQQ 88 Posted April 24, 2018 Author Share Posted April 24, 2018 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.. Link to comment Share on other sites More sharing options...
skeletonboy360 5 Posted April 25, 2018 Share Posted April 25, 2018 What is it for? Probably easier to override pulse. Link to comment Share on other sites More sharing options...
ScripterQQ 88 Posted April 25, 2018 Author Share Posted April 25, 2018 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. Link to comment Share on other sites More sharing options...
Droidz 2674 Posted April 25, 2018 Share Posted April 25, 2018 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 Link to comment Share on other sites More sharing options...
ScripterQQ 88 Posted April 25, 2018 Author Share Posted April 25, 2018 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 Link to comment Share on other sites More sharing options...
Droidz 2674 Posted April 25, 2018 Share Posted April 25, 2018 You have put "Var.GetVar<int>("counter") == 10"? Link to comment Share on other sites More sharing options...
ScripterQQ 88 Posted April 25, 2018 Author Share Posted April 25, 2018 2 hours ago, Droidz said: You have put "Var.GetVar<int>("counter") == 10"? Exactly like that without the "" Link to comment Share on other sites More sharing options...
Droidz 2674 Posted April 28, 2018 Share Posted April 28, 2018 can you share sample profile ou screenshot Link to comment Share on other sites More sharing options...
ScripterQQ 88 Posted April 30, 2018 Author Share Posted April 30, 2018 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 Link to comment Share on other sites More sharing options...
Droidz 2674 Posted May 1, 2018 Share Posted May 1, 2018 testcounterFIXED.xml ScripterQQ 1 Link to comment Share on other sites More sharing options...
ScripterQQ 88 Posted May 1, 2018 Author Share Posted May 1, 2018 Thanks Droidz working very good! Link to comment 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