Jump to content

Search the Community

Showing results for tags 'pkp'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • RuneLocus
    • News & Announcements
    • Information Booth
    • Website Support
    • Introductions
    • Chat
    • Forum Games
  • RuneScape Development
    • RSPS General
    • RuneScape Private Server (RS2)
    • RuneScape Private Server (503+)
    • RuneScape Private Server (EoC 742+)
  • Other
    • Digital Art
    • Gaming
    • Webdevelopment
    • Computers
  • Marketplace
    • RuneScape Market
    • RSPS Market
    • Others Market
    • Freelance Middleman Services
  • Super Secret Club's Topics

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 22 results

  1. i was going to add a pkp system from this: [url]http://www.runelocus.com/forums/showthread.php?52549-PI-Pk-points-PI-Basic[/url] i then get this error: [IMG]http://img269.imageshack.us/img269/4320/compileerror.png[/IMG]
  2. Hey can some one please tell me what file i go to too change the prices of my items in my pkp shop eg. D claws are 500 and i want to change them to 300 or something how do i do this? Thanks.
  3. Ok so i was wondering if i could make it so Regular playres get 1 pkp a kill like it is now But make donators get 2x pkp per kill if (Server.playerHandler.players[c.playerId].connectedFrom != o.lastKilled && c.duelStatus == 0) { o.pkPoints = (o.pkPoints + 1); o.sendMessage("You recieved 1 PKP."); o.sendMessage("You have defeated " +Misc.optimizeText(c.playerName)+ "!"); o.lastKilled = Server.playerHandler.players[c.playerId].connectedFrom; o.getPA().addSkillXP(20000, 23); //c.getPA().addSkillXP(-4000, 23); if (o.earningPotential >= 85) { o.earningPotential -= 40 + Misc.random(50); int random = (int)(Math.random() * (xEP.length - 1)); Server.itemHandler.createGroundItem(o, xEP[random][0], c.absX, c.absY, xEP[random][1], o.playerId); o.sendMessage("You recieved an EP drop."); o.sendMessage("Your EP decreased to: "+c.earningPotential+"."); } } else { //c.getPA().addSkillXP(-4000, 23); o.sendMessage("You do not recieve PKP because you have killed " +c.playerName+ " twice in a row."); if (o.earningPotential >= 85) { o.earningPotential -= 40 + Misc.random(50); int random = (int)(Math.random() * (xEP.length - 1)); Server.itemHandler.createGroundItem(o, xEP[random][0], c.absX, c.absY, xEP[random][1], c.playerId); o.sendMessage("Your EP decreased to: "+c.earningPotential+"."); } } } }
  4. Problems : 1) Prices in the pkp shop and the donator shop 2) I had donator points but I couldn't buy anything from the shop 3) I have voting points but I cant buy anything from the shop too 4) The shopkepper man who sells food and potions , we can sell him anything Posting pictures :) [ATTACH=CONFIG]9185[/ATTACH][ATTACH=CONFIG]9186[/ATTACH][ATTACH=CONFIG]9187[/ATTACH]
  5. ok first i have searched the internet for this and didn't find anything and second i have tried to do this myself and i couldn't figure it out. ok so if someone could help me that would be great, i was trying to make something like if you kill someone you have to wait like 5 min before you can kill that person again and get the pkp for it but if you kill the other person before that timer is up you don't get the pkp for the kill or if possible make the timer restart. Thank you for reading and any help will be very much appreciated :) Btw i am using hybrid pvp v3 source PI if that is needed to be known for this but thanks again :)
  6. Instead of giving 100 FOG tokens, I want it to give 10 PKP points. I don't think there is a PKP system in my source, so how would I add it? What file would I make? What file would I edit? ty.
  7. hey I am madmonkey i just started an new project and using "brokenx"as base since this server has pkp shop (what I am like a lot) and wanna chance some into but the problem is I am dont know how to chance things in an pkp shop whit chancing i mean; 1. chancing prices. 2. chancing shop items. I am hope someone could say me what file(s) i need to look for and if thare is something like "if pucblic (bla bla)" to search for in the files (if dont know doesn't matter if you know what files i need to look for shall be very helpful like "search in client.java" or something that makes it easy for me to know whare i am need to go to :D if thare is anything special to chance it like i need to go to more files plz say what files to. thanks very much from madmonky :D (btw if intressted in an staff position plz pm me here) (when helping me you can get co-owner)
  8. Source: Naughtyscape Problem: There is no PKP system, instead, you get points when you win a duel and it counts towards the point shop with PKP gear in them. Also, no matter what rank you are, you never lose items. If you can help me, leave a comment below. If you need more information, Add me on Skype: VillainGB
  9. Andy241

    PKP System

    Im following this tutorial [code] Purpose: This tutorial will add a Player Killing Point system to your server Difficulty: 1/10 Just C + P Tested On: Impact (Will work on any Emulous/Riotscape/PI/Paradox based server) Step 1: Alright first you are going to want to make a new class file in the players folder called [code] PlayerKilling [/code] In the new class file add this code. [code] package server.model.players; /** * @author Core * Handles adding and removing hosts to the players array list. */ public class PlayerKilling { /** * Adds the host of the killed player. *@param client Player that saves the host. *@param host Host address of the killed player. *@return True if the host is added to the players array. */ public static boolean addHostToList(Client client, String host) { if(client != null) { return client.lastKilledPlayers.add(host); } return false; } /** * Checks if the host is already on the players array. * @param client Player that is adding the killed players host. * @param host Host address of the killed player. * @return True if the host is on the players array. */ public static boolean hostOnList(Client client, String host) { if(client != null) { if(client.lastKilledPlayers.indexOf(host) >= KILL_WAIT_MAX) { removeHostFromList(client, host); return false; } return client.lastKilledPlayers.contains(host); } return false; } /** * Removes the host from the players array. * @param client Player that is removing the host. * @param host Host that is being removed. * @return True if host is successfully removed. */ public static boolean removeHostFromList(Client client, String host) { if(client != null) { return client.lastKilledPlayers.remove(host); } return false; } /* * Amount of kills you have to wait before the host is deleted. */ public static final int KILL_WAIT_MAX = 3; } [/code] Explanation: If you read the comments above it will explain the methods more in depth. Step 2: Open up PlayerAssistant and search for [code] o.sendMessage("You have defeated "+c.playerName+"!"); [/code] Under that, add this block of code [code] if(!PlayerKilling.hostOnList(o, c.connectedFrom)) { PlayerKilling.addHostToList(o, c.connectedFrom); o.pkPoints++; o.sendMessage("You have received a point, you now have "+o.pkPoints+" pk points."); } else { o.sendMessage("You have recently defeated "+c.playerName+", you don't receive any pk points."); } [/code] Explanation: Checking to see if the killed players host is on the killing players array, if it isn't then you receive a point and it adds the killed players host to your array. If you have killed the player then it just sends you a message. Step 3: Open up the Player class and add these at the top [code] public ArrayList<String> lastKilledPlayers = new ArrayList<String>(); [/code] Above [code] public abstract class Player { [/code] Add [code] import java.util.ArrayList; [/code] Explanation: This is where you add the array list to store all of the killed players hosts. Step 4: Open up Player save and scroll down to where it saves playerRights and add [code] for(int j = 0; j < p.lastKilledPlayers.size(); j++) { characterfile.write("killed-players = " 0, 17); characterfile.write(p.lastKilledPlayers.get(j), 0, p.lastKilledPlayers.get(j).length()); characterfile.newLine(); } [/code] And then scroll up to where it loads playerRights and add [code] else if(token.equals("killed-players")) { p.lastKilledPlayers.add(token2); } [/code] Explanation: This saves the ArrayList to the characters file. Save and compile and you now have a new efficient pk point system that saves the players host address so even if they log off and use a different account it still wont give the player a pk point. Credits: Core [/code] However I get these errors [code] src\server\model\players\PlayerSave.java:78: error: 'else' without 'if' else if(token.equals("killed-players")) { ^ src\server\model\players\PlayerSave.java:273: error: ')' expected characterfile.write("killed-players = " 0, 17); ^ src\server\model\players\PlayerSave.java:273: error: illegal start of expression characterfile.write("killed-players = " 0, 17); ^ src\server\model\players\PlayerSave.java:273: error: ';' expected characterfile.write("killed-players = " 0, 17); ^ src\server\model\players\PlayerSave.java:273: error: illegal start of expression characterfile.write("killed-players = " 0, 17); ^ src\server\model\players\PlayerSaving.java:272: error: ')' expected characterfile.write("killed-players = "0, 17); ^ src\server\model\players\PlayerSaving.java:272: error: illegal start of expressi on characterfile.write("killed-players = "0, 17); ^ src\server\model\players\PlayerSaving.java:272: error: ';' expected characterfile.write("killed-players = "0, 17); ^ src\server\model\players\PlayerSaving.java:272: error: illegal start of expressi on characterfile.write("killed-players = "0, 17); ^ src\server\model\players\PlayerSaving.java:480: error: 'catch' without 'try' } catch (IOException ioexception) { ^ src\server\model\players\PlayerSaving.java:480: error: ')' expected } catch (IOException ioexception) { ^ src\server\model\players\PlayerSaving.java:480: error: not a statement } catch (IOException ioexception) { ^ src\server\model\players\PlayerSaving.java:480: error: ';' expected } catch (IOException ioexception) { ^ src\server\model\players\PlayerSaving.java:237: error: 'try' without 'catch', 'f inally' or resource declarations try { ^ src\server\model\players\PlayerSaving.java:487: error: reached end of file while parsing } ^ 15 errors Press any key to continue . . . [/code]
  10. === I SOLVED THIS, CHECK POST #4 :D === Alright so I do have a Public Boolean for whether or not you're in Fun Pk, [code]inFunPk()[/code] and I was going to try it here in my PlayerAssistant [code] if (Server.playerHandler.players[c.playerId].connectedFrom != o.lastKilled && c.duelStatus == 0) { o.pkPoints = (o.pkPoints + 3); o.sendMessage("You received 3 PK Points"); o.sendMessage("You wiped the floor with " +Misc.optimizeText(c.playerName)+ "!"); o.lastKilled = Server.playerHandler.players[c.playerId].connectedFrom; o.getPA().addSkillXP(150000, 23); //c.getPA().addSkillXP(-4000, 23); if (o.earningPotential >= 85) { o.earningPotential -= 40 + Misc.random(50); int random = (int)(Math.random() * (xEP.length - 1)); Server.itemHandler.createGroundItem(o, xEP[random][0], c.absX, c.absY, xEP[random][1], o.playerId); o.sendMessage("You received an EP drop, Congratulations!"); o.sendMessage("Your EP decreased to: "+c.earningPotential+" :(."); } } else { //c.getPA().addSkillXP(-4000, 23); o.sendMessage("You do not recieve PK Points because you have killed " +c.playerName+ " twice in a row, fight others!"); if (o.earningPotential >= 85) { o.earningPotential -= 40 + Misc.random(50); int random = (int)(Math.random() * (xEP.length - 1)); Server.itemHandler.createGroundItem(o, xEP[random][0], c.absX, c.absY, xEP[random][1], c.playerId); o.sendMessage("Your EP decreased to: "+c.earningPotential+" :(."); } } } }[/code] but I don't know how to make it give different Pkp's. I would like if you're in fun pk to only get 1 Pkp but if you're in the wild you get 5. Anyone help, please? Not too savvy with java so any help is appreciated :P
  11. Can I get some hints onto where I can make it so that Donators can get double pk points? Thanks. Its a good way to get more donations :D My pkp thingy [CODE] if (Server.playerHandler.players[c.playerId].connectedFrom != o.lastKilled && c.duelStatus == 0) { o.pkPoints = (o.pkPoints + 2); o.sendMessage("You received 2 PK Points."); o.sendMessage("You have defeated " +Misc.optimizeText(c.playerName)+ "!"); o.lastKilled = Server.playerHandler.players[c.playerId].connectedFrom; o.getPA().addSkillXP(15000, 23); [/CODE] I added this in but it didnt work. [CODE] if(c.isDonator == 1) { o.pkPoints = (o.pkPoints + 2); o.sendMessage("You receive another 2 Pk Points."); }[/CODE] This only made it that if the player who got killed was a donator you get 2 extra pkp. I need it so if the KILLER was a DONATOR, then that KILLER gets the 2 extra pkp. If you'd like to get on my project and test the pkp thing out with me that'd be great.
  12. L A

    [PI] Help with PKP Shop

    So, I have the items in the PKP shop (shop 48 and 73), but when I add the cases and returns to the ShopAssistant.java, the items still cost 0 PKP in game. [CODE] public int getSpecialItemValue(int id) { switch (id) { case 13739: case 1155: case 1117: case 1075: case 1087: case 13035: case 13036: case 1189: //Primal and Korasi return 10000000; case 15037: case 15038: case 15040: case 15313: return 10000000; case 6889: case 6914: case 15604: case 15606: case 15600: case 15610: case 15612: case 15616: case 15618: return 100; case 10551: if (c.myShopId == 48) return 77; if (c.myShopId == 73) return 50; case 6918: if (c.myShopId == 48) return 77; if (c.myShopId == 73) return 50; case 6920: if (c.myShopId == 48) return 77; if (c.myShopId == 73) return 50; case 6922: if (c.myShopId == 48) return 77; if (c.myShopId == 73) return 50; case 6924: if (c.myShopId == 48) return 77; if (c.myShopId == 73) return 50; return 50; case 11663: case 11664: case 11665: case 8842: return 30; case 8839: case 8840: case 15602: case 15608: case 15614: case 15620: case 19272: case 19275: case 19278: case 19281: case 19284: case 19287: case 19290: case 19293: case 19296: case 19299: case 19302: case 19305: return 75; case 13107: case 13109: case 13111: case 13113: case 13115: case 13858: case 13861: case 13864: case 13870: case 13873: case 13876: case 13896: case 13884: case 13890: case 13887: case 13893: case 13905: case 13867: return 200; case 19785: case 19786: case 19787: case 19788: case 19789: case 19790: return 150; case 13883: case 13879: return 1; case 10499: return 20; case 8845: return 5; case 8846: return 10; case 8847: return 15; case 8848: return 20; case 8849: case 8850: return 25; case 10533: case 10534: case 10537: return 50; case 6570: return 35; case 11730: case 13902: case 13899: return 300; case 11696: case 11698: case 11700: return 900; case 11694: return 950; case 6585: return 15; case 15051: return 300; case 11235: return 100; case 4151: return 75; case 15039: return 850; case 15272: return 10; case 13362: case 13360: case 13358: case 13355: case 13354: case 13352: case 13348: case 13350: case 13346: return 425; case 20072: return 50; case 18786: return 1100; case 13849: case 18351: case 18355: case 18357: case 18359: return 325; case 18353: return 370; case 18335: case 15126: case 19335: return 250; case 6666: case 6665: return 50; case 10330: case 10332: case 10334: case 10336: case 10338: case 10340: case 10342: case 10344: case 10346: case 10348: case 10350: case 10352: return 375; case 13263: return 400; case 14484: return 520; case 15492: return 500; case 19763: case 19754: case 19760: case 19766: return 5; case 19748: case 19749: case 19757: return 10; case 19467: return 1; } return 0; }[/CODE] If there's something wrong with the code, what do I need to fix? If there's nothing wrong with the code, do I have to modify another .java as well?
  13. Unsure how to do this and was looking for some help on how to change Item Prices in a PkP Shop. Thanks
  14. RadianceX

    PKP Help

    When I kill someone I should get 15 pkp, but when I open the PKP store it says I have 0. (It says same thing in Char Logs as well) [img]http://screensnapr.com/e/1K4eeW.png][/img] Also [img]http://screensnapr.com/e/nxY0Ro.png[/img]
  15. i tried ,but i failed some assistance on teamviewer would be very appreciated.
  16. Hey can some on go on tv and help me add my pkp system? this is it [url]http://www.runelocus.com/forums/showthread.php?9015-Pk-Point-System%28UNCHEATABLE%29&highlight=point[/url] thanks!
  17. Hey dose any one think they can go on teamviewer and help me make a pkp system then a shop? thanks!
  18. Well in The shops it says , for examply in my pk shop . it says a void helm currently costs 50EPP . How many i change this?
  19. Hey guys my server dosnt have a pkp system and shop. i do not know how to make one so if some one culd help me on tv or sumtin sorry i dont got much but i got like 1000.69k rsgp wich is 1m,62k so i can give that to some one who helps me Thanks! Add my msn to ([email protected])
  20. How do you add items to the pkp shop? and make them cost pkp
  21. Hi, I'm working on a PI based server and for some reason, I'm having trouble making Korasi cost PKP. I've added it to the ShopAssistant.java. Here's the a snippet of the code: [code] case 11694: //AGS case 18786: //Korasi ID return 950; //PKP Price case 6585: return 15;[/code] Obviously the case is the ID of Korasi and the return should be the cost (PKP) of the item but after I compile it and all, it will always say that Korasi costs 0PKP. Does anyone know why? My whole ShopAssistant.java can be found [url=http://pastebin.com/mfDyWkZF]here.[/url] Any help would be nice :D
  22. dyltank

    Add pkp command

    Heya runelocus... Basically, I need a command that can add pkp to a person that I want to give pkp to... At the moment I've got: [code] if (playerCommand.startsWith("givepkp")) { try { String playerToMod = playerCommand.substring(10); for(int i = 0; i < Config.MAX_PLAYERS; i++) { if(Server.playerHandler.players[i] != null) { if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(playerToMod)) { Client c2 = (Client)Server.playerHandler.players[i]; c2.sendMessage("You have been given 100pkp status by " + c.playerName); c2.pvpPoi = c2.pvpPoi + 100; c2.pkPoints = c2.pkPoints + 100; c2.logout(); break; } } } } catch(Exception e) { c.sendMessage("Player Must Be Offline."); } } [/code] but....... it's not working haha, any help would be great, thanks!
×