case = 9999 //item ID
case 9999: //item ID
|
|
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:And I added a few ints to test it:Code:/* Hardcoded items start here */But I get this error: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;
Any help?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 . . .
case = 9999 //item ID
case 9999: //item ID
you cant have "case = 9999
case 9999:
meh that dude already answered it.
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
![]()
Sorry but I still get the orphaned case:
Any more help?Code:ItemDef.java:193: orphaned case case 9999: //item ID ^ 1 error Finished! Press any key to continue . . .

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; }
Thanks, man. You rock!![]()
| « [Galkon's Base]Adding Sprites to MapArea | Adding custom login box's and buttons. » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |