Alchemist Imbibe Alias for Mudlet

Home Forums MUD Clients Alchemist Imbibe Alias for Mudlet

Viewing 0 reply threads
  • Author
    Posts
    • #2938
      mosheh
      Keymaster
      
      Submitted by Cheeky:
      
      cmdText = "imbibe"
      buffArr = {
        "cunning", "endurance", "grace", "shield", "blur"
      }
      
      -----------------
      -- do not edit --
      -----------------
      
      function cycleBuffs()
        if buffNum < table.maxn(buffArr) then
          tempTimer(6, [[send(cmdText .. " '" .. buffArr[buffNum] .. "'");cycleBuffs()]])
          buffNum = buffNum + 1
        else
          buffNum = 1
          isBuffing = false
          echo "--- BUFFING FINISHING ---"
        end
      end
      
      if isBuffing == null then
        isBuffing = false
      end
      
      if isBuffing == false then
        echo "--- STARTING BUFFS ---"
        buffNum = 1
        isBuffing = true
        send(cmdText .. " '" .. buffArr[buffNum] .. "'")
        cycleBuffs()
      else
        echo "You are already buffing."
      end
      
      • This topic was modified 4 years, 8 months ago by mosheh.
Viewing 0 reply threads
  • You must be logged in to reply to this topic.