CCBlueX Forum

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

    Solved Session Info

    Support
    9
    210
    1086
    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.
    • wxdbie
      wxdbie last edited by

      How to display count kills per session. can you please tell me:axosad:

      Plumer Man suicidemouse33 3 Replies Last reply Reply Quote 1
      • M
        mems Moderator @wxdbie last edited by

        @wxdbie said in Session Info:

        @suicidemouse

        @ElementInfo(name = "Session Info")
        class SessionInfo(x: Double = -8.0, y: Double = 57.0, scale: Float = 1F,
                    side: Side = Side(Side.Horizontal.MIDDLE, Side.Vertical.DOWN)) : Element(x, y, scale, side) {
        
            private val fontValue = FontValue("Font", Fonts.font35)
        
            override fun drawElement(): Border? {
        
                val font = fontValue.get()
        
                RenderUtils.drawRect(0F, 0F, 100F, 60F, Color(25,25,25, 128).rgb)
                RenderUtils.drawRect(0F, 0F, 100F, 17F, Color(25,25,25, 190).rgb)
        
                font.drawString(name, (9F + 16F).toInt(), 5, -1)
                font.drawString("Nick: " + mc.getSession().username, 4, 20, -1)
                font.drawString("Kills: ", 4, 30, -1)
                font.drawString("FPS: " + Minecraft.getDebugFPS().toString(), 4, 40, -1)
                font.drawString("IP: " + ServerUtils.getRemoteIp(), 4, 50, -1)
        
                return Border(0F, 0F, 100F, 17F)
            }
        }
        

        You need to add the attack event, save the entity to a variable, then you need to add any event that is repetitive, for example onUpdate. You check if the world is not null and if the targeted entity is null or dead. If the player is dead, you increment the kill variable you have by 1, then you nullify the variable that keeps track of the entity you were attacking. Finally, you add the world event, that checks if there was a world change, so you can set the kills variable to 0. Hopefully this doesn't blow your brain and it shouldn't, because the client has these events available to you.

        suicidemouse33 wxdbie 3 Replies Last reply Reply Quote 0
        • Plumer Man
          Plumer Man @wxdbie last edited by

          Is this for your own custom build?

          wxdbie 1 Reply Last reply Reply Quote 0
          • suicidemouse33
            suicidemouse33 Banned last edited by

            @plumer-man it seems like it

            1 Reply Last reply Reply Quote 0
            • Plumer Man
              Plumer Man @wxdbie last edited by

              @wxdbie you need to code it

              wxdbie 1 Reply Last reply Reply Quote 0
              • wxdbie
                wxdbie @Plumer Man last edited by

                @plumer-man said in Session Info:

                Is this for your own custom build?

                ye

                1 Reply Last reply Reply Quote 1
                • wxdbie
                  wxdbie @Plumer Man last edited by

                  @plumer-man said in Session Info:

                  @wxdbie you need to code it

                  But how, I do not understand😥

                  1 Reply Last reply Reply Quote 1
                  • A
                    Aftery last edited by

                    This post is deleted!
                    wxdbie 1 Reply Last reply Reply Quote 0
                    • wxdbie
                      wxdbie @Aftery last edited by

                      @aftery said in Session Info:

                      judging by your post history the only logical conclusion is that you are pasting
                      you can display count kills per session by counting kills per session (logic is something similar to killsluts/killsults/autol/autosay/killsay/advertise w/e ppl call it) and displaying it (extreme demon level programming)

                      What difference does if I pasting something? I'm just learning.

                      Okay, I will keep that mind

                      Plumer Man 1 Reply Last reply Reply Quote 1
                      • Plumer Man
                        Plumer Man @wxdbie last edited by

                        You dont really learn if you're just pasting without learning from it...

                        wxdbie 1 Reply Last reply Reply Quote 0
                        • wxdbie
                          wxdbie @Plumer Man last edited by

                          @plumer-man said in Session Info:

                          You dont really learn if you're just pasting without learning from it...

                          I understand something. Even though I have only been studying for three weeks

                          Plumer Man suicidemouse33 2 Replies Last reply Reply Quote 1
                          • Plumer Man
                            Plumer Man @wxdbie last edited by

                            Guide to session info (pasting edition):

                            • Find killsult script

                            • Paste into ide

                            • Change from sending chat message to increasing a number

                            • Display the numbers

                            • Profit

                            wxdbie 1 Reply Last reply Reply Quote 0
                            • wxdbie
                              wxdbie @Plumer Man last edited by

                              @plumer-man okay, ty:axocute:

                              1 Reply Last reply Reply Quote 1
                              • suicidemouse33
                                suicidemouse33 Banned @wxdbie last edited by

                                This post is deleted!
                                wxdbie 1 Reply Last reply Reply Quote 0
                                • wxdbie
                                  wxdbie @suicidemouse33 last edited by

                                  @suicidemouse :axocry:

                                  suicidemouse33 1 Reply Last reply Reply Quote 1
                                  • suicidemouse33
                                    suicidemouse33 Banned @wxdbie last edited by

                                    @wxdbie ?

                                    1 Reply Last reply Reply Quote 0
                                    • suicidemouse33
                                      suicidemouse33 Banned @wxdbie last edited by

                                      @wxdbie said in Session Info:

                                      Even though I have only been studying for three weeks

                                      You need to have at least 1.5 month of coding experience

                                      wxdbie 1 Reply Last reply Reply Quote 0
                                      • wxdbie
                                        wxdbie @suicidemouse33 last edited by

                                        @suicidemouse said in Session Info:

                                        You need to have at least 1.5 month of coding experience

                                        Well, i learning:axoneutral:

                                        1 Reply Last reply Reply Quote 1
                                        • A
                                          Aftery last edited by

                                          This post is deleted!
                                          suicidemouse33 wxdbie 2 Replies Last reply Reply Quote 0
                                          • suicidemouse33
                                            suicidemouse33 Banned @Aftery last edited by suicidemouse33

                                            @aftery the op wants to make session info in kotlin, making one in kotlin isn't easy as 2+2, its not easy in javascript either, and yes, snippets are useful

                                            you need more than 3 weeks of coding experience to make one

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

                                              @wxdbie im suggesting that you want to make a session info that looks like the one which novoline uses

                                              @Plumer-Man @Aftery most people on this forum are pasters, so no one cares.

                                              wxdbie Plumer Man 2 Replies Last reply Reply Quote 0
                                              • 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