|
"Well yeah... just change anInt1559 type to long instead of int and edit the type size from 2 to 8"
It was never an int, it was a short. With that being said, changing the amount into a long is an overkill. An item's amount can never exceed max integer, you should've set it as an integer instead of a long. It's nothing major but just pointing out.
Thanks man, appreciate it
Did you do this for OS-Veldhar? Surprisingly similar without the fading and transparency.
Yeah, little miss-type my bad it was like 3am when I quickly posted the reply knowing some people might need it, was just giving an example of what needed to be done
No, I did not 'rip' or base this off of any other releases aside from OSBuddy :\ (have not done this for anyone either)
Just saying, they are similar.Code:private void displayGroundItems() { /** * Loop thru all tiles in region */ for (int x = 0; x < 104; x++) { for (int y = 0; y < 104; y++) { NodeList class19 = groundArray[plane][x][y]; int count = 0; if (class19 != null) { for (Item item = (Item) class19.getFirst(); item != null; item = (Item) class19.getNext()) { /** * loops thru all the ground tiles , then all the * 'items' (if the tile has an item on it) res tis self * explanatory */ ItemDefinition itemDef = ItemDefinition.forID(item.ID);
It's similar but that doesn't mean much, only things similar is what SHOULD be similar
Code:for (int k33 = byte1; k33 != byte2; k33 += byte3) { for (int l33 = byte4; l33 != byte5; l33 += byte6) { int i34 = k33 + i17; int j34 = l33 + j21; for (int k34 = 0; k34 < 4; k34++) if (i34 >= 0 && j34 >= 0 && i34 < 104 && j34 < 104) groundItems[k34][k33][l33] = groundItems[k34][i34][j34]; else groundItems[k34][k33][l33] = null; } }
Code:if (opcode == PacketConstants.DELETE_GROUND_ITEM) { localX = incoming.readNegUByte(); localY = incoming.readUByteS(); for (int x = localX; x < localX + 8; x++) { for (int y = localY; y < localY + 8; y++) if (groundItems[plane][x][y] != null) { groundItems[plane][x][y] = null; spawnGroundItem(x, y); } }Code:for (int x = 0; x < 104; x++) { for (int y = 0; y < 104; y++) { Deque node = groundItems[plane][x][y]; if (node != null) { int relative_to_player_x = (x * 4 + 2) - localPlayer.x / 32; int relative_to_player_y = (y * 4 + 2) - localPlayer.y / 32; markMinimap(mapDotItem, relative_to_player_x, relative_to_player_y); } } }Code:Deque class19 = groundItems[plane][x][y]; if (class19 != null) { for (Item item = (Item) class19.getFirst(); item != null; item = (Item) class19.getNext()) { ItemDefinition itemDef = ItemDefinition.lookup(item.ID); if (itemSelected == 1) { menu_option(("Use " + selectedItemName + " -> <col=ff9040>" + itemDef.name), 511, item.ID, x, y); } else if (spellSelected == 1) {
What class would I put this in? I'm a noob. Thanks for the release, will use if I get help.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |