Thread: [PI] Help [PI]

Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1 [PI] Help [PI] 
    ~! Legit ~!

    Join Date
    Nov 2010
    Posts
    1,973
    Thanks given
    183
    Thanks received
    211
    Rep Power
    237
    Hey my problem is that when I want a value of an item from a shop it says, " 0 Points." Can anyone help me fix that to say how many coins it cost? Sorry im kinda new with Project Insanity.
    Reply With Quote  
     

  2. #2  
    q.q


    Join Date
    Dec 2010
    Posts
    6,519
    Thanks given
    1,072
    Thanks received
    3,535
    Rep Power
    4752
    @shopassistant

    under
    Code:
    public int getSpecialItemValue(int id)
    Reply With Quote  
     

  3. #3  
    ~! Legit ~!

    Join Date
    Nov 2010
    Posts
    1,973
    Thanks given
    183
    Thanks received
    211
    Rep Power
    237
    Ok, but what Do i do? lol.
    Reply With Quote  
     

  4. #4  
    Banned

    Join Date
    Jan 2009
    Posts
    777
    Thanks given
    74
    Thanks received
    61
    Rep Power
    0
    Well look at the current format

    Code:
    case ****: // item id
    value = ****; // price
    break;
    Reply With Quote  
     

  5. #5  
    ~! Legit ~!

    Join Date
    Nov 2010
    Posts
    1,973
    Thanks given
    183
    Thanks received
    211
    Rep Power
    237
    I dont have "value =" in shopassistant this is what I have

    Code:
    public int getSpecialItemValue(int id) {
    		switch (id) {
    			break;
    			case 6889:
    			case 6914:
    			return 200;
    			case 4151:
    			return 20;
    			case 6916:
    			case 6918:
    			case 6920:
    			case 6922:
    			case 6924:
    			return 50;
    			case 11663:
    			case 11664:
    			case 11665:
    			case 8842:
    			return 30;
    			case 8839:
    			case 8840:
    			return 75;
    			case 10499:
    			return 20;
    			case 8845:
    			return 5;
    			case 8846:
    			return 10;
    			case 8847:
    			return 15;
    			case 8848:
    			return 20;
    			case 8849:
    			case 8850:
    			return 25;
    			case 7462:
    			return 15;
    			case 10551:
    			return 20;
    			case 4712:
    			return 10;
    			case 4714:
    			return 10;
    			case 11694:
    			return 200;
    			case 11696:
    			case 11698:
    			case 11700:
    			return 100;
    			case 10548:
    			return 50;
    			case 11235:
    			return 40;
    			
    			
    		}
    		return 0;
    	}
    Reply With Quote  
     

  6. #6  
    Registered Member Technooo's Avatar
    Join Date
    Mar 2010
    Posts
    200
    Thanks given
    33
    Thanks received
    10
    Rep Power
    39
    Code:
    case 6889:
    case 6914:
    return 200;
    RED = Item price
    Green = Item ID
    Reply With Quote  
     

  7. #7  
    ~! Legit ~!

    Join Date
    Nov 2010
    Posts
    1,973
    Thanks given
    183
    Thanks received
    211
    Rep Power
    237
    Now it says how many points it is lol.
    Reply With Quote  
     

  8. #8  
    Banned

    Join Date
    Feb 2008
    Posts
    592
    Thanks given
    0
    Thanks received
    21
    Rep Power
    0
    Quote Originally Posted by D R O View Post
    Now it says how many points it is lol.
    yes? that what you asked that what they told you to do.
    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
    Go to ShopAssistant.java and search for the ShopID of the Shop you're saying the error comes from. Remove all about points on the ShopAssistant.java file and you're done.

    Make use of the thanks button.
    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. #10  
    ~! Legit ~!

    Join Date
    Nov 2010
    Posts
    1,973
    Thanks given
    183
    Thanks received
    211
    Rep Power
    237
    No, I want it to be able to say how many COINS, Not points, I know I didnt really say it that clear lol my bad.

    Quote Originally Posted by Beanerrr View Post
    Go to ShopAssistant.java and search for the ShopID of the Shop you're saying the error comes from. Remove all about points on the ShopAssistant.java file and you're done.

    Make use of the thanks button.
    No, my ShopID isnt in their and I dont think thats why because It didnt happen until I removed the items from the shop and added new items, Like lobsters dscim and other dragon wepeons.
    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

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •