Thread: [639] Mystery Box [636]

Results 1 to 6 of 6
  1. #1 [639] Mystery Box [636] 
    Registered Member stormy's Avatar
    Join Date
    May 2012
    Age
    5
    Posts
    27
    Thanks given
    5
    Thanks received
    3
    Rep Power
    11
    A quick convert from [Only registered and activated users can see links. ] to 639 for the newbies.
    Code:
    case 6199:
    					int[] RandomItems = {11732, 4151, 11283, 385, 2347, 1712, 1712, 6585, 1712, 6585, 11732, 11732, 3105, 6918, 6920, 6922, 6924, 6570, 6199, 6199, 10828, 1079, 1127, 20072, 20072, 8850, 10551, 10548, 4087, 15332, 15332, 4712, 4714, 4716, 4718, 4720, 4722, 4724, 4726, 4728, 4730, 4732, 4734, 4736, 4738, 4745, 4747, 4749, 4751, 4753, 4755, 4757, 4759, 6585, 5698, 1704, 7378, 7370, 7390, 6737, 6731, 6733, 11716, 6199, 6199, 7386, 7394, 11846, 11850, 11852, 2673, 2669, 2671, 6889, 6914, 2653, 2655, 2657, 1837, 10330, 11848, 11854, 11856, 10332, 10334, 10336, 542, 4087, 4585, 6568, 6568, 10338, 10340, 10342, 10344, 10346, 10348, 10350, 10352, 2581, 13736, 6916, 6918, 6920, 6922, 6924, 3481, 3483, 3486, 2577, 2665, 10452, 10454, 10456, 9470, 2661, 10450, 10446, 10448, 1037, 14595, 14603, 1050, 23679, 23680, 23681, 23682, 23683, 23684, 23685, 23686, 23687, 23688, 23689, 23690, 23691, 23692, 23693, 23694, 23695, 23696, 23697, 23698, 23699, 23700, 1040, 1042, 1044, 1046, 1048, 1050, 1053, 1055, 1057, 11732, 3105, 1712, 1704, 1706, 1079, 1127, 6585, 6570, }; //Other ids go in there as well
    					int Id = player.getRandom().nextInt(RandomItems.length - 1);
    					player.getInventory().getContainer().remove(new Item(6199, 1));
    					player.getInventory().getContainer().add(new Item(Id, 1));
    					ActionSender.sendMessage(player, "You have recieved a random item from the mystery box!");
    					player.getInventory().refresh();
    					return true;
    Goes in InventoryListener.java
    Search for
    Code:
    if (opcode == 6) {
    And add this code below
    Code:
    			switch (itemId) {
    Reply With Quote  
     

  2. Thankful user:


  3. #2  
    Banned

    Join Date
    Dec 2011
    Age
    23
    Posts
    2,315
    Thanks given
    473
    Thanks received
    764
    Rep Power
    0
    [636] lolz
    Reply With Quote  
     

  4. #3  
    Registered Member Neurotoxin's Avatar
    Join Date
    May 2012
    Posts
    332
    Thanks given
    43
    Thanks received
    17
    Rep Power
    25
    Thanks I probably wont use this exactly, but I definitely learned how to use it for other things.
    Reply With Quote  
     

  5. #4  
    Registered Member stormy's Avatar
    Join Date
    May 2012
    Age
    5
    Posts
    27
    Thanks given
    5
    Thanks received
    3
    Rep Power
    11
    Quote Originally Posted by LovingMemory View Post
    [636] lolz
    xD I just realized that!
    Reply With Quote  
     

  6. #5  
    Registered Member Neurotoxin's Avatar
    Join Date
    May 2012
    Posts
    332
    Thanks given
    43
    Thanks received
    17
    Rep Power
    25
    Quote Originally Posted by epyx View Post
    When i search for in InventoryListener.java
    theres already a code below
    My opcode == 6 :


    plz reply i need this
    add it below switch (itemId) {
    Reply With Quote  
     

  7. #6  
    Registered Member stormy's Avatar
    Join Date
    May 2012
    Age
    5
    Posts
    27
    Thanks given
    5
    Thanks received
    3
    Rep Power
    11
    No you do not have to delete anything , just add the code below switch(itemId) {
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Donation Box (Mystery Box)
    By Project in forum Tutorials
    Replies: 24
    Last Post: 04-24-2014, 03:54 AM
  2. Mystery Box ModelID
    By afrodjman in forum Models
    Replies: 3
    Last Post: 05-03-2012, 09:23 PM
  3. Mystery Box
    By Kelso in forum Help
    Replies: 9
    Last Post: 10-19-2011, 01:57 AM
  4. [636 or 639] Accesories
    By Rag3 in forum Requests
    Replies: 2
    Last Post: 03-02-2011, 03:38 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •