how to use setvalue?

Avatar

By JuliusX 20 August 2019 19:43

Member · 2 comments

i want to use the new setvalue command but i dont know how to use it. please help xd


here is what i coded so far:

var scriptName = "ClickAura";
var scriptAuthor = "Soulplexis";
var scriptVersion = 1.0;

var samey = ScaffoldModule.getValue("SameY");

function ClickAura() {
    this.getName = function() {
        return "ClickAura";
    }
    this.getCategory = function() {
        return "Combat";   
    }

    this.getDescription = function() {
        return "ClickAura modification for KillAura.";
    }
	
	
	this.onUpdate = function() {
		
		if(!mc.thePlayer.onGround()) {
			
			Scaffold.setValue("samey", "true");
		
		
		}else{
			
			
			Scaffold.setValue("samey", "false");
			
		}
		
		
	}
	
	this.onDisable = function() {
	}
}

var clickAura = new ClickAura();
var clickAuraClient;

function onEnable() {
    clickAuraClient = moduleManager.registerModule(clickAura);
}

function onDisable() {
    moduleManager.unregisterModule(clickAuraClient);
}

Last edited by JuliusX (20 August 2019 19:44)

Avatar

By soulplexis 20 August 2019 21:06

Donator · 479 comments
JuliusX wrote

var scriptName = "ClickAura";
var scriptAuthor = "Soulplexis"; <------------
var scriptVersion = 1.0;


【ソルプレクサス】

Avatar

By michaelpt9 19 September 2019 17:47

Member · 97 comments

...


Config creator.

Avatar

By soulplexis 19 September 2019 18:16

Donator · 479 comments

so i think what you do is:

var ScaffoldMod = moduleManager.getModule("Scaffold");
var SameY = ScaffoldMod.getValue("SameY");

          this.onUpdate = function() {
                SameY.set(value);
           }

【ソルプレクサス】