Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Special script commands result in a parse error #12

Open
golyalpha opened this issue Apr 15, 2018 · 0 comments
Open

Special script commands result in a parse error #12

golyalpha opened this issue Apr 15, 2018 · 0 comments

Comments

@golyalpha
Copy link

When I try to use stuff like #D, #FMCL or #G in my script, muddler throws out:

Muddling C:\Users\uname\AppData\Roaming\hackmud\gname\scripts\crack.js

==========================================
C:/Users/uname/AppData/Roaming/hackmud/gname/scripts/crack.temp.js:14: ERROR - Parse error. '}' expected
            #D("EZ_21")
            ^

1 error(s), 0 warning(s)
==========================================

This is what the code looks like:

if(l.includes('EZ_21')) {
    #D("EZ_21")
    for(var i=0;i<EZ.length;++i) {
        g["ez_21"]=EZ[i]
        c()
        if(!f.includes('LOCK_ERROR')){
            #D("Cracked")
            l_num = l_num + 1  
            break
        }
    }
}

(Yes, it's a lock cracker)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant