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: 

Viewing 16 reply threads
^ 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 6 years, 3 months 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);

    • #48538
      hyper11
      Participant

      Wow after this years i feel so stupid Aegous sry if i made u feel stupid beacuse i didnt know anything that used ECMAScript, javascript or java so uuuh that’s why i couldnt understand buut nevermind thanks for your help but i discovered how to do it before you even published the last reply

    • #49026
      Alex
      Participant

      Please, can you explain me how to make it?

    • #49033
      hyper11
      Participant

      Yeah, lemme explain you (I did this from memory soo it could be wrong so tell me if it gives you any error)

      Example code:

      //use interact hook for this example to work
      var plr = player.getMCEntity();
      var nbt = plr.getEntityData().func_74775_l(“PlayerPersisted”);

      nbt.func_74778_a(“jrmcSSltX”,”TR7″);

      // This will set your Super form lvl to 7 (making you able to go ssj4)

      • This reply was modified 4 years, 2 months ago by hyper11.
      • This reply was modified 4 years, 2 months ago by hyper11.
    • #49038
      makenerd12
      Participant

      Hi, hyper11 can you help me with the super form script?

      my english is kind of bad, I’m using a translator

    • #49039
      makenerd12
      Participant

      mine gave this error here

      <eval>:2:43 Expected an operand but found error
      var nbt = plr.getEntityData().func_74775_l(“PlayerPersisted”);
      ^ in <eval> at line number 2 at column number 43

    • #49057
      Alex
      Participant

      It gaves this error:
      <eval>:2:43 Expected an operand but found error
      var nbt = plr.getEntityData().func_74775_l(“PlayerPersisted”);
      ^ in <eval> at line number 2 at column number 43

    • #49061
      YisolE
      Participant

      Why modify the script? to add super forms or modify the stats?

    • #49062
      hyper11
      Participant

      Yeah sorry people lemme fix this script rq (ill test it out)

    • #49063
      hyper11
      Participant

      Yeah sorry people lemme fix this script rq (ill test it out)

      Code:

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

      //Setting Super form level to 7, allowing you to be able to go ssj4
      //This “TR7” Means the super form skill level so you can set it from TR0 to TR7
      // This TR and the number is a global value for the super form so it works for every race
      nbt.func_74778_a(“jrmcSSltX”,”TR7″);

Viewing 16 reply threads
  • You must be logged in to reply to this topic.

Comments are closed.