SHARE
TWEET

Untitled

a guest Aug 19th, 2019 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Linq;
  3. using System.Threading.Tasks;
  4. using System.Collections.Generic;
  5. using NewWidget.Core;
  6. using NewWidget.Core.Native;
  7. using NewWidget.Core.Scripting;
  8.  
  9. public class Script : ScriptBase {
  10.  
  11. //скрипт работает по алгоритму Wc auto rebuff
  12.  
  13. bool warding = true; // Условия на ресонг
  14. bool earth = true;
  15.  
  16.  
  17. //======================================
  18.  
  19. public override void OnStart() {
  20. base.OnStart();
  21. CreateTimer(200, rebuff);
  22. CreateTimer(200, rebuff1);
  23. }
  24.  
  25.  
  26. public void rebuff(){
  27. var a1 = Players.FirstOrDefault(a => a.Name == "z1");
  28. {
  29. //reneval
  30. if (!Me.Buffs.Any(b => b.Id == 1444)){
  31. Client.PartyDismiss("W");
  32. Client.PartyInvite("zi", 0);
  33. }
  34. }
  35. }
  36. public void rebuff1(){
  37. var a1 = Players.FirstOrDefault(a => a.Name == "z1");
  38. if (Me.Buffs.Any(b => b.Id == 1444) && a1.IsPartyMate ){
  39. Client.PartyDismiss("zi");
  40. Client.PartyInvite("W", 0);
  41. }
  42. }
  43. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top