• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • 插件移动到指定地点

    Discussion in 'Honorbuddy 援助区' started by axi, Dec 29, 2014.

    1. axi

      axi Member

      Joined:
      May 15, 2013
      Messages:
      110
      Likes Received:
      0
      Trophy Points:
      16
      版主您好,我想在角色死亡之后移动到某一个点 我现在使用的是XYZ= 5066.804,-4044.695,39.14245 ,自己写不好,希望版主帮忙修改下,总是提示无法控制3个参数。用任务模式 总是等待复活,没办法用脚本控制(为什么去这个点,因为这个点无视复活CD 去了直接复活。)

      PHP:
      [CODE]
      using System;
      using System.Linq;
      using System.Windows.Media;
      using Styx;
      using Styx.Common;
      using Styx.Plugins;
      using Styx.WoWInternals.WoWObjects;
      using System.Drawing;
      using Levelbot.Actions.Combat;
      using Styx.Pathing;
      using Styx.Helpers;
      using System.Threading;
      using System.Diagnostics;
      using Styx.WoWInternals;
      using System.Collections.Generic;
      using System.Linq.Expressions;
      using System.IO;
      using System.Runtime.InteropServices;
      using System.Xml.Linq;
      using System.Net;
      using Styx.CommonBot;
      using Styx.CommonBot.Frames;
      namespace 
      moveHelper
      {
          public class 
      moveHelper HBPlugin {
              public static 
      LocalPlayer Me StyxWoW.Me;
              public static 
      WoWItem YUERItem;
              public 
      override string Name {get { return "moveHelper"; }}
              public 
      override string Author {get { return "moveHelper"; }}
              public 
      override Version Version {get { return new Version(88); }}
              public 
      moveHelper(){CustomNormalLog("moveHelper...");}

              public 
      override void Pulse() {        
                  if(!
      HashpBuff()) {
                      return;
                  }
                  if(!
      CanUseYUER()) {
                      return;
                  }
                  
      ClickToMove();
                  
      CustomNormalLog("moveHelper...");
              }
              public 
      void CustomNormalLog(string messageparams object[] args) {
                  
      Logging.Write(Colors.DeepSkyBlue"[moveHelper]: " messageargs);
              }
              public static 
      bool IsViable(WoWObject pWoWObject) {
                  return (
      pWoWObject != null) && pWoWObject.IsValid;
              }        


              public static 
      bool CanUseYUER() {
                  return 
      IsViable(Me) && Me.IsDead;
              }    
              
              public static 
      bool HashpBuff() {
                  return 
      Me.HasAura(8326);
              }
              public static 
      bool AtLocation(
          
      5066.804,-4044.695,39.14245
      ){
                  return ;
              }



              public static 
      void ClickToMove(){
              
      ClickToMove(AtLocation);
              }


          }
      }[/
      CODE]
       
      Last edited: Dec 29, 2014
    2. EricPhone

      EricPhone Moderator Moderator

      Joined:
      Feb 17, 2013
      Messages:
      5,665
      Likes Received:
      3
      Trophy Points:
      38
      写了这个插件也没用,任务模式的死亡处理就是跑尸或者虚弱复活,就算你用插件控制移动,他死了也是会回去跑尸的而不会跑去你这个位置
      再加上
      Code:
      public static void ClickToMove(){ 
              ClickToMove(AtLocation); 
              } 
      
      你这个代码自己调用自己,怎么可能实现到呢,你需要调用HB的走路函数,具体你去查HB的api吧
      docs.honorbuddy.com
       
      Last edited: Dec 29, 2014
    3. 6wind

      6wind New Member

      Joined:
      Sep 6, 2014
      Messages:
      16
      Likes Received:
      0
      Trophy Points:
      0
      我也在研究相同的问题
      qq371290842
       

    Share This Page