Help with events

FormerZmudUser
Posts: 13
Joined: Fri May 15, 2009 12:52 pm

Re: I'm confused...

Post by FormerZmudUser »

pax wrote:

Code: Select all

function eventHandlerOnPrompt(event)
       if affAnorexia == false then
          if balanceSip then
             if currentHealth < (3/4 * maxHealth) then
                send("sip health")
                balanceSip = false
             elseif currentMana < (5/8 * maxMana) then
                send("sip mana")
                balanceSip = false
             end
          elseif balaceToadstool and (currentHealth < (5/8 * maxHealth)) or (currentMana < (1/2 * maxMana)) then
             send("outr toadstool")
             send("eat toadstool")
             balanceToadstool = false
          end
       end
    end
Tried that, and it still doesn't work.
Obvious spelling error: balanceToadstool & balaceToadstool
Debug console > all :mrgreen:

Post Reply