svo balance help

Post Reply
Caelic
Posts: 65
Joined: Sun Nov 20, 2011 4:52 am

svo balance help

Post by Caelic »

Hey guys and gals, I'm trying to do a balance script for when I get full balance to echo once, instead of as a monk, echoing for each limb recovery.. If someone could lend me a hand in fixing this. I had some help getting what I do have, and it kind of works, but it is echoing whenever I lose balance and gain balance.

Script name: Limb_Balance

Event Handlers: svo got balance and svo lost balance
Code: [show] | [select all] lua
function Limb_Balance(eventname, data)
	if eventname == "svo got balance" and
		data ~= ("equilibrium" or "sip") then
			balance[data] = true
	elseif eventname ==  "svo lost balance" and
		data ~= ("equilibrium" or "sip") then
			balance[data] = false
	end
	if balance["leftarm"] and balance["rightarm"] then
		cecho("\n<a_darkred:black>*<orange_red:black>*<a_darkred:black>*<orange_red:black>*" .. " <a_darkred:black>B<orange_red:black>ALANCE <a_darkred:black>R<orange_red:black>ECOVERED " .. "<orange_red:black>*<a_darkred:black>*<orange_red:black>*<a_darkred:black>*\n")
	end
end
Second Script: Balance
Code: [show] | [select all] lua
balance = {
["leftarm"] = true,
["rightarm"] = true,

}

sephem
Posts: 2
Joined: Mon Nov 14, 2011 6:39 pm

Re: svo balance help

Post by sephem »

Did you ever come right with this?

I want to try and do the same thing.

Post Reply