mich125 8 Posted February 3, 2017 Share Posted February 3, 2017 So i made a big profile to farm a dungeon. It works great till my character dies at some point of the dungeon, then character is at the start of the dungeon. But bot wont reset to 1st step, but instead will try to go to lets say step 10 path, and will run into the wall, since its a big dungeon. Any idea how to make him reset the profile to step 1 if he dies? Log for ex, after death he continues with next step, what i want is him to start from step 1 instead, same thing when he disconnects and reconnect. [D] 08:57:25 - [Quester] RunCode[46]: xxx [F] 08:57:28 - [Spell] Cast (onself) Swiftmend (Swiftmend) 08:57:28 - [Fight] Player Attacked by [F] 08:57:29 - [Spell] Cast Bear Form (Bear Form) [F] 08:57:32 - [Spell] Cast Thrash (Thrash) [F] 08:57:34 - [Spell] Cast (onself) Rejuvenation (Rejuvenation) [F] 08:57:35 - [Spell] Cast (onself) Regrowth (Regrowth) [F] 08:57:37 - [Spell] Cast Bear Form (Bear Form) [D] 08:57:38 - [Fight] Fight stopped 08:57:38 - [Resurrect] Player dead [F] 08:57:38 - [Spell] Cast Cat Form (Cat Form) [F] 08:57:40 - [Spell] Cast (onself) Rejuvenation (Rejuvenation) [F] 08:57:42 - [Spell] Cast Cat Form (Cat Form) 08:57:46 - [Resurrect] Player retrieve corpse [D] 08:57:49 - [Quester] If[47] [D] 08:57:49 - [Quester] RunCode[51]: [D] 08:57:53 - [Quester] New step (52): GoTo10th>Pulse Since my profile is in a big while true loop, i thought maybe its possible to do smth like this: <QuestsSorted Action="While" NameClass="Conditions.InGameAndConnectedAndAliveAndProductStartedNotInPause" /> Is it possible? But i would need "else go to step 1" i think? and there is no else action avalible? @Droidz Link to comment https://wrobot.eu/forums/topic/4964-dungeon-profile-issue/ Share on other sites More sharing options...
Droidz 2738 Posted February 3, 2017 Share Posted February 3, 2017 Hello, I cannot help you without your profile, but you can try to run this code when your profile start (one time): robotManager.Events.LoggingEvents.OnAddLog += delegate(robotManager.Helpful.Logging.Log log) { if (log != null && log.Text.Contains("[Resurrect] Player retrieve corpse")) { new System.Threading.Thread(() => robotManager.Products.Products.ProductRestart()).Start(); } }; (this code stop/start quester when you retrieve your corpse) mich125 1 Link to comment https://wrobot.eu/forums/topic/4964-dungeon-profile-issue/#findComment-22996 Share on other sites More sharing options...
mich125 8 Posted February 4, 2017 Author Share Posted February 4, 2017 Damn this did the trick:D works perfectly now thx bro! Link to comment https://wrobot.eu/forums/topic/4964-dungeon-profile-issue/#findComment-23047 Share on other sites More sharing options...
sith500 13 Posted December 25, 2019 Share Posted December 25, 2019 Or: EventsLuaWithArgs.OnEventsLuaWithArgs += (LuaEventsId id, List<string> args) => { if (id == wManager.Wow.Enums.LuaEventsId.PLAYER_DEAD) { Lua.LuaDoString("StaticPopup1Button1:Click();"); robotManager.Products.Products.ProductRestart(); } }; Link to comment https://wrobot.eu/forums/topic/4964-dungeon-profile-issue/#findComment-56488 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