Exemplo n.º 1
0
        private String status()
        {
            String status = "";

            if (bVerbose)
            {
                status = String.Format(
                    "questId=\"{0}\" stepId=\"{1}\" actorId=\"{10}\" x=\"{2:0}\" y=\"{3:0}\" z=\"{4:0}\" interactRange=\"{5}\" interactAttempts={11} distance=\"{6:0}\" maxSearchDistance={7} rayCastDistance={8} lastPosition={9}, isPortal={12} destinationWorldId={13}, startInteractPosition={14} completedInteractAttempts={15} interactReason={16}",
                    ZetaDia.CurrentQuest.QuestSNO, ZetaDia.CurrentQuest.StepId, X, Y, Z, InteractRange,
                    (actor != null ? actor.Distance : Position.Distance(ZetaDia.Me.Position)),
                    this.MaxSearchDistance, this.pathPointLimit, this.lastPosition, this.ActorId, this.InteractAttempts, this.IsPortal, this.DestinationWorldId, startInteractPosition, completedInteractions, interactReason);
            }
            else
            {
                status = String.Format("questId=\"{0}\" stepId=\"{1}\" x=\"{2:0}\" y=\"{3:0}\" z=\"{4:0}\" interactRange=\"{5}\" interactAttempts={11} maxSearchDistance={7} rayCastDistance={8} lastPosition={9}, actorId=\"{10}\" isPortal={11} destinationWorldId={12}",
                                       ZetaDia.CurrentQuest.QuestSNO, ZetaDia.CurrentQuest.StepId, X, Y, Z, InteractRange,
                                       this.MaxSearchDistance, this.pathPointLimit, this.lastPosition, this.ActorId, this.InteractAttempts, this.IsPortal, this.DestinationWorldId);
            }
            try
            {
                if (actor != null && actor.IsValid && actor.CommonData != null && actor.CommonData.Position != null)
                {
                    status += String.Format(" actorId=\"{0}\", Name={1} InLineOfSight={2} ActorType={3} Position= {4}",
                                            actor.ActorSNO, actor.Name, actor.InLineOfSight, actor.ActorType, QuestTools.GetProfileCoordinates(actor.Position));
                }
            }
            catch
            {
            }
            return(status);
        }
Exemplo n.º 2
0
 public void OnPulse()
 {
     LastPluginPulse = DateTime.UtcNow;
     QuestTools.Pulse();
 }