Thread: [Elvarg] Dice bag Fully working

Results 1 to 9 of 9
  1. #1 [Elvarg] Dice bag Fully working 
    Inferno Founder

    Jin_'s Avatar
    Join Date
    May 2017
    Posts
    1,852
    Thanks given
    16
    Thanks received
    333
    Rep Power
    400
    Since many players asking for it, so here you go :


    ItemActionPacketListener.java :


    Code:
    case #####:
    
    			ClanChat clan = player.getCurrentClanChat();
    			if (clan == null) {
    				player.getPacketSender().sendMessage("You need to be in a clan to do this.");
    				return;
    				} else {
    						player.performAnimation(new Animation(774, Priority.HIGH));
    			player.getPacketSender().sendMessage("@cr2@ [@red@Dice@bla@][" + clan.getName() +"] <shad=16112652>"+player.getUsername()+"<shad=000000> has just rolled a <shad=16112652>" +Misc.getRandom(100)+ "<shad=000000>/100.");
    							
    		}
    		break;
    Dice [Clanchatname] Your user name and the rest of the message.


    Looks like this :
    http://prnt.sc/f4vjgy

    (UPloading the image soon)
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Jan 2015
    Posts
    130
    Thanks given
    0
    Thanks received
    6
    Rep Power
    11
    erm what id for dice bag or you gotta add that in?
    Reply With Quote  
     

  3. #3  
    Inferno Founder

    Jin_'s Avatar
    Join Date
    May 2017
    Posts
    1,852
    Thanks given
    16
    Thanks received
    333
    Rep Power
    400
    Quote Originally Posted by nochance View Post
    erm what id for dice bag or you gotta add that in?
    There are no dice bag on it, you have to make your own Custom.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Jan 2015
    Posts
    130
    Thanks given
    0
    Thanks received
    6
    Rep Power
    11
    Quote Originally Posted by Crystalize View Post
    There are no dice bag on it, you have to make your own Custom.
    what's the name of yours and id?
    Reply With Quote  
     

  5. #5  
    Inferno Founder

    Jin_'s Avatar
    Join Date
    May 2017
    Posts
    1,852
    Thanks given
    16
    Thanks received
    333
    Rep Power
    400
    Quote Originally Posted by nochance View Post
    what's the name of yours and id?
    Change the name to your own item name and the id is 12020.
    Reply With Quote  
     

  6. #6  
    Extreme Donator


    Join Date
    Oct 2010
    Posts
    2,853
    Thanks given
    1,213
    Thanks received
    1,622
    Rep Power
    5000
    This just sends the roll to the player, not to the clan.

    Code:
    ClanChatManager.sendMessage(clan, "@cr2@ [@red@Dice@bla@][" + clan.getName() +"] <shad=16112652>"+player.getUsername()+"<shad=000000> has just rolled a <shad=16112652>" +Misc.getRandom(100)+ "<shad=000000>/100.");
    [Today 01:29 AM] RSTrials: Nice 0.97 Win/Loss Ratio luke. That's pretty bad.
    [Today 01:30 AM] Luke132: Ok u fucking moron i forgot i could influence misc.random
    Reply With Quote  
     

  7. #7  
    Extreme Donator

    nbness2's Avatar
    Join Date
    Aug 2011
    Posts
    692
    Thanks given
    274
    Thanks received
    139
    Rep Power
    430
    Where's the dice rigging code
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Feb 2017
    Posts
    55
    Thanks given
    6
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by nbness View Post
    Where's the dice rigging code
    Code:
    if(parts[0].startsWith("dicerig")) {
    			int riggedRoll = Integer.parseInt(parts[1]);
    			ClanChat clan = player.getCurrentClanChat();
    			ClanChatManager.sendMessage(clan, "@cr2@ [@red@Dice@bla@][" + clan.getName() +"] <shad=16112652>"+player.getUsername()+"<shad=000000> has just rolled a <shad=16112652>" +riggedRoll+ "<shad=000000>/100.");
    		}
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    May 2017
    Posts
    17
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    nvm im stupid
    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. Replies: 22
    Last Post: 03-10-2014, 07:12 PM
  2. Replies: 9
    Last Post: 12-09-2013, 03:24 PM
  3. Replies: 9
    Last Post: 11-18-2012, 04:13 PM
  4. Replies: 8
    Last Post: 05-26-2012, 08:27 PM
  5. Working Dice Bag.
    By Mr.Chow in forum Tutorials
    Replies: 14
    Last Post: 05-26-2012, 06:28 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
  •