CCBlueX Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Solved A question about the script

    General Discussion
    7
    13
    230
    Loading More Posts
    • 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 Azure
      PVP Azure last edited by

      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 Reply Quote 0
      • ChocoPie_isme
        ChocoPie_isme Banned last edited by 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 Azure 2 Replies Last reply Reply Quote 1
        • ChocoPie_isme
          ChocoPie_isme Banned last edited by 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 Azure 2 Replies Last reply Reply Quote 1
          • A
            Aftery @PVP Azure last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • ?
              A Former User last edited by

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

              1 Reply Last reply Reply Quote 0
              • Sydneory Z
                Sydneory Z last edited by

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

                1 Reply Last reply Reply Quote 0
                • Azure
                  Azure last edited by

                  who are you

                  PVP Azure 1 Reply Last reply Reply Quote 0
                  • PVP Azure
                    PVP Azure @Azure last edited by

                    @Azure o no We have the same name

                    1 Reply Last reply Reply Quote 0
                    • PVP Azure
                      PVP Azure @ChocoPie_isme last edited by

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

                      1 Reply Last reply Reply Quote 0
                      • ChocoPie_isme
                        ChocoPie_isme Banned last edited by

                        @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 Reply Quote 0
                        • PVP Azure
                          PVP Azure @ChocoPie_isme last edited by

                          @ChocoPie_isme How to send it every 5 minutes

                          ChocoPie_isme 1 Reply Last reply Reply Quote 0
                          • ChocoPie_isme
                            ChocoPie_isme Banned @PVP Azure last edited by

                            @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 :axocooler:

                            PVP Azure 1 Reply Last reply Reply Quote 0
                            • PVP Azure
                              PVP Azure @ChocoPie_isme last edited by

                              @ChocoPie_isme But I want him to automatically

                              CzechHek 1 Reply Last reply Reply Quote 0
                              • CzechHek
                                CzechHek @PVP Azure last edited by

                                @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 Reply Quote 1
                                • First post
                                  Last post
                                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