Guest User

Untitled

a guest
Jul 17th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.29 KB | None | 0 0
  1. Trigger: Harvest Bal
  2. That plant has been fully harvested.
  3. You have already harvested from this plant recently.
  4. You have recovered balance on all limbs.
  5. You find that you don't know how to harvest that. How odd.
  6. What do you wish to harvest?
  7. You don't have the skill to harvest from that plant yet.
  8.  
  9. pickPlants()
  10.  
  11. Trigger: HarvestRift
  12. ^You reach out and carefully harvest(?: \d+| a| an| some|\s+)(.+)s?\.$
  13.  
  14. if not string.find(matches[2],"pear") then
  15. send("inr all "..matches[2])
  16. else
  17. send("inr all pear")
  18. end
  19.  
  20. Trigger: harvestNewRoom
  21. You see exits leading
  22. You see a single exit
  23. There are no obvious exits.
  24.  
  25. if autoHarvest then
  26. CurrentEnv = matches[2]
  27. echo("\n")
  28. harvestBegin(CurrentEnv)
  29. end
  30.  
  31. Alias: autoHarvest
  32. ^aharv$
  33.  
  34. if not autoHarvest then
  35. autoHarvest=true
  36. else
  37. autoHarvest=false
  38. end
  39.  
  40. if not autoHarvest then
  41. cecho("\n<yellow>(<white>xTF<yellow>)<white> Auto Harvesting is Paused!")
  42. else
  43. cecho("\n<yellow>(<white>xTF<yellow>)<white> Auto Harvesting is unPaused!")
  44. end
  45.  
  46. if autoHarvest then
  47. harvestBegin(CurrentEnv)
  48. end
  49.  
  50. Script: Harvester
  51.  
  52. RoomEnv = {
  53. ["Forest"] = {"echinacea", "elm", "ginger", "ginseng", "lobelia", "myrrh"},
  54. ["Garden"] = {"echinacea", "elm", "ginger", "ginseng", "lobelia", "myrrh"},
  55. ["Desert"] = {"pear", "weed"},
  56. ["Grasslands"] = {"goldenseal", "slipper"},
  57. ["Mountains"] = {"valerian"},
  58. ["Jungle"] = {"kuzu", "kola", "skullcap"},
  59. ["Natural underground"] = {"moss", "bloodroot"},
  60. ["Hills"] = {"bayberry", "hawthorn"},
  61. ["Swamp"] = {"ash", "cohosh", "bellwort"},
  62. ["Valley"] = {"sileris"},
  63. ["Freshwater"] = {"kelp"},
  64. ["River"] = {"kelp"},
  65. ["Water"] = {"kelp"},
  66. ["Ocean"] = {"kelp"},
  67. };
  68.  
  69. gmcp.Room.Info.environment = CurrentEnv
  70. CurrentEnv = ""
  71. HarvestQueue = {
  72. };
  73.  
  74. function harvestBegin(env)
  75. for i = 1,table.maxn(RoomEnv[env]) do
  76. table.insert(HarvestQueue, RoomEnv[env][i])
  77. end
  78. cecho("\n<white>[<blue>Harvesting<white>]<grey>: Commencing Plant Snatching!")
  79. enableTrigger("HarvestBal")
  80. pickPlants()
  81. end
  82.  
  83. function pickPlants()
  84. if HarvestQueue[1] == nil then
  85. cecho("\n<white>[<blue>Harvesting<white>]<grey>: Finished Snatching Plants!")
  86. disableTrigger("HarvestBal")
  87. else
  88. send("harvest " .. HarvestQueue[1])
  89. table.remove(HarvestQueue,1)
  90. end
  91. end
Add Comment
Please, Sign In to add comment