юз ВМа

Leva

New member
подкинте скрипт на юз ВМа активного - у меня чет мозгов не хватает...
 

Leva

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();
Enabled = true;
CreateTimer(100, () => Client.IsLoggedIn && Me.BuffEndtime(3142) == 0, DoNotice);
}

void DoNotice() {
var notif = new Notification("Wild Magic", 1, System.Drawing.Color.Green, -1);
Notifications.Show(notif);
Client.UseSkill(3142);

while (Me.BuffEndtime(3142) == 0) {
if (!Enabled || !Client.IsLoggedIn)
Client.UseSkill(3142);
break;
Wait(100);
}

Notifications.Remove(notif);
}
}
 

Leva

New member
результат не моих трудов - мб подправите. Одеваю пуху с ВМ и надо сделать какое-то действие - потом ток юзается
 

DeadLine

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();
CreateTimer(500, Use_WM);
}
void Use_WM(){
if(Me.BuffEndtime(3142)==0){
Client.UseSkill(3142);
}
}
}
 
Сверху