public CamLoader(Client client, ProxyBase proxy, Action<string> logMethod) { this.client = client; this.proxy = proxy; this.logMethod = logMethod; InitializeComponent(); }
public override void Enable() { Host.DefaultProfile.Set(this, "test", "hello world"); client = this.Host.Client; proxy = this.Host.Proxy; proxy.ReceivedSelfAppearIncomingPacket += new ProxyBase.IncomingPacketListener(ReceivedSelfAppearIncomingPacket); proxy.ReceivedPlayerSpeechOutgoingPacket += new ProxyBase.OutgoingPacketListener(ReceivedPlayerSpeechOutgoingPacket); }
private void Start() { if (useHookProxy) { proxy = new HookProxy(client); AddHooks(); } else { client.IO.Proxy.AllowIncomingModification = false; client.IO.Proxy.AllowOutgoingModification = false; proxy = client.IO.Proxy; AddHooks(); } if (client.LoggedIn) { currentLocation = GetPlayerLocation(); } uxLog.Clear(); uxStart.Text = "Stop Map Tracking"; tracking = true; }