Jump to content

Epic Ranger

Member
  • Content count

    73
  • Joined

  • Last visited

  1. [quote name='Hash']Try this: [code]token.equalsIgnoreCase("donator-points")[/code][/QUOTE] I love you.
  2. Hi, add my skype, please :) skype: Michael.harmiz

  3. Hello guys! Edited: playersave.java, player.java, shopassistant.java, shops.cfg, spawn-config.cfg. I followed this tutorial: [url]http://www.moparscape.org/smf/index.php?topic=498459.0[/url] Error: In a CHARACTERS (example below) [Code][ACCOUNT] character-username = pablooo dee jelly beannn character-password = dohai [CHARACTER] character-height = 0 [B]Donator-Points = 5000[/B] //<<<< HERE! character-posx = 3087 character-posy = 3500 character-rights = 0 character-title = 0 crystal-bow-shots = 0 skull-timer = 0 magic-book = 0 brother-info = 0 0 brother-info = 1 0 brother-info = 2 0 brother-info = 3 0 brother-info = 4 0 brother-info = 5 0 special-amount = 0.0 selected-coffin = 0 barrows-killcount = 0 teleblock-length = 0 pc-points = 0 slayerTask = 0 taskAmount = 0 magePoints = 0 autoRet = 0 barrowskillcount = 0 flagged = false wave = 0 gwkc = 0 fightMode = 0 void = 0 0 0 0 0 [EQUIPMENT] character-equip = 0 -1 1 character-equip = 1 -1 1 character-equip = 2 -1 1 character-equip = 3 -1 0 character-equip = 4 -1 1 character-equip = 5 -1 1 character-equip = 6 -1 0 character-equip = 7 -1 1 character-equip = 8 -1 0 character-equip = 9 -1 1 character-equip = 10 -1 1 character-equip = 11 -1 0 character-equip = 12 -1 1 character-equip = 13 -1 0 [LOOK] character-look = 0 0 character-look = 1 7 character-look = 2 25 character-look = 3 29 character-look = 4 35 character-look = 5 39 character-look = 6 44 character-look = 7 14 character-look = 8 7 character-look = 9 8 character-look = 10 9 character-look = 11 5 character-look = 12 0 [SKILLS] character-skill = 0 1 0 character-skill = 1 1 0 character-skill = 2 1 0 character-skill = 3 10 1300 character-skill = 4 1 0 character-skill = 5 1 0 character-skill = 6 1 0 character-skill = 7 1 0 character-skill = 8 1 0 character-skill = 9 1 0 character-skill = 10 1 0 character-skill = 11 1 0 character-skill = 12 1 0 character-skill = 13 1 0 character-skill = 14 1 0 character-skill = 15 1 0 character-skill = 16 1 0 character-skill = 17 1 0 character-skill = 18 1 0 character-skill = 19 1 0 character-skill = 20 1 0 character-skill = 21 1 0 character-skill = 22 1 0 character-skill = 23 1 0 character-skill = 24 1 0 [ITEMS] character-item = 0 996 100000 character-item = 1 1732 1 character-item = 2 555 200 character-item = 3 556 200 character-item = 4 557 200 character-item = 5 559 600 character-item = 6 1382 1 character-item = 7 1324 1 character-item = 8 842 1 character-item = 9 883 500 character-item = 10 381 100 [BANK] [FRIENDS] [EOF] [/code] The token "Donator-Points" is used for my donator shop. Though when I change this integer it dosn't change the actual amount of points the player has. BUT If you go to player.java and edited the "public int donarPoints;" and change to "public int donarPoints = 500;" it'll update the amount in the player's character file.... I know you can't do this because it'll change the amount of points for EVERYONE. [B]How do I fix?[/B] I'll upload my lines for player.java and playersave.java if anything else needed please request. PlayerSave.java: I added: [code] } else if (token.equals("donator-points")) { p.donarPoints = Integer.parseInt(token2);[/code] and [code] characterfile.write("Donator-Points = ", 0, 17); characterfile.write(Integer.toString(p.donarPoints), 0, Integer.toString(p.donarPoints).length()); characterfile.newLine();[/code] ShopAssistant.java: I added: [code] } else if (c.myShopId == 19) { if (c.donarPoints >= getSpecialItemValue(itemID)) { if (c.getItems().freeSlots() > 0) { c.donarPoints -= getSpecialItemValue(itemID); c.getItems().addItem(itemID, 1); c.getItems().resetItems(3823); } } else { c.sendMessage("You do not have enough donator points to buy this item."); } } } [/code] underneath public void handleOtherShop(int itemID) { and [code] if (c.myShopId >= 19) { c.sendMessage(c.getItems().getItemName(removeId) + ": currently costs " + getSpecialItemValue(removeId) + " donator points."); return; }[/code] underneath buyFromShopPrice( int removeID........
  4. If you wield an item and it wields it to the weapon slot... Do this to fix it! IM USING MILITUS'S SOURCE AND CLIENT!! First go to ItemAssistant.java. Next find: [code] targetSlot=12; } else { targetSlot=3; }[/code] UNDERNEATH THAT; Add this: [code] switch (wearID) { case 11732://dragon boots targetSlot = 10; break; } [/code] For instant it will now wear dragon boots in the correct slot! Here are some items that I had to fix for my base use at freewill! [code] switch (wearID) { case 13887://vesta chain targetSlot = 4; break; } switch (wearID) { case 13893://vesta skirt targetSlot = 7; break; } switch (wearID) { case 19785://elite void top 1 targetSlot = 4; break; } switch (wearID) { case 19787://elite void top 2 targetSlot = 4; break; } switch (wearID) { case 19789://elite void top 3 targetSlot = 4; break; } switch (wearID) { case 19803://elite void torso targetSlot = 4; break; } switch (wearID) { case 19786://elite void robe 1 targetSlot = 7; break; } switch (wearID) { case 119788://elite void robe 2 targetSlot = 7; break; } switch (wearID) { case 19790://elite void robe 3 targetSlot = 7; break; } switch (wearID) { case 19804://elite void legs targetSlot = 7; break; } switch (wearID) { case 8839://void top targetSlot = 4; break; } switch (wearID) { case 8840://void robe targetSlot = 7; break; } switch (wearID) { case 8842://void gloves targetSlot = 9; break; } switch (wearID) { case 10828://nezzy helm targetSlot = 0; break; } switch (wearID) { case 18361://eagle-eye kite targetSlot = 5; break; } switch (wearID) { case 18359://chatoic kite targetSlot = 5; break; } switch (wearID) { case 10548://fighter hat targetSlot = 0; break; } switch (wearID) { case 10551://fighter torso targetSlot = 4; break; } switch (wearID) { case 3751://berserk helm targetSlot = 0; break; } switch (wearID) { case 11128://berserker neck targetSlot = 2; break; } switch (wearID) { case 15126://amulet of ranging targetSlot = 2; break; } switch (wearID) { case 9245://onyx bolt (E) targetSlot = 13; break; } switch (wearID) { case 9244://dragon bolt (E) targetSlot = 13; break; } switch (wearID) { case 8850://rune defender targetSlot = 5; break; } switch (wearID) { case 20072://dragon defender targetSlot = 5; break; } switch (wearID) { case 11674://void mage helm targetSlot = 0; break; } switch (wearID) { case 11664://void ranger helm targetSlot = 0; break; } switch (wearID) { case 11676://void melee helm targetSlot = 0; break; } switch (wearID) { case 13884://statius plate targetSlot = 4; break; } switch (wearID) { case 10498://ava1 targetSlot = 1; break; } switch (wearID) { case 10499://ava2 targetSlot = 1; break; } switch (wearID) { case 20068://ava3 targetSlot = 1; break; } switch (wearID) { case 15243://cannonshot targetSlot = 13; break; } switch (wearID) { case 13890://statius platelegs targetSlot = 7; break; } switch (wearID) { case 13896://statius fullhelm targetSlot = 0; break; } switch (wearID) { case 18335:// targetSlot = 2; break; } switch (wearID) { case 13738://arcane spirit targetSlot = 5; break; } switch (wearID) { case 13740://divine spirit targetSlot = 5; break; } switch (wearID) { case 13742://elysian spirit targetSlot = 5; break; } switch (wearID) { case 13744://spectral spirit targetSlot = 5; break; } switch (wearID) { case 11283://nameofitem targetSlot = 5; break; } switch (wearID) { case 11724://bandos chest targetSlot = 4; break; } switch (wearID) { case 11726://bandos tassys targetSlot = 7; break; } [/code] No problem! Credit = 100% me.
  5. Hmm, well I added you. We can discuss on there.
  6. Cool! Thanks, I probably wont use the 'Mute' part. I think I'll change it so instead, it'll Kick. I cannot stand the mass-spammers selling shit on my server, of course I could fix this by making it impossible to repeat the same message twice in 6 seconds (like battlescape) but as a player, I HATED IT. So to fix it, my moderators and I can just kick them:)
  7. Evolved~! Your the best, thanks! Pretty basic, but I've seen many good tutorials from you!
  8. Hmm.. It needs some work done too it, I'm going to add it.. And see if I can't get it working correctly for my server. Thanks for the base anyhow!
  9. Very sloppy, I did it another way.. But I guess good job.
  10. This'll help out some noobies! Haha, good job.
  11. Why add something thats incomplete?
  12. Pretty basic, by just reading it, I can tell it'll probably work. I wont be using, (already have) but nice tutorial!
  13. [quote name='Dirty Will']This is pretty cool. I like it. But, won't be using.[/QUOTE] Thanks for you feedback anyway:)
×