Thread: Mystery Box Announcing.

Results 1 to 5 of 5
  1. #1 Mystery Box Announcing. 
    Registered Member
    Join Date
    Mar 2016
    Posts
    131
    Thanks given
    8
    Thanks received
    9
    Rep Power
    11


    I want to add so it announce what ever item you get form opening a Mystery Box.

    I tried add + RandomSelection.Item +

    But doesnt seem to work.
    Reply With Quote  
     

  2. #2  
    Registered Member Shook Ones's Avatar
    Join Date
    Apr 2016
    Posts
    414
    Thanks given
    151
    Thanks received
    129
    Rep Power
    13
    add this code under if (itemId == 6199) {

    Code:
    for (int j = 0; j < Server.playerHandler.players.length; j++) {
    							if (Server.playerHandler.players[j] != null) {
    								Client c2 = (Client)Server.playerHandler.players[j];
    								c2.sendMessage("[@red@SERVER@bla@]@mag@"+ c.playerName +" @bla@just received a @red@rare item @bla@ from a [@or2@Mystery Box@bla@]");
    								}
    					    }
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Mar 2016
    Posts
    131
    Thanks given
    8
    Thanks received
    9
    Rep Power
    11
    Quote Originally Posted by Victorious317 View Post
    add this code under if (itemId == 6199) {

    Code:
    for (int j = 0; j < Server.playerHandler.players.length; j++) {
    							if (Server.playerHandler.players[j] != null) {
    								Client c2 = (Client)Server.playerHandler.players[j];
    								c2.sendMessage("[@red@SERVER@bla@]@mag@"+ c.playerName +" @bla@just received a @red@rare item @bla@ from a [@or2@Mystery Box@bla@]");
    								}
    					    }
    This doesnt say what Item he get? Only that it is a rare item
    Reply With Quote  
     

  4. #4  
    Community Veteran


    Arch337's Avatar
    Join Date
    Sep 2008
    Posts
    2,950
    Thanks given
    210
    Thanks received
    349
    Rep Power
    1376
    Show us the RandomSelection codes.


    "A fail act is something you do regular, but a dumb act is something you can learn from"
    Spoiler for Problem?:
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Jun 2013
    Posts
    68
    Thanks given
    15
    Thanks received
    37
    Rep Power
    33
    Hey bro,

    I'll give you a hand.

    Add me on Skype

    luke.hashcake

    Cheers,

    Luke
    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. [PI] - Mystery Box: Giving random rewards
    By Sonic chao in forum Snippets
    Replies: 23
    Last Post: 05-23-2012, 01:27 PM
  3. Mystery Box ModelID
    By afrodjman in forum Models
    Replies: 3
    Last Post: 05-03-2012, 09:23 PM
  4. Mystery Box
    By Kelso in forum Help
    Replies: 9
    Last Post: 10-19-2011, 01:57 AM
  5. [317] Mystery Box [317]
    By pyrotic in forum Tutorials
    Replies: 25
    Last Post: 08-18-2011, 12:24 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
  •