Hi all,
how do you resurrect in your bots? Just checking if healt is zero and then run to corpse and if at corpse than spam Enter? Or ist there something else that might help me?
Hi all,
how do you resurrect in your bots? Just checking if healt is zero and then run to corpse and if at corpse than spam Enter? Or ist there something else that might help me?
Viano
The bots that do ressurect, normally got an option to do it, if they don't got an option for it, you'd have to do it manually I guess.
If that's what you thought about.
Shoulden't this be some where else?...
Former News Team Member
Catch the PLAYER_DEAD event, call RepopMe(), run to your corpse, call RetrieveCorpse().
Here's how i do it atm it's a little dirty will make it run back in a momCode:if (ObjectManager.Me.Dead) { Lua.DoString("RepopMe()"); while(ObjectManager.Me.OutOfBounds) Thread.Sleep(500); } if (ObjectManager.Me.Ghost) { // Find the spirit healer var spirithealer = (from b in ObjectManager.NpcObjectList.Values where b.Entry == 6491 select b).FirstOrDefault(); if (spirithealer != null) { // Interact with the healer spirithealer.Interact(); } Thread.Sleep(2000); #region Dirty Region, will change it so it runs back later ;) // Press the accept button and accept the durability loss Lua.DoString("SelectGossipOption(1) AcceptXPLoss()"); if (ObjectManager.Me.Alive) { Thread.Sleep(2000); Mount.MountUp(); // Wait for 10 minutes Thread.Sleep(10000 * 60); } #endregion return; }
hope this helps
Last edited by Nesox; 07-09-2009 at 01:10 PM.
Lol. Thread sleeps ftw. That's totally not a potential performance issue or potential bug waiting to happen. *cough*
I wanted to say thank you again, I have only basic idea about reversing but with information from this forum and posted offsets I am able to write my own bot. This will help me to overcome my WoW addiction so I can say that Cypher, Kynox, Shynd and all knowledge contributors here are real heros
Will be posting screenshots soon.
Viano