Jump to content

ihackcookies

Member
  • Content count

    87
  • Joined

  • Last visited

  1. [quote name='Fuzen Seth'][code]else if (itemId == 1783 || itemId == 1927 || itemId == 30 || itemId == 20933 || itemId == 1929 || itemId == 4687 || itemId == 7622 || itemId == 4286 || itemId == 12652 || itemId == 7622 || itemId == 15427 || itemId == 7622 || itemId == 7624 || [/code] You can just do: [code]public static final int[] FILLABLES = {1783,1927}; [/code] Instead of having 100x if checks you could of have stored the item ids into a integer array. [code]for (int fillables : FILLABLES) { if (itemId == fillables) {//so if the item is the fillable that is stored in the array //call crap here } } [/code] Hope I helped! :)[/QUOTE] Ohh Thanks! Easy but helpful, implementing it right now!
  2. Lately, I'v been thinking of working on a small 317 Pi project. But what does the community want? What is needed and would be a sure hit? A Economy Server? A Pking server? A Skilling Server? Anything else that I've missed, Please leave your thoughts below!
  3. [quote name='letifer']thanks I'll try that [COLOR="silver"][SIZE=1]- - - Updated - - -[/SIZE][/COLOR] this is what it looks like now: 1 [MENTION=7458]echo[/MENTION] off 2 title Chronicscape Compiler 3 echo starting... 4 "C:\Program Files\Java\jdk1.7.0_13\bin\javac.exe" -d bin -cp lib/*; -sourcepath src src/com/rs/*.java src/com/rs/cache/*.java src/com/rs/cache/loaders/*.java src/com/rs/cores/*.java src/com/rs/game/*.java src/com/rs/game/item/*.java src/com/rs/game/minigames/*.java src/com/rs/game/minigames/clanwars/*.java src/com/rs/game/minigames/creations/*.java src/com/rs/game/minigames/duel/*.java src/com/rs/game/minigames/pest/*.java src/com/rs/game/npc/*.java src/com/rs/game/npc/combat/*.java src/com/rs/game/npc/combat/impl/*.java src/com/rs/game/npc/corp/*.java src/com/rs/game/npc/dragons/*.java src/com/rs/game/npc/familiar/*.java src/com/rs/game/npc/fightcaves/*.java src/com/rs/game/npc/fightkiln/*.java src/com/rs/game/npc/fightpits/*.java src/com/rs/game/npc/godwars/*.java src/com/rs/game/npc/godwars/armadyl/*.java src/com/rs/game/npc/godwars/bandos/*.java src/com/rs/game/npc/godwars/saradomin/*.java src/com/rs/game/npc/godwars/zammorak/*.java src/com/rs/game/npc/godwars/zaros/*.java src/com/rs/game/npc/kalph/*.java src/com/rs/game/npc/nomad/*.java src/com/rs/game/npc/others/*.java src/com/rs/game/npc/pet/*.java src/com/rs/game/npc/qbd/*.java src/com/rs/game/npc/slayer/*.java src/com/rs/game/npc/sorgar/*.java src/com/rs/game/player/*.java src/com/rs/game/player/actions/*.java src/com/rs/game/player/actions/mining/*.java src/com/rs/game/player/actions/runecrafting/*.java src/com/rs/game/player/actions/thieving/*.java src/com/rs/game/player/content/*.java src/com/rs/game/player/content/agility/*.java src/com/rs/game/player/content/magic/*.java src/com/rs/game/player/content/pet/*.java src/com/rs/game/player/controlers/*.java src/com/rs/game/player/controlers/castlewars/*.java src/com/rs/game/player/controlers/events/*.java src/com/rs/game/player/controlers/fightpits/*.java src/com/rs/game/player/controlers/pestcontrol/*.java src/com/rs/game/player/cutscenes/*.java src/com/rs/game/player/cutscenes/actions/*.java src/com/rs/game/player/dialogues/*.java src/com/rs/game/player/quests/*.java src/com/rs/game/tasks/*.java src/com/rs/io/*.java src/com/rs/net/*.java src/com/rs/game/player/content/dungeoneering/*.java src/com/rs/net/decoders/*.java src/com/rs/net/decoders/handlers/*.java src/com/rs/net/encoders/*.java src/com/rs/tools/*.java src/com/rs/utils/*.java src/com/rs/utils/huffman/*.java 5 pause Am i supposed to have the 1-5 numbers there?[/QUOTE] Try this for the server compiler Replace **** with your jdk version. [QUOTE]@echo off title Chronicscape Compiler echo starting... "C:\Program Files\Java\jdk1.****\bin\javac.exe" -d bin -cp lib/*; -sourcepath src src/com/rs/*.java src/com/rs/cache/*.java src/com/rs/cache/loaders/*.java src/com/rs/cores/*.java src/com/rs/game/*.java src/com/rs/game/item/*.java src/com/rs/game/minigames/*.java src/com/rs/game/minigames/clanwars/*.java src/com/rs/game/minigames/creations/*.java src/com/rs/game/minigames/duel/*.java src/com/rs/game/minigames/pest/*.java src/com/rs/game/npc/*.java src/com/rs/game/npc/combat/*.java src/com/rs/game/npc/combat/impl/*.java src/com/rs/game/npc/corp/*.java src/com/rs/game/npc/dragons/*.java src/com/rs/game/npc/familiar/*.java src/com/rs/game/npc/fightcaves/*.java src/com/rs/game/npc/fightkiln/*.java src/com/rs/game/npc/fightpits/*.java src/com/rs/game/npc/godwars/*.java src/com/rs/game/npc/godwars/armadyl/*.java src/com/rs/game/npc/godwars/bandos/*.java src/com/rs/game/npc/godwars/saradomin/*.java src/com/rs/game/npc/godwars/zammorak/*.java src/com/rs/game/npc/godwars/zaros/*.java src/com/rs/game/npc/kalph/*.java src/com/rs/game/npc/nomad/*.java src/com/rs/game/npc/others/*.java src/com/rs/game/npc/pet/*.java src/com/rs/game/npc/qbd/*.java src/com/rs/game/npc/slayer/*.java src/com/rs/game/npc/sorgar/*.java src/com/rs/game/player/*.java src/com/rs/game/player/actions/*.java src/com/rs/game/player/actions/mining/*.java src/com/rs/game/player/actions/runecrafting/*.java src/com/rs/game/player/actions/thieving/*.java src/com/rs/game/player/content/*.java src/com/rs/game/player/content/agility/*.java src/com/rs/game/player/content/magic/*.java src/com/rs/game/player/content/pet/*.java src/com/rs/game/player/controlers/*.java src/com/rs/game/player/controlers/castlewars/*.java src/com/rs/game/player/controlers/events/*.java src/com/rs/game/player/controlers/fightpits/*.java src/com/rs/game/player/controlers/pestcontrol/*.java src/com/rs/game/player/cutscenes/*.java src/com/rs/game/player/cutscenes/actions/*.java src/com/rs/game/player/dialogues/*.java src/com/rs/game/player/quests/*.java src/com/rs/game/tasks/*.java src/com/rs/io/*.java src/com/rs/net/*.java src/com/rs/game/player/content/dungeoneering/*.java src/com/rs/net/decoders/*.java src/com/rs/net/decoders/handlers/*.java src/com/rs/net/encoders/*.java src/com/rs/tools/*.java src/com/rs/utils/*.java src/com/rs/utils/huffman/*.java pause[/QUOTE] And for the client compiler try this ( replacing **** with your jdk version ) [QUOTE]@echo off title Client Compiler echo starting... "C:\Program Files\Java\jdk1.****/bin/javac" -cp lib/*; -d bin -sourcepath src src/*.java @pause[/QUOTE] Hopefully that helps, otherwise add me on Skype and I will try and fix it. Skype Name : cjb162
  4. [quote name='StevenAbraham']He has never released the source as far as I know. [MENTION=27793]Lukedawesome[/MENTION][/QUOTE] Ah right, thought he was. Thanks anyway
  5. [quote name='geowayne']Hello I've looked all over for a firemaking coding but they don't really work. My problem is: my character will do the lighting animation but he will just keep bending and acting as if he is lighting. NO FIRE will come out! or log starting to get fire.... please take a look at mine and tell me what is missing and what I've done wrong. Thank you! [CODE]package server.model.players.skills; import server.Config; import server.model.players.Client; import server.model.objects.Objects; import server.Server; /** * Firemaking.java * * @author Sanity * **/ public class Firemaking { private Client c; private int[] logs = {1511,1521,1519,1517,1515,1513}; private int[] exp = {1,3,4,5,7,8}; private int[] level = {1,15,30,45,60,75}; public long lastLight; private int DELAY = 1250; public boolean resetAnim = true; public Firemaking(Client c) { this.c = c; } public void checkLogType(int logType, int otherItem) { for (int j = 0; j < logs.length;j++) { if (logs[j] == logType || logs[j] == otherItem) { lightFire(j); return; } } } public void lightFire(int slot) { if (c.duelStatus >= 5) { c.sendMessage("Why am I trying to light a fire in the duel arena?"); return; } if (c.playerLevel[c.playerFiremaking] >= level[slot]) { if (c.getItems().playerHasItem(590) && c.getItems().playerHasItem(logs[slot])) { if (System.currentTimeMillis() - lastLight > DELAY) { c.startAnimation(733,0); c.getItems().deleteItem(logs[slot], c.getItems().getItemSlot(logs[slot]), 1); c.getPA().addSkillXP(logs[slot] * Config.FIREMAKING_EXPERIENCE, c.playerFiremaking); Objects fire = new Objects(2732,c.getX(),c.getY(), 0, -1, 10, 3); Objects fire2 = new Objects(-1,c.getX(),c.getY(), 0, -1, 10, 60); c.sendMessage("You light the fire."); this.lastLight = System.currentTimeMillis(); //c.getPA().frame1(); resetAnim = true; } } } } }[/CODE][/QUOTE] Okay so the player does the animation, but the lit fire doesnt appear on the ground? Does it remove the log successfully from their inventories and add the skill xp?
  6. [quote name='carllinx']i got a vps server and set it up now it needs java update and i dont know how to do it please help skype name is xthe2breedx[/QUOTE] Hey still need help? Add me on skype at : cjb162 and I would be happy to show you how to update your java version!
  7. I recently tried editing my server, attempting to add this fine addition - [URL="http://www.************.org/runescape-development/rs-503-client-server/snippets/514450-718-shooting-stars.html"]http://www.************.org/runescape-development/rs-503-client-server/snippets/514450-718-shooting-stars.html[/URL] - replace the ******** with r u n e - s e r v e r (without the spaces) Unfortunately I received 3 errors, i sorted these out as I forgot to add imports. After compiling, I then received 6 more errors. Ive tried a few things, but nothing seems to get rid of the errors. I did exactly everything the tutorial said, but here is a screenshot of my compiler. here is a link to the error, cant upload, apparently an invalid link -.- [url]http://imgur.com/I7zgmVo[/url] If anyone knows how I can fix this, please comment, pm me or add me on skype at cjb162, thanks!
  8. [quote name='Trilla']So far I just plan on keeping it within my server, I do plan on selling it in the future wether its with / without the base I haven't decided.[/QUOTE] Ah sound's good, what revision is this? 317? PI Base?
  9. [quote name='letifer']ok this is what I have done so far. i hav put the cache into the data folder and i have made a new file called newcompiler.bat with the "no leech thingy" but when i run the "no leech"thing it pops up for 0.5 seconds and closes so idk if it worked or not :([/QUOTE] Hey, to make your compiler stay running after its completed, just put 'pause' at the end, without the speech marks. Then it will say 'press enter to continue...' after it's completed instead of closing.
  10. Hey runelocus, just been working on a day s type project, and was wondering if anyone had the rune z release, as the developer said he would release it for free if you contacted him, but i assume he is inactive on his account. If anyone can upload a copy or send me the files I would be greatly appreciated. Thanks lots, ihackcookies.
  11. [quote name='Trilla']Hello RuneLocus :D Been working on this Zombies Minigame on the side for a little over a month now. I wanted to show it off and maybe get some feedback and some other suggestions. [CENTER][video=youtube_share;rkA53cIaVsI]http://youtu.be/rkA53cIaVsI[/video][/CENTER] What my Zombie's Features: [LIST] [*]4 Purchasable Perks [*]Mystery Box [*]Toggible Interface [*]3 Different and Unique Classes [*]Unique Leveling System [*]Points rewarded for armour that gives you bonuses [*]21 Waves [/LIST][/QUOTE] Look's great! What are you planning to do with this? Keeping it to your own server, making it a unique feature? Or are you going to release a tutorial on how others can implement this feature into their own servers?
  12. [quote name='officiallulzs3c']Technically speaking you don't own the source as your not the original creator, Ikiliki may remove the source if you provide some proof that you actually edited it and made it your "own" as it where but you can't put a claim to something you've downloaded and edited.[/QUOTE] That's true, I did add a fair amount to the source I downloaded, of course alot of credits go to the original owner, but I feel I made the files my own, and therefore I think I should have a say on what the leaker does.
  13. [quote name='Fuzen Seth']I don't think so, I can't answer properly to that but when I got leaked ages a go guy just changed cache, moved home and changed server's name, there was my authority all over the source still. RuneLocus did nothing about it. (That's my own experience. Hard to say though)[/QUOTE] Ah thats a shame, sorry to hear that. Hopefully he wont release it though, but I don't have too much to worry about, it was a older version of my server anyway.
  14. Even though he has my source, if he was to release it, would the post be closed and would he be banned?
  15. Yeah thanks, looking into saving up some funds, to buy a host myself
×