Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. Set %HealWait 5000 ; set an amount of miliseconds between each treatment,
  2. ; 5s for healing is already in the script
  3. Set %SysTimeAnat 0
  4.  
  5. Set #TargCurs 1
  6. Event Sysmessage ok Target your partner now.
  7. WaitingLoop:
  8. If #TargCurs = 1
  9. GoTo WaitingLoop
  10. Set %Partner #lTargetID
  11. Wait 10
  12.  
  13. Loop:
  14. If #SysTime > %SysTimeHeal + %HealWait
  15. GoSub Healing
  16. If #Systime > %SysTimeHeal && #Systime > %SysTimeAnat
  17. GoSub Anat
  18. GoTo Loop
  19.  
  20. Sub Healing
  21. Repeat
  22. FindItem ZLF C_ , #BackPackID
  23. if #findkind = -1
  24. {
  25. msg Stop, I dont have bandages!! $
  26. wait 1s
  27. msg Stop, I dont have bandages!! $
  28. display ok No bandages found, halting.
  29. halt
  30. }
  31. set #lObjectID #FindID
  32. set #lTargetID %partner
  33. set #lTargetKind 1
  34. Event Macro 17 ;Last Object
  35. Target 3s
  36. Until #TargCurs = 1
  37. Set %StartJournal #JINDEX
  38. Event Macro 22 ;Last Target
  39. Wait 10
  40. Set %StopJournal #JINDEX
  41. For %n %StartJournal %StopJournal
  42. {
  43. ScanJournal %n
  44. If Your_patient_is_at_full_heath. in #Journal 2
  45. Set %SysTimeHeal #SysTime
  46. Return
  47. }
  48. Set %SysTimeHeal #SysTime + 5000
  49. }
  50. Return
  51.  
  52. Sub Anat
  53. Set #lTargetID %Partner
  54. Set #lTargetKind 1
  55. Set #lSkill 1 ;Anathomy
  56. Event Macro 14
  57. Target 3s
  58. Event Macro 22 ;Last Target
  59. Set %SysTimeAnat #Systime + 11000
  60. Wait 30
  61. Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement