Jump to content

Search the Community

Showing results for tags 'adding'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • 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


Last Updated

  • Start


Filter by number of...


  • Start



Found 387 results

  1. Open up PlayerAssistant.java and search for this [code] public void teleTab(String teleportType) { [/code] If you already have it, then replace it with this [code] public void teleTab(String teleportType) { if(c.duelStatus == 5) { c.sendMessage("You can't teleport during a duel!"); return; } if (c.playerRights > 2 ) { if(c.inWild() && c.wildLevel > Config.NO_TELEPORT_WILD_LEVEL) { c.sendMessage("You can't teleport above level "+Config.NO_TELEPORT_WILD_LEVEL+" in the wilderness."); return; } } if(System.currentTimeMillis() - c.teleBlockDelay < c.teleBlockLength) { c.sendMessage("You are teleblocked and can't teleport."); return; } if(!c.isDead && c.teleTimer == 0 && c.respawnTimer == -6) { if (c.playerIndex > 0 || c.npcIndex > 0) c.getCombat().resetPlayerAttack(); c.stopMovement(); removeAllWindows(); c.npcIndex = 0; c.playerIndex = 0; c.faceUpdate(0); c.teleHeight = 0; c.startAnimation(4731); c.teleTimer = 9; c.teleGfx = 678; c.teleEndAnimation = 0; if(teleportType.equalsIgnoreCase("varrock")) { c.teleX = 3214; c.teleY = 3424; c.getItems().deleteItem(8007 ,c.getItems().getItemSlot(8007), 1); } if(teleportType.equalsIgnoreCase("lumbridge")) { c.teleX = 3222; c.teleY = 3222; c.getItems().deleteItem(8008 ,c.getItems().getItemSlot(8008), 1); } if(teleportType.equalsIgnoreCase("falador")) { c.teleX = 2965; c.teleY = 3380; c.getItems().deleteItem(8009 ,c.getItems().getItemSlot(8009), 1); } if(teleportType.equalsIgnoreCase("camelot")) { c.teleX = 2757; c.teleY = 3477; c.getItems().deleteItem(8010 ,c.getItems().getItemSlot(8010), 1); } if(teleportType.equalsIgnoreCase("ardy")) { c.teleX = 2659; c.teleY = 3308; c.getItems().deleteItem(8011 ,c.getItems().getItemSlot(8011), 1); } } } [/code] If you don't already have it then search for [code] public void addStarter() { [/code] and add it directly above that. Okay, now that you have that added, save, and open up clickitem.java and search for [code] if (itemId != c.playerItems[itemSlot] - 1) { return; } [/code] Directly under this add: [code] if (itemId == 8007) { c.getPA().teleTab("varrock"); } if (itemId == 8008) { c.getPA().teleTab("lumbridge"); } if (itemId == 8009) { c.getPA().teleTab("falador"); } if (itemId == 8010) { c.getPA().teleTab("camelot"); } if (itemId == 8011) { c.getPA().teleTab("ardy"); } [/code] Save, and compile, and you're done!
  2. I need to know if there is any tutorials for like the trivia things that get broadcasted like it asks a question and then you do like ::answer (answer here) and if you're first to get answer right you get money, any tutorials please.
  3. Can someone please tell me hot to add the smithing interface to a furnace when you use ore on it? The one where you chose which bars you make and how many? I have it activated but the bars are made automatically without letting me chose even though the interface shows up. I want to know how to make the interface work. Thanks.
  4. Reus

    Adding Bounty Hunter

    I want to pretty much base my server around bounty hunter, how do I go about actually adding it into my server? I've searched for tutorials but I haven't really found anything Any help would be great, thanks! :gg:
  5. so i am trying to add the abyssal vine whip in my trisidiax server and i fixed the ints and now i need the model codes but all the links for them is dead and i was wondering if anyone could maybe give me a link that works? ps: idk if this is in the right section or not im new to runelocus so if anybody could help that would be really awesome. thanks :)
  6. hey i am busy to make an pk server based but when i am added items to it and than go compile it gives 100 errors see pictures. [ATTACH=CONFIG]8394[/ATTACH][ATTACH=CONFIG]8395[/ATTACH] if anyone can help shall be fine but the items are unspawnble ingame it is not that it doens't work but i fergot some closing but i dont get what i miss if anyone know please answare here or pm me thanks. Note: i dont do contact whit skype/msn or teamvieuwer i only wanna know how i need to code this.
  7. okay so i add this code my spawn = 8349 2837 9583 0 3194 3662 3172 3643 tds spawn = 8349 2835 9563 0 3194 3662 3172 3643 tds spawn = 8349 2844 9554 0 3194 3662 3172 3643 tds spawn = 8349 2864 9565 0 3226 3107 3172 3643 tds i add this to spawnconfig nothing happens but i get hte error with other sources ive done this 1000x + but this one no (the error) Exception in thread "main" java.lang.ExceptionInInitializerError Caused by: java.lang.NumberFormatException: For input string: "8349 2837 9 583 0 3194" at java.lang.NumberFormatException.forInputString(NumberFormatException. java:65) at java.lang.Integer.parseInt(Integer.java:492) at java.lang.Integer.parseInt(Integer.java:527) at server.model.npcs.NPCHandler.loadAutoSpawn(NPCHandler.java:2334) at server.model.npcs.NPCHandler.<init>(NPCHandler.java:34) at server.Server.<clinit>(Server.java:70) Press any key to continue . . .
  8. So, I am trying to add custom items to my 317 PI server. I added the models to my cache in 'raw', and typed add model ingame. I also did the ints in itemdef.java. When I type add model, it says 'Model Added Successfully.' Everything is ok. Then I go to spawn the ID that I set it as, and my client freezes, and it corrupts the character. I used the correct models, and made the correct ints. But I spawn the ID that I set it as, and my client freezes. I get this error in the client .bat file: [CODE]Exception in thread "Thread-3" java.lang.ArrayIndexOutOfBoundsException: 171065 at Stream.method421(Stream.java:189) at Model.<init>(Model.java:207) at Model.method462(Model.java:142) at ItemDef.method201(ItemDef.java:460) at ItemDef.getSprite(ItemDef.java:359) at client.drawInterface(client.java:8318) at client.drawTabArea(client.java:1900) at client.drawGameScreen(client.java:8113) at client.processDrawing(client.java:8861) at RSApplet.run(RSApplet.java:108) at client.run(client.java:4674) at java.lang.Thread.run(Unknown Source)[/CODE] Thanks for any help given.
  9. I added everything to my cache but when I spawn the item the client crashes I dont know how to fix can anyone help me
  10. [SIZE=4][CENTER]Okay so the title basically says it all, i'm using the Cintillum source and we've just realised that none of the npcs actually drop any summoning charms, how do i add in the method in NPC.java where it automatically gives every npc a random drop of charms? I followed a tutorial but i didn't know what it meant when it stated add blahblah in the SendDrop method i'm real confused if somebody could help me i'd be happy to give out moderator status, Thanks![/CENTER][/SIZE]
  11. I want to add a command that will allow the user to change their levels based on entering the skill id and the desired level they want. How is this done?
  12. Runewhip

    Adding shops

    I am very new to 719+ coding, I'm working on a 742 server, and the shops are horrible. I went into unpackedshops.java and changed the shop items, compiled, and restarted server & client. It will not update the new items I have put into the unpackedshops.java into the shops. Can anyone help me??
  13. [CENTER][FONT=Arial][SIZE=3][COLOR="#FF0000"]Hello, I'm going to show you how to add barrows box set's with the option button "Open"[/COLOR][/SIZE][/FONT] [FONT=Arial][SIZE=3][COLOR="#FF0000"]This is[/COLOR][/SIZE][/FONT] [FONT=Arial][SIZE=5][COLOR="#FF0000"]EASY[/COLOR][/SIZE][/FONT] [FONT=Arial][SIZE=3][COLOR="#FF0000"]All you need to do is Copy & Paste[/COLOR][/SIZE][/FONT] [FONT=Arial][SIZE=3][COLOR="#FF0000"]This is an easy tutorial but will come in handy for your server![/COLOR][/SIZE][/FONT][/CENTER] First: [FONT=Arial][SIZE=4][COLOR="#00FF00"]Go to UseItem.java and add this:[/COLOR][/SIZE][/FONT] [CODE] if ((itemUsed == 4716) || (itemUsed == 4718) || (itemUsed == 4720) || (itemUsed == 4722) && (useWith == 4716) || (useWith == 4718) || (useWith == 4720) || (useWith == 4722)) { if (c.getItems().playerHasItem(4716, 1) && c.getItems().playerHasItem(4718, 1) && c.getItems().playerHasItem(4720, 1) && c.getItems().playerHasItem(4722, 1)){ c.getItems().addItem(11848, 1); c.getItems().deleteItem(4716, 1); c.getItems().deleteItem(4718, 1); c.getItems().deleteItem(4720, 1); c.getItems().deleteItem(4722, 1); c.sendMessage("You put your Dharok's into a set."); } else { c.sendMessage("You don't have all parts to complete this set."); } } [/CODE] Second: [FONT=Arial][SIZE=4][COLOR="#00FF00"]Go to ItemDef.java (CLIENT SIDED) and add this:[/COLOR][/SIZE][/FONT] [code] case 11848: itemDef.actions = new String[5]; itemDef.actions[0] = "Open"; itemDef.name = "Barrows-dharok's set"; itemDef.description = "A box containing full Dharoks"; itemDef.stackable = true; break;[/code] Third: [FONT=Arial][SIZE=4][COLOR="#00FF00"]Go to ClickItem.java (SERVER SIDED) and add this:[/COLOR][/SIZE][/FONT] [CODE] if (itemId == 11848) { if (c.inWild()) { c.sendMessage("You can't do this while your in a PvP Area."); return; } else if(c.getItems().freeSlots() <= 10) { c.sendMessage("You need atleast 10 free slot's to use this feature."); return; } if (c.getItems().playerHasItem(11848, 1)) { c.getItems().addItem(4716, 1); c.getItems().addItem(4718, 1); c.getItems().addItem(4720, 1); c.getItems().addItem(4722, 1); c.getItems().deleteItem(11848, 1); } }[/CODE] [FONT=Arial][SIZE=5][COLOR="#00FF00"]Compile your Client & Server[/COLOR][/SIZE][/FONT] [FONT=Arial][SIZE=5][COLOR="#00FF00"]Your finished! Have fun :)[/COLOR][/SIZE][/FONT] [CENTER][I]Any error's? please post and ill help you:)[/I][/CENTER]
  14. Venge Drop

    Adding Dice 317

    Hello im trying to add dice to my 317 and cant seem to get it fixed, under playercommands in commands.java i add this. [CODE] if(playerCommand.startsWith("dice")){ int random = Misc.random(100); c.forcedChat("[" + c.properName + "] just rolled " + random + "with their dice"); c.sendMessage("You just rolled " + random);//chat Method, clan chat etc }[/CODE] But it doesnt work i type ::dice and commands and everything someone please help.
  15. 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.
  16. Hi Runelocus, I'm trying to add the TokHaar-Kal Cape to my source & client. I added the Models to the Cache The code i used is [CODE]case 15069: itemDef.name ="TokHaar-Kal"; itemDef.value = 60000; itemDef.anInt165 = 62575; itemDef.anInt200 = 62582; itemDef.groundActions = new String[5]; itemDef.groundActions[2] = "Take"; itemDef.modelOffset1 = -4; itemDef.modelID = 62592; itemDef.stackable = false; //itemDef.description = "A cape made of ancient, enchanted rocks."; itemDef.modelZoom = 2086; itemDef.itemActions = new String[5]; itemDef.itemActions[1] = "Wear"; itemDef.itemActions[4] = "Drop"; itemDef.modelOffset2 = 0; itemDef.modelRotationY = 533; itemDef.modelRotationX = 333; break;[/CODE] but the cape ingame shows up as: [IMG]http://i40.tinypic.com/es0via.png[/IMG] If anyone knows how to fix it so the cape cant be seen through the body. I'd really appreciate it. Thanks My skype is: nsellers23 add me if you can help me please or reply to thread
  17. BDunc

    Adding Torva

    I havent code in awhile but how do I add Torva to my server? I know you have to add the models to a raw file but I don't have one. Can someone set one up for me?
  18. So, I've tried following every tutorial out there to add Rank Crowns/Donator crowns and i just simply cant get them to work, i cant get them to pop-up when the player speaks, i get no errors with eclipse or my compiler so would someone be willing to assist me right quick? It would be greatly appreciated, and i will give credit to who wishes to help me if i do release my project server for others to play. Thanks, BuddyScape
  19. well hello, i'm the website developer of Jam-scape.com i've worked on VB, Smf, Myphp forums. its my first time with ipboard and it's really easy to use, expect that i can't figure out how to add custom pages to website, so when people click this page for example highscores it takes him to the highscores page. anyone can help me with adding custom pages? i would appreciate it, thanks. my skype ahmed.diab1998
  20. I need help trying to add new ranks with crowns. I can't find it in my client.java. My source:TrisidiaX
  21. Hi, I need help with finding where to add npc to server and then add items to them making it a shop and be able to do prices and stuff, its a 637 server I am using, if you need more info then ill try my best to find out more.
  22. Title says it all, please somebody out there help me add myself to owner on serenity source. Thank you.
  23. I'm trying to add dragon claws to my server, here's my current setup. I DON'T HAVE A "models" folder nor a "Raw" folder. I also made a new folder in my Clients main folder and still says unable to find model: 44590. ItemDef.java - (Dragon Claws) [CODE]if(i == 14484) { itemDef.actions = new String[5]; itemDef.actions[1] = "Wield"; itemDef.modelID = 44590; itemDef.maleEquip1 = 43660;//anInt165 itemDef.femaleEquip1 = 43660;//anInt200 itemDef.modelZoom = 789; itemDef.modelRotation1 = 240; itemDef.modelRotation2 = 60; itemDef.modelOffset1 = -1; itemDef.modelOffset2 = -23; itemDef.name = "Dragon claws"; itemDef.description = "A set of fighting claws.".getBytes(); }[/CODE] And here's my Client.java for preloading models. [CODE]public void preloadModels() { File file = new File("./Raw/"); File[] fileArray = file.listFiles(); for(int y = 0; y < fileArray.length; y++) { String s = fileArray[y].getName(); byte[] buffer = ReadFile("./Raw/"+s); Model.method460(buffer,Integer.parseInt(getFileNameWithoutExtension(s))); } }[/CODE] In game when I type in add model it just says "Unable to find model: 44590." Pleae help thanks.
  24. So this is my first time ever making a RSPS. Im constantly following the tutorials on this website and im new to most of this stuff. My question is that when I add my dragon claws it compiles fine, everything runs smoothly until when I go ingame I spawn the code (::item 14484 1) and it spawns dwarf remains. BTW This also happens when I try to add chaotics or anything else. Here is my setup(Use Project Insanity). Models Dir: Client > cache > data ItemDeff [CODE]/* Hardcoded items start here */ /**/ if(i == 14484) { itemDef.actions = new String[5]; itemDef.actions[1] = "Wield"; itemDef.modelID = 44590; itemDef.maleEquip1 = 43660;//anInt165 itemDef.femaleEquip1 = 43660;//anInt200 itemDef.modelZoom = 789; itemDef.modelRotation1 = 240; itemDef.modelRotation2 = 60; itemDef.modelOffset1 = -1; itemDef.modelOffset2 = -23; itemDef.name = "Dragon claws"; itemDef.description = "A set of fighting claws.".getBytes(); }[/CODE] Item.cfg [CODE]item = 14484 Dragon_claws Swap_this_note_at_any_bank_for_the_equivalent_item. 12000 12000 12000 0 0 0 0 0 0 0 0 0 0 0 0[/CODE] I added the itemID to the very bottom of my item list. client.java These are how the models are added. [CODE]public void preloadModels() { File file = new File("./Raw/"); File[] fileArray = file.listFiles(); for(int y = 0; y < fileArray.length; y++) { String s = fileArray[y].getName(); byte[] buffer = ReadFile("./Raw/"+s); Model.method460(buffer,Integer.parseInt(getFileNameWithoutExtension(s))); } }[/CODE] I've already tried to switch the "Raw" to "data" located in my cache folder. Still didn't make a difference. I've already downloaded the models and unzipped them into my "data" folder. So im respectfully asking if someone can explain STEP BY STEP how to add Dragon Claws to Project Insanity. I hope someone can help, please and thanks.
  25. hey, i tried taking the pouch files out of mentios and compiling but never worked just got errors so, figured ill ask the pros lol. if u got anything add me on skype or reply here. skype - brandon.nash3