wthdfhdutj 0 Posted October 19, 2016 Share Posted October 19, 2016 I'd like to want to wait for a while using c# code in OverridePulseCSharpCode. My code is ... Vector3 pos1 = new Vector3(-1475.103, -226.9858, 4.822745, "Flying"); float fishRotation = 5.77f; uint itemId = 211160; if (!FishingTask.IsLaunched) { if (GoToTask.ToPosition(pos1, 1.5f)) { ObjectManager.Me.Rotation = fishRotation; ItemsManager.UseItem(itemId); FishingTask.LoopFish(); } } return true; and I want to wait for a while before using the item in my bag. Link to comment https://wrobot.eu/forums/topic/4162-quester-wait-for-a-while-in-overridepulsecsharpcode/ Share on other sites More sharing options...
KnightRyder 77 Posted October 19, 2016 Share Posted October 19, 2016 Does adding: Thread.Sleep(500); after using the item work? (may want to increase the time too) Link to comment https://wrobot.eu/forums/topic/4162-quester-wait-for-a-while-in-overridepulsecsharpcode/#findComment-19322 Share on other sites More sharing options...
wthdfhdutj 0 Posted October 23, 2016 Author Share Posted October 23, 2016 On 2016. 10. 20. at 1:22 AM, KnightRyder said: Does adding: Thread.Sleep(500); after using the item work? (may want to increase the time too) Thx. It works perfect! Link to comment https://wrobot.eu/forums/topic/4162-quester-wait-for-a-while-in-overridepulsecsharpcode/#findComment-19522 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