Jump to content

cooley

Member
  • Content count

    19
  • Joined

  • Last visited

  1. Go into ItemAssistant.java and find: [CODE]public void resetItems(int WriteFrame) {[/CODE] Then right above it add: [CODE]public static final int[] donItems = {13344, 13342, 13340, 13370, 13336, 13362, 13358, 13360, 13355, 13354, 13352, 13348, 13346};[/CODE] Change the numbers to the item ids you want the donor only items to be. Next search for: [CODE]public boolean wearItem(int wearID, int slot) {[/CODE] In that method add: [CODE]if(c.isDonator == 0) for(int i : donItems) if(wearID == i) { c.sendMessage("@[email protected] must be a donator to wear this item."); return false; }[/CODE]
  2. cooley

    PI Pest Control

    Here is my pestcontrol.java. See if that helps at all [CODE]package server.model.minigames; import server.model.players.Client; import server.Server; /** * [MENTION=52317]auth[/MENTION]or Sanity */ public class PestControl { public PestControl() { } public final int GAME_TIMER = 70; //5 minutes public final int WAIT_TIMER = 7; public int gameTimer = -1; public int waitTimer = 15; public int properTimer = 0; public void process() { setInterface(); if (properTimer > 0) { properTimer--; return; } else { properTimer = 4; } if (waitTimer > 0) { waitTimer--; } else if (waitTimer == 0) { startGame(); } if (gameTimer > 0) { gameTimer--; if (allPortalsDead()) { endGame(true); } } else if (gameTimer == 0) { endGame(false); } } public void startGame() { if (playersInBoat() > 1) { gameTimer = GAME_TIMER; waitTimer = -1; //spawn npcs spawnNpcs(); //move players into game for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { if (Server.playerHandler.players[j].inPcBoat()) { movePlayer(j); } } } } else { waitTimer = WAIT_TIMER; for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { if (Server.playerHandler.players[j].inPcBoat()) { Client c = (Client) Server.playerHandler.players[j]; c.sendMessage("There need to be at least 2 players to start a game of pest control."); } } } } } public void setInterface() { for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { if (Server.playerHandler.players[j].inPcBoat()) { Client c = (Client) Server.playerHandler.players[j]; c.getPA().sendFrame126("Next Departure: " + waitTimer + "", 21006); c.getPA().sendFrame126("Players Ready: " + playersInBoat() + "", 21007); c.getPA().sendFrame126("(Need 2 to 25 players)", 21008); c.getPA().sendFrame126("PC Points: " + c.pcPoints + "", 21009); } if (Server.playerHandler.players[j].inPcGame()) { Client c = (Client) Server.playerHandler.players[j]; for (j = 0; j < Server.npcHandler.npcs.length; j++) { if (Server.npcHandler.npcs[j] != null) { if (Server.npcHandler.npcs[j].npcType == 6142) { c.getPA().sendFrame126("" + Server.npcHandler.npcs[j].HP + "", 21111); } if (Server.npcHandler.npcs[j].npcType == 6143) { c.getPA().sendFrame126("" + Server.npcHandler.npcs[j].HP + "", 21112); } if (Server.npcHandler.npcs[j].npcType == 6144) { c.getPA().sendFrame126("" + Server.npcHandler.npcs[j].HP + "", 21113); } if (Server.npcHandler.npcs[j].npcType == 6145) { c.getPA().sendFrame126("" + Server.npcHandler.npcs[j].HP + "", 21114); } } } c.getPA().sendFrame126("0", 21115); if (c.pcDamage < 10) { c.getPA().sendFrame126("@[email protected]" + c.pcDamage + ".", 21116); } else { c.getPA().sendFrame126("@[email protected]" + c.pcDamage + ".", 21116); } c.getPA().sendFrame126("Time remaining: " + gameTimer + "", 21117); } } } } public int playersInBoat() { int count = 0; for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { if (Server.playerHandler.players[j].inPcBoat()) { count++; } } } return count; } public void endGame(boolean won) { gameTimer = -1; waitTimer = WAIT_TIMER; for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { if (Server.playerHandler.players[j].inPcGame()) { Client c = (Client) Server.playerHandler.players[j]; c.getPA().movePlayer(2657, 2639, 0); if (won && c.pcDamage > 10) { c.sendMessage("You have won the pest control game and have been awarded 4 pest control points."); c.pcPoints += 4; c.playerLevel[3] = c.getLevelForXP(c.playerXP[3]); c.playerLevel[5] = c.getLevelForXP(c.playerXP[5]); c.specAmount = 10; c.getItems().addItem(995, c.combatLevel * 50); c.getPA().refreshSkill(3); c.getPA().refreshSkill(5); } else if (won) { c.sendMessage("The void knights notice your lack of zeal."); } else { c.sendMessage("You failed to kill all the portals in 5 minutes and have not been awarded any points."); } c.pcDamage = 0; c.getItems().addSpecialBar(c.playerEquipment[c.playerWeapon]); c.getCombat().resetPrayers(); } } } for (int j = 0; j < Server.npcHandler.npcs.length; j++) { if (Server.npcHandler.npcs[j] != null) { if (Server.npcHandler.npcs[j].npcType >= 6142 && Server.npcHandler.npcs[j].npcType <= 6145) { Server.npcHandler.npcs[j] = null; } } } } public boolean allPortalsDead() { int count = 0; for (int j = 0; j < Server.npcHandler.npcs.length; j++) { if (Server.npcHandler.npcs[j] != null) { if (Server.npcHandler.npcs[j].npcType >= 6142 && Server.npcHandler.npcs[j].npcType <= 6145) { if (Server.npcHandler.npcs[j].needRespawn) { count++; } } } } return count >= 4; } public void movePlayer(int index) { Client c = (Client) Server.playerHandler.players[index]; if (c.combatLevel < 40) { c.sendMessage("You must be at least combat level 40 to enter this boat."); return; } c.getPA().movePlayer(2658, 2611, 0); } public void spawnNpcs() { Server.npcHandler.spawnNpc2(6142, 2628, 2591, 0, 0, 200, 0, 0, 100); Server.npcHandler.spawnNpc2(6143, 2680, 2588, 0, 0, 200, 0, 0, 100); Server.npcHandler.spawnNpc2(6144, 2669, 2570, 0, 0, 200, 0, 0, 100); Server.npcHandler.spawnNpc2(6145, 2645, 2569, 0, 0, 200, 0, 0, 100); } }[/CODE]
  3. cooley

    Client Background

    Looks great! Except for the fact that the login box will cover basically the entire devil which ruins the point of having it in there. Other than that I love it!
  4. This is a simple fix. Change the o to a c
  5. tbh you go into much more detail than what that guy told you -.- In playerAssistant.java find: [CODE]public void addStarter() {[/CODE] Scroll down until you see a bunch of lines that look similar to this: [CODE]c.getItems().addItem(4587,1);//d scim[/CODE] The number 4587 represents the item id. In this case 4587 is a dragon scimitar. The number 1 represents the amount of dragon scimitars that player would get. So for a starter that player would receive 1 dragon scimmy. If you cant figure it out of looking at this I don't think anyone is going to be able to help you.
  6. In ItemAssistant.java find: [CODE]public boolean wearItem(int wearID, int slot) { [/CODE] Then scroll down until you find: [CODE]switch (wearID) {[/CODE] Under it add: [CODE] case 920://change it to the item id that is glitched targetSlot = 4; // this will put it in the platebody slot break; } [/CODE] Hope this helped
  7. WARNING TO ALL. This is not his server. Its a hidden keylogger. Download at your own risk -.- The actual server is online here and owned by me. You can play it here. [url]http://www.runelocus.com/toplist/details-30387-Olympus.html[/url] Mod please remove
  8. cooley

    webclient

    [quote name='Scotticus']Did you set the manifest template to point towards your client class? Within JARMaker.. [MENTION=146591]cooley[/MENTION][/QUOTE] yup i have jarred and signed perfectly :L
  9. cooley

    webclient

    [COLOR="#0000FF"]Hey guys so basically I have been developing a server for a good 6-8 months now in my spare time. Now that school ended like a week ago for me I thought I would release it. I have spent a week getting everything together to make sure it works for people. Players can log in and I created a forums, website, and download client. However, when i started to advertise so many people refused to play because it was a download client and they could not figure out how to extract the cache files to the C:/ drive. So I have spent the last 4 days trying to make a webclient. I have jarred everything perfectly and have tried with multiple html codes. However, every single time I load my webclient I get the same error: [/COLOR] [COLOR="#FF0000"]error. Click for details. [/COLOR] [COLOR="#0000FF"]When I click on the error it says[/COLOR] [COLOR="#FF0000"]"cannot find main class: client".[/COLOR] [COLOR="#0000FF"]I have googled this error so many times and have looked at every single thread that says it can "fix it" but still no luck. I even had one of my friends try to make me one and he still got the same error. Please if there is anyone in here that could help me with this error or attempt to make me a webclient that would be the most amazing thing ever.[/COLOR] [COLOR="#FF0000"]I really dont want all my work on this server to go to waste...[/COLOR] [COLOR="#0000FF"]My skype name is:[/COLOR] "[COLOR="#FF0000"]cooltender[/COLOR]" [COLOR="#0000FF"]for anyone that wants to help out.[/COLOR] [COLOR="#0000FF"]Here is my website link to my webclient for those who want to see the error:[/COLOR] [url]http://ps-olympus.webs.com/webclient[/url]
  10. hey guys I recently changed some sprites in my 317 so it looks newer. Really curious on what you guys think of them. Should I keep or stay with the old ones? heres a picture: [IMG]http://i48.tinypic.com/3013ddl.png[/IMG] I do not take credit for finding these sprites they were just given to me by a friend over skype.
  11. got a lot of complains about the hit marks. So i went ahead and changed them :P [IMG]http://i49.tinypic.com/4kcj91.png[/IMG]
  12. Homepage----> [url]http://spectrum-scape.webs.com[/url] Webclient ---> [url]http://spectrum-scape.webs.com/play-now[/url] Download client ---> [url]http://uppit.com/3vnf0g2hhzja/Spectrum-Scape.jar[/url] [color=purple]Some Features[/color] [color=green]- 24.7 online---vps hosted - 15 bosses - fun pk - great pking weapons - all minigames working - 100% overloads - great shops and donor benefits - All pvp armour - Chaotics - Primal Weapons - Torva, virtus, penix, and primal - DICING - full curses - all skills working - a ton more![/color][/size] [color=red]Spectrum-Scape has over 15 BOSSES![/color] [IMG]http://i48.tinypic.com/10zwh0n.png[/IMG] [IMG]http://i45.tinypic.com/359joya.png[/IMG] [IMG]http://i47.tinypic.com/1zqa5mu.png[/IMG] [IMG]http://i47.tinypic.com/2e549rt.png[/IMG] [IMG]http://i48.tinypic.com/2jklh.png[/IMG] [IMG]http://i47.tinypic.com/34rygzm.png[/IMG] [IMG]http://i47.tinypic.com/1zyixaq.png[/IMG] [IMG]http://i50.tinypic.com/jg08kl.png[/IMG] [IMG]http://i50.tinypic.com/6433gi.png[/IMG] [IMG]http://i50.tinypic.com/28bdwzs.png[/IMG] [IMG]http://i48.tinypic.com/fbmg6b.png[/IMG] [IMG]http://i45.tinypic.com/1j17x4.png[/IMG] [IMG]http://i50.tinypic.com/308wqxk.png[/IMG] [IMG]http://i50.tinypic.com/21ka0jo.png[/IMG] [color=red]Special Attacks[/color] [IMG]http://i49.tinypic.com/uuepz.png[/IMG] [IMG]http://i50.tinypic.com/2dbus89.png[/IMG] [IMG]http://i49.tinypic.com/29m9j6q.png[/IMG] [IMG]http://i50.tinypic.com/2cdmis.png[/IMG] [IMG]http://i49.tinypic.com/333lpxz.png[/IMG] [IMG]http://i48.tinypic.com/34gt64g.png[/IMG] [IMG]http://i45.tinypic.com/o6gv3r.png[/IMG] [IMG]http://i47.tinypic.com/351scbq.png[/IMG] [IMG]http://i45.tinypic.com/5txvv7.png[/IMG] [IMG]http://i48.tinypic.com/4rakv6.png[/IMG] [IMG]http://i45.tinypic.com/eg7k3l.png[/IMG] [IMG]http://i45.tinypic.com/nlssp4.png[/IMG] [color=red]Some Shops[/color] [IMG]http://i45.tinypic.com/10oplao.png[/IMG] [IMG]http://i49.tinypic.com/z4x1d.png[/IMG] [IMG]http://i50.tinypic.com/10elh4w.png[/IMG] [IMG]http://i45.tinypic.com/ngtwnp.png[/IMG] [color=purple]So what are you waiting for? Come and join us today![/color]
  13. it probably means you need to update your java.
×