Jump to content

Search the Community

Showing results for tags 'ground'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • RuneLocus
    • News & Announcements
    • Information Booth
    • Website Support
    • Introductions
    • Chat
    • Forum Games
  • RuneScape Development
    • RSPS General
    • RuneScape Private Server (RS2)
    • RuneScape Private Server (503+)
    • RuneScape Private Server (EoC 742+)
  • Other
    • Digital Art
    • Gaming
    • Webdevelopment
    • Computers
  • Marketplace
    • RuneScape Market
    • RSPS Market
    • Others Market
    • Freelance Middleman Services
  • Super Secret Club's Topics

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 11 results

  1. 718/742 source Hey there I got the following proplem and cant seem to figure out how to fix it. For example sergeant steelwill has a chance to drop 3 sharks when killed. If I get that drop the drop pile only shows 1 shark in the pile, but when I pick it up, it picks up 3 like it should. Now I want to fix it so it shows up 3 sharks in the drop pile. I've been looking through: NPC.java (sendDrop method), Drop.java, and every .java that has the word: groundItem in it... If anyone could point me in the right direction I would greatly appreciate it.
  2. Hyperon

    Ground items nulled

    I am using Hyperion/Rs2-Server 474. I have been racking my brain for about a week now and after ripping the register(GroundItem) and createGroundItem(GroundItem) methods apart I have come to the conclusion I have no idea. The problem only occurs when I change regions (ground items are region loaded for each player). I drop an item or spawn global item drops and one item appears fine. [img]http://puu.sh/durTs/a2d3ab8ed7.png[/img] I then leave the region. [img]http://puu.sh/durQ1/8435b70398.png[/img] And return to the item dropped, and there are two, but I can only pick one item up. The other is nulled. [img]http://puu.sh/durUF/fc0aab7212.png[/img] When I drop an item, this is what creates the GroundItem. I used different ways to create an item and they all have the same problem: [code] World.getWorld().createGroundItem(new GroundItem(player.getName(), item, player.getLocation()), player); World.getWorld().createGroundItem(new GroundItem("", new Item(8004, 1), Location.create(2526, 2913, 0)), null); GroundItem newItem = new GroundItem(null, new Item(4151, 1), Location.create(3233, 3233, 0)); register(newItem, null); GroundItem newItem = new GroundItem(player.getName(), new Item(4151, 1), Location.create(3233, 3233, 0)); register(newItem, player); [/code] My createGroundItem method: [code] public void createGroundItem(final GroundItem item, final Player player) { Tile tile = item.getRegion().getTile(item.getLocation()); if(item.getItem().getDefinition().isStackable()) { if(tile.getGroundItems().size() > 0) { for(GroundItem g : tile.getGroundItems()) { if(item.isOwnedBy(player.getName()) && g.getItem().getId() == item.getItem().getId()) { long existingItemCount = (long) g.getItem().getCount(); long newItemCount = (long) item.getItem().getCount(); long total = existingItemCount + newItemCount; long remainder = 0; if(total > Integer.MAX_VALUE) { total = existingItemCount + (Integer.MAX_VALUE - existingItemCount); remainder = (existingItemCount + newItemCount) - Integer.MAX_VALUE; } g.setItem(new Item(g.getItem().getId(), (int) total)); if(remainder > 0) { if(player != null) { player.getInventory().add(new Item(g.getItem().getId(), (int) remainder)); } } if(g.isGlobal()) { for(Region r : getRegionManager().getSurroundingRegions(item.getLocation())) { for(Player p : r.getPlayers()) { p.getActionSender().removeGroundItem(g); p.getActionSender().sendGroundItem(g); logger.info("We are here if g.isGlobal()"); } } } else { player.getActionSender().removeGroundItem(g); player.getActionSender().sendGroundItem(g); logger.info("We are here if !g.isGlobal()"); } return; } } } } register(item, player); } [/code] and my register(GroundItem, Player) method: [code] /** * Registers a new ground item. * [MENTION=75098]Para[/MENTION]m item The item to register. * [MENTION=75098]Para[/MENTION]m player The controller. */ public void register(final GroundItem item, final Player player) { item.getRegion().getGroundItems().add(item); item.getRegion().getTile(item.getLocation()).getGroundItems().add(item); if(player != null) { player.getActionSender().sendGroundItem(item); submit(new Tickable(100) { public void execute() { if(item.isRegistered()) { for(Region r : getRegionManager().getSurroundingRegions(item.getLocation())) { for(Player p : r.getPlayers()) { if(!p.getName().equalsIgnoreCase(player.getName())) { p.getActionSender().sendGroundItem(item); logger.info("We are here if player != null"); } } } item.setGlobal(true); } this.stop(); } }); } else if(player == null || item.getControllerName().length() < 1) { for(Region r : getRegionManager().getSurroundingRegions(item.getLocation())) { for(Player p : r.getPlayers()) { if(player == null || !p.getName().equalsIgnoreCase(player.getName())) { p.getActionSender().sendGroundItem(item); logger.info("We are here if player == null"); } } } item.setGlobal(true); } submit(new Tickable(200) { public void execute() { if(item.isRegistered()) { unregister(item); } this.stop(); } }); } [/code] As you can see in the register and createGroundItem methods I entered some debugging information to print, and it is telling me that when it registers, Player player is returning null. [img]http://puu.sh/dutyo/725134560e.png[/img] Any ideas? If you need any more information let me know. I really need a second pair of eyes on this.
  3. [Delta] Items drop to the ground when you die Hello, In my rsps when you die, you keep 3 items, and the rest disappears. My players started to nag about it, so I spent about 2 hours trying to fix it but couldn't. I want the rest of the items (except the 3) to be left (dropped) on the ground where you died, like rs or a lot of rsps's around here. This is my whole youdie() method: [CODE]public void youdied() { if(playerHasItem(5509)){ deleteItem(5509, 1); } if(playerHasItem(5510)){ deleteItem(5510, 1); } if(playerHasItem(5512)){ deleteItem(5512, 1); } if(playerHasItem(5514)){ deleteItem(5514, 1); } if(playerHasItem(6570)){ keep6570 = true; deleteItem(6570, 1); } if (!isSkulled) { keepItemHandle(); } if (ProtItem) { applyProtectItemProt(); } for(int rr=0; rr<playerItems.length; rr++) { try { if(playerItems[rr] > 0 && playerItems[rr] < 11999) { //createItem(currentX,currentY,playerItems[rr]-1); replaceBarrows(); //server.checkPlayerCapes.checkDrop(this); ItemHandler.addItem(playerItems[rr]-1, absX, absY, playerItemsN[rr], KillerId, false); //createGroundItem(playerItems[rr]-1, absX, absY, playerItemsN[i]); deleteItem(playerItems[rr]-1, getItemSlot(playerItems[rr]-1), playerItemsN[rr]); } } catch(Exception e) { } } for(int r=0; r<playerEquipment.length; r++) { try { int item = playerEquipment[r]; if((item > 0) && (item < 11999)) { remove(item, r); } } catch(Exception e) { sM("ERROR: Removing Equipment"); } } if(playerHasItem(5509)){ deleteItem(5509, 1); } if(playerHasItem(5510)){ deleteItem(5510, 1); } if(playerHasItem(5512)){ deleteItem(5512, 1); } if(playerHasItem(5514)){ deleteItem(5514, 1); } if(playerHasItem(6570)){ keep6570 = true; deleteItem(6570, 1); } for(int rr=0; rr<playerItems.length; rr++) { try { if(playerItems[rr] > 0 && playerItems[rr] < 11999) { //createItem(currentX,currentY,playerItems[rr]-1); replaceBarrows(); //server.checkPlayerCapes.checkDrop(this); ItemHandler.addItem(playerItems[rr]-1, absX, absY, playerItemsN[rr], KillerId, false); //createGroundItem(playerItems[rr]-1, absX, absY, playerItemsN[i]); deleteItem(playerItems[rr]-1, getItemSlot(playerItems[rr]-1), playerItemsN[rr]); } } catch(Exception e) { } } try { } catch(Exception e) {} ItemHandler.addItem(526, absX, absY, 1, KillerId, false); try { } catch(Exception e) {} if (itemKept1 > 0) addItem(itemKept1, 1); if (itemKept2 > 0) addItem(itemKept2, 1); if (itemKept3 > 0) addItem(itemKept3, 1); if (itemKept4 > 0) addItem(itemKept4, 1); if (keep6570) { addItem(6570, 1); keep6570 = false; } resetKeepItem(); hitDiff = 0; updateRequired = true; appearanceUpdateRequired = true; } [/CODE] I tried un-commenting the [CODE]creategrounditem[/CODE] but it didn't work.
  4. i want to make a certain area walkable i have the coords for it and everything im just not sure how to change it to be able to walk there? and after it is walkable i want to be able to make it wild in the area. could anyone help?
  5. I was wondering if its possible if you click an object or do a command it will spawn an item on the ground say shark or something? does anyone know how?;p
  6. EDIT! Never mind I got it :D
  7. [code] /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.rs2.net.packet.packets; import com.rs2.model.players.Player; import com.rs2.net.packet.Packet; import com.rs2.net.packet.PacketManager.PacketHandler; import com.rs2.util.*; import com.rs2.net.StreamBuffer; /** * * @author Mayhem' */ public class IOGIPacketHandler implements PacketHandler { public static final int ITEMONGROUND = 181; @Override public void handlePacket(Player player, Packet packet) { try { int slot = packet.getIn().readShort(false, StreamBuffer.ValueType.STANDARD, StreamBuffer.ByteOrder.LITTLE); int itemId = packet.getIn().readShort(false, StreamBuffer.ValueType.STANDARD, StreamBuffer.ByteOrder.BIG); int frame = packet.getIn().readShort(false, StreamBuffer.ValueType.STANDARD, StreamBuffer.ByteOrder.LITTLE); int spell = packet.getIn().readShort(false, StreamBuffer.ValueType.A, StreamBuffer.ByteOrder.BIG); System.out.printf("Slot: %s, Item: %s, Frame: %s, Spell: %s", Integer.toString(slot), Integer.toString(itemId), Integer.toString(frame), Integer.toString(spell)); } catch (Exception e) { e.printStackTrace(); } } } [/code] I do not believe that it is completely correct, but it handles.. I wrote this for documentation, will try to get it on RSWiki soon.. The Packet length should be equal to 8.
  8. [IMG]http://runescape.salmoneus.net/assets/images/quests/lost-city/treespirit.png[/IMG] The place where you kill the tree spirit. Thanks in advance.
  9. My floors are black at home...is there anyway to fix this? [IMG]http://i1178.photobucket.com/albums/x361/TreTurnerTv/l-dhome.jpg[/IMG]
  10. How do I make it so I can create a ground item? It's defined but I don't know howto add it!
  11. The pants on the ground guy was beaten up by 7 or so gang members for singing his song in front of them, then found dead. [url]http://www.celebjihad.com/celeb-jihad/pants-on-the-ground-singer-found-dead[/url]
×