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!

插件移动到指定地点

axi

Member
Joined
May 15, 2013
Messages
110
版主您好,我想在角色死亡之后移动到某一个点 我现在使用的是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(8, 8); }}
        public moveHelper(){CustomNormalLog("moveHelper...");}

        public override void Pulse() {	    
            if(!HashpBuff()) {
                return;
            }
			if(!CanUseYUER()) {
                return;
            }
            ClickToMove();
            CustomNormalLog("moveHelper...");
        }
		public void CustomNormalLog(string message, params object[] args) {
            Logging.Write(Colors.DeepSkyBlue, "[moveHelper]: " + message, args);
        }
        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:
写了这个插件也没用,任务模式的死亡处理就是跑尸或者虚弱复活,就算你用插件控制移动,他死了也是会回去跑尸的而不会跑去你这个位置
再加上
Code:
public static void ClickToMove(){ 
        ClickToMove(AtLocation); 
        }
你这个代码自己调用自己,怎么可能实现到呢,你需要调用HB的走路函数,具体你去查HB的api吧
docs.honorbuddy.com
 
Last edited:
Back
Top