How do I make a script for lvlup super form

Home Forums JinGames Forums Questions and Answers How do I make a script for lvlup super form

Tagged: 

This topic contains 7 replies, has 2 voices, and was last updated by  Aegous 3 months, 4 weeks ago.

^ Advertisement ^
  • Author
    Posts
  • #42558

    hyper11
    Participant

    Pls i want know the way to do it

  • #42561

    Aegous
    Participant
    
    var p = player.getMCEntity();
    var nbt = p.getEntityData().func_74775_l("PlayerPersisted");
    
    //The superform is stored as a string in the format of "TR(Level number)" - Example: TR4
    var currentSuperformLevel = nbt.func_74779_i("jrmcSSltX");
    
    var level = 2;
    
    nbt.func_74778_a("jrmcSSltX", "TR" + level);
    

    That should do it

    • This reply was modified 3 months, 4 weeks ago by  Aegous.
  • #42564

    hyper11
    Participant

    That in the console say ReferenceError:Player is not defined in <eval> at line N01

  • #42567

    Aegous
    Participant

    Remember player needs to be all lowercase and only certain customnpc events allow you to just reference the player.

  • #42568

    hyper11
    Participant

    Im modyfing the script and its not working

  • #42569

    hyper11
    Participant

    im modifyng to try to the script work but don t work give me the script complete

  • #42570

    Aegous
    Participant

    That is the complete script you just don’t know how to use it.

  • #42572

    Aegous
    Participant

    Just gonna put the code here again since the formatting seems to be fucked up on my last reply.

    var p = player.getMCEntity();
    var nbt = p.getEntityData().func_74775_l(“PlayerPersisted”);

    //The superform is stored as a string in the format of “TR(Level number)” – Example: TR4
    var currentSuperformLevel = nbt.func_74779_i(“jrmcSSltX”);

    var level = 2;

    nbt.func_74778_a(“jrmcSSltX”, “TR” + level);

You must be logged in to reply to this topic.

Comments are closed.