Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //V8.3.2 -fixed bridge; fixed material not asking correctly.
- //Maybe Check to see if we even have a sign in the inventory kinda important.
- //some unused code is for future script expansion.
- &question = "TYPE OF SIGN";
- PROMPT(&signname,"$$[[LIFT,DOOR,BRIDGE,TRANSMITTER/RECIEVER]]",%&question%,true); //Initial prompt to determine type of sign to use.
- //DOOR SIGN ****************** ****************** ****************** ******************
- //DOOR SIGN ****************** ****************** ****************** ******************
- IF(%&signname%="DOOR");
- &doormaterialprompt = "DOOR Material, BLOCK ID?";
- PROMPT(&doormaterial,"$$[[SET BLOCK ID,ALREADY SET]]",%&doormaterialprompt%,true); //This sign uses materials, choose new block ID?
- IF(%&doormaterial%="SET BLOCK ID");
- &question = "TYPE OF MATERIAL";
- PROMPT(&blockid,"$$i:d",%&question%,true); //Initial prompt to determine type of material to use.
- SPLIT(":",%&blockid%,&blockidmatrix[]); //splits i:d into a matrix so i can seperate the ID.
- //SET(&blockid,%&blockidmatrix[0]%); //unnessasary right now.
- SET(#blockidcolor,%&blockidmatrix[1]%); //sets block ID color.
- #signblockmaterial = ITEMID(%&blockidmatrix[0]%); //sets block material var.
- ENDIF;
- &doorwidthprompt = "Door Width? 1-11";
- PROMPT(#doorwidth,"$$[[1,2,3,4,5,6,7,8,9,10,11]]",%&doorwidthprompt%,true); //How wide will the door be?
- &doorheightprompt = "Door Height? 1-30";
- PROMPT(&doorheight,"$$[[1,2,3,4,5,6,7,8,9,10,11,?]]",%&doorheightprompt%,true); //How Tall will the door be?
- &dooroffsetprompt = "Door Vertical Offset? (-10)-10";
- PROMPT(&dooroffset,"$$[[1,2,3,4,5,6,7,8,9,10,?]]",%&dooroffsetprompt%,true); //Offset from Sign block?
- IF(%&doorheight%="?");
- &howwide = "How TALL should the door be?";
- PROMPT(#doorheight,"$$?",%&howwide%,true); //Prompt for How tall the door should be.
- IF((%#doorheight% >= 1) && (%#doorheight% <= 30)); //Verify the height is within parameters.
- ELSE;
- LOG(ERROR out of parameters try again.);
- STOP;
- ENDIF;
- ELSE;
- SET(#doorheight,%&doorheight%); //set the door height var.
- ENDIF;
- IF(%&dooroffset%="?");
- &howoffset = "Vertical OFFSET? (-10)-10";
- PROMPT(#dooroffset,"$$?",%&howoffset%,true); //Prompt for the doors offset from the sign block.
- IF((%#dooroffset% >= -10) && (%#dooroffset% <= 10)); //Verify the offset is within parameters.
- ELSE;
- LOG(ERROR out of parameters try again.);
- STOP;
- ENDIF;
- ELSE;
- SET(#dooroffset,%&dooroffset%); //set dooroffset var.
- ENDIF;
- KEYDOWN(42); //must use shift to place on a chest or on another sign. which is why this command is here.
- WAIT(5t); //wait inserted for lag issues.
- PLACESIGN(,[MCX208],%#signblockmaterial%:%#blockidcolor%,%#doorwidth%:%#doorheight%:%#dooroffset%); //IF using the MENU, and material txt files.
- KEYUP(42); //wait inserted for lag issues.
- //DOOR SIGN ****************** ****************** ****************** ******************
- //DOOR SIGN ****************** ****************** ****************** ******************
- //BRIDGE SIGN ****************** ****************** ****************** ******************
- //BRIDGE SIGN ****************** ****************** ****************** ******************
- //I'm not going to comment the Bridge sign code as its very similear to the DOOR sign.
- ELSEIF(%&signname%="BRIDGE");
- &bridgematerial = "Bridge Material, BLOCK ID?";
- PROMPT(&bridgematerial,"$$[[SET BLOCK ID,ALREADY SET]]",%&doormaterialprompt%,true);
- IF(%&bridgematerial%="SET BLOCK ID");
- &question = "TYPE OF MATERIAL";
- PROMPT(&blockid,"$$i:d",%&question%,true); //Initial prompt to determine type of material to use.
- SPLIT(":",%&blockid%,&blockidmatrix[]); //splits i:d into a matrix so i can seperate the ID.
- SET(&blockid,%&blockidmatrix[0]%); //unnessasary right now.
- SET(#blockidcolor,%&blockidmatrix[1]%); //sets block ID color.
- #signblockmaterial = ITEMID(%&blockidmatrix[0]%); //sets block material var.
- ENDIF;
- &bridgewidthprompt = "Bridge Width? 1-11";
- PROMPT(#bridgewidth,"$$[[1,2,3,4,5,6,7,8,9,10,11]]",%&bridgewidthprompt%,true);
- &bridgelengthprompt = "Bridge Length? 1-30";
- PROMPT(&bridgelength,"$$[[1,2,3,4,5,6,7,8,9,10,11,30,?]]",%&bridgelengthprompt%,true);
- &bridgeoffsetprompt = "Bridge Vertical Offset? (-10)-10";
- PROMPT(&bridgeoffset,"$$[[-1,1,2,3,4,5,6,7,8,9,10,?]]",%&bridgeoffsetprompt%,true);
- IF(%&bridgelength%="?");
- &howlong = "How LONG should the bridge be?";
- PROMPT(#bridgelength,"$$?",%&howlong%,true);
- IF((%#bridgelength% >= 1) && (%#bridgelength% <= 30));
- ELSE;
- LOG(ERROR out of parameters try again.);
- STOP;
- ENDIF;
- ELSE;
- SET(#bridgelength,%&bridgelength%);
- ENDIF;
- IF(%&bridgeoffset%="?");
- &howoffset = "Vertical OFFSET? (-10)-10";
- PROMPT(#bridgeoffset,"$$?",%&howoffset%,true);
- IF((%#bridgeoffset% >= -10) && (%#bridgeoffset% <= 10));
- ELSE;
- LOG(ERROR out of parameters try again.);
- STOP;
- ENDIF;
- ELSE;
- SET(#bridgeoffset,%&bridgeoffset%);
- ENDIF;
- KEYDOWN(42); //must use shift to place on a chest or on another sign. which is why this command is here.
- WAIT(5t); //wait inserted for lag issues.
- PLACESIGN(,[MCX207],%#signblockmaterial%:%#blockidcolor%,%#bridgewidth%:%#bridgelength%:%#bridgeoffset%); //Bridge
- KEYUP(42); //wait inserted for lag issues.
- //BRIDGE SIGN ****************** ****************** ****************** ******************
- //BRIDGE SIGN ****************** ****************** ****************** ******************
- //LIFT SIGN ****************** ****************** ****************** ******************
- //LIFT SIGN ****************** ****************** ****************** ******************
- ELSEIF(%&signname%="LIFT");
- &liftcurrentfloorprompt = "Current floor name, 0-15Char";
- PROMPT(&liftcurrentfloor,"$$?",%&liftcurrentfloorprompt%,true); // Current floor name, this will show up in chat when you use a lift to this floor.
- &liftdirectionprompt = "up or down when right clicking the sign?";
- PROMPT(&liftdirection,"$$[[Lift,Lift Up,Lift Down]]",%&liftdirectionprompt%,true); //Lift Sign Text, what do you want the lift to do.
- &liftanytext1 = "Any text, eg.where the lift goes to, 0-15Char";
- PROMPT(&liftanytext1,"$$?",%&liftanytext1%,true); //Line 3 any text
- &liftanytext2 = "Any text,can be any text wanted on the sign, 0-15Char";
- PROMPT(&liftanytext2,"$$?",%&liftanytext2%,true); //Line 4 any text
- IFMATCHES(%&liftcurrentfloor%,"^.{0,15}$",); //Line 1, Filter to be sure entered text is within sign parameters.
- //LOG(MATCH!!!);
- ELSE;
- LOG(ERROR out of parameters try again.);
- STOP;
- ENDIF;
- IFMATCHES(%&liftanytext1%,"^.{0,15}$",); //Line 3, Filter to be sure entered text is within sign parameters.
- //LOG(MATCH!!!);
- ELSE;
- LOG(ERROR out of parameters try again.);
- STOP;
- ENDIF;
- IFMATCHES(%&liftanytext2%,"^.{0,15}$",); //Line 4, Filter to be sure entered text is within sign parameters.
- //LOG(MATCH!!!);
- ELSE;
- LOG(ERROR out of parameters try again.);
- STOP;
- ENDIF;
- KEYDOWN(42); //must use shift to place on a chest or on another sign. which is why this command is here.
- WAIT(5t); //wait inserted for lag issues.
- PLACESIGN(%&liftcurrentfloor%,[%&liftdirection%],%&liftanytext1%,%&liftanytext2%); //place Craftbook Extra Lift Sign.
- KEYUP(42); //wait inserted for lag issues.
- //LIFT SIGN ****************** ****************** ****************** ******************
- //LIFT SIGN ****************** ****************** ****************** ******************
- //TRANSMITTER SIGN ****************** ****************** ****************** ******************
- //TRANSMITTER SIGN ****************** ****************** ****************** ******************
- ELSEIF(%&signname%="TRANSMITTER/RECIEVER");
- &transmitorrecieveprompt = "Transmit or Recieve sign?";
- PROMPT(&transmitorrecieve,"$$[[Transmitter,Reciever]]",%&transmitorrecieveprompt%,true);
- &transmitterbandprompt = "Transmitter/Reciever BAND ID?";
- PROMPT(&transmitterbandset,"$$[[SET BAND,ALREADY SET,Previous BANDS BELOW,%&transmitterband0%,%&transmitterband1%,%&transmitterband2%,%&transmitterband3%]]",%&transmitterbandprompt%,true);
- IF(%&transmitorrecieve%="Transmitter"); //Line 2, Filter to be sure entered text is within sign parameters.
- SET(&transmittertype,"MC1110");
- ELSEIF(%&transmitorrecieve%="Reciever");
- SET(&transmittertype,"MC0111");
- ELSE;
- LOG(ERROR out of parameters try again.);
- STOP;
- ENDIF;
- IF(%&transmitterbandset%="SET BAND");
- &bandprompt = "Band Name for Transmitter Linking, 0-15Char";
- PROMPT(&transmitterband,"$$?",%&bandprompt%,true);
- IFMATCHES(%&transmitterband%,"\$",); //Line 3, Filter to be sure entered text is within sign parameters.
- LOG(Using $ BREAKS the script.);
- UNSET(&transmitterband);
- SET(&transmitterband,%&transmitterband0%);
- ENDIF;
- &transmitterbandarray[4]="%&transmitterbandarray[3]%";
- &transmitterbandarray[3]="%&transmitterbandarray[2]%";
- &transmitterbandarray[2]="%&transmitterbandarray[1]%";
- &transmitterbandarray[1]="%&transmitterbandarray[0]%";
- &transmitterbandarray[0]="%&transmitterband%";
- SET(&transmitterband0,%&transmitterbandarray[0]%);
- SET(&transmitterband1,%&transmitterbandarray[1]%);
- SET(&transmitterband2,%&transmitterbandarray[2]%);
- SET(&transmitterband3,%&transmitterbandarray[3]%);
- SET(&transmitterband4,%&transmitterbandarray[4]%);
- ELSEIF(%&transmitterbandset%="ALREADY SET");
- ELSEIF(%&transmitterbandset%=%&transmitterband0%);
- &transmitterband=%&transmitterband0%;
- ELSEIF(%&transmitterbandset%=%&transmitterband1%);
- &transmitterband=%&transmitterband1%;
- ELSEIF(%&transmitterbandset%=%&transmitterband2%);
- &transmitterband=%&transmitterband2%;
- ELSEIF(%&transmitterbandset%=%&transmitterband3%);
- &transmitterband=%&transmitterband3%;
- ELSE;
- LOG(NO MATCH!! ERROR out of parameters try again.);
- STOP;
- ENDIF;
- IFMATCHES(%&transmitterband%,"^.{0,15}$",);//Line 3, Filter to be sure entered text is within sign parameters.
- ELSE;
- LOG(ERROR out of parameters try again.);
- STOP;
- ENDIF;
- IFMATCHES(%&transmitteranytext4%,"^.{0,15}$",);//Line 4, Filter to be sure entered text is within sign parameters.
- ELSE;
- LOG(ERROR out of parameters try again.);
- STOP;
- ENDIF;
- KEYDOWN(42);
- WAIT(5t); //wait inserted for lag issues.
- PLACESIGN(,[%&transmittertype%],%&transmitterband%,%&transmitteranytext4%); //place Craftbook Extra Tramsmitter Sign.
- KEYUP(42);
- //TRANSMITTER SIGN ****************** ****************** ****************** ******************
- //TRANSMITTER SIGN ****************** ****************** ****************** ******************
- ELSE;
- LOG(I do Nothing Bruah);
- ENDIF;
- STOP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement