Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Linq;
- using System.Threading.Tasks;
- using System.Collections.Generic;
- using NewWidget.Core;
- using NewWidget.Core.Native;
- using NewWidget.Core.Scripting;
- public class Script : ScriptBase {
- //скрипт работает по алгоритму Wc auto rebuff
- bool warding = true; // Условия на ресонг
- bool earth = true;
- //======================================
- public override void OnStart() {
- base.OnStart();
- CreateTimer(200, rebuff);
- CreateTimer(200, rebuff1);
- }
- public void rebuff(){
- var a1 = Players.FirstOrDefault(a => a.Name == "z1");
- {
- //reneval
- if (!Me.Buffs.Any(b => b.Id == 1444)){
- Client.PartyDismiss("W");
- Client.PartyInvite("zi", 0);
- }
- }
- }
- public void rebuff1(){
- var a1 = Players.FirstOrDefault(a => a.Name == "z1");
- if (Me.Buffs.Any(b => b.Id == 1444) && a1.IsPartyMate ){
- Client.PartyDismiss("zi");
- Client.PartyInvite("W", 0);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement