[HELP] HTML5 client, function calling

I have this in my function, however... putting something like bash_on(true); in my alias doesn't work. What am I doing wrong?:
//Gold
var gold_on = client.reflex_find_by_name('trigger', 'Gold_B');
var gold_drop = function(gold_funct){
    if(gold_funct === true){
        client.reflex_enable(gold_on);
    }else if (gold_funct === false){
        client.reflex_disable(gold_on);
    }
}
   
//Rage
//Bore
var bore_rage = function(bore_funct){
    if(bore_funct === true){
        if (totalRage >= 17){
            client.send_direct("bore " + target_1);
        }
    }
}

//Bash continue
var s_bash = client.reflex_find_by_name('trigger', 'Continue Bashing');
var bash_on = function(bash_funct){
    if(bash_funct = true){
        client.reflex_enable(s_bash);
    }else if(bash_funct = false){
        client.reflex_disable(s_bash);
    }
}
   


Comments

Sign In or Register to comment.