Jump to content

Search the Community

Showing results for tags 'hours'.



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 12 results

  1. When I click the fishing spot nothing at all happens ActionHandler [CODE]package server.model.players; import server.Config; import server.Server; import server.model.content.RandomObject; import server.model.objects.Object; import server.model.players.skills.Fishing; import server.util.Misc; public class ActionHandler { private Client c; public ActionHandler(Client Client) { this.c = Client; } public void firstClickObject(int objectType, int obX, int obY) { c.clickObjectType = 0; //c.sendMessage("Object type: " + objectType); switch(objectType) { case 2465: c.getPA().movePlayer(2917, 3624, 0); c.sendMessage("Welcome to godwars, you need a 20 killcount before entering."); break; case 2467: c.getPA().movePlayer(3087, 3500, 0); break; case 9356: c.getPA().enterCaves(); c.sendMessage("If your wave doesn't spawn, please logout and back in!"); break; case 12356: c.getPA().startTeleport(1900, 5354, 2, "modern"); break; case 2466: c.getDH().sendDialogues(2244, 0); break; case 13291: RandomObject.clickChest(c); break; case 2492: if (c.killCount >= 20) { c.getDH().sendOption4("Armadyl", "Bandos", "Saradomin", "Zamorak"); c.dialogueAction = 20; } else { c.sendMessage("You need 20 kill count before teleporting to a boss chamber."); } break; case 3192: c.getHighscores().openHighscores(); break; case 1765: c.getPA().movePlayer(2271, 4680, 0); break; case 2882: case 2883: if (c.objectX == 3268) { if (c.absX < c.objectX) { c.getPA().walkTo(1,0); } else { c.getPA().walkTo(-1,0); } } break; case 272: c.getPA().movePlayer(c.absX, c.absY, 1); break; case 273: c.getPA().movePlayer(c.absX, c.absY, 0); break; case 411: case 412: if (c.playerMagicBook == 0) { c.playerMagicBook = 2; c.setSidebarInterface(6, 29999); c.sendMessage("A Lunar wisdomin fills your mind."); c.getPA().resetAutocast(); } else { c.setSidebarInterface(6, 1151); //modern c.playerMagicBook = 0; c.sendMessage("You feel a drain on your memory."); c.autocastId = -1; c.getPA().resetAutocast(); } break; case 6552: if (c.playerMagicBook == 0) { c.playerMagicBook = 1; c.setSidebarInterface(6, 12855); c.sendMessage("An ancient wisdomin fills your mind."); c.getPA().resetAutocast(); } else { c.setSidebarInterface(6, 1151); //modern c.playerMagicBook = 0; c.sendMessage("You feel a drain on your memory."); c.autocastId = -1; c.getPA().resetAutocast(); } break; case 1816: c.getPA().startTeleport2(2271, 4680, 0); break; case 1817: c.getPA().startTeleport(3067, 10253, 0, "modern"); break; case 1814: //ardy lever c.getPA().startTeleport(3153, 3923, 0, "modern"); break; case 1733: c.getPA().movePlayer(c.absX, c.absY + 6393, 0); break; case 1734: c.getPA().movePlayer(c.absX, c.absY - 6396, 0); break; case 9357: c.getPA().resetTzhaar(); break; case 8959: if (c.getX() == 2490 && (c.getY() == 10146 || c.getY() == 10148)) { if (c.getPA().checkForPlayer(2490, c.getY() == 10146 ? 10148 : 10146)) { new Object(6951, c.objectX, c.objectY, c.heightLevel, 1, 10, 8959, 15); } } break; case 2213: case 14367: case 11758: case 3193: c.getPA().openUpBank(); break; case 10177: c.getPA().movePlayer(1890, 4407, 0); break; case 10230: c.getPA().movePlayer(2900, 4449, 0); break; case 10229: c.getPA().movePlayer(1912, 4367, 0); break; case 2623: if (c.absX >= c.objectX) c.getPA().walkTo(-1,0); else c.getPA().walkTo(1,0); break; //pc boat case 14315: c.getPA().movePlayer(2661,2639,0); break; case 14314: c.getPA().movePlayer(2657,2639,0); break; case 1596: case 1597: if (c.getY() >= c.objectY) c.getPA().walkTo(0,-1); else c.getPA().walkTo(0,1); break; case 14235: case 14233: if (c.objectX == 2670) if (c.absX <= 2670) c.absX = 2671; else c.absX = 2670; if (c.objectX == 2643) if (c.absX >= 2643) c.absX = 2642; else c.absX = 2643; if (c.absX <= 2585) c.absY += 1; else c.absY -= 1; c.getPA().movePlayer(c.absX, c.absY, 0); break; case 14829: case 14830: case 14827: case 14828: case 14826: case 14831: //Server.objectHandler.startObelisk(objectType); Server.objectManager.startObelisk(objectType); break; case 4387: //Server.castleWars.joinWait(c,1); break; case 4388: //Server.castleWars.joinWait(c,2); break; case 4408: //Server.castleWars.joinWait(c,3); break; case 9369: if (c.getY() > 5175) c.getPA().movePlayer(2399, 5175, 0); else c.getPA().movePlayer(2399, 5177, 0); break; case 9368: if (c.getY() < 5169) { Server.fightPits.removePlayerFromPits(c.playerId); c.getPA().movePlayer(2399, 5169, 0); } break; case 4411: case 4415: case 4417: case 4418: case 4419: case 4420: case 4469: case 4470: case 4911: case 4912: case 1747: case 1757: //Server.castleWars.handleObjects(c, objectType, obX, obY); break; case 2286: case 154: case 4058: case 2295: case 2285: case 2313: case 2312: //barrows //Chest case 10284: if(c.barrowsKillCount < 5) { c.sendMessage("You haven't killed all the brothers."); } if(c.barrowsKillCount == 5 && c.barrowsNpcs[c.randomCoffin][1] == 1) { c.sendMessage("I have already summoned this npc."); } if(c.barrowsNpcs[c.randomCoffin][1] == 0 && c.barrowsKillCount >= 5) { Server.npcHandler.spawnNpc(c, c.barrowsNpcs[c.randomCoffin][0], 3551, 9694-1, 0, 0, 120, 30, 200, 200, true, true); c.barrowsNpcs[c.randomCoffin][1] = 1; } if((c.barrowsKillCount > 5 || c.barrowsNpcs[c.randomCoffin][1] == 2) && c.getItems().freeSlots() >= 2) { c.getPA().resetBarrows(); c.getItems().addItem(c.getPA().randomRunes(), Misc.random(150) + 100); if (Misc.random(2) == 1) c.getItems().addItem(c.getPA().randomBarrows(), 1); c.getPA().startTeleport(3564, 3288, 0, "modern"); } else if(c.barrowsKillCount > 5 && c.getItems().freeSlots() <= 1) { c.sendMessage("You need at least 2 inventory slot opened."); } break; //doors case 6749: if(obX == 3562 && obY == 9678) { c.getPA().object(3562, 9678, 6749, -3, 0); c.getPA().object(3562, 9677, 6730, -1, 0); } else if(obX == 3558 && obY == 9677) { c.getPA().object(3558, 9677, 6749, -1, 0); c.getPA().object(3558, 9678, 6730, -3, 0); } break; case 6730: if(obX == 3558 && obY == 9677) { c.getPA().object(3562, 9678, 6749, -3, 0); c.getPA().object(3562, 9677, 6730, -1, 0); } else if(obX == 3558 && obY == 9678) { c.getPA().object(3558, 9677, 6749, -1, 0); c.getPA().object(3558, 9678, 6730, -3, 0); } break; case 6727: if(obX == 3551 && obY == 9684) { c.sendMessage("You cant open this door.."); } break; case 6746: if(obX == 3552 && obY == 9684) { c.sendMessage("You cant open this door.."); } break; case 6748: if(obX == 3545 && obY == 9678) { c.getPA().object(3545, 9678, 6748, -3, 0); c.getPA().object(3545, 9677, 6729, -1, 0); } else if(obX == 3541 && obY == 9677) { c.getPA().object(3541, 9677, 6748, -1, 0); c.getPA().object(3541, 9678, 6729, -3, 0); } break; case 6729: if(obX == 3545 && obY == 9677){ c.getPA().object(3545, 9678, 6748, -3, 0); c.getPA().object(3545, 9677, 6729, -1, 0); } else if(obX == 3541 && obY == 9678) { c.getPA().object(3541, 9677, 6748, -1, 0); c.getPA().object(3541, 9678, 6729, -3, 0); } break; case 6726: if(obX == 3534 && obY == 9684) { c.getPA().object(3534, 9684, 6726, -4, 0); c.getPA().object(3535, 9684, 6745, -2, 0); } else if(obX == 3535 && obY == 9688) { c.getPA().object(3535, 9688, 6726, -2, 0); c.getPA().object(3534, 9688, 6745, -4, 0); } break; case 6745: if(obX == 3535 && obY == 9684) { c.getPA().object(3534, 9684, 6726, -4, 0); c.getPA().object(3535, 9684, 6745, -2, 0); } else if(obX == 3534 && obY == 9688) { c.getPA().object(3535, 9688, 6726, -2, 0); c.getPA().object(3534, 9688, 6745, -4, 0); } break; case 6743: if(obX == 3545 && obY == 9695) { c.getPA().object(3545, 9694, 6724, -1, 0); c.getPA().object(3545, 9695, 6743, -3, 0); } else if(obX == 3541 && obY == 9694) { c.getPA().object(3541, 9694, 6724, -1, 0); c.getPA().object(3541, 9695, 6743, -3, 0); } break; case 6724: if(obX == 3545 && obY == 9694) { c.getPA().object(3545, 9694, 6724, -1, 0); c.getPA().object(3545, 9695, 6743, -3, 0); } else if(obX == 3541 && obY == 9695) { c.getPA().object(3541, 9694, 6724, -1, 0); c.getPA().object(3541, 9695, 6743, -3, 0); } break; //end doors //coffins case 6707: // verac c.getPA().movePlayer(3556, 3298, 0); break; case 6823: if(server.model.minigames.Barrows.selectCoffin(c, objectType)) { return; } if(c.barrowsNpcs[0][1] == 0) { Server.npcHandler.spawnNpc(c, 2030, c.getX(), c.getY()-1, -1, 0, 120, 25, 200, 200, true, true); c.barrowsNpcs[0][1] = 1; } else { c.sendMessage("You have already searched in this sarcophagus."); } break; case 6706: // torag c.getPA().movePlayer(3553, 3283, 0); break; case 6772: if(server.model.minigames.Barrows.selectCoffin(c, objectType)) { return; } if(c.barrowsNpcs[1][1] == 0) { Server.npcHandler.spawnNpc(c, 2029, c.getX()+1, c.getY(), -1, 0, 120, 20, 200, 200, true, true); c.barrowsNpcs[1][1] = 1; } else { c.sendMessage("You have already searched in this sarcophagus."); } break; case 6705: // karil stairs c.getPA().movePlayer(3565, 3276, 0); break; case 6822: if(server.model.minigames.Barrows.selectCoffin(c, objectType)) { return; } if(c.barrowsNpcs[2][1] == 0) { Server.npcHandler.spawnNpc(c, 2028, c.getX(), c.getY()-1, -1, 0, 90, 17, 200, 200, true, true); c.barrowsNpcs[2][1] = 1; } else { c.sendMessage("You have already searched in this sarcophagus."); } break; case 6704: // guthan stairs c.getPA().movePlayer(3578, 3284, 0); break; case 6773: if(server.model.minigames.Barrows.selectCoffin(c, objectType)) { return; } if(c.barrowsNpcs[3][1] == 0) { Server.npcHandler.spawnNpc(c, 2027, c.getX(), c.getY()-1, -1, 0, 120, 23, 200, 200, true, true); c.barrowsNpcs[3][1] = 1; } else { c.sendMessage("You have already searched in this sarcophagus."); } break; case 6703: // dharok stairs c.getPA().movePlayer(3574, 3298, 0); break; case 6771: if(server.model.minigames.Barrows.selectCoffin(c, objectType)) { return; } if(c.barrowsNpcs[4][1] == 0) { Server.npcHandler.spawnNpc(c, 2026, c.getX(), c.getY()-1, -1, 0, 120, 45, 250, 250, true, true); c.barrowsNpcs[4][1] = 1; } else { c.sendMessage("You have already searched in this sarcophagus."); } break; case 6702: // ahrim stairs c.getPA().movePlayer(3565, 3290, 0); break; case 6821: if(server.model.minigames.Barrows.selectCoffin(c, objectType)) { return; } if(c.barrowsNpcs[5][1] == 0) { Server.npcHandler.spawnNpc(c, 2025, c.getX(), c.getY()-1, -1, 0, 90, 19, 200, 200, true, true); c.barrowsNpcs[5][1] = 1; } else { c.sendMessage("You have already searched in this sarcophagus."); } break; case 1276: case 1281: //oak c.woodcut[0] = 1521; c.woodcut[1] = 15; c.woodcut[2] = 37; c.getWoodcutting().startWoodcutting(c.woodcut[0], c.woodcut[1], c.woodcut[2]); break; case 1308: //willow c.woodcut[0] = 1519; c.woodcut[1] = 30; c.woodcut[2] = 68; c.getWoodcutting().startWoodcutting(c.woodcut[0], c.woodcut[1], c.woodcut[2]); break; case 1307: //maple c.woodcut[0] = 1517; c.woodcut[1] = 45; c.woodcut[2] = 100; c.getWoodcutting().startWoodcutting(c.woodcut[0], c.woodcut[1], c.woodcut[2]); break; case 1309: //yew c.woodcut[0] = 1515; c.woodcut[1] = 60; c.woodcut[2] = 175; c.getWoodcutting().startWoodcutting(c.woodcut[0], c.woodcut[1], c.woodcut[2]); break; case 1306: //yew c.woodcut[0] = 1513; c.woodcut[1] = 75; c.woodcut[2] = 250; c.getWoodcutting().startWoodcutting(c.woodcut[0], c.woodcut[1], c.woodcut[2]); break; case 1278: //yew c.woodcut[0] = 1511; c.woodcut[1] = 1; c.woodcut[2] = 25; c.getWoodcutting().startWoodcutting(c.woodcut[0], c.woodcut[1], c.woodcut[2]); break; case 316: //shrimp c.getFishing().setupFishing(317); break; case 334: //mantas c.getFishing().setupFishing(389); break; case 324: //tuna c.getFishing().setupFishing(359); break; case 314: //salmon c.getFishing().setupFishing(335); break; case 326: //monks c.getFishing().setupFishing(7944); case 2090://copper case 2091: c.mining[0] = 436; c.mining[1] = 1; c.mining[2] = 18; c.getMining().startMining(c.mining[0], c.mining[1], c.mining[2]); break; case 2094://tin c.mining[0] = 438; c.mining[1] = 1; c.mining[2] = 18; c.getMining().startMining(c.mining[0], c.mining[1], c.mining[2]); break; case 145856: case 2092: case 2093: //iron c.mining[0] = 440; c.mining[1] = 15; c.mining[2] = 35; c.getMining().startMining(c.mining[0], c.mining[1], c.mining[2]); break; case 14850: case 14851: case 14852: case 2096: case 2097: //coal c.mining[0] = 453; c.mining[1] = 30; c.mining[2] = 50; c.getMining().startMining(c.mining[0], c.mining[1], c.mining[2]); break; case 2098: case 2099: c.mining[0] = 444; c.mining[1] = 40; c.mining[2] = 65; c.getMining().startMining(c.mining[0], c.mining[1], c.mining[2]); break; case 2102: case 2103: case 14853: case 14854: case 14855: //mith ore c.mining[0] = 447; c.mining[1] = 55; c.mining[2] = 80; c.getMining().startMining(c.mining[0], c.mining[1], c.mining[2]); break; case 2105: case 14862: //addy ore c.mining[0] = 449; c.mining[1] = 70; c.mining[2] = 95; c.getMining().startMining(c.mining[0], c.mining[1], c.mining[2]); break; case 14859: case 14860: //rune ore c.mining[0] = 451; c.mining[1] = 85; c.mining[2] = 125; c.getMining().startMining(c.mining[0], c.mining[1], c.mining[2]); break; case 8143: if (c.farm[0] > 0 && c.farm[1] > 0) { c.getFarming().pickHerb(); } break; // DOORS case 1516: case 1519: if (c.objectY == 9698) { if (c.absY >= c.objectY) c.getPA().walkTo(0,-1); else c.getPA().walkTo(0,1); break; } case 1530: case 1531: case 1533: case 1534: case 11712: case 11711: case 11707: case 11708: case 6725: case 3198: case 3197: Server.objectHandler.doorHandling(objectType, c.objectX, c.objectY, 0); break; case 9319: if (c.heightLevel == 0) c.getPA().movePlayer(c.absX, c.absY, 1); else if (c.heightLevel == 1) c.getPA().movePlayer(c.absX, c.absY, 2); break; case 9320: if (c.heightLevel == 1) c.getPA().movePlayer(c.absX, c.absY, 0); else if (c.heightLevel == 2) c.getPA().movePlayer(c.absX, c.absY, 1); break; case 4496: case 4494: if (c.heightLevel == 2) { c.getPA().movePlayer(c.absX - 5, c.absY, 1); } else if (c.heightLevel == 1) { c.getPA().movePlayer(c.absX + 5, c.absY, 0); } break; case 4493: if (c.heightLevel == 0) { c.getPA().movePlayer(c.absX - 5, c.absY, 1); } else if (c.heightLevel == 1) { c.getPA().movePlayer(c.absX + 5, c.absY, 2); } break; case 4495: if (c.heightLevel == 1) { c.getPA().movePlayer(c.absX + 5, c.absY, 2); } break; case 5126: if (c.absY == 3554) c.getPA().walkTo(0,1); else c.getPA().walkTo(0,-1); break; case 1755: if (c.objectX == 2884 && c.objectY == 9797) c.getPA().movePlayer(c.absX, c.absY - 6400, 0); break; case 1759: if (c.objectX == 2884 && c.objectY == 3397) c.getPA().movePlayer(c.absX, c.absY + 6400, 0); break; /*case 3203: //dueling forfeit if (c.duelCount > 0) { c.sendMessage("You may not forfeit yet."); break; } Client o = (Client) Server.playerHandler.players[c.duelingWith]; if(o == null) { c.getTradeAndDuel().resetDuel(); c.getPA().movePlayer(Config.DUELING_RESPAWN_X+(Misc.random(Config.RANDOM_DUELING_RESPAWN)), Config.DUELING_RESPAWN_Y+(Misc.random(Config.RANDOM_DUELING_RESPAWN)), 0); break; } if(c.duelRule[0]) { c.sendMessage("Forfeiting the duel has been disabled!"); break; } if(o != null) { o.getPA().movePlayer(Config.DUELING_RESPAWN_X+(Misc.random(Config.RANDOM_DUELING_RESPAWN)), Config.DUELING_RESPAWN_Y+(Misc.random(Config.RANDOM_DUELING_RESPAWN)), 0); c.getPA().movePlayer(Config.DUELING_RESPAWN_X+(Misc.random(Config.RANDOM_DUELING_RESPAWN)), Config.DUELING_RESPAWN_Y+(Misc.random(Config.RANDOM_DUELING_RESPAWN)), 0); o.duelStatus = 6; o.getTradeAndDuel().duelVictory(); c.getTradeAndDuel().resetDuel(); c.getTradeAndDuel().resetDuelItems(); o.sendMessage("The other player has forfeited the duel!"); c.sendMessage("You forfeit the duel!"); break; } break;*/ case 409: if(c.playerLevel[5] < c.getPA().getLevelForXP(c.playerXP[5])) { c.startAnimation(645); c.playerLevel[5] = c.getPA().getLevelForXP(c.playerXP[5]); c.sendMessage("You recharge your prayer points."); c.getPA().refreshSkill(5); } else { c.sendMessage("You already have full prayer points."); } break; case 2873: if (!c.getItems().ownsCape()) { c.startAnimation(645); c.sendMessage("Saradomin blesses you with a cape."); c.getItems().addItem(2412, 1); } break; case 2875: if (!c.getItems().ownsCape()) { c.startAnimation(645); c.sendMessage("Guthix blesses you with a cape."); c.getItems().addItem(2413, 1); } break; case 2874: if (!c.getItems().ownsCape()) { c.startAnimation(645); c.sendMessage("Zamorak blesses you with a cape."); c.getItems().addItem(2414, 1); } break; case 2879: c.getPA().movePlayer(2538, 4716, 0); break; case 2878: c.getPA().movePlayer(2509, 4689, 0); break; case 5960: c.getPA().startTeleport2(3090, 3956, 0); break; case 1815: c.getPA().startTeleport2(Config.EDGEVILLE_X, Config.EDGEVILLE_Y, 0); break; case 9706: c.getPA().startTeleport2(3105, 3951, 0); break; case 9707: c.getPA().startTeleport2(3105, 3956, 0); break; case 5959: c.getPA().startTeleport2(2539, 4712, 0); break; case 2558: case 2557: c.sendMessage("This door is locked."); break; case 9294: if (c.absX < c.objectX) { c.getPA().movePlayer(c.objectX + 1, c.absY, 0); } else if (c.absX > c.objectX) { c.getPA().movePlayer(c.objectX - 1, c.absY, 0); } break; case 9293: if (c.absX < c.objectX) { c.getPA().movePlayer(2892, 9799, 0); } else { c.getPA().movePlayer(2886, 9799, 0); } break; case 10529: case 10527: if (c.absY <= c.objectY) c.getPA().walkTo(0,1); else c.getPA().walkTo(0,-1); break; case 3044: c.getSmithing().sendSmelting(); break; case 733: c.startAnimation(451); /*if (Misc.random(1) == 1) { c.getPA().removeObject(c.objectX, c.objectY); c.sendMessage("You slash the web."); } else { c.sendMessage("You fail to slash the webs."); }*/ if (c.objectX == 3158 && c.objectY == 3951) { new Object(734, c.objectX, c.objectY, c.heightLevel, 1, 10, 733, 50); } else { new Object(734, c.objectX, c.objectY, c.heightLevel, 0, 10, 733, 50); } break; } } public void secondClickObject(int objectType, int obX, int obY) { c.clickObjectType = 0; //c.sendMessage("Object type: " + objectType); switch(objectType) { case 4874: c.getThieving().stealFromStall(1891, 1, 100, 1); break; case 4875: c.getThieving().stealFromStall(1609, 1, 130, 25); break; case 4877: c.getThieving().stealFromStall(1573, 1, 160, 50); break; case 4878: c.getThieving().stealFromStall(1789, 1, 180, 75); break; case 11666: case 3044: c.getSmithing().sendSmelting(); break; case 2213: case 14367: case 11758: c.getPA().openUpBank(); break; case 2558: case 2557: if (System.currentTimeMillis() - c.lastLockPick < 3000 || c.freezeTimer > 0) break; if (c.getItems().playerHasItem(1523,1)) { c.lastLockPick = System.currentTimeMillis(); if (Misc.random(10) <= 3){ c.sendMessage("You fail to pick the lock."); break; } if (c.objectX == 3044 && c.objectY == 3956) { if (c.absX == 3045) { c.getPA().walkTo2(-1,0); } else if (c.absX == 3044) { c.getPA().walkTo2(1,0); } } else if (c.objectX == 3038 && c.objectY == 3956) { if (c.absX == 3037) { c.getPA().walkTo2(1,0); } else if (c.absX == 3038) { c.getPA().walkTo2(-1,0); } } else if (c.objectX == 3041 && c.objectY == 3959) { if (c.absY == 3960) { c.getPA().walkTo2(0,-1); } else if (c.absY == 3959) { c.getPA().walkTo2(0,1); } } else if (c.objectX == 3191 && c.objectY == 3963) { if (c.absY == 3963) { c.getPA().walkTo2(0,-1); } else if (c.absY == 3962) { c.getPA().walkTo2(0,1); } } else if (c.objectX == 3190 && c.objectY == 3957) { if (c.absY == 3957) { c.getPA().walkTo2(0,1); } else if (c.absY == 3958) { c.getPA().walkTo2(0,-1); } } } else { c.sendMessage("I need a lockpick to pick this lock."); } break; } } public void thirdClickObject(int objectType, int obX, int obY) { c.clickObjectType = 0; c.sendMessage("Object type: " + objectType); switch(objectType) { } } public void firstClickNpc(int npcType) { c.clickNpcType = 0; c.npcClickIndex = 0; switch(npcType) { case 844: c.getDH().sendDialogues(3000, 0); break; case 1599: if (c.slayerTask <= 0) { c.getDH().sendDialogues(11,npcType); } else { c.getDH().sendDialogues(13,npcType); } break; case 696: c.getDH().sendDialogues(2000, 0); break; case 2024: c.getPA().fixAllBarrows(); c.sendMessage("@[email protected] your items aren't being fixed, please relog!"); break; case 872: c.getDH().sendDialogues(20, npcType); break; case 243: c.getDH().sendDialogues(200, npcType); break; case 540: c.getShops().openShop(4); break; case 521: c.getShops().openShop(1); break; case 4460: c.getShops().openShop(3); c.sendMessage("@[email protected] currently have: " + c.pkPoints + " Lysergic_points."); break; case 6970: c.getShops().openShop(30); break; case 1918: c.getShops().openShop(13); break; case 541: c.getShops().openShop(11); break; case 549: c.getShops().openShop(12); break; case 683: c.getShops().openShop(8); break; case 461: c.getShops().openShop(5); break; case 2538: c.getShops().openShop(10); c.sendMessage("@[email protected] currently have: " + c.activityPoints + " activity points."); break; case 706: c.getDH().sendDialogues(9, npcType); break; case 2258: c.getDH().sendDialogues(17, npcType); break; case 1152: c.getDH().sendDialogues(16,npcType); break; case 494: c.getPA().openUpBank(); break; case 2566: c.getShops().openSkillCape(); break; case 3789: c.sendMessage("You currently have " + c.pcPoints + " SSP."); break; case 3788: c.getShops().openVoid(); break; case 905: c.getDH().sendDialogues(5, npcType); break; case 460: c.getDH().sendDialogues(3, npcType); break; case 462: c.getDH().sendDialogues(7, npcType); break; case 316: //shrimp break; case 334: //mantas break; case 324: //tuna break; case 314: //salmon break; case 326: //monks break; case 522: case 523: c.getShops().openShop(1); break; case 599: c.getPA().showInterface(3559); c.canChangeAppearance = true; break; case 904: c.sendMessage("You have " + c.magePoints + " points."); break; default: if(c.playerRights == 3) Misc.println("First Click Npc : "+npcType); break; } } public void secondClickNpc(int npcType) { c.clickNpcType = 0; c.npcClickIndex = 0; switch(npcType) { case 844: c.getDH().sendDialogues(3000, 0); break; case 8725: c.getShops().openShop(3); break; case 1282: c.getShops().openShop(7); break; case 334: //sharks break; case 3788: c.getShops().openVoid(); break; case 494: c.getPA().openUpBank(); break; case 324: //lobs break; case 904: c.getShops().openShop(17); break; case 522: case 523: c.getShops().openShop(1); break; case 541: c.getShops().openShop(11); break; case 683: c.getShops().openShop(8); break; case 2538: c.getShops().openShop(6); break; case 519: c.getShops().openShop(8); break; case 3789: c.getShops().openShop(18); c.sendMessage("You have " + c.pcPoints + " Soul Split points."); c.sendMessage("Gain SSP By fighting Players, bosses, and completing slayer tasks."); break; case 1: case 9: case 18: case 20: case 26: case 21: c.getThieving().stealFromNPC(npcType); break; default: if(c.playerRights == 3) Misc.println("Second Click Npc : "+npcType); break; } } public void thirdClickNpc(int npcType) { c.clickNpcType = 0; c.npcClickIndex = 0; switch(npcType) { default: if(c.playerRights == 3) Misc.println("Third Click NPC : "+npcType); break; } } }[/CODE] Fishing [CODE]package server.model.players.skills; import server.Config; import server.util.Misc; import server.model.players.Client; /** * Fishing.java * * @author Sanity * **/ public class Fishing { private Client c; private int fishType; private int exp; private int req; private int equipmentType; private final int SALMON_EXP = 70; private final int SWORD_EXP = 100; private final int SALMON_ID = 331; private final int SWORD_ID = 371; public boolean fishing = false; private final int[] REQS = {1,20,40,35,62,76,81}; private final int[] FISH_TYPES = {317,335,359,359,7944,383,389}; private final int[] EXP = {10,50,80,90,120,110,46}; public Fishing(Client c) { this.c = c; } public void setupFishing(int fishType) { if (c.getItems().playerHasItem(getEquipment(fishType))) { if (c.playerLevel[c.playerFishing] >= req) { int slot = getSlot(fishType); if (slot > -1) { this.req = REQS[slot]; this.fishType = FISH_TYPES[slot]; this.equipmentType = getEquipment(fishType); this.exp = EXP[slot]; c.fishing = true; c.fishTimer = 3 + Misc.random(2); } } else { c.sendMessage("You need a fishing level of " + req + " to fish here."); resetFishing(); } } else { c.sendMessage("You do not have the correct equipment to use this fishing spot."); resetFishing(); } } public void catchFish() { if (c.getItems().playerHasItem(getEquipment(fishType))) { if (c.playerLevel[c.playerFishing] >= req) { if (c.getItems().freeSlots() > 0) { if (canFishOther(fishType)) { c.getItems().addItem(otherFishId(fishType),1); c.getPA().addSkillXP(otherFishXP(fishType),c.playerFishing); } else { c.getItems().addItem(fishType,1); c.getPA().addSkillXP(exp * Config.FISHING_EXPERIENCE,c.playerFishing); } c.sendMessage("You catch a fish."); c.fishTimer = 2 + Misc.random(2); } } else { c.sendMessage("You need a fishing level of " + req + " to fish here."); resetFishing(); } } else { c.sendMessage("You do not have the correct equipment to use this fishing spot."); resetFishing(); } } private int getSlot(int fishType) { for (int j = 0; j < REQS.length; j++) if (FISH_TYPES[j] == fishType) return j; return -1; } private int getEquipment(int fish) { if (fish == 317) //shrimp return 303; if (fish == 335) //trout + salmon return 309; if (fish == 337) //lobs return 301; if (fish == 361)//tuna return 311; if (fish == 7944)//monks return 303; if (fish == 383)//sharks return 311; if (fish == 389)//mantas return 303; return -1; } private boolean canFishOther(int fishType) { if (fishType == 335 && c.playerLevel[c.playerFishing] >= 30) return true; if (fishType == 361 && c.playerLevel[c.playerFishing] >= 50) return true; return false; } private int otherFishId(int fishType) { if (fishType == 335) return SALMON_ID; else if (fishType == 361) return SWORD_ID; return -1; } private int otherFishXP(int fishType) { if (fishType == 335) return SALMON_EXP; else if (fishType == 361) return SWORD_EXP; return 0; } public void resetFishing() { this.exp = 0; this.fishType = -1; this.equipmentType = -1; this.req = 0; c.fishTimer = -1; c.fishing = false; } public void FishingProcess() { // TODO Auto-generated method stub } public static void attemptdata(Client c2, int i) { // TODO Auto-generated method stub } }[/CODE] Anyone know whats wrong with it? I have tried tons of tutorials that use different fishing bases.
  2. Now I have this [CODE] var d = new Date(); var Day = d.getUTCDate(); var Hours = d.getUTCHours(); var month=new Array(12); month[0]="January"; month[1]="February"; month[2]="March"; month[3]="April"; month[4]="May"; month[5]="June"; month[6]="July"; month[7]="August"; month[8]="September"; month[9]="October"; month[10]="November"; month[11]="December"; var Month = month[d.getUTCMonth()]; var Minutes = d.getUTCMinutes(); if (Minutes < 11){ Minutes = "0"+Minutes; } document.write("Game time : " + Day + "/" +Month+ " " +Hours+": "+Minutes+" .<br/>"); [/CODE] It will print as : Game time : 29/January 16: 18 . (24 hour) I want instead : Game time : 29/January 6: 18 . (12 hours) I am new to JS, so please explain like I am 5
  3. Hello guys, im have weekly this error it shows 'you can vote with in 12 hours again' wtf? i never voted before but my router is secured changed password etc. i dont know how i can fix this im getting mad of it Greets
  4. I don't care who was online in that past 12 hours, I want to see who is online now!
  5. [video=youtube;afGRza6bFYw]http://www.youtube.com/watch?v=afGRza6bFYw[/video] ROflmao!
  6. i get this error on run.bat for matrix 718/723 on source side, i got client one to run [IMG]http://i46.tinypic.com/2qibxpc.jpg[/IMG] this is wat it looks like when i run it [IMG]http://i47.tinypic.com/2rfzer5.png[/IMG] and no i am not trying to leach i have no clue how to portforward or to let other people play, i just want to test out the new rs items since i cant get member on rs and im 2 lazy to get 99s
  7. Everyday i try to vote for the server i play. and everyday it says please wait 24 hours. been like this for 6or 7months now. Is ther a way to fix this ?????????????????????????????????????
  8. i have made SOF for sometime now just bored so i really dont know what to add for the following i am trying to make it give 1 spin to all players every 24 hours even when there offline heres what i have so far the part that's in internal documented beside shophandler statement is what im trying to replace and what i am looking for if someone can help me with it that would be great [code]private static void addSquealOfFortuneSpin() { CoresManager.slowExecutor.scheduleWithFixedDelay(new Runnable() { @Override public void run() { try { ShopsHandler.restoreShops(); // THIS IS WHERE I NEED HELP WHAT WOULD I REPLACE THIS TO } catch (Throwable e) { Logger.handle(e); } } }, 0, 30, TimeUnit.SECONDS); // left to seconds for test purposes } [/code]
  9. How do I make it so you can only ::claim every 24 hours... Link me to a tut or tell me please.
  10. [ATTACH=CONFIG]4400[/ATTACH][ATTACH=CONFIG]4401[/ATTACH][ATTACH=CONFIG]4402[/ATTACH][ATTACH=CONFIG]4403[/ATTACH][ATTACH=CONFIG]4404[/ATTACH]This is my 562 loading 668 I will include a client and source The features are below: Real x10 HP Fixed Real Hitsplats All working Skills Dungeoneering as well. All minigames working Bosses Corp Jad 65% Nex Very Powerful more... 90% items equipable User Titles Working Clan Citadel Portal Haloween Emote Command - ::hween Colored Chat It is based off Cloudin But Re done Just look at Cloudin Thread It is a 95% Complete base had 150+ Players *************** Downloads *************** *************** Client *************** *Removed* **************************************************************** *************** Source *************** *Removed* *************************************************** Removed I know i said 24 Hours I changed my mind sorry Mod Lock Or Delete
  11. [url]http://www.usatoday.com/tech/news/story/2012-01-17/sopa-pipa-blackout/52622786/1[/url] Wikipedia, Moveon.org, user-submitted news site Reddit, the blog Boing Boing and the Cheezburger network of comedy sites plan to participate in a blackout to protest the Stop Online Piracy Act (SOPA) and Protect IP Act (PIPA) bills. The measures are widely backed by the film and music industries and are aimed at halting sales of pirated products abroad. STORY: Experts disagree on reach of anti-piracy bills The all-day protest is expected to block or detour tens of millions of people. Google, Facebook and Twitter, all of whom oppose SOPA, are not participating in the blackout but have expressed their displeasure. In a letter to U.S. senators and House members, they said they "cannot support these bills as written and ask that you consider more targeted ways to combat foreign 'rogue' websites dedicated to copyright infringement and trademark counterfeiting." Google will post a link on its home page, highlighting its opposition On Tuesday, NetCoalition, a trade group of Internet and technology companies including Google, Yahoo, Amazon.com and eBay, launched a radio advertising campaign highlighting the potential damage of SOPA and PIPA. The drastic measures underscore the dire repercussions of SOPA. "We want to give people a visceral example of what would happen when content is blocked," says Rob Beschizza, managing editor of Boing Boing, which will be shuttered today. He says visitors to Boing Boing will get a error message on their screen, explaining the protest. Wikipedia CEO Jimmy Wales was more blunt in a tweet: "I hope Wikipedia [users] will melt phone systems" of politicians who are in favor of SOPA. "A black screen is alarming," says Ben Huh, CEO of Cheezburger, one of scores of sites that plan digital roadblocks that redirect consumers to another screen. (Users can opt out of the roadblock, and visit the site.) For many sites, this is a preferable option because they cannot afford to shut down and upset users. "It's Hollywood against the tech world, in effect," says James Barraford, who writes about social media for MediaTapper.com. Both congressional bills have widespread support from content owners, including Hollywood and music studios, concerned that online piracy damages their businesses. Technology giants say the bills amount to censorship. Obama administration officials on Saturday came out against Domain Name System provisions in the bill that would have required Internet search giants and Internet providers to block foreign websites accused of piracy. In apparent response to the rising backlash, congressional backers of the bills have pulled out the DNS requirements. The moves are seen as a way to appease tech companies.
  12. [url]http://www.computerandvideogames.com/322366/skyrim-can-be-finished-in-two-hours/?attr=CVG-General-RSS&cid=OTC-RSS[/url] Amazing.
×