public abstract Boolean Execute(Profile ExecuteFrom);
public override Boolean Execute(Profile ExecuteFrom) { return true; }
public override Boolean Execute(Profile ExecuteFrom) { do { if (!ExecuteFrom.MoveTo(ExecuteFrom.D3Mail.D3Info.X, ExecuteFrom.D3Mail.D3Info.Y)) return false; ExecuteFrom.D3Cmd(IPlugin.COMMANDS.D3_Update); if (ExecuteFrom.Paused) return false; } while (this.QuestStep != ExecuteFrom.D3Mail.D3Info.QuestStep); return true; }
public override Boolean Execute(Profile ExecuteFrom) { if (ExecuteFrom.InteractBySNO(0x192A) || ExecuteFrom.InteractBySNO(0x2EEA4) || ExecuteFrom.InteractBySNO(0x36A0D)) { ExecuteFrom.D3Cmd(IPlugin.COMMANDS.D3_UseWaypoint, this.Index); Thread.Sleep(1500); } else { ExecuteFrom.Message("Waypoint not found. (" + ExecuteFrom.Name + ")"); } return true; }
public override Boolean Execute(Profile ExecuteFrom) { DateTime CurrTime = DateTime.Now; D3Sleep sleep = ExecuteFrom.D3Quest[ExecuteFrom.D3ExecuteQueueIndex] as D3Sleep; while (sleep != null && ((DateTime.Now.Ticks - CurrTime.Ticks) / 10000) < sleep.Time) { if (ExecuteFrom.Paused) return false; if (!ExecuteFrom.MoveTo(ExecuteFrom.D3Mail.D3Info.X, ExecuteFrom.D3Mail.D3Info.Y)) { break; } } return true; }
public override Boolean Execute(Profile ExecuteFrom) { return ExecuteFrom.UseTownPortal() > 0; }
public override Boolean Execute(Profile ExecuteFrom) { ExecuteFrom.D3Mail.D3Info.Settings.AttackRange = this.Yards; return true; }
public override Boolean Execute(Profile ExecuteFrom) { return ExecuteFrom.SkipScene(false); }
public override Boolean Execute(Profile ExecuteFrom) { int startResumeCount = 0; Random random = new Random(); ExecuteFrom.D3Cmd(IPlugin.COMMANDS.D3_Update); if (ExecuteFrom.D3Mail.D3Info.InGame == 1) ExecuteFrom.D3Cmd(IPlugin.COMMANDS.D3_LeaveWorld); do{ if (ExecuteFrom.Paused) return false; Thread.Sleep(1000); ExecuteFrom.D3Cmd(IPlugin.COMMANDS.D3_Update); }while (!ExecuteFrom.D3Mail.D3Info.ReadyToStartQuest); Thread.Sleep(random.Next(1500, 2500)); do { if (startResumeCount % 3 == 0) ExecuteFrom.D3Cmd(((this.StartResume == 0) ? IPlugin.COMMANDS.D3_SelectQuestStart : IPlugin.COMMANDS.D3_SelectQuestResume), this.Act, this.QuestID, this.SubQuestID, this.Difficulty, this.MonsterLevel); Thread.Sleep(random.Next(2500,3500)); ExecuteFrom.D3Cmd(IPlugin.COMMANDS.D3_Update); ++startResumeCount; } while (ExecuteFrom.D3Mail.D3Info.InGame != 1); return true; }
public override Boolean Execute(Profile ExecuteFrom) { return ExecuteFrom.MoveTo(((D3Point)ExecuteFrom.D3Quest[ExecuteFrom.D3ExecuteQueueIndex]).X, ((D3Point)ExecuteFrom.D3Quest[ExecuteFrom.D3ExecuteQueueIndex]).Y); }
public override Boolean Execute(Profile ExecuteFrom) { ExecuteFrom.D3ExecuteQueueIndex = -1; return true; }
public override Boolean Execute(Profile ExecuteFrom) { try { using (Stream stream = File.Open("DIIIBData\\Quest\\" + this.Questname + ".D3S", FileMode.Open)) { BinaryFormatter bin = new BinaryFormatter(); ExecuteFrom.D3Quest = (List<D3CMD>)bin.Deserialize(stream); } ExecuteFrom.D3ExecuteQueueIndex = -1; } catch(Exception e) { MessageBox.Show("Questscript doesn't exist", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); ExecuteFrom.Logger.Log("[" + ExecuteFrom.Name + "] StopRunning called (D3LoadQuestScript): " + e); ExecuteFrom.StopRunning(true); return false; } return true; }
public override Boolean Execute(Profile ExecuteFrom) { if (!ExecuteFrom.InteractBySNO(this.SNO_ID)) { ExecuteFrom.Message("[" + DateTime.Now.ToString("dd.MM HH:mm:ss") + "] Actor not found..."); } return true; }