Thread: [PI] Item help please.rep ++

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1 [PI] Item help please.rep ++ 
    Banned
    Join Date
    Oct 2010
    Posts
    248
    Thanks given
    2
    Thanks received
    1
    Rep Power
    0
    hello, im coding a PI source for the first time and i need to know how to make a item go into the cape area not the wepon area, please help Rep ++ to helper.
    Reply With Quote  
     

  2. #2  
    Registered Member Da D4v1nci C0de's Avatar
    Join Date
    Jul 2010
    Posts
    422
    Thanks given
    128
    Thanks received
    30
    Rep Power
    56
    Item.java

    Quote Originally Posted by atsiv3 View Post
    When I see your name login to my server, I will ban you.
    Reply With Quote  
     

  3. #3  
    Banned Hellobuddyhowareyou's Avatar
    Join Date
    Mar 2011
    Posts
    738
    Thanks given
    27
    Thanks received
    20
    Rep Power
    0
    item.cfg in the data folder.
    Reply With Quote  
     

  4. #4  
    Registered Member Da D4v1nci C0de's Avatar
    Join Date
    Jul 2010
    Posts
    422
    Thanks given
    128
    Thanks received
    30
    Rep Power
    56
    no...

    Quote Originally Posted by atsiv3 View Post
    When I see your name login to my server, I will ban you.
    Reply With Quote  
     

  5. #5  
    Banned D Dox's Avatar
    Join Date
    Mar 2011
    Age
    29
    Posts
    359
    Thanks given
    38
    Thanks received
    11
    Rep Power
    0
    Quote Originally Posted by Wertic PvP View Post
    item.cfg in the data folder.


    item class, search for Cape then part of the name of your cape in the code
    Reply With Quote  
     

  6. #6  
    Banned
    Join Date
    Oct 2010
    Posts
    248
    Thanks given
    2
    Thanks received
    1
    Rep Power
    0
    Quote Originally Posted by Wertic PvP View Post
    item.cfg in the data folder.
    What do i do there?
    Reply With Quote  
     

  7. #7  
    Registered Member Beanerrr's Avatar
    Join Date
    Feb 2011
    Posts
    598
    Thanks given
    78
    Thanks received
    28
    Rep Power
    6
    Quote Originally Posted by Wertic PvP View Post
    item.cfg in the data folder.
    LOL WTF BBQ


    In the Item class search for
    Code:
    public static boolean playerCape(int itemId) {
    Should be right in the begginining

    Code:
    	public static boolean playerCape(int itemId) {
    		String[] data = {
    			"cloak", "cape", "accumulator", "add what you want here"
    		};
    		String item = getItemName(itemId);
    		if (item == null) {
    			return false;
    		}
    		boolean item1 = false;
    		for(int i = 0; i < data.length; i++ ) {
    			if(item.endsWith(data[i]) || item.contains(data[i])) {
    				item1 = true;
    			}
    		}
    		return item1;
    	}
    Quote Originally Posted by Galkon View Post
    The rules clearly state, if you can't help, don't reply.


    Quote Originally Posted by Mod Josh - Question: How do you ask girls out?
    I can't ask them out, I am banned from the kitchen
    Quote Originally Posted by Penor View Post
    How will i know if its PI based?? Omfg this is sooo confusing!!
    Reply With Quote  
     

  8. #8  
    Banned Hellobuddyhowareyou's Avatar
    Join Date
    Mar 2011
    Posts
    738
    Thanks given
    27
    Thanks received
    20
    Rep Power
    0
    dude you can still edit it at item.cfg
    Reply With Quote  
     

  9. #9  
    Registered Member Beanerrr's Avatar
    Join Date
    Feb 2011
    Posts
    598
    Thanks given
    78
    Thanks received
    28
    Rep Power
    6
    Quote Originally Posted by Wertic PvP View Post
    item.cfg in the data folder.
    Quote Originally Posted by Wertic PvP View Post
    dude you can still edit it at item.cfg
    Only the Item's stats, not the equip slot LOL
    Not making fun of you, but you made me laugh irl
    Quote Originally Posted by Galkon View Post
    The rules clearly state, if you can't help, don't reply.


    Quote Originally Posted by Mod Josh - Question: How do you ask girls out?
    I can't ask them out, I am banned from the kitchen
    Quote Originally Posted by Penor View Post
    How will i know if its PI based?? Omfg this is sooo confusing!!
    Reply With Quote  
     

  10. Thankful users:


  11. #10  
    Banned
    Join Date
    Oct 2010
    Posts
    248
    Thanks given
    2
    Thanks received
    1
    Rep Power
    0
    Quote Originally Posted by Beanerrr View Post
    Only the Item's stats, not the equip slot LOL
    Not making fun of you, but you made me laugh irl
    Thanks for helping Rep ++
    Reply With Quote  
     

Page 1 of 2 12 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: 1
    Last Post: 12-30-2010, 12:23 PM
  2. Replies: 2
    Last Post: 03-23-2010, 10:17 PM
  3. Replies: 23
    Last Post: 09-10-2009, 03:29 AM
  4. Replies: 26
    Last Post: 03-13-2009, 07:49 PM
  5. Replies: 20
    Last Post: 06-06-2008, 12:04 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •