Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- the alias
- ^envenom (\w.) with (\w.)$
- envenoming((matches[2]),(matches[3]))
- send("envenom "..matches[2].." with "..matches[3])
- -- this calls...
- -- envenoming() function
- -- while simultaneously sending the envenom command to Aetolia
- function envenoming(hand,venom)
- table.insert(_G["envenoming_"]..hand, venom)
- enableTimer("fst_envenom")
- end
- -- which turns on this 1 second timer
- envenoming_left = nil
- envenoming_right = nil
- disableTimer("fst_envenom")
- -- the command sent to Aetolia produces this line if successful
- ^You wipe some (\w+) onto .+ in your (\w+) hand using your rag\.$
- -- which runs this script
- envenom(matches[2],matches[3])
- --envenom() is
- function envenom(venom,hand)
- table.insert("wvenom_"..hand, 1, venom)
- for k,v in ipairs("envenoming_"..hand) do
- if v == matches[2] then
- table.remove("envenoming_"..hand, k)
- end
- end
- if "envenoming_"..hand == nil then
- disableTimer("fst_envenom")
- else
- enableTimer("fst_envenom")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement