Thread: Galkon's Base INT help

Results 1 to 9 of 9
  1. #1 Galkon's Base INT help 
    Registered Member
    Join Date
    Jul 2010
    Posts
    60
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Hey so I recently downloaded Galkon's base and I'm trying to add in my INT's from my non-renamed delta v16 base, I saw a bit of text that said:
    Code:
    /* Hardcoded items start here */
    And I added a few ints to test it:
    Code:
    case = 9999 //item ID
    itemDef.actions = new String[5]; 
    itemDef.actions[1] = "Wear"; 
    itemDef.anInt174 = 147; //drop and inventory model id 
    itemDef.anInt165 = 146; //female model id 
    itemDef.anInt200 = 146; //male model id itemDef.modelZoom = 800; itemDef.modelRotation1 = 160; 
    itemDef.modelRotation2 = 152;
    itemDef.anInt204 = 0; 
    itemDef.modelOffset1 = -1; 
    itemDef.modelOffset2 = 6;
    itemDef.anInt188 = -1;
    itemDef.anInt164 = -1; 
    itemDef.anInt175 = 56; 
    itemDef.anInt197 = 116; 
    itemDef.name = "Black dragon mask"; //name of the item 
    itemDef.description = "RAWR Im a dragon (:!".getBytes(); //examine info }
    break;
    But I get this error:
    Code:
    ItemDef.java:193: orphaned case
                    case = 9999 //item ID
                    ^
    ItemDef.java:193: illegal start of expression
                    case = 9999 //item ID
                         ^
    ItemDef.java:193: : expected
                    case = 9999 //item ID
                               ^
    ItemDef.java:211: illegal start of expression
    case = 9999 //item Id
         ^
    ItemDef.java:211: : expected
    case = 9999 //item Id
               ^
    5 errors
    Finished!
    Press any key to continue . . .
    Any help?
    "Behind my smile, I am broken. Behind my laughter, I am crying. Behind the happiness, I am depressed. Behind the joy, I am lonely. Now the only thing left for me is death, and I am ready for it."
    Reply With Quote  
     

  2. #2  
    Registered Member wannabecoder :)'s Avatar
    Join Date
    Nov 2010
    Posts
    149
    Thanks given
    24
    Thanks received
    21
    Rep Power
    55
    case = 9999 //item ID


    case 9999: //item ID
    Lollipops turn into cigarettes.
    The innocent ones turn into sluts.
    Detention becomes suspension.
    Kisses turn into sex.
    Remember when the worst thing you could get from girls were cooties?
    When race issues were about who ran the fastest, & we couldn't wait to grow up.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Dec 2010
    Posts
    16
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1


    you cant have "case = 9999

    case 9999:

    meh that dude already answered it.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Jul 2010
    Posts
    60
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Thanks and sorry I wasn't the one that wrote these, I have never worked with renamed before lol so sorry for being a noob . Thanks for the help though
    "Behind my smile, I am broken. Behind my laughter, I am crying. Behind the happiness, I am depressed. Behind the joy, I am lonely. Now the only thing left for me is death, and I am ready for it."
    Reply With Quote  
     

  5. #5  
    Registered Member
    Purple's Avatar
    Join Date
    Feb 2010
    Age
    26
    Posts
    2,799
    Thanks given
    467
    Thanks received
    260
    Rep Power
    312
    Quote Originally Posted by jakanddax222 View Post
    Thanks and sorry I wasn't the one that wrote these, I have never worked with renamed before lol so sorry for being a noob . Thanks for the help though
    case is not only for renamed, it's used in general too of Java.
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Jul 2010
    Posts
    60
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Sorry but I still get the orphaned case:
    Code:
    ItemDef.java:193: orphaned case
    case 9999: //item ID
    ^
    1 error
    Finished!
    Press any key to continue . . .
    Any more help?
    "Behind my smile, I am broken. Behind my laughter, I am crying. Behind the happiness, I am depressed. Behind the joy, I am lonely. Now the only thing left for me is death, and I am ready for it."
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Jul 2010
    Posts
    60
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Quote Originally Posted by Ghost++ View Post
    case is not only for renamed, it's used in general too of Java.
    Yeah sorry I'm just a HUGE java noob in general I know how to do like 10 things in general, and all of them are super easy like making drops and spawning npc's and adding models to non. I have like NO knowledge of java but I'm trying to learn
    "Behind my smile, I am broken. Behind my laughter, I am crying. Behind the happiness, I am depressed. Behind the joy, I am lonely. Now the only thing left for me is death, and I am ready for it."
    Reply With Quote  
     

  8. #8  
    Registered Member
    Purple's Avatar
    Join Date
    Feb 2010
    Age
    26
    Posts
    2,799
    Thanks given
    467
    Thanks received
    260
    Rep Power
    312
    You must add a switch to wrap the case around with.

    over case 9999: add this:
    switch(i) {


    and right after the break; add this
    }

    so it should be:
    Code:
    switch(i) {
    case 9999: //item ID
    itemDef.actions = new String[5];
    itemDef.actions[1] = "Wear";
    itemDef.anInt174 = 147; //drop and inventory model id
    itemDef.anInt165 = 146; //female model id
    itemDef.anInt200 = 146; //male model id itemDef.modelZoom = 800; itemDef.modelRotation1 = 160;
    itemDef.modelRotation2 = 152;
    itemDef.anInt204 = 0;
    itemDef.modelOffset1 = -1;
    itemDef.modelOffset2 = 6;
    itemDef.anInt188 = -1;
    itemDef.anInt164 = -1;
    itemDef.anInt175 = 56;
    itemDef.anInt197 = 116;
    itemDef.name = "Black dragon mask"; //name of the item
    itemDef.description = "RAWR Im a dragon (:!".getBytes(); //examine info }
    break;
    }
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Jul 2010
    Posts
    60
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Thanks, man. You rock!
    "Behind my smile, I am broken. Behind my laughter, I am crying. Behind the happiness, I am depressed. Behind the joy, I am lonely. Now the only thing left for me is death, and I am ready for it."
    Reply With Quote  
     


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. Galkon's Refactored Base[474 Look-A-Like]
    By Galkon in forum Downloads
    Replies: 233
    Last Post: 08-25-2014, 04:20 AM
  2. 99% Galkon's Base
    By A nipple in forum Help
    Replies: 1
    Last Post: 10-22-2009, 08:04 PM
  3. Galkon's Refactored Base!
    By Galkon in forum Downloads
    Replies: 47
    Last Post: 07-14-2009, 04:52 PM
  4. Help with Galkon's Client Base.
    By Hang 'Em High in forum Help
    Replies: 8
    Last Post: 03-27-2009, 08:01 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
  •