Возврат на спот

BigChlen

New member
Код:
using System;
using System.Linq;
using System.Collections.Generic;
using NewWidget.Core;
using NewWidget.Core.Native;
using NewWidget.Core.Scripting;

public class Script : ScriptBase {

    public override void OnStart() {
        base.OnStart();
        //EnabledChanged(true, goSpot);
        CreateTimer(500, StatusDead);
    }
    
    void StatusDead()
    {
        if(Me.IsDead)
        {
            Wait(3000);
            Client.Pve.Enabled = false;
            Client.RestartPoint(RestartPointTypes.Town);
            Wait(5000);
            goSpot();
        }
    }

    void goSpot()
    {   
        //Бежим к ГК
        Client.MoveToGatekeeper();
        Wait(30000);
        
        //Ниже код из "Запись"
        //Пример
        Client.MoveToLocation(121061, -113558, -2303, 0, 15000);
        Client.MoveToLocation(120987, -113565, -2304, 0, 15000);
        Client.MoveToLocation(121272, -113576, -2304, 0, 15000);
        Client.MoveToLocation(121384, -113608, -2304, 0, 15000);
        Client.MoveToLocation(121512, -113640, -2320, 0, 15000);
        Client.MoveToLocation(121560, -113656, -2320, 0, 15000);
        Client.MoveToLocation(120987, -113565, -2304, 0, 15000);
        Client.MoveToLocation(121640, -113640, -2320, 0, 15000);
        Client.MoveToLocation(120987, -113565, -2304, 0, 15000);
        Client.MoveToLocation(120989, -113565, -2304, 0, 15000);
    }
}
 
Сверху