Jump to content

Search the Community

Showing results for tags 'spawning'.



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

  1. wae55

    637 Spawning items?

    Hey guys, I wanted to know how to give myself items on my rsps. Yes I'm a noob lol but please help. thanks
  2. when a player relogs their spawn location changes and they move to a random place. so whenever i update my server everyone logs in in a totally random place. does anyone know how to fix this so people stay in the same place as they logged off with
  3. Hi so a few days ago I downloaded the Overloadx 317 source and client to try out coding for the first time. As it turns out, the previous coder made the ::item command work only for [Previous staff names here]. I found the ::item command in the source file, and I see what the problem is, I just don't know how to fix it? I tried deleting their names and I was left with this: [PHP]if (playerCommand.startsWith("item") String[] args = playerCommand.split(" "); if (args.length == 3) { int newItemID = Integer.parseInt(args[1]); int newItemAmount = Integer.parseInt(args[2]); if ((newItemID <= 20000) && (newItemID >= 0)) { c.getItems().addItem(newItemID, newItemAmount); } else { c.sendMessage("No such item."); } } else { c.sendMessage("Use as ::pickup 995 200"); } } catch(Exception e) { }[/PHP] If anyone has a fix for this or sees a problem please reply with some insight! Thanks, Moon
  4. How to spawn monsters that remain permanent in game? go to server file and search for "Spawn" then open it then there should be a list like 101 = 3225 3125 0 1 2 2 1 Goblin 101= ID 3225 3125 = Cordiantes where it spawns 0 1 2 2 1= Walk path, pull all 0 when you want it to be stationary Adding a shop 654 = 3225 3125 0 0 0 0 0 Generalshop 654=example shopkeeper ID Generalshop = Shop ID(must setup a shup first) open "Shops" folder and then there is a list of shops Shop id = 20 0 0 0 2 5115 10 5115= Item id 10= Item quantity
  5. Like the title says, I'm trying to spawn an object (guardian door) that spawns once you killed an npc. I'm puting the code in the .java file of the npc that needs to die (src.rs.com.game.npc.combat.impl.ballak.java). Here's the statement and the error : --------------------------------------- Statement : if (npc.isdead()) {World.spawnObject(new WorldObject(50347, 2, 1, 2344, 5615, 0), true); npc.setNextAnimation(new animation(14378)); } ------------------------------------------ Error : cannot find symbol if (npc.isdead()) _______^ Symbol : method isdead() Location : class NPC 1 Error -------------------------------------- The ^ is pointing at the dot, I had to add some ____ to place it correctly. I started coding 2 days ago, sorry if it's a dumb error that I don't realise. I'm not sure that (isdead) is the right thing to write but I couldn't find anything else. EDIT: I learned that it might've to do with the imports but I have no idea where to find the one I need. Just a clue would be appreciated.
  6. Hey Guys. When i pack npcspawns i do like this: //Granpa Jack 230 - 3667 2974 0 And i have tried many other ways to.. But Can someone please tell me how i spawn them so they stand still? tried to add false and true and it didnt work.. Thanks! :) I found the problem In NPC.java } if (id == 230) { setRandomWalk(false); } that was what i had to add.
  7. Emenensty

    Spawning items

    Hi guys, Another problem: When I try to spawn an item it automatically spawns 3 times as much so if I type ::item 14484 1 it spawns 3 and if I type ::item 995 10000000 it spawns 30m. It's kind of annoying here's my item command: } if (playerCommand.startsWith("item")) { try { String[] args = playerCommand.split(" "); if (args.length == 3) { int[] NO_SPAWN = { 18349, 18351, 18353 }; int newItemID = Integer.parseInt(args[1]); int newItemAmount = Integer.parseInt(args[2]); for (int i = 0; i < NO_SPAWN.length; i++) { if ((newItemID <= 20000) && (newItemID >= 0) && newItemID != NO_SPAWN[i]) { c.getItems().addItem(newItemID, newItemAmount); } else { c.sendMessage("This code doesnt excists."); } } I know it has something with that args number because when I set that to 1 it suddenly spawned a full inventory of claws and it said not enough space in inventory. Thanks for the help, Emen
  8. Hi there, i hope you guys will understand what i mean, if you watch the picture [ATTACH=CONFIG]9056[/ATTACH] if i am online on my server, and i use a spawn code object 65 -----> 65 = crate wall <------- SO ITS A WALL the object wont appear, if i use object 7 --------> 7 = Cannon Base <-------- its a normal object so its spawnable If i want to see actually what wall a crate wall is, then i need to add the code to objectspawn.java like 65, 3684, 3928, 0, 0, then compile and restart the server........ But doing this takes way to long everytime So thats why i came here with the question, is it actually possible to spawn walls and doors, with ingame code object "ID" so it actually appears in game... instead of having the server to be restarted everytime, soo.. this issue is only with walls and doors all the other objects just work fine.
  9. Unicode

    Spawning Cages

    I'm trying to spawn cages shown below in the picture, but they won't show up. Is there something special I have to do client-wise or server-wise to make them appear? I've already tried doing it through globalobjects and through command. Image: [img]http://puu.sh/4etCT.jpg[/img] Thanks ahead of time! lolking
  10. [I][COLOR="#0000FF"]So I've been working on this Matrix 718 source. And I really do not want my players to have to ability to spawn. I know I probably sound like a noob but how can I disable this? I do, however want to spawn.[/COLOR][/I]
  11. i have some serious issues. my object spawning won't work. this is the only part of my server that doesnt work.. i know that they are all the same ID's but this was for testing but doesnt matter if i change the ID the object that has the coordinates as i gave them it won't work. nothing will spawn. /////////////////THESE ARE MINE SPAWNS private int[][] customObjects = {{}}; public void loadCustomSpawns(Client c) { c.getPA().checkObjectSpawn(-1, 3095, 3499, 1, 10);//REMOVE Chair | Bank | Edgeville c.getPA().checkObjectSpawn(12356, 3087, 3483, 1, 10); c.getPA().checkObjectSpawn(12356, 3087, 3483, 1, 10); c.getPA().checkObjectSpawn(12356, 3087, 3483, 1, 10); c.getPA().checkObjectSpawn(12356, 3087, 3483, 1, 10); c.getPA().checkObjectSpawn(12356, 3087, 3483, 1, 10); c.getPA().checkObjectSpawn(12356, 3087, 3483, 1, 10); c.getPA().checkObjectSpawn(12356, 3087, 3483, 1, 10); c.getPA().checkObjectSpawn(12356, 3087, 3483, 1, 10); c.getPA().checkObjectSpawn(12356, 3087, 3483, 1, 10); ///////////////////////THESE ARE THE PREVIOUS OWNER HIS SPAWNS/////////////////////////// private int[][] customObjects = {{}}; public void loadCustomSpawns(Client c) { //c.getPA().checkObjectSpawn(12356, 3087, 3483, 1, 10); //c.getPA().checkObjectSpawn(2403, 3086, 3483, 0, 10); c.getPA().checkObjectSpawn(2213, 2816, 3466, 0, 10); //c.getPA().checkObjectSpawn(1738, 2859, 3543, 0, 10); c.getPA().checkObjectSpawn(6163, 3083, 3488, 1, 10); c.getPA().checkObjectSpawn(-1, 2643, 9898, 1, 10); c.getPA().checkObjectSpawn(-1, 2643, 9899, 1, 10); c.getPA().checkObjectSpawn(-1, 2643, 9900, 1, 10); c.getPA().checkObjectSpawn(6165, 3083, 3490, 1, 10); c.getPA().checkObjectSpawn(6166, 3083, 3492, 1, 10); c.getPA().checkObjectSpawn(6164, 3083, 3494, 1, 10); c.getPA().checkObjectSpawn(6162, 3083, 3496, 1, 10); c.getPA().checkObjectSpawn(2213, 3187, 3696, 0, 0); c.getPA().checkObjectSpawn(26972, 2642, 9893, 0, 10); c.getPA().checkObjectSpawn(26972, 2643, 9893, 0, 10); c.getPA().checkObjectSpawn(26972, 2644, 9893, 0, 10); c.getPA().checkObjectSpawn(26972, 2645, 9893, 0, 10); //////////////END LIST/////////////////////// the list is way longer but the problem is... even as i removed all his lines and checkobjectspawn codes. all the items that are in the server wont go away. if i replace one of his line with another object ID, then the object wont change??? i cant figure out why. Some good help will be appreciated :P Skype Bjorn.schonenberg
  12. I just need a little help coding all I need help with is how do I set my self as owner because this is my first 614 server and I don't know a lot about them add me on Skype damon.walton2
  13. Hi can anyone give me a noob friendly guide on how make it so Admin+ have the ability to do ::master and ::item etc. I'm a bit of a noob on the subject so i would be grateful if anyone could provide a very simple guide on how to do this :) Btw this is all for the Runelocus starter package :) (idk if that helps :p) Thanks in advance, Looking :)
  14. Hello everyone, I know this will be something generally easy to fix but it has got me. I am currently having trouble trying to fix a little bug that happens when I spawn an item, (For example) when I do ::item 1038 1 it will spawn 2 of that item, so say I did ::item 1038 10 it will spawn 20 of that item. If you could help me would be very very appreciated! Note: I am using a PI Source. Thanks for reading, Yours Sincerely, Elysian
  15. I need help urgently with... On my 718 Spawn server you can spawn almost anything except rares, donator items ect. Someone please tell me how to make it so you spawn items with Coins? Like where to insert database and what would in need to change in 'Commands.java' Willing to give moderator on a server with alot of players! Hints, anything that could make me progress in coding would help so much. Thank you
  16. Hello, In this tutorial I will try and help you spawn NPC's. There are other Tutorials for this on other sites but they never seem to work for me so I have found a different way of doing it. I am doing this on the MATRIX Source. First go into your Source Folder then: src/com/rs/utils/NPCSpawning.Java Scroll down until you see: [code]public static void spawnNPCS() { /** * NPCS */; World.spawnNPC(564, new WorldTile(3597, 3368, 0), -1, false, true); World.spawnNPC(550, new WorldTile(3592, 3368, 0), -1, false, true); World.spawnNPC(546, new WorldTile(3590, 3365, 0), -1, false, true); World.spawnNPC(549, new WorldTile(3593, 3363, 0), -1, false, true); World.spawnNPC(683, new WorldTile(3597, 3363, 0), -1, false, true);[/code] Here is what that means: [code]World.spawnNPC(NPCID, new WorldTile(X Coord, Y Coord, Z Coord), -1, false, true);[/code] Then all you have to do is copy a line of the code above and type in what you need and Save/Close/Compile. Hope I helped. - Chris.
  17. Playerassistant.java search "public void levelUp(int skill) {" replace that whole void with this [CODE]public void levelUp(int skill) { int totalLevel = (getLevelForXP(c.playerXP[0]) + getLevelForXP(c.playerXP[1]) + getLevelForXP(c.playerXP[2]) + getLevelForXP(c.playerXP[3]) + getLevelForXP(c.playerXP[4]) + getLevelForXP(c.playerXP[5]) + getLevelForXP(c.playerXP[6]) + getLevelForXP(c.playerXP[7]) + getLevelForXP(c.playerXP[8]) + getLevelForXP(c.playerXP[9]) + getLevelForXP(c.playerXP[10]) + getLevelForXP(c.playerXP[11]) + getLevelForXP(c.playerXP[12]) + getLevelForXP(c.playerXP[13]) + getLevelForXP(c.playerXP[14]) + getLevelForXP(c.playerXP[15]) + getLevelForXP(c.playerXP[16]) + getLevelForXP(c.playerXP[17]) + getLevelForXP(c.playerXP[18]) + getLevelForXP(c.playerXP[19]) + getLevelForXP(c.playerXP[20])); sendFrame126("Total Lvl: "+totalLevel, 3984); switch(skill) { case 0: sendFrame126("Congratulations, you just advanced an attack level!", 6248); sendFrame126("Your attack level is now "+getLevelForXP(c.playerXP[skill])+".", 6249); c.sendMessage("Congratulations, you just advanced an attack level."); sendFrame164(6247); if(getLevelForXP(c.playerXP[skill]) == 99) { c.getItems().addItem(9748,1); c.getItems().addItem(9749,1); for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { Client c2 = (Client)Server.playerHandler.players[j]; c2.sendClan("<shad=40960>[SERVER]", c.playerName+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Attack!", "Global Chat", 2); } } } break; case 1: sendFrame126("Congratulations, you just advanced a defence level!", 6254); sendFrame126("Your defence level is now "+getLevelForXP(c.playerXP[skill])+".", 6255); c.sendMessage("Congratulations, you just advanced a defence level."); sendFrame164(6253); if(getLevelForXP(c.playerXP[skill]) == 99) { c.getItems().addItem(9754,1); c.getItems().addItem(9755,1); for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { Client c2 = (Client)Server.playerHandler.players[j]; c2.sendClan("<shad=40960>[SERVER]", c.playerName+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Defence!", "Global Chat", 2); } } } break; case 2: sendFrame126("Congratulations, you just advanced a strength level!", 6207); sendFrame126("Your strength level is now "+getLevelForXP(c.playerXP[skill])+".", 6208); c.sendMessage("Congratulations, you just advanced a strength level."); sendFrame164(6206); if(getLevelForXP(c.playerXP[skill]) == 99) { c.getItems().addItem(9751,1); c.getItems().addItem(9752,1); for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { Client c2 = (Client)Server.playerHandler.players[j]; c2.sendClan("<shad=40960>[SERVER]", c.playerName+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Strength!", "Global Chat", 2); } } } break; case 3: sendFrame126("Congratulations, you just advanced a hitpoints level!", 6217); sendFrame126("Your hitpoints level is now "+getLevelForXP(c.playerXP[skill])+".", 6218); c.sendMessage("Congratulations, you just advanced a hitpoints level."); sendFrame164(6216); if(getLevelForXP(c.playerXP[skill]) == 99) { c.getItems().addItem(9769,1); c.getItems().addItem(9770,1); for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { Client c2 = (Client)Server.playerHandler.players[j]; c2.sendClan("<shad=40960>[SERVER]", c.playerName+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Hitpoints!", "Global Chat", 2); } } } break; case 4: sendFrame126("Congratulations, you just advanced a ranged level!", 5453); sendFrame126("Your ranged level is now "+getLevelForXP(c.playerXP[skill])+".", 6114); c.sendMessage("Congratulations, you just advanced a ranging level."); sendFrame164(4443); if(getLevelForXP(c.playerXP[skill]) == 99) { c.getItems().addItem(9757,1); c.getItems().addItem(9758,1); for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { Client c2 = (Client)Server.playerHandler.players[j]; c2.sendClan("<shad=40960>[SERVER]", c.playerName+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Range!", "Global Chat", 2); } } } break; case 5: sendFrame126("Congratulations, you just advanced a prayer level!", 6243); sendFrame126("Your prayer level is now "+getLevelForXP(c.playerXP[skill])+".", 6244); c.sendMessage("Congratulations, you just advanced a prayer level."); sendFrame164(6242); if(getLevelForXP(c.playerXP[skill]) == 99) { c.getItems().addItem(9760,1); c.getItems().addItem(9761,1); for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { Client c2 = (Client)Server.playerHandler.players[j]; c2.sendClan("<shad=40960>[SERVER]", c.playerName+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Prayer!", "Global Chat", 2); } } } break; case 6: sendFrame126("Congratulations, you just advanced a magic level!", 6212); sendFrame126("Your magic level is now "+getLevelForXP(c.playerXP[skill])+".", 6213); c.sendMessage("Congratulations, you just advanced a magic level."); sendFrame164(6211); if(getLevelForXP(c.playerXP[skill]) == 99) { c.getItems().addItem(9757,1); c.getItems().addItem(9758,1); for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { Client c2 = (Client)Server.playerHandler.players[j]; c2.sendClan("<shad=40960>[SERVER]", c.playerName+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Magic!", "Global Chat", 2); } } } break; case 7: sendFrame126("Congratulations, you just advanced a cooking level!", 6227); sendFrame126("Your cooking level is now "+getLevelForXP(c.playerXP[skill])+".", 6228); c.sendMessage("Congratulations, you just advanced a cooking level."); sendFrame164(6226); if(getLevelForXP(c.playerXP[skill]) == 99) { c.getItems().addItem(9802,1); c.getItems().addItem(9803,1); for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { Client c2 = (Client)Server.playerHandler.players[j]; c2.sendClan("<shad=40960>[SERVER]", c.playerName+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Cooking!", "Global Chat", 2); } } } break; case 8: sendFrame126("Congratulations, you just advanced a woodcutting level!", 4273); sendFrame126("Your woodcutting level is now "+getLevelForXP(c.playerXP[skill])+".", 4274); c.sendMessage("Congratulations, you just advanced a woodcutting level."); sendFrame164(4272); if(getLevelForXP(c.playerXP[skill]) == 99) { c.getItems().addItem(9808,1); c.getItems().addItem(9809,1); for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { Client c2 = (Client)Server.playerHandler.players[j]; c2.sendClan("<shad=40960>[SERVER]", c.playerName+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Woodcutting!", "Global Chat", 2); } } } break; case 9: sendFrame126("Congratulations, you just advanced a fletching level!", 6232); sendFrame126("Your fletching level is now "+getLevelForXP(c.playerXP[skill])+".", 6233); c.sendMessage("Congratulations, you just advanced a fletching level."); sendFrame164(6231); if(getLevelForXP(c.playerXP[skill]) == 99) { c.getItems().addItem(9784,1); c.getItems().addItem(9785,1); for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { Client c2 = (Client)Server.playerHandler.players[j]; c2.sendClan("<shad=40960>[SERVER]", c.playerName+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Fletching!", "Global Chat", 2); } } } break; case 10: sendFrame126("Congratulations, you just advanced a fishing level!", 6259); sendFrame126("Your fishing level is now "+getLevelForXP(c.playerXP[skill])+".", 6260); c.sendMessage("Congratulations, you just advanced a fishing level."); sendFrame164(6258); if(getLevelForXP(c.playerXP[skill]) == 99) { c.getItems().addItem(9799,1); c.getItems().addItem(9800,1); for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { Client c2 = (Client)Server.playerHandler.players[j]; c2.sendClan("<shad=40960>[SERVER]", c.playerName+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Fishing!", "Global Chat", 2); } } } break; case 11: sendFrame126("Congratulations, you just advanced a fire making level!", 4283); sendFrame126("Your firemaking level is now "+getLevelForXP(c.playerXP[skill])+".", 4284); c.sendMessage("Congratulations, you just advanced a fire making level."); sendFrame164(4282); if(getLevelForXP(c.playerXP[skill]) == 99) { c.getItems().addItem(9805,1); c.getItems().addItem(9806,1); for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { Client c2 = (Client)Server.playerHandler.players[j]; c2.sendClan("<shad=40960>[SERVER]", c.playerName+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Fire Making!", "Global Chat", 2); } } } break; case 12: sendFrame126("Congratulations, you just advanced a crafting level!", 6264); sendFrame126("Your crafting level is now "+getLevelForXP(c.playerXP[skill])+".", 6265); c.sendMessage("Congratulations, you just advanced a crafting level."); sendFrame164(6263); if(getLevelForXP(c.playerXP[skill]) == 99) { c.getItems().addItem(9805,1); c.getItems().addItem(9806,1); for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { Client c2 = (Client)Server.playerHandler.players[j]; c2.sendClan("<shad=40960>[SERVER]", c.playerName+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Crafting!", "Global Chat", 2); } } } break; case 13: sendFrame126("Congratulations, you just advanced a smithing level!", 6222); sendFrame126("Your smithing level is now "+getLevelForXP(c.playerXP[skill])+".", 6223); c.sendMessage("Congratulations, you just advanced a smithing level."); sendFrame164(6221); if(getLevelForXP(c.playerXP[skill]) == 99) { c.getItems().addItem(9796,1); c.getItems().addItem(9797,1); for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { Client c2 = (Client)Server.playerHandler.players[j]; c2.sendClan("<shad=40960>[SERVER]", c.playerName+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Smithing!", "Global Chat", 2); } } } break; case 14: sendFrame126("Congratulations, you just advanced a mining level!", 4417); sendFrame126("Your mining level is now "+getLevelForXP(c.playerXP[skill])+".", 4438); c.sendMessage("Congratulations, you just advanced a mining level."); sendFrame164(4416); if(getLevelForXP(c.playerXP[skill]) == 99) { c.getItems().addItem(9793,1); c.getItems().addItem(9794,1); for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { Client c2 = (Client)Server.playerHandler.players[j]; c2.sendClan("<shad=40960>[SERVER]", c.playerName+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Mining!", "Global Chat", 2); } } } break; case 15: sendFrame126("Congratulations, you just advanced a herblore level!", 6238); sendFrame126("Your herblore level is now "+getLevelForXP(c.playerXP[skill])+".", 6239); c.sendMessage("Congratulations, you just advanced a herblore level."); sendFrame164(6237); if(getLevelForXP(c.playerXP[skill]) == 99) { c.getItems().addItem(9775,1); c.getItems().addItem(9776,1); for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { Client c2 = (Client)Server.playerHandler.players[j]; c2.sendClan("<shad=40960>[SERVER]", c.playerName+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Herblore!", "Global Chat", 2); } } } break; case 16: sendFrame126("Congratulations, you just advanced a agility level!", 4278); sendFrame126("Your agility level is now "+getLevelForXP(c.playerXP[skill])+".", 4279); c.sendMessage("Congratulations, you just advanced an agility level."); sendFrame164(4277); if(getLevelForXP(c.playerXP[skill]) == 99) { c.getItems().addItem(9772,1); c.getItems().addItem(9773,1); for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { Client c2 = (Client)Server.playerHandler.players[j]; c2.sendClan("<shad=40960>[SERVER]", c.playerName+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Agility!", "Global Chat", 2); } } } break; case 17: sendFrame126("Congratulations, you just advanced a thieving level!", 4263); sendFrame126("Your theiving level is now "+getLevelForXP(c.playerXP[skill])+".", 4264); c.sendMessage("Congratulations, you just advanced a thieving level."); sendFrame164(4261); if(getLevelForXP(c.playerXP[skill]) == 99) { c.getItems().addItem(9778,1); c.getItems().addItem(9779,1); for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { Client c2 = (Client)Server.playerHandler.players[j]; c2.sendClan("<shad=40960>[SERVER]", c.playerName+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Thieving!", "Global Chat", 2); } } } break; case 18: sendFrame126("Congratulations, you just advanced a slayer level!", 12123); sendFrame126("Your slayer level is now "+getLevelForXP(c.playerXP[skill])+".", 12124); c.sendMessage("Congratulations, you just advanced a slayer level."); sendFrame164(12122); if(getLevelForXP(c.playerXP[skill]) == 99) { c.getItems().addItem(9787,1); c.getItems().addItem(9788,1); for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { Client c2 = (Client)Server.playerHandler.players[j]; c2.sendClan("<shad=40960>[SERVER]", c.playerName+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Slayer!", "Global Chat", 2); } } } break; case 19: sendFrame126("Congratulations, you just advanced a farming level!", 12123); sendFrame126("Your farming level is now "+getLevelForXP(c.playerXP[skill])+".", 12124); c.sendMessage("Congratulations, you just advanced a farming level."); sendFrame164(12122); if(getLevelForXP(c.playerXP[skill]) == 99) { for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { Client c2 = (Client)Server.playerHandler.players[j]; c2.sendClan("<shad=40960>[SERVER]", c.playerName+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Farming!", "Global Chat", 2); } } } break; case 20: sendFrame126("Congratulations, you just advanced a runecrafting level!", 4268); sendFrame126("Your runecrafting level is now "+getLevelForXP(c.playerXP[skill])+".", 4269); c.sendMessage("Congratulations, you just advanced a runecrafting level."); sendFrame164(4267); if(getLevelForXP(c.playerXP[skill]) == 99) { c.getItems().addItem(9766,1); c.getItems().addItem(9767,1); for (int j = 0; j < Server.playerHandler.players.length; j++) { if (Server.playerHandler.players[j] != null) { Client c2 = (Client)Server.playerHandler.players[j]; c2.sendClan("<shad=40960>[SERVER]", c.playerName+" just advanced to "+getLevelForXP(c.playerXP[skill])+" Runecrafting!", "Global Chat", 2); } } } break; } c.dialogueAction = 0; c.nextChat = 0; }[/CODE] Enjoy. I know it's sloppy and may have errors cba to look it all over.
  18. Base: Hybrid PVP v3 Problem: I can spawn as an owner, but not an admin. Yet my whole command is set up for Admin/owners Code: [code] if (playerCommand.startsWith("item") && c.playerRights >= 2){ try { String[] args = playerCommand.split(" "); if (args.length == 3) { int newItemID = Integer.parseInt(args[1]); int newItemAmount = Integer.parseInt(args[2]); if ((newItemID <= 20500) && (newItemID >= 0)) { c.getItems().addItem(newItemID, newItemAmount); } else { c.sendMessage("That item ID does not exist."); } } else { c.sendMessage("Wrong usage: (Ex:(::pickup_ID_Amount)(::item 995 1))"); } } catch(Exception e) { } // HERE? } // HERE? [/code]
  19. I'm currently working on a project and I want to make all items spawnable for the prices they are and sell back with ::sellitem for like -5% of the price, like runescape GE. I could do this from scratch but that would take hours so I was wondering if there was an easier way to do this instead of doing it all by hand? REP ++ to anyone who can help!
  20. Most people know how to spawn objects server sided, but there is that split second to remove/load objects when entering a new region. I'd rather the client load and remove the objects. Heres what I have so far: [CODE] public static int mapRegionsX; public static int mapRegionsY; public void addObject(int x, int y, int objectId, int face, int type, int height) { int mX = mapRegionsX - 6; int mY = mapRegionsY - 6; int x2 = x - (mX * 8); int y2 = y - (mY * 8); int i15 = 40 >> 2; int l17 = anIntArray1177[i15]; if(y2 > 0 && y2 < 103 && x2 > 0 && x2 < 103) { method130(-1, objectId, face, l17, y2, type, height, x2, 0); } } public void loadNewObjects() { addObject(3224, 3218, 13667, 1, 10, 0); } [/CODE] I put the method loadNewObjects() in method22() My packet 73: [CODE] if (packetOpcode == 73) { l2 = mapRegionsX; i11 = mapRegionsY; aBoolean1159 = false; }[/CODE] Right now the object doesnt spawn, but it is passing through the loadobjectspawn on loading regions. Can someone explain how to spawn them correctly using Map regions and local coords? SOLVED CLOSE THREAD :)
  21. P1cklez

    NPC Spawning

    Hello Im Currently Working on a project using rsCalifornia 667/714 source. Im trying to spawn npc's using NPCSpawning.java and this is the code i use - [code]World.spawnNPC(2676, new WorldTile(3179, 5706, 0), -1, true, true);[/code] How do I change the Direction the NPC is facing with this??
  22. [code]c.sendMessage("Spawning him now..."); final NPC npc = Server.npcHandler.spawnNpc(c, 1, c.absX - 1, c.absY, 0, 0, 120, 7, 70, 70, false, false);[/code] That's a quick snippet, I just want to know, why isn't that spawning him all of the time? I have to do it twice in order for him to spawn, why?
  23. Base is PI: Im trying to spawn an npc one you click an npc but it isnt working... this is what i have so far actionhandler [CODE]case 2228: if (c.gloryQuest == 1) { c.getDH().sendDialogues(274, npcType); } else if (c.gloryQuest == 2) { c.getDH().sendDialogues(280, npcType); } else if (c.gloryQuest == 3) { c.getPA().startTeleport(2967, 9793, c.playerId * 4, "ancient"); c.getDH().sendDialogues(282, npcType); } else if (c.gloryQuest == 4){ c.getDH().sendDialogues(283, npcType); c.getItems().addItem(291, 1); }[/CODE] thats for teleport and then [CODE] else if (c.dialogueAction == 271) { c.gloryQuest = 1; c.getDH().sendDialogues(272, 251); } else if (c.dialogueAction == 281) { c.gloryQuest = 3; c.getPA().startTeleport(2967, 9773, c.playerId * 4, "ancient"); c.getDH().sendDialogues(282, 2228); } else if (c.dialogueAction == 282) { Server.npcHandler.spawnNpc(c, 50, 2967, 9773, c.playerId * 4, 0, 240, 30, 100, 50, true, false); } else if (c.dialogueAction == 287) { if (c.getItems().playerHasItem(291, 1)) { c.getItems().deleteItem(291, 1); c.gloryQuest = 6; c.getDH().sendDialogues(288, 251); } }[/CODE] dialogueHandler [CODE]case 280: sendNpcChat1("Are you ready?",c.talkingNpc, "Glory Quest"); c.nextChat = 281; break; case 281: sendOption2("Yes","No"); c.dialogueAction = 281; break; case 282: sendOption2("Good Luck.","MUHAHAHAHAHA!"); c.dialogueAction = 282; break;[/CODE] i want to talk to the guy and have it ask if your ready then teleport you to the spot and then have you kill the kbd (50 is my npc id for it) but it doesnt spawn it ever...ive tried many different ways...any ideas?
  24. [center]Welcome to Dynamo PVP! We are a semi-new server and we try to update daily to make the server enjoyable for all players! Links: [url=http://dynamoscape.com]Dynamo Homepage[/url] [url=http://dynamoscape.com/forums]Dynamo Forums[/url] [url=http://vote.dynamoscape.com/vote.php]Vote for a reward![/url] [url=http://play.dynamoscape.com]Play Dynamo[/url] Some features: Amazing PVP System Good PKP economy Target system working perfectly Dominion Tower minigame All barrows effects Active players 24/7 pking Goliath gloves Steadfast/Glaiven/Ragefire boots Completionist/Max/Veteren/Classic capes More updates daily! Pictures: [IMG]http://i45.tinypic.com/211ksc9.jpg[/IMG] [IMG]http://i48.tinypic.com/jky3yd.jpg[/IMG] [IMG]http://i50.tinypic.com/345f153.jpg[/IMG] [IMG]http://i49.tinypic.com/2i6z388.jpg[/IMG] [IMG]http://i48.tinypic.com/316p2zs.jpg[/IMG] [IMG]http://i50.tinypic.com/15xqxap.jpg[/IMG] [/center]
  25. My biggest and last project since im moving on away from rs and rsps. Servers based on rune Extream 614 Server source: [URL=http://www.mediafire.com/download.php?biiuvc0n7w4xk4a]Download[/URL] [COLOR="White"]In order to start the server you have to first download the client below. Once thats downloaded extract it and find the folder called "cache614" Copy the folder and go to your "c:/" drive directory and paste it in there. Also to make yourself admin/mod look in the frames.java file[/COLOR] Client source: [URL=http://www.mediafire.com/download.php?bn10hh9qdw7cga1]Download[/URL] [COLOR="White"]By default the client connects to 127.0.0.1 which is just your computer. If you want to change it find the file "launch.java" then search or find "http://127.0.0.1" You can change it to a no-ip Example "http://blah.no-ip.blah"[/COLOR] All working npc ids, item list, and object list [URL=http://www.mediafire.com/download.php?yrn34lttg28irze]Download[/URL] Most of the features [list] [*]when you log in as admin your invisable, type ::invis or >>invis to not be invisable [*]player vs player mage, melee, range [*]player vs npc mage, melee, range [*]npc vs npc mage, melee, range [*]::help ingame to get non admin cmds for ancients prayers spellbooks etc [*]Survival mini game with score board [*]most special attacks [*]Regular prayer book and ancient spellbook combat prayers work [*]regular spellbook, ancient spellbook including miasmics, and vengeance [*]most range weapons work. All arrows like poison, dung arrows, flaming arrows do not work. Use bronze - dragon for shortbows and bronze - onyx bolts (e) for crossbows [*]Player vs player custom area with portals and bank [*]Tormented demons area with portal in and out [*]Dungeoneering place [*]A crappy music system [*]projectile clipping in the areas arena, tds area, pvp area, and survival game [*]clipping in the areas arena, pvp area, tds area, and survival game [*]item on floor handling [*]stat lowering through spells and specials etc work [*]most if not all the weapons and spells need ammunition, runes, staff equiped to work [/list] pics [IMG]http://img560.imageshack.us/img560/2534/wrathm.jpg[/img] [IMG]http://img810.imageshack.us/img810/70/magebattle.jpg[/img] [IMg]http://img847.imageshack.us/img847/4695/pvpy.png[/img] [IMG]http://img268.imageshack.us/img268/9423/chaoticmaul.jpg[/img] [IMG]http://img37.imageshack.us/img37/8918/chaoticcrossbow.jpg[/img] [IMG]http://img98.imageshack.us/img98/2447/clawsspec.jpg[/img] [IMg]http://img687.imageshack.us/img687/3041/commanderzil.jpg[/img] [IMg]http://img849.imageshack.us/img849/3462/dspear.jpg[/img] [IMg]http://img84.imageshack.us/img84/6384/eyeballvsdemon.jpg[/img] [IMG]http://img854.imageshack.us/img854/664/handgonne.jpg[/img] [IMG]http://img853.imageshack.us/img853/5964/icewyrm.jpg[/img] [IMg]http://img198.imageshack.us/img198/4946/jadvsbigguy.jpg[/img] [IMG]http://img708.imageshack.us/img708/1694/leechesh.jpg[/img] [IMg]http://img850.imageshack.us/img850/8554/lexy.jpg[/img] [IMG]http://img202.imageshack.us/img202/5128/maging.jpg[/img] [IMg]http://img232.imageshack.us/img232/4479/maging2.jpg[/img] [IMg]http://img217.imageshack.us/img217/5026/maging3.jpg[/img] [IMG]http://img232.imageshack.us/img232/8217/meleeingwithwhip.jpg[/img] [IMg]http://img695.imageshack.us/img695/1209/miasmicbarrage1.jpg[/img] [IMG]http://img812.imageshack.us/img812/928/miasmicbarrage2.jpg[/img] [IMG]http://img215.imageshack.us/img215/976/morrigansax.jpg[/img] [IMg]http://img143.imageshack.us/img143/4099/morrigansjav.jpg[/img] [IMG]http://img812.imageshack.us/img812/7323/pnpcrangemageatkingmele.jpg[/img] [IMG]http://img810.imageshack.us/img810/9209/portalsx.jpg[/img] [IMG]http://img196.imageshack.us/img196/9173/primalhammerspec.jpg[/img] [IMG]http://img51.imageshack.us/img51/4278/pvpjc.jpg[/img] [IMg]http://img843.imageshack.us/img843/7318/rangedarkbowspec.jpg[/img] [IMg]http://img833.imageshack.us/img833/7728/ranging.jpg[/img] [IMG]http://img814.imageshack.us/img814/3896/soulsplit.jpg[/img] [IMG]http://img32.imageshack.us/img32/5348/triob.jpg[/img] [IMG]http://img856.imageshack.us/img856/7828/turmoilk.jpg[/img] [IMG]http://img11.imageshack.us/img11/4509/vsstykewrm.jpg[/img] [IMg]http://img828.imageshack.us/img828/8977/vstormenteddem.jpg[/img] [IMg]http://img825.imageshack.us/img825/3113/warm.jpg[/img]
×