Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

LiquidBounce Forum

  1. Home
  2. General Discussion
  3. A question about the script

A question about the script

Scheduled Pinned Locked Moved Solved General Discussion
13 Posts 7 Posters 3.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • PVP AzureP Offline
    PVP AzureP Offline
    PVP Azure
    wrote on last edited by
    #1
    code_text
    var script = registerScript({
        name: "StaffFinder",
        version: "1.0",
        authors: ["Azure"]
    });
    script.registerModule({
        name: "StaffFinder",
        description: "StaffFinder ByAzure",
        category: "Fun",
    }, function (module) {
              command.execute("/staff")
        });
    });
    

    May I ask where I got the syntax wrong, I want to open this script and send the command / staff regularly

    A 1 Reply Last reply
    0
    • ChocoPie_ismeC Offline
      ChocoPie_ismeC Offline
      ChocoPie_isme
      Banned
      wrote on last edited by ChocoPie_isme
      #2
      //api_version=2
      var script = registerScript({
          name: "StaffFinder",
          version: "1.0.0",
          authors: ["Azure"]
      });
      
      script.registerModule({
          name: "StaffFinder",
          category: "Fun", 
          description: "StaffFinder ByAzure"
      }, function (module) {
          module.on("update", function() {
              commandManager.executeCommand(".say /staff")
          });
      });
      

      i think this will work

      PVP AzureP 2 Replies Last reply
      1
      • PVP AzureP PVP Azure
        code_text
        var script = registerScript({
            name: "StaffFinder",
            version: "1.0",
            authors: ["Azure"]
        });
        script.registerModule({
            name: "StaffFinder",
            description: "StaffFinder ByAzure",
            category: "Fun",
        }, function (module) {
                  command.execute("/staff")
            });
        });
        

        May I ask where I got the syntax wrong, I want to open this script and send the command / staff regularly

        A Offline
        A Offline
        Aftery
        wrote on last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #4

          maybe use /party and staff nicks instead of /staff?

          1 Reply Last reply
          0
          • Sydneory ZS Offline
            Sydneory ZS Offline
            Sydneory Z
            wrote on last edited by
            #5

            I think it work! Yeah, it work! LoL! omg icedoll !1!!11!11

            1 Reply Last reply
            0
            • AzureA Offline
              AzureA Offline
              Azure
              wrote on last edited by
              #6

              who are you

              PVP AzureP 1 Reply Last reply
              0
              • AzureA Azure

                who are you

                PVP AzureP Offline
                PVP AzureP Offline
                PVP Azure
                wrote on last edited by
                #7

                @Azure o no We have the same name

                1 Reply Last reply
                0
                • ChocoPie_ismeC ChocoPie_isme
                  //api_version=2
                  var script = registerScript({
                      name: "StaffFinder",
                      version: "1.0.0",
                      authors: ["Azure"]
                  });
                  
                  script.registerModule({
                      name: "StaffFinder",
                      category: "Fun", 
                      description: "StaffFinder ByAzure"
                  }, function (module) {
                      module.on("update", function() {
                          commandManager.executeCommand(".say /staff")
                      });
                  });
                  

                  i think this will work

                  PVP AzureP Offline
                  PVP AzureP Offline
                  PVP Azure
                  wrote on last edited by
                  #8

                  @ChocoPie_isme That worked, but I want the script to close immediately after opening it
                  how to make

                  1 Reply Last reply
                  0
                  • ChocoPie_ismeC Offline
                    ChocoPie_ismeC Offline
                    ChocoPie_isme
                    Banned
                    wrote on last edited by
                    #9

                    @ChocoPie_isme said in A question about the script:

                    module.on("update", function() {
                    commandManager.executeCommand(".say /staff")
                    });

                    @PVP-Azure
                    change module.on("update" to module.on("enable"

                    1 Reply Last reply
                    0
                    • ChocoPie_ismeC ChocoPie_isme
                      //api_version=2
                      var script = registerScript({
                          name: "StaffFinder",
                          version: "1.0.0",
                          authors: ["Azure"]
                      });
                      
                      script.registerModule({
                          name: "StaffFinder",
                          category: "Fun", 
                          description: "StaffFinder ByAzure"
                      }, function (module) {
                          module.on("update", function() {
                              commandManager.executeCommand(".say /staff")
                          });
                      });
                      

                      i think this will work

                      PVP AzureP Offline
                      PVP AzureP Offline
                      PVP Azure
                      wrote on last edited by
                      #10

                      @ChocoPie_isme How to send it every 5 minutes

                      ChocoPie_ismeC 1 Reply Last reply
                      0
                      • PVP AzureP PVP Azure

                        @ChocoPie_isme How to send it every 5 minutes

                        ChocoPie_ismeC Offline
                        ChocoPie_ismeC Offline
                        ChocoPie_isme
                        Banned
                        wrote on last edited by
                        #11

                        @PVP-Azure said in A question about the script:

                        @ChocoPie_isme How to send it every 5 minutes

                        turn the module on every 5 minutes undefined

                        PVP AzureP 1 Reply Last reply
                        0
                        • ChocoPie_ismeC ChocoPie_isme

                          @PVP-Azure said in A question about the script:

                          @ChocoPie_isme How to send it every 5 minutes

                          turn the module on every 5 minutes undefined

                          PVP AzureP Offline
                          PVP AzureP Offline
                          PVP Azure
                          wrote on last edited by
                          #12

                          @ChocoPie_isme But I want him to automatically

                          CzechHekC 1 Reply Last reply
                          0
                          • PVP AzureP PVP Azure

                            @ChocoPie_isme But I want him to automatically

                            CzechHekC Offline
                            CzechHekC Offline
                            CzechHek
                            wrote on last edited by
                            #13

                            @PVP-Azure

                            module = {
                                name: "StaffFinder",
                                author: "Azure",
                                description: "StaffFinder by Azure",
                                onUpdate: function () {
                                    mc.thePlayer.sendChatMessage("/staff");
                                    StaffFinderModule.state = false;
                                }
                            }
                            
                            script.import("Core.lib");
                            
                            1 Reply Last reply
                            1

                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                            With your input, this post could be even better 💗

                            Register Login
                            Reply
                            • Reply as topic
                            Log in to reply
                            • Oldest to Newest
                            • Newest to Oldest
                            • Most Votes


                            About
                            • Terms of Service
                            • Privacy Policy
                            • Status
                            • Contact Us
                            Downloads
                            • Releases
                            • Source code
                            • License
                            Docs
                            • Tutorials
                            • CustomHUD
                            • AutoSettings
                            • ScriptAPI
                            Community
                            • Forum
                            • Guilded
                            • YouTube
                            • Twitter
                            • D.Tube
                            • Login

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • Users
                            • Groups