Guest User

Untitled

a guest
Nov 11th, 2018
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.42 KB | None | 0 0
  1. ;==================================
  2. ; Script Name: Anti Blood Oath
  3. ; Author: Felix
  4. ; Version: 3
  5. ; Client Tested with: 6.0.13
  6. ; EUO version tested with: 1.5.148
  7. ; Shard FS: UODreams
  8. ; Public Release: 27/07/2009
  9. ; Purpose: turns off war-mode, whan blood oath
  10. ; Requirments: ScanBuffBar
  11. ;===========================================
  12.  
  13. ;;;;;;;;;;SETUP
  14. set %BloodOathScanDelay 250
  15.  
  16.  
  17. ;;;;;;;DON'T EDIT
  18. set %InOldOath #false
  19. set %NextBloodOathScan #systime
  20. set %EndTurningOffWar 0
  21. set %OathId xxyyxx
  22.  
  23. loop:
  24. if %InOldOath && ( #systime <= %EndTurningOffWar || #enemyid = %OathId ) && G in #charstatus
  25. {
  26. if #enemyid = %OathId
  27. {
  28. finditem %OathId G
  29. if #findtype = IS && #findrep = 6
  30. {
  31. event property %OathId
  32. if revenant in #property
  33. set %OathId xxyyxx
  34. }
  35. if #systime > %EndTurningOffWar && #enemyid = %OathId
  36. {
  37. event exmsg #charid 0 0 OATH2
  38. set %EndTurningOffWar #systime + 2000
  39. }
  40. }
  41. while #systime <= %EndTurningOffWar && G in #charstatus
  42. {
  43. event macro 6 0
  44. set %nexttoggle #systime + 300
  45. while #systime <= %nexttoggle && G in #charstatus
  46. {
  47. sleep 10
  48. }
  49. }
  50. }
  51. if #systime >= %NextBloodOathScan
  52. gosub AntiBloodOath
  53. else
  54. sleep 20
  55. goto loop
  56.  
  57.  
  58. sub AntiBloodOath
  59. if G notin #charstatus && %InOldOath = #false
  60. {
  61. set %NextBloodOathScan #systime + %BloodOathScanDelay
  62. return
  63. }
  64. Call ScanBuffBar
  65. set %oathed _CurseBloodOath_ in %BuffBarIconNames
  66. if %oathed
  67. {
  68. if G in #charstatus
  69. {
  70. if %InOldOath = #false && #systime > %EndTurningOffWar
  71. {
  72. set %InOldOath #true
  73. set %EndTurningOffWar #systime + 2000
  74. if #enemyid <> n/a
  75. set %OathId #enemyid
  76. else
  77. set %OathId xxyyxx
  78. event exmsg #charid 0 0 OATH
  79. }
  80. }
  81. }
  82. else
  83. {
  84. if %InOldOath
  85. {
  86. set %InOldOath #false
  87. if G notin #charstatus
  88. event macro 6 0
  89. event exmsg #charid 0 0 go go go
  90. }
  91. }
  92. set %NextBloodOathScan #systime + %BloodOathScanDelay
  93. return
Advertisement
Add Comment
Please, Sign In to add comment