Thread: [PI] Clan Dice Bag (1-100) [PI]

Page 1 of 3 123 LastLast
Results 1 to 10 of 26
  1. #1 [PI] Clan Dice Bag (1-100) [PI] 
    Registered Member Mr.Chow's Avatar
    Join Date
    May 2012
    Age
    25
    Posts
    10
    Thanks given
    0
    Thanks received
    0
    Rep Power
    6
    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
    http://www.rune-server.org/nophp/signaturepics/sigpic201128_1.gif
    Pro Java Scripting
    Message Me On Rune-Server
    Also Available On Skype: Million.Fuse
    Reply With Quote  
     

  2. #2  
    Legends Never Die


    Join Date
    Nov 2009
    Posts
    4,289
    Thanks given
    91
    Thanks received
    1,216
    Rep Power
    5000
    Nice job, though it's released.
    Reply With Quote  
     

  3. #3  
    Donator


    Join Date
    Aug 2010
    Posts
    3,174
    Thanks given
    1,724
    Thanks received
    2,002
    Rep Power
    3837
    It was ^.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Jan 2011
    Posts
    1
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    When ever i click on my dice bag. It makes me wear it as a weapon? Help me please?
    Reply With Quote  
     

  5. #5  
    Registered Member axxbradxxa's Avatar
    Join Date
    Aug 2011
    Posts
    12
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    got this error please tell me how to fix-----------http://prntscr.com/albak
    Reply With Quote  
     

  6. #6 RE: 
    Spoonfeed Me Bitch
    AddictivePkz's Avatar
    Join Date
    Jun 2012
    Age
    28
    Posts
    733
    Thanks given
    79
    Thanks received
    51
    Rep Power
    0
    Quote Originally Posted by bloodyhall14 View Post
    When ever i click on my dice bag. It makes me wear it as a weapon? Help me please?
    Same ffs what source u using?
    Reply With Quote  
     

  7. #7  
    Registered Member

    Join Date
    May 2012
    Age
    28
    Posts
    1,548
    Thanks given
    415
    Thanks received
    231
    Rep Power
    81
    Nice, not using though cuz i custom made a dice command although it doesnt work in clanchat. lol
    Reply With Quote  
     

  8. #8  
    Da Bawz.

    Zerak's Avatar
    Join Date
    Jul 2011
    Age
    27
    Posts
    1,004
    Thanks given
    689
    Thanks received
    174
    Rep Power
    200
    Reply With Quote  
     

  9. #9  
    Registered Member -Wiz's Avatar
    Join Date
    May 2011
    Posts
    44
    Thanks given
    1
    Thanks received
    3
    Rep Power
    1
    Works fine, but it stops all food from eating?

    EDIT: Fixed.
    Reply With Quote  
     

  10. #10  
    Registered Member sdaehrevo's Avatar
    Join Date
    Oct 2012
    Posts
    171
    Thanks given
    17
    Thanks received
    8
    Rep Power
    14
    Can you please help with this error?

    Reply With Quote  
     

Page 1 of 3 123 LastLast

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: 8
    Last Post: 05-26-2012, 08:27 PM
  2. [PI] Dice bag Model [PI]
    By noobzrmade in forum Requests
    Replies: 0
    Last Post: 12-20-2011, 07:38 AM
  3. Dice Bag Model
    By w33zyscape in forum Requests
    Replies: 1
    Last Post: 08-22-2011, 09:15 PM
  4. [Req] Dice Bag
    By `Basher in forum Models
    Replies: 7
    Last Post: 07-07-2011, 03:18 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
  •