Jump to content

Ahmedo0o

Member
  • Content count

    36
  • Joined

  • Last visited

  1. Whenever I drop something, it gets dropped and I see it. But if i leave the place and come back it doesn't appear to me anymore. Like, Im in Varrock I drop scimitar. I tele to Lumbridge then come back to Varrock in 1sec, the dropped item dissappears. But if I stay in Varrock for around 10 minutes, the dropped item would never disappear, but if I go away from it, it does. [HTML] public void createGroundItem(int itemID, int itemX, int itemY, int itemAmount) { // Phate: creates item at absolute X and Y outStream.createFrame(85); // Phate: Spawn ground item outStream.writeByteC((itemY - 8 * mapRegionY)); outStream.writeByteC((itemX - 8 * mapRegionX)); outStream.createFrame(44); outStream.writeWordBigEndianA(itemID); outStream.writeWord(itemAmount); outStream.writeByte(0); // x(4 MSB) y(LSB) coords // System.out.println("CreateGroundItem "+itemID+" "+(itemX - 8 * // mapRegionX)+","+(itemY - 8 * mapRegionY)+" "+itemAmount); }[/HTML]
  2. [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.
  3. Anyone knows a good server that is 317 and its files are like this? [ATTACH=CONFIG]8389[/ATTACH] not like recent servers the source files are split in src, deps, data etc ..
  4. [CODE]private int getRangeCombatDelay(int weaponId, int attackStyle) { int delay = 6; if (weaponId != -1) { String weaponName = ItemDefinitions.getItemDefinitions(weaponId) .getName().toLowerCase(); if (weaponName.contains("deathtouched dart")) { if (target instanceof Player) { Player p2 = (Player) target; p2.stopAll(); } else { NPC n = (NPC) target; World.sendProjectile(player, n, 3429, 41, 36, 50, 0, 15, 0); n.setNextGraphics(new Graphics(3428)); n.setCapDamage(200000); n.applyHit(new Hit(player, n.getHitpoints(), HitLook.CRITICAL_DAMAGE)); player.getAppearence().generateAppearenceData(); } } } else if (weaponName.contains("crossbow")) { delay = 5; } else if (weaponName.contains("dart") || weaponName.contains("knife") || weaponName.contains("chinchompa")) { delay = 2; }[/CODE] try this, as you should use {} in if statements
  5. Hello .. I'm starting a new server, and developing my source. In my source when I wield a staff I can't auto cast a spell like air rush etc .. how to fix it? is there a tut? when I click on spell(the buttom with book in it) the button becomes red with the other buttom which is spell(buttom with book and shield on it). another user with same problem [QUOTE]Dear runelocus users, First of all, thanks for reading my post on the first place, but now I'm going to tell the problem I have, I'm hosting a server in BETA stage, like fixing bugs, adding harder eco, but I found out yesterday that I can't use Autocast for magic, If I click the 2 buttons when I wear a staff it doesn't do anything, it just makes the button's ''red'' and thats all, it won't open a dialogue or something But I looked all day on Google search bar, and Runelocus, and other RSPS forums, but I couldn't find anything, So I just made this topic so I have you guys could help me, I'm not a really experience coder specially not in fixing autocast, I tryd it, but I failed... Regards, Illusion x[/QUOTE]
  6. [quote name='Gabe12']did you change the ip?[/QUOTE] yes
  7. [quote name='Thymen']Error connecting to the server is like on every client. I acutally dont know why.[/QUOTE] but I can't play :S [quote name='Nighthawk123']because you have to run the client and source...[/QUOTE] I'm running them both ..
  8. Hi, in the runelocus status checker, my server appears to be online [CODE]baharna.no-ip.org:43594 is ONLINE and playable. [/CODE] but I can't log in using the client, Error connecting to server.
  9. first extract them .. right click on the archive startpack.zip and choose extract here then ull be able to edit files successfully
  10. in no-ip adding host setting in IP Address: place, do I write my ip or the ipv4 from ipconfig (cmd) ?
  11. [quote name='Cold mist2']You may need to activate your no-ip adress. Like i downloaded no-ip and then set it it through that.[/QUOTE] it's already activated ... and running
  12. [quote name='Cold mist2']In your client.java open it and search server = the ip of the server Then in your source go to src server and then server. open it and look for the ip area. put your ip. THen remake your client so it has that ip-adress.[/QUOTE] already did that ..
  13. [quote name='Cold mist2']If you made the client before you changed the ip, then make a new client so it has the new ip[/QUOTE] what do you mean? I re-open my client?(already did)
  14. Hello .. I'm new, I just portforwarded and checked the portforward and it's successful. In [url]http://www.canyouseeme.org/[/url] it says: [CODE][COLOR="#00FF00"]Success[/COLOR]: I can see your service on x.x.x.x on port (43594) Your ISP is not blocking port 43594[/CODE] and then I get this on the run.bat [CODE]Connection from www.no-ip.com:7207 ClientHandler: Client null disconnected (www.no-ip.com)[/CODE] but when I try to login from the clinet, the client says Error connecting to server and nothing prints in the run.bat of the server
  15. [quote name='Cold mist2']I have tried that as well. I would jsut go with no-ip. Its way easier. [URL="http://www.noip.com/"]http://www.noip.com/[/URL][/QUOTE] I tried no-ip, still it doens't seem to work. need to portforward I think
×