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 918 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
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
    • GewoonIrajundefined Offline
      GewoonIrajundefined Offline
      GewoonIraj VIP
      replied to Ashton Biehl 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
      • Ashton Biehlundefined Offline
        Ashton Biehlundefined Offline
        Ashton Biehl
        replied to GewoonIraj 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
          • Ashton Biehlundefined Offline
            Ashton Biehlundefined Offline
            Ashton Biehl
            replied to Kaizex 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

                • Login

                • Don't have an account? Register

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