^d(\w{1})(\w{1})(?: (\w+)|)$
--dck h--Head Curare Kalmia --dee rl - Right Leg Delphinium Delphinium --dks - Kalmia Slike whichever leg is currently targetted
--d(shorthand venom)(shorthand venom) (Limb Target)
venom1 = nil venom2 = nil limbs = nil if venomtree and limbtree then venom1 = venomtree[matches[2]] venom2 = venomtree[matches[3]] if matches[4] then limbs = limbtree[matches[4]] send("dsl "..target.." "..limbs.." "..venom1.." "..venom2) else send("dsl "..target.." "..venom1.." "..venom2) end else venomtree = { a = "aconite", b = "epseth", c = "curare", d = "darkshade", e = "delphinium", g = "gecko", h = "digitalis", i = "euphorbia", k = "kalmia", m = "monkshood", p = "prefarar", r = "eurypteria", s = "slike", v = "voyria", w = "vernalis", x = "xentio", z = "epteth", } limbtree = { ll = "left leg", la = "left arm", rl = "right leg", ra = "right arm", h = "head", t = "torso",
} venom1 = venomtree[matches[2]] venom2 = venomtree[matches[3]] if matches[4] then limbs = limbtree[matches[4]] send("dsl "..target.." "..limbs.." "..venom1.." "..venom2) else send("dsl "..target.." "..venom1.." "..venom2) end end
Comments
Just a heads up in case some people copy-paste this, there's a typo at 'vernalius'