Jump to content

Red122

Member
  • Content count

    6
  • Joined

  • Last visited

  1. Hey, guys i am working with a delta server and the hp bars are a little messed up. First off the system is done in percentages with npcs so if a player hits a "10" the hp bar shows a different change because every npc is out of 100 for some reason. Also no matter what there is always a little section of red on the hp bar even if a player or npc is full health. How would i change this? Thank you in advanced.
  2. Here is my itemdef with the int switch (itemdef.id) { case 11722: itemDef.femaleEquip1 = itemDef.maleEquip1; itemDef.femaleEquip2 = itemDef.maleEquip2; break; case 11740: { itemdef.modelID = 20087; itemdef.name = "Owner Wings"; itemdef.modelZoom = 850; itemdef.modelRotation1 = 252; itemdef.modelRotation2 = 1020; itemdef.modelOffset1 = -1; itemdef.modelOffset2 = 24; itemdef.anInt165 = 20086; itemdef.anInt165 = 20086; itemdef.groundActions = new String[5]; itemdef.groundActions[2] = "Take"; itemdef.itemActions = new String[5]; itemdef.itemActions[1] = "Wear"; itemdef.itemActions[4] = "Drop"; } When i try and compile it i get this error ItemDef.java:235: error: cannot find s switch (itemde ^ symbol: variable itemdef location: class ItemDef ItemDef.java:235: error: illegal start switch (itemde ^ ItemDef.java:243: error: cannot find s itemdef.modelID = 20087; ^ symbol: variable itemdef location: class ItemDef ItemDef.java:244: error: cannot find s itemdef.name = "Owner Wings"; ^ symbol: variable itemdef location: class ItemDef ItemDef.java:245: error: cannot find s itemdef.modelZoom = 850; ^ symbol: variable itemdef location: class ItemDef ItemDef.java:246: error: cannot find s itemdef.modelRotation1 = 252; ^ symbol: variable itemdef location: class ItemDef ItemDef.java:247: error: cannot find s itemdef.modelRotation2 = 1020; ^ symbol: variable itemdef location: class ItemDef ItemDef.java:248: error: cannot find s itemdef.modelOffset1 = -1; ^ symbol: variable itemdef location: class ItemDef ItemDef.java:249: error: cannot find s itemdef.modelOffset2 = 24; ^ symbol: variable itemdef location: class ItemDef ItemDef.java:250: error: cannot find s itemdef.anInt165 = 20086; ^ symbol: variable itemdef location: class ItemDef ItemDef.java:251: error: cannot find s itemdef.anInt165 = 20086; ^ symbol: variable itemdef location: class ItemDef ItemDef.java:252: error: cannot find s itemdef.groundActions = new String[5]; ^ symbol: variable itemdef location: class ItemDef ItemDef.java:253: error: cannot find s itemdef.groundActions[2] = "Take"; ^ symbol: variable itemdef location: class ItemDef ItemDef.java:254: error: cannot find s itemdef.itemActions = new String[5]; ^ symbol: variable itemdef location: class ItemDef ItemDef.java:255: error: cannot find s itemdef.itemActions[1] = "Wear"; ^ symbol: variable itemdef location: class ItemDef ItemDef.java:256: error: cannot find s itemdef.itemActions[4] = "Drop"; ^ symbol: variable itemdef location: class ItemDef Note: client.java uses unchecked or un Note: Recompile with -Xlint:unchecked 16 errors Press any key to continue . . . Any help would be awesome thanks guys.
  3. [quote name='Dave'][CODE] if (command.startsWith("tele")) { String[] arg = command.split(" "); if (arg.length > 3) c.getPA().movePlayer(Integer.parseInt(arg[1]), Integer.parseInt(arg[2]), Integer.parseInt(arg[3])); else if (arg.length == 3) c.getPA().movePlayer(Integer.parseInt(arg[1]), Integer.parseInt(arg[2]), c.heightLevel); }[/CODE] You might need to do minor edits as my commands have been re-written.[/QUOTE] Thanks you [COLOR="silver"][SIZE=1]- - - Updated - - -[/SIZE][/COLOR] [quote name='Fuzen Seth']What? I just went to my server to give him original ::tele And look what I found! [code] if (playerCommand.startsWith("tele")) { String[] arg = playerCommand.split(" "); if (arg.length > 3) c.getPA().movePlayer(Integer.parseInt(arg[1]), Integer.parseInt(arg[2]), Integer.parseInt(arg[3])); else if (arg.length == 3) c.getPA().movePlayer(Integer.parseInt(arg[1]), Integer.parseInt(arg[2]), c.heightLevel); }[/code] watwatwat[/QUOTE] Thanks
  4. Guys i have been looking everywhere and cannot find this. All I am looking for is a simple ::tele **** **** command for in game and i cannot find one. If anyone can help me I'm on a 317 PI server. I really need this, Thanks in advanced.
  5. Red122

    Adding models help

    hey guys i have recently started coding a 317 blank delta and i am trying to add models. I put the gzip files in the "models" folder and put the int into the class 8 but when i compile and get in i cannot add them. I have tried almost every form of "addmodel ****" and "addmodels" ext. Not sure what to do any suggestions would be greatly appreciated! Thank you in advanced!
×