Guest User

Untitled

a guest
Jun 20th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.96 KB | None | 0 0
  1. ;==================================
  2. ; Script Name: Puda's Idoc Hunter
  3. ; Author: Puda
  4. ; Version: 2.00 menu edition
  5. ; Client Tested with: 4.0.5a
  6. ; EUO version tested with: V1.42 [Build 0099]
  7. ; Shard OSI / FS: OSI
  8. ; Revision Date: 10/15/04
  9. ; Public Release: 7/16/04
  10. ; Global Variables Used: none
  11. ; Purpose: Scanning of House signs for Decay
  12.  
  13. Initevents
  14. ignoreitem reset
  15. set %decay 0
  16. ; Set %uoam_setup to 1 if you are continuing logging Idocs from a previous session.
  17. ;Logging toggle, Set to true if you wish to create a uoam marker file to save decays.
  18. ;Set %filename to a directory and file name Example: set %filename c:idoc.map.
  19. ;After you are finished logging simply move the Idoc.map file from c:idoc.map to c:program filesuoamidoc.map.
  20. ;In UOAM CTRL+A, select the Files tab, select Add, type in IDOC, and hit OK.
  21. ;You can now also set a wav file for decay alerts.
  22. set %uoam_setup 0
  23. set %uoam true
  24. set %filename c:\idoc.map
  25. set %sound c:\easyuo\c21.wav
  26.  
  27. menu hide
  28. menu clear
  29. menu window title idoc
  30. menu window size 125 100
  31. menu window color $000000
  32. menu font color white
  33. menu font size 10
  34. menu font bgcolor $000000
  35. menu text stat 0 5 Status:
  36. menu text stat 0 25 Charx/y:
  37. menu text stat 0 45 Checking:
  38. menu text stat 0 65 Found:
  39. menu text stat 0 85 Last:
  40. menu show
  41. menu hideeuo
  42. start:
  43. gosub idoc
  44. wait 0
  45. goto start
  46.  
  47. Sub idoc
  48. top:
  49. finditem MRE_AKE_ULE_KOE_KLE_WJE_GNE_MKE_UKE_EKE_
  50. +GLE_CKE_ILE_IKE_YJE_CRE_GRE_OLE_IRE_GNE_INE_SNE_UNE_
  51. +ONE_QNE_AOE_COE_ERE_WNE_YNE_IOE_EOE_GOE_SJE_UJE_
  52. +SLE_QNE_QJE_ALE_ARE_CLE_ELE_GKE_KRE_MLE_OKE_QKE_
  53. +QJE_OJE_QJE_QLE_QNE_SKE_WKE_WLE_YLE_YKE_YQE_KKE G_12
  54. wait 0
  55. set %lastx #findx
  56. set %lasty #findy
  57. menu delete Checking
  58. menu delete charx/y
  59. menu text charx/y 55 25 #charposx #charposy
  60. menu text Checking 65 45 #findcnt
  61. if #findkind = -1
  62. {
  63. menu font color green
  64. menu text status 55 5 Ready
  65. wait 5
  66. menu font color white
  67. goto top
  68. }
  69. event property #findid
  70. if public notin #property && private notin #property
  71. {
  72. menu delete status
  73. menu font color red
  74. menu text Status 55 5 Wait
  75. wait 20
  76. menu delete status
  77. menu font color white
  78. goto top
  79. }
  80. if condition IN #property
  81. {
  82. menu delete status
  83. menu font color blue
  84. menu text Status 55 5 Decay
  85. set %decay %decay + 1
  86. menu text found 65 65 %decay
  87. menu text last 55 85 %lastx %lasty
  88. sound %sound
  89. if %uoam = true
  90. gosub log
  91. wait 40
  92. menu font color white
  93. menu delete status
  94. }
  95. if condition notin #property
  96. {
  97. menu delete status
  98. menu font color yellow
  99. menu text Status 55 5 Skipped
  100. menu font color white
  101. wait 20
  102. menu delete status
  103. }
  104. ignoreitem #findid
  105. return
  106.  
  107. Sub log
  108. if %uoam_setup = 0
  109. {
  110. execute cmd /c echo 3 >> %filename
  111. set %uoam_setup 1
  112. }
  113. set %facet #curskind + 1
  114. execute cmd /c echo +town: #findx #findy %facet Decay >> %filename
  115. return
Add Comment
Please, Sign In to add comment