What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal
RebornBuddy Forums

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Use Ghost Healer if doesn't move as Ghost for x Minutes

Kekskruemel

Member
Joined
Jan 15, 2010
Messages
236
I am currently searching a plugin which resurrect the Bot at the Ghost healer if he doesn't move for x minutes in radius x.

This is for the could not generate path to corpse problem, if the char dies in not meshed places.

So he is sitting for x minutes at the ghost healer and then the plugin fires to resurrect the char at the ghost healer.

Found something which should do the job (I have only very less programming knowledge, so maybe the functions doesn't work anymore):

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);

// Press the accept button and accept the durability loss
Lua.DoString("SelectGossipOption(1) AcceptXPLoss()");

#endregion

return;

He should also RepopMe() if he is still a ghost if he is trapped, sometimes he stuck if he is moving to the corpse.

For more "details" simple contact me if you are interested.

Thx & Greetings
 
Back
Top