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

Suspending PlayDead channel ?

edwinlodz

Member
Joined
Jan 28, 2015
Messages
90
Reaction score
1
Hello i am trying to suspend channeling of PlayDead

CancelSkill() doesnt seem to work
Nor MoveForward()
Jump()
MoveTo()

nor anything i tried so far .

I seen some old pluggins had MoveForward to stop channeling but as i checked it doesnt work atm .

Is it connected to some internal Archebuddy function that suspend everything while character is undere PlayDead buff ?

Generaly i just want to code PlayDead wait 1-2 sec and get up just to lose aggro on mob .
 
Code:
if (buffTime(649) > 0 && (!isAlive() || (mpp() > 95 && hpp() > 95) || (me.isUnderWaterBreath && me.underWaterBreathTime < 20000)))
                    {
                        try
                        {
                            MoveForward(true);
                            Thread.Sleep(300);
                        }
                        finally
                        {
                            MoveForward(false);
                        }
                    }

This is code from quester plugin that cancel playdead. But you should launch this code from another thread.
So basically you can create new Task, that will cancel your playdead when its need.
Code:
new Task(CancelPlayDead).Start();
public void CancelPlayDead()
        {
            while (true)
            {
                try
                {
                    if (buffTime(649) > 0 && (!isAlive() || (mpp() > 95 && hpp() > 95) || (me.isUnderWaterBreath && me.underWaterBreathTime < 20000)))
                    {
                        try
                        {
                            MoveForward(true);
                            Thread.Sleep(300);
                        }
                        finally
                        {
                            MoveForward(false);
                        }
                    }
                    Thread.Sleep(100);
                }
                catch { }
            }
        }
 
Code:
if (buffTime(649) > 0 && (!isAlive() || (mpp() > 95 && hpp() > 95) || (me.isUnderWaterBreath && me.underWaterBreathTime < 20000)))
                    {
                        try
                        {
                            MoveForward(true);
                            Thread.Sleep(300);
                        }
                        finally
                        {
                            MoveForward(false);
                        }
                    }

This is code from quester plugin that cancel playdead. But you should launch this code from another thread.
So basically you can create new Task, that will cancel your playdead when its need.
Code:
new Task(CancelPlayDead).Start();
public void CancelPlayDead()
        {
            while (true)
            {
                try
                {
                    if (buffTime(649) > 0 && (!isAlive() || (mpp() > 95 && hpp() > 95) || (me.isUnderWaterBreath && me.underWaterBreathTime < 20000)))
                    {
                        try
                        {
                            MoveForward(true);
                            Thread.Sleep(300);
                        }
                        finally
                        {
                            MoveForward(false);
                        }
                    }
                    Thread.Sleep(100);
                }
                catch { }
            }
        }
I tried that before and it doesnt work :( Generaly tried everything that would cancel channeling it and no succes
 
I tried that before and it doesnt work Generaly tried everything that would cancel channeling it and no succes
It works in quester plugin. Looks like you doing wrong something
 
It works in quester plugin. Looks like you doing wrong something


NM i added using System.Threading but didnt add using System.Threading.Tasks;

Abit confusing though Threading does it all :)
 
Back
Top