erm what id for dice bag or you gotta add that in?
|
Since many players asking for it, so here you go :
ItemActionPacketListener.java :
Dice [Clanchatname] Your user name and the rest of the message.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;
Looks like this :
http://prnt.sc/f4vjgy
(UPloading the image soon)
erm what id for dice bag or you gotta add that in?
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.");
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."); }
nvm im stupid
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |