Jump to content


  • Content count

  • Joined

  • Last visited

Everything posted by thebadman

  1. thebadman

    Cache error

    Hey guys I tried to run my server through eclipse but I was getting errors in the console, I fixed whatever I could but have this left, the cache file is there but I cant figure out why its doing this Can someone please help, will be much appreciated [CODE]Exception in thread "main" java.io.FileNotFoundException: user.home\742Cache\main_file_cache.dat2 (The system cannot find the path specified) at java.io.RandomAccessFile.open0(Native Method) at java.io.RandomAccessFile.open(Unknown Source) at java.io.RandomAccessFile.<init>(Unknown Source) at java.io.RandomAccessFile.<init>(Unknown Source) at com.ben.store.Store.<init>(Store.java:34) at com.ben.store.Store.<init>(Store.java:28) at com.ben.store.Store.<init>(Store.java:24) at com.matrix742.cache.Cache.load(Cache.java:72) at com.matrix742.Launcher.main(Launcher.java:95)[/CODE]
  2. thebadman

    Cache error

    [quote name='Arix']Also this doesn't work: [code]user.home\[/code] This works: [code]System.getProperty("user.home") + "\\742Cache\\"[/code][/QUOTE] thanks it worked Now my client is stuck on checking for updates 0% and getting error_game_js5connect do you know how to fix that?
  3. When I change the range str of a bow and pack ,it changes the whole gear to that bonus and also doesn't add the bonuses together when I wield armour or bolts, anyone know how to fix?
  4. [quote name='Arix']Just like the code shows. That for does this: for each bonus of the item, if the bonus is ranged strength, and the player already has a ranged strength bonus then don't add it up: [code]// if (id == RANGED_STR_BONUS && this.bonuses[RANGED_STR_BONUS] != 0) { // continue; // }[/code] Otherwise add the bonus to the player's bonuses. Continue means "go to the next bonus" so for ranged strength it would skip the adding. Though if you comment out the if structure or remove it then it will just always add up.[/QUOTE] It worked, thanks man!
  5. [quote name='Arix']Open CombatDefinitions, and check refreshBonuses() method. [code] for (int id = 0; id < bonuses.length; id++) { // if (id == RANGED_STR_BONUS && this.bonuses[RANGED_STR_BONUS] != 0) { // continue; // } this.bonuses[id] += bonuses[id]; } [/code] This commented code makes it so that there is already a ranged str bonus, it wont get added up. If you comment that it should solve some or all of your problems. The commented code is what is the anti-leech. Basically, if[/QUOTE] I have that code but how do I comment it so that I adds them up, sorry im noob thanks for your help
  6. [quote name='Arix']It's an anti-leech. You should check the method where it uses the stats of equipment (i think it was in playercombat, not sure) there is a little method that sets the stats for all other equipped armour if a certain armour had a certain thing about ranged. I've fixed it in an old server I was using.[/QUOTE] I cant figure it out, do you know what exactly I should be looking for?
  7. I have added the point system for killing npcs, does someone know how I can use these and make a command for ;;bankdrops, ;;morexp, ;;betterdrops?
  8. Hi guys, I was wondering if anyone could help me add a game point reward system to my server, which can be obtained by skilling and killing npcs, also being able to use these gamepoints for rewards such as morexp and betterdrops etc which can be used by commands like ;;morexp ;;betterdrops? Help would be much appreciated.
  9. Hi guys i have added game modes for my server such as iron man and was wondering if some can help as I can't figure out a way to disable trading and drop trading, also preventing them from participating in pvp. Help would be much appreciated :P
  10. [quote name='A Duck Tale']wouldnt have a clue on the exact code without looking at your source for your server. the [COLOR="#FF0000"]isIronMan[/COLOR] should be stored where all your other player variables are stored, and you would have to include it in your player saving/loading. as for the mockup code i posted, it would go wherever the packets on your server were processed, and the real check would look something closer to: [CODE] if (packetId == TRADE_PACKET || packetId == FLOOR_ITEM_PACKET || packetId == WHATEVER_PACKET_YOU_WANT_TO_CHECK){ if(!isIronMan){ // handle the appropriate packet } else{ // write a game message stating you can't do it in ironman. } } [/CODE][/QUOTE] I'm guessing it goes in the worldpacketsdecoder? i can't seem to get the code right, do you have skype so i can show you my source? i really appreciate you help
  11. [quote name='Game Master']Ahem... Remove the trading option via right click and replace corresponding methods. Shouldn't be hard at all.[/QUOTE] Sorry i'm a noob to this how would i do that? [quote name='A Duck Tale']you could just have a boolean variable '[COLOR="#FF0000"]isIronMan[/COLOR]' stored for each player and then perform a check: [CODE] if (!isIronMan){ // trade , pickup drops left on the ground by other people , etc } else{ // you cannot trade/etc on an ironman account } [/CODE][/QUOTE] And where would i put this? in player.java? and is that the exact code? Thank you both for helping
  12. thebadman

    Dialogue help

    Right, when i try talk to the guy to start a quest and he says something like 'can you help me?' and the options are 'yes or no' but when i click on yes nothing happens? so i can't start the quest. Can someone please help
  13. thebadman

    HandCannon Code

    Does anyone have a code for handcannon for a 317? I would like to add it to my server.
  14. I don't have a 'combatassistant.java'
  15. Those people who think it's funny to make fun of you just because there with a load of their mates, then when they're on their own they are so quite.
  16. I have just finished my server and it's a Runesky remake, But I cannot host due to my router so I am in need of a hoster, The hoster can Co-own the server with me maybe get payed too, I need one ASAP.
  17. thebadman

    Need A Partner

    Well, i'm looking for a partner/co-owner who can make a server with me, You must know what you are doing, some coding experience and maybe be able to host ( Just incase i can't). Partner will get 50% of everything to do with the server and maybe more depends on how good you are :P.
  18. thebadman

    Need A Partner

    Still in need of a partner.
  19. Well i want to upload a downloadable client so other people can play, but i don't know where exactly to change the server ip and i have no-ip aswell, so could someone tell me all the places where i have to change the server ip or change anything else?
  20. i've looked alot.. the ones that i like have download links that seem to be down..
  21. Does anyone know a good 317 source and client that i can use? Since most of the links are down on the good ones i have seen, Would be appreciated alot!
  22. thebadman

    Need A Partner

    i'm checking yours atm.
  23. thebadman

    Need A Hoster

    I am looking for a hoster since i cannot host for some reason,Hoster will get 50% of everything to do with the server and maybe more, So if you can host and your interested comment below and we'll sort something out.