Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Start Herb Tracking
- enemyCanEat = os.clock()
- function EnemyHerb(name, line, wildcs)
- ate = wildcs[2]
- eater = string.lower(wildcs[1])
- if eater == TARGET then
- if (ate == "some prickly ash bark") or (ate == "a bladder slice") then
- plantEaten = "ash"
- ColourTell("White", "", TARGET)
- ColourTell("grey", "", "--------------")
- ColourTell("White", "", " ATE ASH ")
- ColourTell("grey", "", "-------------")
- ColourTell("grey", "", "--------------")
- ColourTell("White", "", " ATE ASH ")
- elseif (ate == "a goldenseal root") or (ate == "a liver slice") then
- plantEaten = "Goldenseal"
- ColourTell("White", "", TARGET)
- ColourTell("grey", "", "--------------")
- ColourTell("Yellow", "", " ATE GOLDENSEAL ")
- ColourTell("grey", "", "-------------")
- ColourTell("grey", "", "--------------")
- ColourTell("Yellow", "", " ATE GOLDENSEAL ")
- elseif (ate == "a piece of kelp") or (ate == "an eyeball slice") then
- plantEaten = "kelp"
- ColourTell("White", "", TARGET)
- ColourTell("grey", "", "--------------")
- ColourTell("Green", "", " ATE KELP ")
- ColourTell("grey", "", "-------------")
- ColourTell("grey", "", "--------------")
- ColourTell("Green", "", " ATE KELP ")
- elseif (ate == "a lobelia seed") or (ate == "a testis slice") then
- plantEaten = "lobelia"
- ColourTell("White", "", TARGET)
- ColourTell("grey", "", "--------------")
- ColourTell("Orange", "", " ATE LOBELIA ")
- ColourTell("grey", "", "-------------")
- ColourTell("grey", "", "--------------")
- ColourTell("Orange", "", " ATE LOBELIA ")
- elseif (ate == "a ginseng root") or (ate == "an ovary slice") then
- plantEaten = "ginseng"
- ColourTell("White", "", TARGET)
- ColourTell("grey", "", "--------------")
- ColourTell("Brown", "", " ATE Ginseng ")
- ColourTell("grey", "", "-------------")
- ColourTell("grey", "", "--------------")
- ColourTell("Brown", "", " ATE Ginseng ")
- elseif (ate == "a bellwort flower") or (ate == "a castorite gland slice") then
- plantEaten = "bellwort"
- ColourTell("White", "", TARGET)
- ColourTell("grey", "", "--------------")
- ColourTell("Purple", "", " ATE BELLWORT ")
- ColourTell("grey", "", "-------------")
- ColourTell("grey", "", "--------------")
- ColourTell("Purple", "", " ATE BELLWORT ")
- elseif (ate == "a bloodroot leaf") or (ate == "a lung slice") then
- plantEaten = "bloodroot"
- ColourTell("White", "", TARGET)
- ColourTell("grey", "", "--------------")
- ColourTell("Red", "", " ATE BLOODROOT ")
- ColourTell("grey", "", "-------------")
- ColourTell("grey", "", "--------------")
- ColourTell("Red", "", " ATE BLOODROOT ")
- elseif (ate == "a hawthorn berry") or (ate == "a heart slice") then
- plantEaten = "hawthorn"
- ColourTell("White", "", TARGET)
- ColourTell("grey", "", "--------------")
- ColourTell("Green", "", " ATE Hawthorn ")
- ColourTell("grey", "", "-------------")
- ColourTell("grey", "", "--------------")
- ColourTell("Green", "", " ATE Hawthorn ")
- elseif (ate == "some bayberry bark") or (ate == "a stomach slice") then
- plantEaten = "bayberry"
- ColourTell("White", "", wildcs[1])
- ColourTell("grey", "", "--------------")
- ColourTell("Grey", "", " ATE BAYBERRY ")
- ColourTell("grey", "", "-------------")
- ColourTell("grey", "", "--------------")
- ColourTell("Grey", "", " ATE BAYBERRY ")
- end --if
- end -- if
- ash={
- "sadness",
- "dementia",
- "hallucinations",
- "confusion",
- "paranoia",
- "hypersomnia",
- "hatred",
- "blood curse",
- "blighted",
- }
- Goldenseal={
- "self-pity",
- "stupidity",
- "dizziness",
- "shyness",
- "epilepsy",
- "impatience",
- "dissonance",
- "infested",
- }
- kelp={
- "baldness",
- "clumsiness",
- "weariness",
- "limp veins",
- "asthma",
- "sensitivity",
- "hypochondria",
- "blood poisoning",
- "magic_impaired"
- }
- lobelia={
- "fear of commitment",
- "recklessness",
- "masochism",
- "agoraphobia",
- "lonely",
- "vertigo",
- "claustrophobia",
- "berserk"
- }
- ginseng={
- "body odor",
- "haemophilia",
- "sunlight_allergy",
- "lethargy",
- "vomiting",
- "thin blood",
- "addiction",
- }
- bellwort={
- "overwhelming pride",
- "pacifism",
- "peace",
- "justice",
- "generosity",
- "lover's effect",
- }
- bloodroot={
- "paralysis",
- "slickness",
- "earthrot",
- "heartflutter"
- }
- hawthorn={
- "restored-hearing"
- }
- bayberry={
- "not-blind"
- }
- if plantEaten=="ash" or plantEaten=="bladder" then
- for _, key in ipairs(ash) do
- if enemyafflictionlist[key] and hasTimerExpired(enemyCanEat, 1.5)then
- enemyafflictionlist[key]=nil
- enemyCanEat = os.clock()
- end
- end
- elseif plantEaten=="bloodroot" or plantEaten=="lung" then
- for _, key in ipairs(bloodroot) do
- if enemyafflictionlist[key] and hasTimerExpired(enemyCanEat, 1.5)then
- enemyafflictionlist[key]=nil
- enemyCanEat = os.clock()
- end
- end
- elseif plantEaten=="lobelia" or plantEaten=="testis" then
- for _, key in ipairs(lobelia) do
- if enemyafflictionlist[key] and hasTimerExpired(enemyCanEat, 1.5)then
- enemyafflictionlist[key]=nil
- enemyCanEat = os.clock()
- end
- end
- elseif plantEaten=="ginseng" or plantEaten=="ovary" then
- for _, key in ipairs(ginseng) do
- if enemyafflictionlist[key] and hasTimerExpired(enemyCanEat, 1.5)then
- enemyafflictionlist[key]=nil
- enemyCanEat = os.clock()
- end
- end
- elseif plantEaten=="Goldenseal" or plantEaten=="liver" then
- for _, key in ipairs(Goldenseal) do
- if enemyafflictionlist[key] and hasTimerExpired(enemyCanEat, 1.5)then
- enemyafflictionlist[key]=nil
- enemyCanEat = os.clock()
- end
- end
- elseif plantEaten=="bellwort" or plantEaten=="castorite" then
- for _, key in ipairs(bellwort) do
- if enemyafflictionlist[key] and hasTimerExpired(enemyCanEat, 1.5)then
- enemyafflictionlist[key]=nil
- enemyCanEat = os.clock()
- end
- end
- elseif plantEaten=="kelp" or plantEaten=="eyeball" then
- for _, key in ipairs(kelp) do
- if enemyafflictionlist[key] and hasTimerExpired(enemyCanEat, 1.5)then
- enemyafflictionlist[key]=nil
- enemyCanEat = os.clock()
- end
- end
- elseif plantEaten=="hawthorn" or plantEaten=="heart" then
- for _, key in ipairs(hawthorn) do
- if enemyafflictionlist[key] and hasTimerExpired(enemyCanEat, 1.5)then
- enemyafflictionlist[key]=nil
- enemyCanEat = os.clock()
- print("fired2")
- end
- end
- elseif plantEaten=="bayberry" or plantEaten=="stomach" then
- for _, key in ipairs(bayberry) do
- if enemyafflictionlist[key] and hasTimerExpired(enemyCanEat, 1.5)then
- enemyafflictionlist[key]=nil
- enemyCanEat = os.clock()
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement