Skip to content

ScriptAPI

A place to ask for help on writing scripts

305 Topics 2.2k Posts
  • How to make custom category in Liquidscript?

    Solved
    2
    1 Votes
    2 Posts
    141 Views
    Ali00035A

    @whym use Core.lib

  • Custom script problem - help me to fix that

    Unsolved
    4
    0 Votes
    4 Posts
    103 Views
    Plumer ManP

    you didnt make this

  • co8 packet

    Solved
    12
    0 Votes
    12 Posts
    430 Views
    Ali00035A

    @plumer-man he meant flying

  • This topic is deleted!

    Unsolved
    13
    0 Votes
    13 Posts
    110 Views
  • This topic is deleted!

    Unsolved
    2
    0 Votes
    2 Posts
    2 Views
  • [Legendary] How can I make a script exclude players? (like the AntiBot)

    Unsolved
    3
    0 Votes
    3 Posts
    171 Views
    CzechHekC

    @suicidemouse You can enable wasinvisible option in AntiBot and edit the list of players that were invisible manually and exclude them that way.

    or if you don't want to blacklist all other players than your target then you can use the needhit option and edit list of players that you hit

  • How to make killinsults

    Unsolved
    8
    0 Votes
    8 Posts
    198 Views
    suicidemouse33S

    @woobs-fan

    just like this

    var Insults = [ "whatever else goes here", "whatever else goes here... again", "whatever else goes here... again... and again" ]
  • Cant find the problem in my code

    Solved
    7
    0 Votes
    7 Posts
    279 Views
    Ali00035A

    @exit-scammed It's ok

  • mc.thePlayer is undefined

    Solved
    41
    0 Votes
    41 Posts
    1k Views
    ?

    40 replies what the fuck

  • This topic is deleted!

    Unsolved
    2
    0 Votes
    2 Posts
    6 Views
  • Code completion

    Unsolved
    5
    0 Votes
    5 Posts
    207 Views
    ByGrafB

    @ali00035 ok I will try it out 😄

  • How to switch hotbar slots via script?

    Solved
    11
    0 Votes
    11 Posts
    408 Views
    ByGrafB

    @czechhek said in How to switch hotbar slots via script?:

    mc.playerController.updateController();

    Thank u guys so much

  • How to make criticals turn off after 3 hits?

    Moved
    14
    0 Votes
    14 Posts
    537 Views
    Ali00035A

    @bygraf 😄

  • How to draw a gradient rect

    Solved
    11
    0 Votes
    11 Posts
    333 Views
    T

    A better way of not using reflection would be:

    /** * @param color1 color in hex. * @param color2 color in hex. */ function drawSimpleVerticalGradientRect(x, y, x2, y2, color1, color2) { GL11.glBegin(GL11.GL_QUADS); glColor(color1); GL11.glVertex2d(x, y); GL11.glVertex2d(x, y2); glColor(color2); GL11.glVertex2d(x2, y2); GL11.glVertex2d(x2, y); GL11.glEnd(); } /** * @param color A color in hex. */ function glColor(color) { var a = (color >> 24) & 0xFF; var r = (color >> 16) & 0xFF; var g = (color >> 8) & 0xFF; var b = (color) & 0xFF; GL11.glColor4f(r / 255, g / 255, b / 255, a / 255); }

    I would like to explain this, but i don't know if i could do it well

    Example Usage:

    GlStateManager.disableTexture2D(); GlStateManager.enableBlend(); GlStateManager.blendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); // Tells GL to transition between colors GlStateManager.shadeModel(GL11.GL_SMOOTH); drawSimpleVerticalGradientRect(10, 10, 390, 390, 0xffffffff, 0x00ffffff); // Tells GL to use the ONLY' last color GlStateManager.shadeModel(GL11.GL_FLAT); GlStateManager.disableBlend();
  • This topic is deleted!

    Solved
    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • Add to TargetStrafe

    Solved
    6
    0 Votes
    6 Posts
    241 Views
    Ali00035A

    @mxmblee Yes

  • drawString wrong xy value

    Solved
    2
    0 Votes
    2 Posts
    139 Views
    test test2T

    help please. text goes nowhere

  • drawScaledCustomSizeModalRect isn't working

    Solved
    4
    0 Votes
    4 Posts
    204 Views
    test test2T

    Sorry, i'm stupid. x and y does not exists

  • anything wrong in this skidded stupid script?

    20
    0 Votes
    20 Posts
    796 Views
    F

    no

  • setTimeout

    Solved
    2
    0 Votes
    2 Posts
    121 Views
    CzechHekC

    @dinofeng You have to define setTimeout function as it isn't built-in.
    Consider importing Core and using timeout(1000, func).