Hey guys Mr.Chow here as I promised i'm going to be making a guide on How-To add a 100% working dice bag noobs can do it.
I ask you to please place any questions below on this I will Quote them and answer them with 24 Hours. Goodluck To all(:
Step 1.) Search in your source for a file called " ClickItem.java once your in the folder hit **CTRL + F** Search " import server.util.Misc; " if you can't find it add it to the top were it says import.
EX: import shit.in.your.mouth.misc; ( click the end of it and hit enter it will open a new line the paste in
" import server.util.Misc; " if its not there.
Step 2.)Still inside of ClickItem.java, Hit **CTRL + F** search for " if(itemID == " at the end of any code there is a } goto the end of the first itemId == and hit enter. Then add this code
Code:
Code:
if(itemId == 15098) {
if (System.currentTimeMillis() - c.foodDelay >= 5000) {
if(c.clanId == -1) {
c.sendMessage("You need to be in a clan to do this.");
} else {
c.startAnimation(11900);
c.gfx0(2075);
Server.clanChat.messageToClan("<shad=15695415>"+c.playerName+" just rolled <shad=16112652>" +Misc.random(100)+ "<shad=15695415> on the percentile dice.", c.clanId);
c.foodDelay = System.currentTimeMillis();
}
}
}
Step 3.) Goto back to the main page of your source and search " ClanChatHandler.java " once your in the folder hit **CTRL + F** then search " public class ClanChatHandler { " delete the text completly and add this were you removed the Public class.... Code.
Code:
Code:
public class ClanChatHandler {
private Client c;
public ClanChatHandler(Client Client) {
this.c = Client;
}
Step 4.) Search Client.java in your source. Then where is says at the top something like
EX: import server pest.control
hit enter then put this in
Code:
Code:
import server.world.ClanChatHandler;
Step 5.) Still in Client.java search **CTRL + F**, " private CombatAssistant combatAssistant = new CombatAssistant(this); " click the end of it and hit enter. Underneath it add this code.
Code:
Code:
private ClanChatHandler clanChatHandler = new ClanChatHandler(this);
Step 6.) Still in Client.Java search **CTRL + F**
Code:
Code:
public TradeAndDuel getTradeAndDuel() {
return tradeAndDuel;
}
add this code Underneath it.
Code:
Code:
public ClanChatHandler getClanChatHandler() {
return clanChatHandler;
}
Thanks For Reading It and Trying It guys leave your comments, Thoughts, Rate, and questions below Will be checked @ a min of 24 hrs.
Regards,
Mr.Chow