Jump to content

skata

Member
  • Content count

    11
  • Joined

  • Last visited

  1. I am currently having this problem with my customs i'm trying to add to my client, whenever I wield all of them at once they will make me invisible but when i wear certain ones they show fine. Help is appreciated and ill rep. [img]http://im.ezgif.com/tmp/ezgif-2187620176.gif[/img]
  2. this doesn't work for my source.
  3. skata

    Invisible NPC

    So i'm trying to make a NPC that looks like a regular character in my game, and when I spawn it it spawns, and I can see the yellow dot on the minimap, but the npc is invisible. [CODE]if(i == 5000) { stream.currentOffset = streamIndices[630]; entityDef.aByte68 = 3; entityDef.readValues(stream); // Collect original NPC data entityDef.actions = new String[5]; entityDef.actions[1] = "Attack"; int changedColors = 1; // Number of model colors changed on the NPC entityDef.originalModelColors = new int[changedColors]; entityDef.modifiedModelColors = new int[changedColors]; entityDef.originalModelColors[0] = 40; // Original model color entityDef.modifiedModelColors[0] = 34; // Changed model color entityDef.models = new int[9]; entityDef.models[0] = 10653;//Npc's Cape entityDef.models[1] = 11718;//Npc's Head entityDef.models[2] = 11724;//Npc's Plate entityDef.models[3] = 11726;//Npc's Legs entityDef.models[4] = 4151;//Npc's Weapon entityDef.models[5] = 7462;//Npc's Gloves entityDef.models[6] = 11732;//Npc's Boots entityDef.models[7] = 17461;//Npc's Darkness(Shadow) entityDef.models[8] = 20147;//Npc's Arms(You Dont Have To Edit) entityDef.standAnim = 6001;// Npc's Stand Emote entityDef.name = "@[email protected] Warrior"; entityDef.combatLevel = 175;//Combat Level entityDef.description = "A warrior of GalaxyRS".getBytes(); }[/CODE]
  4. skata

    [PI] JAR client

    I need help with this
  5. [quote name='evilguyme']you are probably using the delta itemdef ints codes instead of PI.. either post the code of the model you have added into itemdef.java so i can have a look at it OR if im right about the problem already then get a guide on converting custom model ints to PI EDIT: also try and use eclipse it will help you fix a lot of your simple problems[/QUOTE] Thanks for the feedback, I put more information up.
  6. [B][COLOR="#00FF00"]Hello fellow Runelocus members, I have downloaded the new "tyreatta-scape" source and client to start to learn coding java and possibly open up my own RSPS in the future. I have started learning a lot, and it's been really fun for me. I tried adding this custom model to my game, but then when I spawn the item it freezes my client and gives me this error:[/COLOR][/B] [CODE]Error: T1 - 123,0 - 36,36 Exception in thread "Thread-3" java.lang.ArrayIndexOutOfBoundsException: -79 at Model.method479(Model.java:1045) at ItemDef.method201(ItemDef.java:1859) at ItemDef.getSprite(ItemDef.java:1748) at client.drawInterface(client.java:8613) at client.drawTabArea(client.java:2055) at client.drawGameScreen(client.java:8407) at client.processDrawing(client.java:9155) at RSApplet.run(RSApplet.java:108) at client.run(client.java:4846) at java.lang.Thread.run(Unknown Source)[/CODE] [COLOR="#00FF00"][B]My full ItemDef[/B][/COLOR] [CODE][url=http://www.mediafire.com/view/s7jy5oghz2ls5fb/itemdef.txt]http://www.mediafire.com/view/s7jy5oghz2ls5fb/itemdef.txt[/url][/CODE] [B][COLOR="#00FF00"]ItemDef.method201[/COLOR][/B] [CODE] public Model method201(int i) { if(stackIDs != null && i > 1) { int j = -1; for(int k = 0; k < 10; k++) if(i >= stackAmounts[k] && stackAmounts[k] != 0) j = stackIDs[k]; if(j != -1) return forID(j).method201(1); } Model model = (Model) mruNodes2.insertFromCache(id); if(model != null) return model; model = Model.method462(modelID); if(model == null) return null; if(anInt167 != 128 || anInt192 != 128 || anInt191 != 128) model.method478(anInt167, anInt191, anInt192); if (originalModelColors != null) { for (int l = 0; l < originalModelColors.length; l++) model.method476(originalModelColors[l], modifiedModelColors[l]); } model.method479(64 + anInt196, 768 + anInt184, -50, -10, -50, true); model.aBoolean1659 = true; mruNodes2.removeFromCache(model, id); return model; } [/CODE] [B][COLOR="#00FF00"]Model.method479[/COLOR][/B] [CODE] public void method479(int i, int j, int k, int l, int i1, boolean flag) { int j1 = (int)Math.sqrt(k * k + l * l + i1 * i1); int k1 = j * j1 >> 8; if(anIntArray1634 == null) { anIntArray1634 = new int[anInt1630]; anIntArray1635 = new int[anInt1630]; anIntArray1636 = new int[anInt1630]; } if(super.aClass33Array1425 == null) { super.aClass33Array1425 = new Class33[anInt1626]; for(int l1 = 0; l1 < anInt1626; l1++) super.aClass33Array1425[l1] = new Class33(); } for(int i2 = 0; i2 < anInt1630; i2++) { int j2 = anIntArray1631[i2]; int l2 = anIntArray1632[i2]; int i3 = anIntArray1633[i2]; int j3 = anIntArray1627[l2] - anIntArray1627[j2]; int k3 = anIntArray1628[l2] - anIntArray1628[j2]; int l3 = anIntArray1629[l2] - anIntArray1629[j2]; int i4 = anIntArray1627[i3] - anIntArray1627[j2]; int j4 = anIntArray1628[i3] - anIntArray1628[j2]; int k4 = anIntArray1629[i3] - anIntArray1629[j2]; int l4 = k3 * k4 - j4 * l3; int i5 = l3 * i4 - k4 * j3; int j5; for(j5 = j3 * j4 - i4 * k3; l4 > 8192 || i5 > 8192 || j5 > 8192 || l4 < -8192 || i5 < -8192 || j5 < -8192; j5 >>= 1) { l4 >>= 1; i5 >>= 1; } int k5 = (int)Math.sqrt(l4 * l4 + i5 * i5 + j5 * j5); if(k5 <= 0) k5 = 1; l4 = (l4 * 256) / k5; i5 = (i5 * 256) / k5; j5 = (j5 * 256) / k5; if(anIntArray1637 == null || (anIntArray1637[i2] & 1) == 0) { Class33 class33_2 = super.aClass33Array1425[j2]; class33_2.anInt602 += l4; class33_2.anInt603 += i5; class33_2.anInt604 += j5; class33_2.anInt605++; class33_2 = super.aClass33Array1425[l2]; class33_2.anInt602 += l4; class33_2.anInt603 += i5; class33_2.anInt604 += j5; class33_2.anInt605++; class33_2 = super.aClass33Array1425[i3]; class33_2.anInt602 += l4; class33_2.anInt603 += i5; class33_2.anInt604 += j5; class33_2.anInt605++; } else { int l5 = i + (k * l4 + l * i5 + i1 * j5) / (k1 + k1 / 2); anIntArray1634[i2] = method481(anIntArray1640[i2], l5, anIntArray1637[i2]); } } if(flag) { method480(i, k1, k, l, i1); } else { aClass33Array1660 = new Class33[anInt1626]; for(int k2 = 0; k2 < anInt1626; k2++) { Class33 class33 = super.aClass33Array1425[k2]; Class33 class33_1 = aClass33Array1660[k2] = new Class33(); class33_1.anInt602 = class33.anInt602; class33_1.anInt603 = class33.anInt603; class33_1.anInt604 = class33.anInt604; class33_1.anInt605 = class33.anInt605; } } if(flag) { method466(); } else { method468(); } } [/CODE] [B][COLOR="#00FF00"]When I add this custom item to my game, it works fine:[/COLOR][/B] [CODE]case 5000: itemDef.actions = new String[5]; itemDef.actions[1] = "Wear"; itemDef.modifiedModelColors = new int[1]; itemDef.modifiedModelColors[0] = 127; itemDef.originalModelColors = new int[1]; itemDef.originalModelColors[0] = 944; itemDef.modelID = 19586; itemDef.modelZoom = 1800; itemDef.modelRotation1 = 1161; itemDef.modelRotation2 = 192; itemDef.anInt204 = 0; itemDef.modelOffset1 = -18; itemDef.modelOffset2 = 75; itemDef.maleEquip1 = 22; itemDef.femaleEquip1 = 22; itemDef.anInt188 = -1; itemDef.anInt164 = -1; itemDef.anInt175 = -1; itemDef.anInt197 = -1; itemDef.name = "@[email protected] Tooth Sword"; itemDef.description = "Made from the teeth of a dragon.".getBytes(); itemDef.stackable = false; break; [/CODE] [B][COLOR="#00FF00"]When I add this custom item to my game, it gives me the error:[/COLOR][/B] [CODE] case 11527: itemDef.modelID = 70729; itemDef.name = "@[email protected] Full Helm"; itemDef.modelZoom = 780; itemDef.modelRotation2 = 229; itemDef.modelRotation1 = 177; itemDef.modelOffset1 = -34; itemDef.modelOffset2 = 1; itemDef.maleEquip1 = 70662; itemDef.femaleEquip1 = 70691; itemDef.actions = new String[5]; itemDef.actions[1] = "Wield"; break; [/CODE] [B][COLOR="#00FF00"]Thanks for any help or information that can possibly help me along my way, I am always willing to learn and give back to the community. - Skata[/COLOR][/B]
  7. New server, 10+ active usually now, we have added multiple pvm zones, many different money making methods. We have patched numerous bugs and the server is very secure for the players. We are also adding many customs too .
  8. Just added ::points, ::revs, ::mbox, and ::keys pvm zones!
×