Jump to content

thebadman

Member
  • Content count

    121
  • Joined

  • Last visited

  1. 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?
  2. 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]
  3. [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!
  4. [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
  5. [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?
  6. 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?
  7. 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?
  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. [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
  10. [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
  11. 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
  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. I don't have a 'combatassistant.java'
  14. thebadman

    HandCannon Code

    Does anyone have a code for handcannon for a 317? I would like to add it to my server.
×