Jump to content

setRuleValue


'LinKin

Recommended Posts

Hello,

Today I found this on the Wiki:

setRuleValue 

I made a fast test to see how it worked but I still don't understand what it does.

addCommandHandler("ss", 
function(p, c, zz) 
    if zz == "0" then 
        local m = getRuleValue ( "myScriptRunning" ) 
        outputChatBox(tostring(m)) 
    elseif zz == "1" then 
        local m = removeRuleValue ( "myScriptRunning" ) 
        outputChatBox(tostring(m)) 
    elseif zz == "2" then 
        local m = setRuleValue ( "myScriptRunning", "yes" ) 
        outputChatBox(tostring(m)) 
    end 
end) 

What is it for? Explained in a friendly way

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...