createdby 50 Posted January 25, 2018 Share Posted January 25, 2018 (edited) hey guysi have a problem with the following quest stepI want to interact with an object and then press a buttonso far no problem after pressing the button he should jump to the next quest step but he does not do that he repeats the stepsI need a condition that he jumps to the next step if when he has pressed the button does anyone know how to do that?here the SharpCode var npcPos = new Vector3(450.2473f, 1446.444f, 741.041f); var npcID = 273292; npcPos = new Vector3(450.2473f, 1446.444f, 741.041f); npcID = 273292; GoToTask.ToPositionAndIntecractWithGameObject(npcPos, npcID, 1); Thread.Sleep(3000); Lua.LuaDoString ("QuestChoiceFrameOption1.OptionButton:Click()"); Thread.Sleep(1000); return true; and in the FullCSharpCode can i make a threadsleep timer after use a item on Npc? public sealed class AnOfferingofLight : QuestUseItemOnClass { public AnOfferingofLight() { Name = "An Offering of Light"; QuestId.Add (48559); Step.AddRange(new[] { 1, 0, 0, 0 }); HotSpots.Add(new Vector3(409.9177f, 1426.398f, 741.7526f)); ItemId = 152593; Range = 5 ; EntryIdTarget.Add(126700); Thread.Sleep(8000); // Time to wait after using the Item?? } } thanks for help best regards createdby Edited January 25, 2018 by createdby Link to comment https://wrobot.eu/forums/topic/8383-overridepulsecsharpcode-condition-question/ Share on other sites More sharing options...
Droidz 2738 Posted January 25, 2018 Share Posted January 25, 2018 Hello, it is for a quest? Link to comment https://wrobot.eu/forums/topic/8383-overridepulsecsharpcode-condition-question/#findComment-38348 Share on other sites More sharing options...
createdby 50 Posted January 25, 2018 Author Share Posted January 25, 2018 Yes this is for a quest Link to comment https://wrobot.eu/forums/topic/8383-overridepulsecsharpcode-condition-question/#findComment-38350 Share on other sites More sharing options...
createdby 50 Posted January 26, 2018 Author Share Posted January 26, 2018 any idea? Link to comment https://wrobot.eu/forums/topic/8383-overridepulsecsharpcode-condition-question/#findComment-38436 Share on other sites More sharing options...
Droidz 2738 Posted January 27, 2018 Share Posted January 27, 2018 If you put quest id, wrobot don't go to next step if quest objective is not completed. How WRobot can know when he need to go to next step? Link to comment https://wrobot.eu/forums/topic/8383-overridepulsecsharpcode-condition-question/#findComment-38487 Share on other sites More sharing options...
createdby 50 Posted January 27, 2018 Author Share Posted January 27, 2018 ok that's logicalbut how is that with my first example there I did not use a quest id Link to comment https://wrobot.eu/forums/topic/8383-overridepulsecsharpcode-condition-question/#findComment-38497 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