Skip to content
  • 0 Unread 0
  • 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 2.0k 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 Biehl Offline
    Ashton Biehl 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

    GewoonIraj 1 Reply Last reply
    0
    • Ashton Biehl 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

      GewoonIraj Offline
      GewoonIraj 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 Biehl 1 Reply Last reply
      0
      • GewoonIraj 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 Biehl Offline
        Ashton Biehl 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
        • Kaizex Offline
          Kaizex Offline
          Kaizex
          wrote on last edited by
          #4

          Does this work for custom matches?

          Ashton Biehl 1 Reply Last reply
          0
          • Kaizex Kaizex

            Does this work for custom matches?

            Ashton Biehl Offline
            Ashton Biehl 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
            • RevengeWRLD999 Offline
              RevengeWRLD999 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
              • samsth957 Offline
                samsth957 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
                • Unread 0
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Donate