Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
Collapse

Plutonium

  1. Home
  2. BO2 Modding Releases & Resources
  3. [Release] Set Mystery Box Cost

[Release] Set Mystery Box Cost

Scheduled Pinned Locked Moved BO2 Modding Releases & Resources
7 Posts 5 Posters 1.7k Views 1 Watching
  • 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.
  • Ashton Biehlundefined Offline
    Ashton Biehlundefined Offline
    Ashton Biehl
    wrote on last edited by Emosewaj
    #1

    First you need to make a self thread.

    welcome()
    {
    	self waittill( "spawned_player" );
    	self thread SetBoxCost(); 
    }
    

    then place SetBoxCost() anywhere in your script.

    SetBoxCost()
    {
    	i = 0;
        while (i < level.chests.size)
        {
            level.chests[ i ].zombie_cost = 100; // you can change the cost here
            level.chests[ i ].old_cost = 100; // you can change the cost here
            i++;
        }
    	wait 15; // This is the wait time before the iPrintln message box shows up. You can change this to your liking or remove it.
        self iPrintln("Mystery Box Cost Set To ^2100");
    }
    

    Enjoy!

    Have any questions add my Discord: Ashton Biehl#6969

    GewoonIrajundefined 1 Reply Last reply
    0
    • Ashton Biehlundefined Ashton Biehl

      First you need to make a self thread.

      welcome()
      {
      	self waittill( "spawned_player" );
      	self thread SetBoxCost(); 
      }
      

      then place SetBoxCost() anywhere in your script.

      SetBoxCost()
      {
      	i = 0;
          while (i < level.chests.size)
          {
              level.chests[ i ].zombie_cost = 100; // you can change the cost here
              level.chests[ i ].old_cost = 100; // you can change the cost here
              i++;
          }
      	wait 15; // This is the wait time before the iPrintln message box shows up. You can change this to your liking or remove it.
          self iPrintln("Mystery Box Cost Set To ^2100");
      }
      

      Enjoy!

      Have any questions add my Discord: Ashton Biehl#6969

      GewoonIrajundefined Offline
      GewoonIrajundefined Offline
      GewoonIraj
      VIP
      wrote on last edited by GewoonIraj
      #2

      Thanks for sharing this, I'm sure people will find it very handy!
      Small question though: why did you put the wait on 15 seconds, ain't that a bit too long?

      Ashton Biehlundefined 1 Reply Last reply
      0
      • GewoonIrajundefined GewoonIraj

        Thanks for sharing this, I'm sure people will find it very handy!
        Small question though: why did you put the wait on 15 seconds, ain't that a bit too long?

        Ashton Biehlundefined Offline
        Ashton Biehlundefined Offline
        Ashton Biehl
        wrote on last edited by
        #3

        GewoonIraj I have more scripts so I put it to wait 15 seconds so I don't get spammed with a bunch of messages

        1 Reply Last reply
        0
        • Kaizexundefined Offline
          Kaizexundefined Offline
          Kaizex
          wrote on last edited by
          #4

          Does this work for custom matches?

          Ashton Biehlundefined 1 Reply Last reply
          0
          • Kaizexundefined Kaizex

            Does this work for custom matches?

            Ashton Biehlundefined Offline
            Ashton Biehlundefined Offline
            Ashton Biehl
            wrote on last edited by
            #5

            Kaizex I haven't tested it, but im sure it does if you inject it.

            1 Reply Last reply
            0
            • RevengeWRLD999undefined Offline
              RevengeWRLD999undefined Offline
              RevengeWRLD999
              wrote on last edited by
              #6

              Ashton Biehl dude someone needs to teach me how to do this scripting stuff cuz my dumbass doesn't get it at all lol

              1 Reply Last reply
              0
              • samsth957undefined Offline
                samsth957undefined Offline
                samsth957
                wrote on last edited by
                #7
                This post is deleted!
                1 Reply Last reply
                0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Donate