Advertisement
Guest User

Untitled

a guest
Sep 25th, 2016
318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function(context, args) { // holds all the code for the script, context brings in stuff (still figuring this out), args brings in the commands the user give like target:""
  2.     var t = args.t; // var defines a variable. var t  in this case holds what ever the user sends with the t:"xyz" command when starting the script. in this case its what target this script should try to crack
  3.     var c = ["open", "unlock", "release"], i, r; // var defines more variables. variables are containers that hold data. "c" holds the different passwords for EZ_21. i and r are used later and decleared here.
  4.     // because hackmud only lets you save 500 characters per script when starting all variables are kept short here.
  5.    
  6.     for (i = 0; i < c.length; i++) { // for starts a loop which runs until the argument in the () complete. in this case it sets "i" to 0 and counts up one with i++ each time the loop runs. when i is larger than the length of c (the var with all the codes) the loop is over
  7.         // in here is the code run each time the loop runs
  8.        
  9.         // this is special for the hackmud. t.call uses the target given in args.t when the script was called. if you say unkown123.out is the target it gets put in where t.call is
  10.         r = t.call({ez_21:c[i]}); // the result of this is that the scripts runs the command nkown123.out {ez_21:""} with the code selected according to the loop its on.
  11.         if(r[14] !== '"') { // this goes to the 14th character in the result from the script run above. since an error always means that character is a " and success means it isnt we can use that to confirm the script found the password
  12.             return{ok:true, msg: t.name + '{ez_21:"' + c[i] + '"}'} // this is a unique thing for the game which gives a response to the user with the target and command to run to hack it, but if this is used against a target with a single lock it will clear it
  13.         } // this ends the if sentece
  14.     } // this ends the for loop
  15. } // this ends the script
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement