Advertisement
lol

DW_Lua_core

lol
Apr 6th, 2012
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 38.56 KB | None | 0 0
  1. Send("score")
  2. Execute("SETUP")
  3. -- [ Variable List ]
  4.     -- [ Afflictions ] - List from AFFLICT LIST
  5.     ablaze = false                        --ablaze.
  6.     addiction = false                     --horribly addicted.
  7.     aeon = false                          --afflicted with the curse of th ...
  8.     agoraphobia = false                   --agoraphobic.
  9.     anorexia = false                      --anorexic.
  10.     asleep = false                        --sleeping.
  11.     asthma = false                         --afflicted by horrible asthma.
  12.     attuned = false                       --$GIVER$ has attuned to you.
  13.     baldness = false                      --unnaturally bald.
  14.     belonephobia = false                  --Afflicted with belonephobia.
  15.     berserking = false                    --frothing at the mouth.
  16.     blackout = false                      --devoid of senses.
  17.     blood_curse = false                   --affected by a circulatory curse.
  18.     blood_poison = false                  --affected by a circulatory poison.
  19.     blurry_vision = false                 --confounded with blurry vision.
  20.     body_odor = false                     --rank.
  21.     burnt_eyes = false                    --fire-damaged eyes.
  22.  
  23.     claustrophobia = false                --claustrophobic.
  24.     clumsiness = false                    --afflicted with clumsiness.
  25.     commitment_fear = false               --fearful of commitment.
  26.     confusion = false                     --confused.
  27.     conviction = false                    --suffering the conviction of $G ...
  28.     cracked_ribs = false                  --suffering from a few cracked ribs.
  29.     crippled = false                      --suffering from crippled legs.
  30.     crippled_body = false                 --crippled.
  31.     crippled_throat = false               --afflicted by a crippled throat.
  32.     crushed_chest = false                 --finding it hard to breathe due ...
  33.     crushed_elbows = false                --suffering from crushed elbow j ...
  34.     crushed_kneecaps = false              --suffering from crushed kneecaps.
  35.     deadening = false                     --of a deadened mind.
  36.     dementia = false                      --demented.
  37.     destroyed_throat = false              --suffering from a crushed throat.
  38.     disfigurement = false                 --inspiring disloyalty in those  ...
  39.     disrupted = false                     --disrupted.
  40.     dissonance = false                    --has a dissonant nature.
  41.     disturb_confidence = false            --disturbed of confidence.
  42.     disturb_impulse = false               --disturbed of impulse.
  43.  
  44.     disturb_inhibition = false            --disturbed of inhibition.
  45.     disturb_sanity = false                --disturbed of sanity.
  46.     dizziness = false                     --overcome by dizziness.
  47.     edict_absorption = false              --Afflicted with edict_absorption.
  48.     edict_commandment = false             --Afflicted with edict_commandment.
  49.     edict_condemned = false               --Afflicted with edict_condemned.
  50.     edict_heretic = false                 --Afflicted with edict_heretic.
  51.     edict_imprisonment = false            --Afflicted with edict_imprisonment.
  52.     edict_reckoning = false               --Afflicted with edict_reckoning.
  53.     edict_shadowburn = false              --Afflicted with edict_shadowburn.
  54.     edict_stasis = false                  --Afflicted with edict_stasis.
  55.     edict_weakening = false               --Afflicted with edict_weakening.
  56.     effused_blackbile = false             --being effused of black bile.
  57.     effused_blood = false                 --being effused of blood.
  58.     effused_phlegm = false                --being effused of phlegm.
  59.     effused_yellowbile = false            --being effused of yellow bile.
  60.     emberbrand = false                    --marked with the Brand of the E ...
  61.     epilepsy = false                      --suffering from epilepsy.
  62.     fear = false                          --afflicted by fear.
  63.     forestbrand = false                   --an enemy of the forests.
  64.  
  65.     frozen = false                        --frozen stiff.
  66.     generosity = false                    --extremely generous.
  67.     gorged = false                        --gorged.
  68.     grappled = false                      --grappling with $GIVER$.
  69.     haemophilia = false                   --afflicted by haemophilia.
  70.     hallucinations = false                --hallucinating.
  71.     hatred = false                        --feeling intense hatred toward  ...
  72.     head_bruised = false                  --affected by a bruised head.
  73.     head_damaged = false                  --has a partially damaged head.
  74.     head_mangled = false                  --has a serious concussion.
  75.     heartflutter = false                  --suffering an irregular heartbeat.
  76.     hellsight = false                     --catching glimpses of Hell.
  77.     hubris = false                        --full of overwhelming pride.
  78.     hypersomnia = false                   --hypersomnic.
  79.     hypochondria = false                  --a certified hypochondriac.
  80.     idiocy = false                        --afflicted with the mind power  ...
  81.     impatience = false                    --impatient.
  82.     indifference = false                  --indifferent.
  83.     justice = false                       --surrounded by the aura of justice.
  84.     left_arm_amputated = false            --missing a left arm.
  85.  
  86.     left_arm_broken = false               --afflicted by a crippled left arm.
  87.     left_arm_bruised = false              --affected by a bruised left arm.
  88.     left_arm_damaged = false              --has a partially damaged left arm.
  89.     left_arm_mangled = false              --has a mangled left arm.
  90.     left_arm_numbed  = false              --Your left arm is numb.
  91.     left_leg_amputated = false            --missing a left leg.
  92.     left_leg_broken = false               --afflicted by a crippled left leg.
  93.     left_leg_bruised = false              --affected by a bruised left leg.
  94.     left_leg_damaged = false              --has a partially damaged left leg.
  95.     left_leg_mangled = false              --has a mangled left leg.
  96.     left_leg_numbed  = false              --Your left leg is numb.
  97.     lethargy = false                      --feeling rather lethargic.
  98.     lifebane = false                      --Afflicted with lifebane.
  99.     limp_veins = false                    --full of limp veins.
  100.     loneliness = false                    --very lonely.
  101.     lovers_effect = false                 --desperately in love with $GIVER$.
  102.     magic_impaired = false                --magically impaired.
  103.     masochism = false                     --masochistic.
  104.     mauled_face = false                   --unrecognizable due to a mauled ...
  105.     mental_disruption = false             --Your equilibrium has been disr ...
  106.  
  107.     mental_fatigue = false                --mentally fatigued.
  108.     mirroring = false                     --cursed with mirrored attacks.
  109.     mistbrand = false                     --marked with the Brand of the Mist.
  110.     mob_impaled = false                   --impaled by $GIVER$.
  111.     numb_arms = false                     --suffering from numb arms.
  112.     numbed_skin = false                   --suffering from numbed skin.
  113.     oiled = false                         --covered in viscous oil.
  114.     omen = false                          --Afflicted with omen.
  115.     one_eye = false                       --You have but a single eye.
  116.     pacifism = false                      --pacified.
  117.     paralysis = false                     --paralysed.
  118.     paranoia = false                      --paranoid.
  119.     peace = false                         --feeling unnaturally tranquil.
  120.     penance = false                       --suffering an imposed Penance.
  121.     petrified = false                     --petrified.
  122.     physical_disruption = false           --Your balance has been disrupted.
  123.     plodding = false                      --plodding with slow movement.
  124.     recklessness = false                  --reckless.
  125.     rend = false                          --Your flesh has been shredded.
  126.     resonance = false                     --resonanting strangely.
  127.  
  128.     right_arm_amputated = false           --missing a right arm.
  129.     right_arm_broken = false              --afflicted by a crippled right arm.
  130.     right_arm_bruised = false             --affected by a bruised right arm.
  131.     right_arm_damaged = false             --has a partially damaged right arm.
  132.     right_arm_mangled = false             --has a mangled right arm.
  133.     right_arm_numbed = false              --Your right arm is numb.
  134.     right_leg_amputated = false           --missing a right leg.
  135.     right_leg_broken = false              --afflicted by a crippled right leg.
  136.     right_leg_bruised = false             --affected by a bruised right leg.
  137.     right_leg_damaged = false             --has a partially damaged right leg.
  138.     right_leg_mangled = false             --has a mangled right leg.
  139.     right_leg_numbed = false              --Your right leg is numb.
  140.     ripped_groin = false                  --unable to clot properly with s ...
  141.     ripped_spleen = false                 --unable to clot properly with s ...
  142.     ripped_throat = false                 --unfit due to a torn throat.
  143.     sadness = false                       --somewhat unhappy.
  144.     sandrot = false                       --cursed with rotting skin.
  145.     selarnia = false                      --losing the bond with the anima ...
  146.     selfpity = false                     --full of self-pity.
  147.     sensitivity = false                   --sensitive to pain.
  148.  
  149.     shadow_coat = false                   --coated with foul shadows.
  150.     shadowbrand = false                   --marked with the Brand of the S ...
  151.     shivering = false                     --shivering.
  152.     shyness = false                       --afflicted by unbearable shyness.
  153.     slickness = false                     --extremely oily.
  154.     smashed_throat = false                --suffering from a damaged throat.
  155.     soul_poison = false                   --suffering a poisoned soul.
  156.     soulfire = false                      --Afflicted with soulfire.
  157.     soulroot = false                      --Afflicted with soulroot.
  158.     spinal_rip = false                    --in agony with a ripped spine.
  159.     spiritbrand = false                   --marked with the Brand of the S ...
  160.     stonebrand = false                    --marked with the Brand of the S ...
  161.     stun = false                          --stunned.
  162.     stupidity = false                     --unnaturally stupid.
  163.     stuttering = false                    --a stuttering fool.
  164.     sunlight_allergy = false              --allergic to sunlight.
  165.     superstition = false                  --superstitious of the abnormal.
  166.     thin_blood = false                    --afflicted by thin blood.
  167.     thorns = false                        --invaded by shadowy thorns.
  168.     throatclaw = false                    --lacking vocal cords.
  169.  
  170.     torso_bruised = false                 --affected by a bruised torso.
  171.     torso_damaged = false                 --has mild internal trauma.
  172.     torso_mangled = false                 --has serious internal trauma.
  173.     troubled_breathing = false            --having trouble breathing.
  174.     unconscious = false                   --Afflicted with unconscious.
  175.     vertigo = false                       --afraid of heights.
  176.     vinethorns = false                    --pricked by $STACKS$ groups of  ...
  177.     vitalbane = false                     --Afflicted with vitalbane.
  178.     void = false                          --within a shadowy void.
  179.     vomiting = false                      --violently ill.
  180.     voyria = false                        --suffering from voyria.
  181.     wasting = false                       --Afflicted with wasting.
  182.     weakvoid = false                      --within a weakened, shadowy void.
  183.     weariness = false                     --wearied in body.
  184.     windbrand = false                     --marked with the Brand of the Wind.
  185.     writhe_armpitlock = false             --jawlocked by the armpit.
  186.     writhe_bind = false                   --bound and tied.
  187.     writhe_impaled = false                --impaled by $GIVER$.
  188.     writhe_necklock = false               --jawlocked by the neck.
  189.     writhe_ropes = false                  --entangled in ropes.
  190.  
  191.     writhe_thighlock = false              --jawlocked by the thigh.
  192.     writhe_transfix = false               --transfixed.
  193.     writhe_vines = false                  --entangled by forest vines.
  194.     writhe_web = false                    --entangled.
  195.             --Total afflictions: 181
  196.    
  197. --[ Defenses ]
  198.     insomnia = false                    --No bal
  199.     cloak = false                       --EQ
  200.     mindseye = false                    --EQ
  201.     energetic = false                   --No bal
  202.     deaf = false                        --herb / organ
  203.     blind = false                       --herb / organ
  204.     insulation = false                  --salve / poultice
  205.     levitation = false                  --def elixir / serum
  206.     venom = false                       --def elixir / serum
  207.     frost = false                       --no bal
  208.     mass = false                        --salve / poultice
  209.     thirdeye = false                    --no bal
  210.     nightsight = false                  --no bal
  211.     underwater_breathing = false                --herb - Not needed if undead
  212.     fangbarrier = false                 --Has own balance
  213.     rebounding = false                  --Has own balance
  214.     speed = false                       --Has own balance
  215.    
  216.     --[ Class ]
  217.         xclass = "none"                 --changed variable to stop conflict with ingame command
  218.             --[ Cabalist ]
  219.             deathsight = false          --Necromancy -[ EQ ]- Beginner
  220.             nightsight = false          --Necromancy -[ no bal ]- Beginner
  221.             shroud = false              --Necromancy -[ EQ ]- Beginner
  222.             lifevision = false          --Necromancy -[ EQ ]- Beginner
  223.             soulmask = false            --Necromancy -[ EQ ]- Beginner
  224.             deathaura = false           --Necromancy -[ EQ ]- Beginner
  225.             gravechill = false          --Necromancy -[ EQ ]- Beginner
  226.             vengeance = false           --Necromancy -[ EQ ]- Beginner
  227.             blackwind = false           --Necromancy -[ EQ ]- Beginner
  228.             soulcage = false            --Necromancy -[ EQ ]- Beginner
  229.             constitution = false            --Numerology -[ EQ ]- Beginner
  230.             veil = false                --Numerology -[ EQ ]- Beginner
  231.             eshield = false             --Numerology -[ no bal ]- Beginner
  232.             elink = false               --Numerology -[ EQ ]- Beginner
  233.             spheres = false             --Numerology -[ EQ ]- Beginner
  234.             --[ Indorani ]
  235.             --[ Ascendril ]
  236.             --[ Sciomancer ]
  237.             --[ Luminary ]
  238.             --[ Teradrim ]
  239.             stonefeet = false           --Earth - Beginner
  240.             rune = false                --Earth - Beginner
  241.             shield = false              --Sand - Beginner
  242.             truesight = false           --Sand - Beginner
  243.             sand_sink = false           --Sand - Beginner
  244.             sand_armor = false          --Sand - Beginner
  245.             camouflage = false          --Sand - Beginner
  246.             golem_hide = false          --Animation - Beginner
  247.             golem_steadfast = false         --Animation - Beginner
  248.             --[ Sentaari ]
  249.             stance = false              --Tekura - Beginner
  250.             weathering = false          --Kaido - Beginner
  251.             vitality = false            --Kaido - Beginner
  252.             toughness = false           --Kaido - Beginner
  253.             resistance = false          --Kaido - Beginner
  254.             fitness = false             --Kaido - Semi - Advanced
  255.             constitution = false            --Kaido - Semi - Advanced
  256.             Immunity = false            --Kaido - Advanced
  257.             clarity = false             --Telepathy - Semi - Advanced
  258.             mind_cloak = false          --Telepathy - Advanced
  259.             --[ Daru ]
  260.             --[ Sentinel ]
  261.             --[ Druid ]
  262.             --[ Templar ]
  263.             --[ Carnifex ]
  264.             --[ Bahkatu ]
  265.             --[ Atabahi ]
  266.             mutate = false              --Lycanthropy - Beginner
  267.             nightsight = false          --Lycanthropy - Beginner
  268.             weathering = false          --Lycanthropy - Beginner
  269.             thickfur = false            --Lycanthropy - Beginner
  270.             pacing = false              --Lycanthropy - Beginner
  271.             claws_out_in = false            --Lycanthropy - Beginner
  272.             pawguard = false            --Lycanthropy - Beginner
  273.             alertness = false           --Lycanthropy - Beginner
  274.             hiding = false              --Lycanthropy - Beginner
  275.             stealth = false             --Lycanthropy - Beginner
  276.             endurance = false           --Lycanthropy - Beginner
  277.             heatsight = false           --Lycanthropy - Beginner
  278.             harden_bones = false            --Lycanthropy - Beginner
  279.             shedding = false            --Lycanthropy - Beginner
  280.             --[ Syssin ]
  281.             hidden = false              --Subterfuge - Beginner
  282.             warding = false             --Subterfuge - Beginner
  283.             pacing = false              --Subterfuge - Beginner
  284.             block = false               --Subterfuge - Beginner
  285.             shrugging = false           --Subterfuge - Beginner
  286.             shadowsight = false         --Subterfuge - Beginner
  287.             listening = false           --Subterfuge - Beginner
  288.             lipread = false             --Subterfuge - Beginner
  289.             ghost = false               --Subterfuge - Beginner
  290.             syssin_cloak = false            --Subterfuge - Beginner
  291.             darkflood = false           --Subterfuge - Beginner
  292.             weaving = false             --Subterfuge - Beginner
  293.             phase = false               --Subterfuge - Beginner
  294.             --[ Bloodborn ]
  295.             --[ Praenomen ]
  296.        
  297. --[ General ]
  298.     status = "none"         --Living or Undead
  299.     hp = nil
  300.     mp = nil
  301.     prompt_stat = nil
  302.     prompt_eqbal = nil
  303.     prompt_armbal = nil
  304.     mount = nil            
  305.     pack = nil
  306.     pot = nil
  307.     curative = nil
  308.     curative_amount = nil
  309.     target = "none"
  310.     alive = true
  311.     tat_name = nil
  312.     tat_position = nil
  313.     player = nil
  314.    
  315.         --[ Balances ]
  316.             left_arm_bal = true
  317.             right_arm_bal = true
  318.             dw_eq = nil
  319.             dw_bal = nil   
  320.             focus = nil
  321.             tree = true
  322.            
  323.             --[ Herbs/ Organs ]
  324.             herb_organ = true
  325.             moss_kidney = true
  326.             moss_eating_bal = false
  327.             --[ Pipes/ Syringes ]
  328.             pipe_syringe = true
  329.             --[ Elixir/ Serum ]
  330.             elixir_serum = true
  331.             def_elixir_serum = true
  332.             drinking_bal = false
  333.             --[ Salve/ Poultice ]
  334.             salve_poultice = true
  335.            
  336. --[ end of variable list ]
  337.  
  338. --[ Functions ]
  339.  
  340.     --[ Concoctions / Reanimation - Maker ][ Stage 1 ]
  341.     function make(curative_amount, curative)
  342.         if (curative == "immunity") then
  343.         Send("outc " ..curative_amount * 1 .. " sac")
  344.         Send("outc " ..curative_amount * 1 .. " ash")
  345.         Send("outc " ..curative_amount * 2 .. " echinacea")
  346.         Send("inpot " ..curative_amount * 1 .. " sac to " ..pot)
  347.         Send("inpot " ..curative_amount * 1 .. " ash to " ..pot)
  348.         Send("inpot " ..curative_amount * 2 .. " echinacea to " ..pot)
  349.         Send("boil " ..pot.. " for immunity")
  350.             elseif (curative == "epidermal") then
  351.             Send("outc " ..curative_amount * 2 .. " kuzu")
  352.             Send("outc " ..curative_amount * 1 .. " bloodroot")
  353.             Send("outc " ..curative_amount * 1 .. " hawthorn")
  354.             Send("outc " ..curative_amount * 1 .. " ginseng")
  355.             Send("inpot " ..curative_amount * 2 .. " kuzu to " ..pot)
  356.             Send("inpot " ..curative_amount * 1 .. " bloodroot to " ..pot)
  357.             Send("inpot " ..curative_amount * 1 .. " hawthorn to " ..pot)
  358.             Send("inpot " ..curative_amount * 1 .. " ginseng to " ..pot)
  359.             Send("boil " ..pot.. " for epidermal")
  360.             elseif (curative == "mana") then
  361.             Send("outc " ..curative_amount * 1 .. " slipper")
  362.             Send("outc " ..curative_amount * 1 .. " bellwort")
  363.             Send("outc " ..curative_amount * 1 .. " hawthorn")
  364.             Send("outc " ..curative_amount * 1 .. " bloodroot")
  365.             Send("inpot " ..curative_amount * 1 .. " slipper to " ..pot)
  366.             Send("inpot " ..curative_amount * 1 .. " bellwort to " ..pot)
  367.             Send("inpot " ..curative_amount * 1 .. " hawthorn to " ..pot)
  368.             Send("inpot " ..curative_amount * 1 .. " bloodroot to " ..pot)
  369.             Send("boil " ..pot.. " for mana")
  370.             elseif (curative == "health") then
  371.             Send("outc " ..curative_amount * 2 .. " valerian")
  372.             Send("outc " ..curative_amount * 1 .. " goldenseal")
  373.             Send("outc " ..curative_amount * 1 .. " ginseng")
  374.             Send("outc " ..curative_amount * 1 .. " myrrh")
  375.             Send("inpot " ..curative_amount * 2 .. " valerian to " ..pot)
  376.             Send("inpot " ..curative_amount * 1 .. " goldenseal to " ..pot)
  377.             Send("inpot " ..curative_amount * 1 .. " ginseng to " ..pot)
  378.             Send("inpot " ..curative_amount * 1 .. " myrrh to " ..pot)
  379.             Send("boil " ..pot.. " for health")
  380.             elseif (curative == "venom") then
  381.             Send("outc " ..curative_amount * 1 .. " sac")
  382.             Send("outc " ..curative_amount * 1 .. " cohosh")
  383.             Send("outc " ..curative_amount * 1 .. " kelp")
  384.             Send("outc " ..curative_amount * 1 .. " skullcap")
  385.             Send("inpot " ..curative_amount * 1 .. " sac to " ..pot)
  386.             Send("inpot " ..curative_amount * 1 .. " cohosh to " ..pot)
  387.             Send("inpot " ..curative_amount * 1 .. " kelp to " ..pot)
  388.             Send("inpot " ..curative_amount * 1 .. " skullcap to " ..pot)
  389.             Send("boil " ..pot.. " for venom")
  390.             elseif (curative == "frost") then
  391.             Send("outc " ..curative_amount * 1 .. " kelp")
  392.             Send("outc " ..curative_amount * 1 .. " pear")
  393.             Send("outc " ..curative_amount * 1 .. " ginseng")
  394.             Send("inpot " ..curative_amount * 1 .. " kelp to " ..pot)
  395.             Send("inpot " ..curative_amount * 1 .. " pear to " ..pot)
  396.             Send("inpot " ..curative_amount * 1 .. " ginseng to " ..pot)
  397.             Send("boil " ..pot.. " for frost")
  398.             elseif (curative == "caloric") then
  399.             Send("outc " ..curative_amount * 2 .. " kuzu")
  400.             Send("outc " ..curative_amount * 1 .. " valerian")
  401.             Send("outc " ..curative_amount * 2 .. " kelp")
  402.             Send("outc " ..curative_amount * 1 .. " bellwort")
  403.             Send("inpot " ..curative_amount * 2 .. " kuzu to " ..pot)
  404.             Send("inpot " ..curative_amount * 1 .. " valerian to " ..pot)
  405.             Send("inpot " ..curative_amount * 2 .. " kelp to " ..pot)
  406.             Send("inpot " ..curative_amount * 1 .. " bellwort to " ..pot)
  407.             Send("boil " ..pot.. " for caloric")
  408.             elseif (curative == "levitation") then
  409.             Send("outc " ..curative_amount * 2 .. " kelp")
  410.             Send("outc " ..curative_amount * 1 .. " pear")
  411.             Send("outc " ..curative_amount * 1 .. " feather")
  412.             Send("inpot " ..curative_amount * 2 .. " kelp to " ..pot)
  413.             Send("inpot " ..curative_amount * 1 .. " pear to " ..pot)
  414.             Send("inpot " ..curative_amount * 1 .. " feather to " ..pot)
  415.             Send("boil " ..pot.. " for levitation")
  416.             elseif (curative == "mending") then
  417.             Send("outc " ..curative_amount * 1 .. " dust")
  418.             Send("outc " ..curative_amount * 1 .. " kelp")
  419.             Send("outc " ..curative_amount * 1 .. " kuzu")
  420.             Send("outc " ..curative_amount * 2 .. " ginger")
  421.             Send("inpot " ..curative_amount * 1 .. " dust to " ..pot)
  422.             Send("inpot " ..curative_amount * 1 .. " kelp to " ..pot)
  423.             Send("inpot " ..curative_amount * 1 .. " kuzu to " ..pot)
  424.             Send("inpot " ..curative_amount * 2 .. " ginger to " ..pot)
  425.             Send("boil " ..pot.. " for mending")
  426.             elseif (curative == "mass") then
  427.             Send("outc " ..curative_amount * 1 .. " moss")
  428.             Send("outc " ..curative_amount * 1 .. " bloodroot")
  429.             Send("outc " ..curative_amount * 1 .. " kuzu")
  430.             Send("outc " ..curative_amount * 1 .. " dust")
  431.             Send("inpot " ..curative_amount * 1 .. " moss to " ..pot)
  432.             Send("inpot " ..curative_amount * 1 .. " bloodroot to " ..pot)
  433.             Send("inpot " ..curative_amount * 1 .. " kuzu to " ..pot)
  434.             Send("inpot " ..curative_amount * 1 .. " dust to " ..pot)
  435.             Send("boil " ..pot.. " for mass")
  436.             elseif (curative == "restoration") then
  437.             Send("outc " ..curative_amount * 2 .. " kuzu")
  438.             Send("outc " ..curative_amount * 1 .. " valerian")
  439.             Send("outc " ..curative_amount * 1 .. " bellwort")
  440.             Send("inpot " ..curative_amount * 200 .. " gold to " ..pot)
  441.             Send("inpot " ..curative_amount * 2 .. " kuzu to " ..pot)
  442.             Send("inpot " ..curative_amount * 1 .. " bloodroot to " ..pot)
  443.             Send("inpot " ..curative_amount * 1 .. " hawthorn to " ..pot)
  444.             Send("boil " ..pot.. " for restoration")
  445.             elseif (curative == "vigor") then
  446.             Send("outc " ..curative_amount * 1 .. " moss")
  447.             Send("outc " ..curative_amount * 2 .. " dust")
  448.             Send("outc " ..curative_amount * 1 .. " shard")
  449.             Send("inpot " ..curative_amount * 1 .. " moss to " ..pot)
  450.             Send("inpot " ..curative_amount * 2 .. " dust to " ..pot)
  451.             Send("inpot " ..curative_amount * 1 .. " shard to " ..pot)
  452.             Send("boil " ..pot.. " for vigor")
  453.             elseif (curative == "calmative") then
  454.             Send("outc " ..curative_amount * 1 .. " redink")
  455.             Send("outc " ..curative_amount * 3 .. " bladder_slice")
  456.             Send("inca " ..curative_amount * 1 .. " redink to " ..pot)
  457.             Send("inca " ..curative_amount * 3 .. " bladder_slice to " ..pot)
  458.             Send("ferment " ..pot)
  459.             elseif (curative == "analeptic") then
  460.             Send("outc " ..curative_amount * 1 .. " redink")
  461.             Send("outc " ..curative_amount * 3 .. " liver_slice")
  462.             Send("outc " ..curative_amount * 3 .. " ovary_slice")
  463.             Send("inca " ..curative_amount * 1 .. " redink to " ..pot)
  464.             Send("inca " ..curative_amount * 3 .. " liver_slice to " ..pot)
  465.             Send("inca " ..curative_amount * 3 .. " ovary_slice to " ..pot)
  466.             Send("ferment " ..pot)
  467.             elseif (curative == "stimulant") then
  468.             Send("outc " ..curative_amount * 1 .. " yellowink")
  469.             Send("outc " ..curative_amount * 3 .. " lung_slice")
  470.             Send("outc " ..curative_amount * 3 .. " castorite_slice")
  471.             Send("inca " ..curative_amount * 1 .. " yellowink to " ..pot)
  472.             Send("inca " ..curative_amount * 3 .. " lung_slice to " ..pot)
  473.             Send("inca " ..curative_amount * 3 .. " castorite_slice to " ..pot)
  474.             Send("ferment " ..pot)
  475.             elseif (curative == "carminative") then
  476.             Send("outc " ..curative_amount * 1 .. " redink")
  477.             Send("outc " ..curative_amount * 3 .. " eyeball_slice")
  478.             Send("outc " ..curative_amount * 3 .. " tongue_slice")
  479.             Send("inca " ..curative_amount * 1 .. " redink to " ..pot)
  480.             Send("inca " ..curative_amount * 3 .. " eyeball_slice to " ..pot)
  481.             Send("inca " ..curative_amount * 3 .. " tongue_slice to " ..pot)
  482.             Send("ferment " ..pot)
  483.             elseif (curative == "refrigerative") then
  484.             Send("outc " ..curative_amount * 1 .. " yellowink")
  485.             Send("outc " ..curative_amount * 3 .. " stomach_slice")
  486.             Send("inca " ..curative_amount * 1 .. " yellowink to " ..pot)
  487.             Send("inca " ..curative_amount * 3 .. " stomach_slice to " ..pot)
  488.             Send("ferment " ..pot)
  489.             elseif (curative == "euphoric") then
  490.             Send("outc " ..curative_amount * 1 .. " yellowink")
  491.             Send("outc " ..curative_amount * 1 .. " greenink")
  492.             Send("outc " ..curative_amount * 6 .. " kidney_slice")
  493.             Send("inca " ..curative_amount * 1 .. " yellowink to " ..pot)
  494.             Send("inca " ..curative_amount * 1 .. " greenink to " ..pot)
  495.             Send("inca " ..curative_amount * 6 .. " kidney_slice to " ..pot)
  496.             Send("ferment " ..pot)
  497.             elseif (curative == "nervine") then
  498.             Send("outc " ..curative_amount * 2 .. " purpleink")
  499.             Send("outc " ..curative_amount * 1 .. " blueink")
  500.             Send("outc " ..curative_amount * 3 .. " bone_slice")
  501.             Send("inca " ..curative_amount * 2 .. " purpleink to " ..pot)
  502.             Send("inca " ..curative_amount * 1 .. " blueink to " ..pot)
  503.             Send("inca " ..curative_amount * 3 .. " bone_slice to " ..pot)
  504.             Send("ferment " ..pot)
  505.             elseif (curative == "sudorific") then
  506.             Send("outc " ..curative_amount * 3 .. " pineal_slice")
  507.             Send("inca " ..curative_amount * 3 .. " pineal_slice to " ..pot)
  508.             Send("ferment " ..pot)
  509.             elseif (curative == "antispasmadic") then
  510.             Send("outc " ..curative_amount * 3 .. " eyeball_slice")
  511.             Send("outc " ..curative_amount * 3 .. " heart_slice")
  512.             Send("inca " ..curative_amount * 3 .. " eyeball_slice to " ..pot)
  513.             Send("inca " ..curative_amount * 3 .. " heart_slice to " ..pot)
  514.             Send("ferment " ..pot)
  515.             elseif (curative == "demulcent") then
  516.             Send("outc " ..curative_amount * 3 .. " tumor_slice")
  517.             Send("inca " ..curative_amount * 3 .. " tumor_slice to " ..pot)
  518.             Send("ferment " ..pot)
  519.             elseif (curative == "oculi") then
  520.             Send("outc " ..curative_amount * 2 .. " blueink")
  521.             Send("outc " ..curative_amount * 1 .. " redink")
  522.             Send("outc " ..curative_amount * 1 .. " eyeball_slice")
  523.             Send("annoint " ..curative_amount.. " eyeball_slice with blue")
  524.             Send("annoint " ..curative_amount.. " eyeball_slice with blue")
  525.             Send("annoint " ..curative_amount.. " eyeball_slice with red")
  526.             elseif (curative == "fumeae") then
  527.             Send("outc " ..curative_amount * 1 .. " blueink")
  528.             Send("outc " ..curative_amount * 1 .. " redink")
  529.             Send("outc " ..curative_amount * 1 .. " yellowink")
  530.             Send("outc " ..curative_amount * 1 .. " sulphurite_slice" )
  531.             Send("annoint " ..curative_amount.. " sulphurite_slice with yellow")
  532.             Send("annoint " ..curative_amount.. " sulphurite_slice with blue")
  533.             Send("annoint " ..curative_amount.. " sulphurite_slice with red")
  534.             elseif (curative == "orbis") then
  535.             Send("outc " ..curative_amount * 2 .. " blueink")
  536.             Send("outc " ..curative_amount * 1 .. " greenink")
  537.             Send("outc " ..curative_amount * 1 .. " testis_slice")
  538.             Send("annoint " ..curative_amount.. " testis_slice with blue")
  539.             Send("annoint " ..curative_amount.. " testis_slice with blue")
  540.             Send("annoint " ..curative_amount.. " testis_slice with green")
  541.             elseif (curative == "pueri") then
  542.             Send("outc " ..curative_amount * 1 .. " yellowink")
  543.             Send("outc " ..curative_amount * 1 .. " greenink")
  544.             Send("outc " ..curative_amount * 1 .. " purpleink")
  545.             Send("outc " ..curative_amount * 1 .. " ovary_slice")
  546.             Send("annoint " ..curative_amount.. " ovary_slice with yellow")
  547.             Send("annoint " ..curative_amount.. " ovary_slice with green")
  548.             Send("annoint " ..curative_amount.. " ovary_slice with purple")
  549.             elseif (curative == "jecis") then
  550.             Send("outc " ..curative_amount * 1 .. " goldink")
  551.             Send("outc " ..curative_amount * 1 .. " greenink")
  552.             Send("outc " ..curative_amount * 1 .. " purpleink")
  553.             Send("outc " ..curative_amount * 1 .. " liver_slice")
  554.             Send("annoint " ..curative_amount.. " liver_slice with gold")
  555.             Send("annoint " ..curative_amount.. " liver_slice with green")
  556.             Send("annoint " ..curative_amount.. " liver_slice with purple")
  557.             elseif (curative == "ebrius") then
  558.             Send("outc " ..curative_amount * 30 .. " testis_slice")
  559.             Send("inca " ..curative_amount * 30 .. " testis_slice")
  560.             Send("ferment " ..pot)
  561.         end
  562.     end
  563.    
  564.     --[ Tat'ter ]
  565.     function tat(tat_name, tat_position, player)
  566.         if (tat_position == "h") then
  567.             tat_position = "head"
  568.             elseif(tat_position == "t") then
  569.             tat_position = "torso"
  570.             elseif(tat_position == "la") then
  571.             tat_position = "left arm"
  572.             elseif(tat_position == "ra") then
  573.             tat_position = "right arm"
  574.             elseif(tat_position == "ll") then
  575.             tat_position = "left leg"
  576.             elseif(tat_position == "rl") then
  577.             tat_position = "right leg"
  578.         end
  579.             if (tat_name == "firefly") then
  580.                 Send("outc yellow")
  581.                 Send("ink " ..tat_name.. " on " ..tat_position.. " of " ..player)
  582.                 elseif (tat_name == "moss") then
  583.                 Send("outc yellow")
  584.                 Send("outc blue")
  585.                 Send("outc red")
  586.                 Send("ink " ..tat_name.. " on " ..tat_position.. " of " ..player)
  587.                 elseif (tat_name == "feather") then
  588.                 Send("outc 2 blue")
  589.                 Send("outc red")
  590.                 Send("ink " ..tat_name.. " on " ..tat_position.. " of " ..player)
  591.                 elseif (tat_name == "shield") then
  592.                 Send("outc 2 red")
  593.                 Send("outc green")
  594.                 Send("ink " ..tat_name.. " on " ..tat_position.. " of " ..player)
  595.                 elseif (tat_name == "mindseye") then
  596.                 Send("outc 2 blue")
  597.                 Send("outc green")
  598.                 Send("ink " ..tat_name.. " on " ..tat_position.. " of " ..player)
  599.                 elseif (tat_name == "hammer") then
  600.                 Send("outc 2 red")
  601.                 Send("outc purple")
  602.                 Send("ink " ..tat_name.. " on " ..tat_position.. " of " ..player)
  603.                 elseif (tat_name == "cloak") then
  604.                 Send("outc 3 blue")
  605.                 Send("ink " ..tat_name.. " on " ..tat_position.. " of " ..player)
  606.                 elseif (tat_name == "bell") then
  607.                 Send("outc 2 red")
  608.                 Send("outc 3 blue")
  609.                 Send("ink " ..tat_name.. " on " ..tat_position.. " of " ..player)
  610.                 elseif (tat_name == "crystal") then
  611.                 Send("outc purple")
  612.                 Send("outc yellow")
  613.                 Send("outc green")
  614.                 Send("ink " ..tat_name.. " on " ..tat_position.. " of " ..player)
  615.                 elseif (tat_name == "moon") then
  616.                 Send("outc red")
  617.                 Send("outc blue")
  618.                 Send("outc yellow")
  619.                 Send("ink " ..tat_name.. " on " ..tat_position.. " of " ..player)
  620.                 elseif (tat_name == "starburst") then
  621.                 Send("outc blue")
  622.                 Send("ink " ..tat_name.. " on " ..tat_position.. " of " ..player)
  623.                 elseif (tat_name == "boar") then
  624.                 Send("outc 2 red")
  625.                 Send("outc purple")
  626.                 Send("ink " ..tat_name.. " on " ..tat_position.. " of " ..player)
  627.                 elseif (tat_name == "web") then
  628.                 Send("outc yellow")
  629.                 Send("outc green")
  630.                 Send("ink " ..tat_name.. " on " ..tat_position.. " of " ..player)
  631.                 elseif (tat_name == "tentacle") then
  632.                 Send("outc 2 green")
  633.                 Send("outc purple")
  634.                 Send("ink " ..tat_name.. " on " ..tat_position.. " of " ..player)
  635.                 elseif (tat_name == "hourglass") then
  636.                 Send("outc 2 yellow")
  637.                 Send("outc blue")
  638.                 Send("ink " ..tat_name.. " on " ..tat_position.. " of " ..player)
  639.                 elseif (tat_name == "owl") then
  640.                 Send("outc 2 red")
  641.                 Send("outc blue")
  642.                 Send("outc purple")
  643.                 Send("ink " ..tat_name.. " on " ..tat_position.. " of " ..player)
  644.                 elseif (tat_name == "brazier") then
  645.                 Send("outc 2 red")
  646.                 Send("outc 2 yellow")
  647.                 Send("ink " ..tat_name.. " on " ..tat_position.. " of " ..player)
  648.                 elseif (tat_name == "prism") then
  649.                 Send("outc red")
  650.                 Send("outc green")
  651.                 Send("outc blue")
  652.                 Send("outc yellow")
  653.                 Send("outc purple")
  654.                 Send("ink " ..tat_name.. " on " ..tat_position.. " of " ..player)
  655.                 elseif (tat_name == "tree") then
  656.                 Send("outc 5 green")
  657.                 Send("ink " ..tat_name.. " on " ..tat_position.. " of " ..player)
  658.                 elseif (tat_name == "mountain") then
  659.                 Send("outc green")
  660.                 Send("outc blue")
  661.                 Send("outc goldink")
  662.                 Send("ink " ..tat_name.. " on " ..tat_position.. " of " ..player)
  663.                 elseif (tat_name == "chameleon") then
  664.                 Send("outc goldink")
  665.                 Send("outc purple")
  666.                 Send("outc yellow")
  667.                 Send("ink " ..tat_name.. " on " ..tat_position.. " of " ..player)
  668.                 return tat_name, tat_position, player
  669.         end
  670.     end
  671.    
  672.     --[ Prompt Check ][ health, mana, and prompt_stats ]
  673.     function check(hp, mp, prompt_stat)
  674.         return hp, mp, prompt_stat
  675.     end
  676.    
  677.     --[ Balance Check ][ prompt_eqbal, prompt_armbal ]
  678.     function check_bal(prompt_eqbal, prompt_armbal)
  679.         return prompt_eqbal, prompt_armbal
  680.     end
  681.    
  682.     --[ CanEat ]
  683.     function canEat()
  684.         return (aeon == false) and
  685.         (anorexia == false) and
  686.         (stun == false) and
  687.         (asleep == false) and
  688.         (unconscious == false) and
  689.         (indifference == false) and
  690.         (writhe_armpitlock == false) and
  691.         (writhe_bind == false) and
  692.         (writhe_impaled == false) and
  693.         (writhe_necklock == false) and
  694.         (writhe_ropes == false) and
  695.         (writhe_thighlock == false) and
  696.         (writhe_transfix == false) and
  697.         (writhe_vines == false) and
  698.         (writhe_web == false)
  699.     end
  700.    
  701.     --[ AutoClot ]
  702.     function autoClot()
  703.         if (stun == false) and
  704.            (indifference == false) and
  705.            (unconscious == false) and
  706.            (asleep == false) then
  707.                 if (bleeding > 200) and
  708.                 (mp > 50) then
  709.                 Execute ("clot 10")
  710.                     elseif (bleeding > 110) and
  711.                         (mp > 50) then
  712.                         Execute ("clot 5")
  713.                             elseif (bleeding > 70) and
  714.                             (mp > 50) then
  715.                             Execute ("clot")
  716.                 end
  717.         end
  718.     end
  719.  
  720.      --[ Healer ][ Elixir_Serum / Moss_Kidney ]
  721.     function stage1_healer()
  722.         check(hp, mp, prompt_stat)
  723.                  if (hp < 85) then
  724.                    if (status == "living") and
  725.                           (drinking_bal == false) and
  726.                           (elixir_serum == true) then
  727.                           canEat()
  728.                           Send("sip health")
  729.                           drinking_bal = true
  730.                           DoAfterSpecial (.3, 'drinking_bal = false', sendto.script)
  731.                   elseif(status == "living") and
  732.                           (elixir_serum == false) and
  733.                           (moss_eating_bal == false) and
  734.                           (moss_kidney == true) then
  735.                           canEat()
  736.                           Send("outc moss")
  737.                           Send("eat moss")
  738.                           moss_eating_bal = true
  739.                           DoAfterSpecial (.3, 'moss_eating_bal = false', sendto.script)
  740.                   elseif(status == "undead") and
  741.                           (drinking_bal == false) and
  742.                           (elixir_serum == true) then
  743.                           canEat()
  744.                           Send("stick analeptic")
  745.                           drinking_bal = true
  746.                           DoAfterSpecial (.3, 'drinking_bal = false', sendto.script)
  747.                   elseif(status == "undead") and
  748.                           (elixir_serum == false) and
  749.                           (moss_eating_bal == false) and
  750.                           (moss_kidney == true) then
  751.                           canEat()
  752.                           Send("outc kidney_slice")
  753.                           Send("eat kidney_slice")
  754.                           moss_eating_bal = true
  755.                           DoAfterSpecial (.3, 'moss_eating_bal = false', sendto.script)
  756.                     end
  757.                 end
  758.                 if (mp < 85) then
  759.                    if (status == "living") and
  760.                           (drinking_bal == false) and
  761.                           (elixir_serum == true) then
  762.                           canEat()
  763.                           Send("sip mana")
  764.                           drinking_bal = true
  765.                           DoAfterSpecial (.3, 'drinking_bal = false', sendto.script)
  766.                   elseif(status == "living") and
  767.                           (elixir_serum == false) and
  768.                           (moss_eating_bal == false) and -- Tada, moss fixed too.
  769.                           (moss_kidney == true) then
  770.                           canEat()
  771.                           Send("outc moss")
  772.                           Send("eat moss")
  773.                           moss_eating_bal = true
  774.                           DoAfterSpecial (.3, 'moss_eating_bal = false', sendto.script)
  775.                   elseif(status == "undead") and
  776.                           (drinking_bal == false) and
  777.                           (elixir_serum == true) then
  778.                           canEat()
  779.                           Send("stick stimulant")
  780.                           drinking_bal = true
  781.                           DoAfterSpecial (.3, 'drinking_bal = false', sendto.script)
  782.                   elseif(status == "undead") and
  783.                           (elixir_serum == false) and
  784.                           (moss_eating_bal == false) and
  785.                           (moss_kidney == true) then
  786.                           canEat()
  787.                           Send("outc kidney_slice")
  788.                           Send("eat kidney_slice")
  789.                           moss_eating_bal = true
  790.                           DoAfterSpecial (.3, 'moss_eating_bal = false', sendto.script)
  791.                           return
  792.                         end
  793.                 end
  794.         end
  795.  
  796.     --[ Class Basher ]
  797.     function bash()
  798.         if (xclass == "Lycanthrope") and
  799.         (prompt_armbal == "lr") then
  800.         check_bal(prompt_eqbal, prompt_armbal)
  801.         Send("combo " ..target.. " claw claw")
  802.             elseif (xclass == "Syssin") and
  803.                 (prompt_eqbal == "eb") then
  804.                 check_bal(prompt_eqbal, prompt_armbal)
  805.                 Send("garrote " ..target)
  806.                 elseif (xclass == "Monk") and
  807.                 (prompt_armbal == "lr") then
  808.                  if (prompt_eqbal == "eb") or
  809.                     (prompt_eqbal == "-b") then
  810.                     check_bal(prompt_eqbal, prompt_armbal)
  811.                     Send("combo " ..target.. " sdk ucp ucp")
  812.                  end
  813.                  elseif (xclass == "Cabalist") then
  814.                     if (prompt_eqbal == "eb") or
  815.                     (prompt_eqbal == "e-") then
  816.                     check_bal(prompt_eqbal, prompt_armbal)
  817.                     Send("decay " ..target)
  818.                     end
  819.                     elseif (xclass == "Ascendril") then
  820.                         if (prompt_eqbal == "eb") or
  821.                         (prompt_eqbal == "e-") then
  822.                         check_bal(prompt_eqbal, prompt_armbal)
  823.                         Send("staffcast dissolution at " ..target)
  824.                         end
  825.                         elseif (xclass == "Teradrim") then
  826.                             if (prompt_eqbal == "eb") or
  827.                             (prompt_eqbal == "e-") then
  828.                             check_bal(prompt_eqbal, prompt_armbal)
  829.                             Send("sand shred " ..target)
  830.                             end
  831.             end
  832.     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement