Jump to content

Search the Community

Showing results for tags 'box'.



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

  1. Hey everyone! I'm having some trouble relocating my login box and loading bar - I want to change it up a bit and I've been messing around for quite a while, I've done it on a few other clients before but the client I'm using right now is the only one that works well with the source I am using. What I want: The ability to relocate loading bar + login box, also to get rid of the border(and the white "Loading" text) when you first open the client. Client I am using: [URL="http://www.runelocus.com/forums/showthread.php?87354-2006-Remade-Tutorials-Included-Super-Stable"]317 2006-Remade[/URL] What it looks like now: [img]http://i.imgur.com/MxDbXmy.gif[/img] I have been able to remove the border all except for right when you open the client, it's very unappealing, I've gone through my cache and any client file that handles starting up and haven't come up with anything yet to remove the border or the white loading text. Relocating: I want to relocate the text; I want the second line of text that changes (EG: Getting ready, Preparing High Alchemy, etc) to be more towards the bottom while the first line of text be more towards the top; and after it finishes loading - First line of text "Welcome to-x" will be centered with the Login and information box to be centered under that. Sorry if I'm hard to understand my english is not fantastic. I decided I'd come to RL to ask for help since a majority of the R-S community is unhelpful cancer. Things I have already tried: Anything that can be found on the first 100 pages of google when searching "non renamed 317 loading bar" and "non renamed 317 login box" Tinkered around with lots of ints to see if anything would move (they didn't). Any help would be greatly appreciated, community of Runelocus; Thanks! startUp: [CODE] void startUp() { //drawLoadingText(10, "Getting Ready.."); new CacheDownloader(this).downloadCache(); if(signlink.sunjava) super.minDelay = 5; if(aBoolean993) { // rsAlreadyLoaded = true; // return; } aBoolean993 = true; boolean flag = true; String s = getDocumentBaseHost(); if(signlink.cache_dat != null) { for(int i = 0; i < 5; i++) decompressors[i] = new Decompressor(signlink.cache_dat, signlink.cache_idx[i], i + 1); } try { // connectServer(); titleStreamLoader = streamLoaderForName(1, "title screen", "title", expectedCRCs[1], 25); smallText = new TextDrawingArea(false, "p11_full", titleStreamLoader); aTextDrawingArea_1271 = new TextDrawingArea(false, "p12_full", titleStreamLoader); chatTextDrawingArea = new TextDrawingArea(false, "b12_full", titleStreamLoader); TextDrawingArea aTextDrawingArea_1273 = new TextDrawingArea(true, "q8_full", titleStreamLoader); drawLogo(); loadTitleScreen(); StreamLoader streamLoader = streamLoaderForName(2, "config", "config", expectedCRCs[2], 30); StreamLoader streamLoader_1 = streamLoaderForName(3, "interface", "interface", expectedCRCs[3], 35); StreamLoader streamLoader_2 = streamLoaderForName(4, "2d graphics", "media", expectedCRCs[4], 40); StreamLoader streamLoader_3 = streamLoaderForName(6, "textures", "textures", expectedCRCs[6], 45); StreamLoader streamLoader_4 = streamLoaderForName(7, "chat system", "wordenc", expectedCRCs[7], 50); StreamLoader streamLoader_5 = streamLoaderForName(8, "sound effects", "sounds", expectedCRCs[8], 55); byteGroundArray = new byte[4][104][104]; intGroundArray = new int[4][105][105]; worldController = new WorldController(intGroundArray); for(int j = 0; j < 4; j++) aClass11Array1230[j] = new Class11(); aClass30_Sub2_Sub1_Sub1_1263 = new Sprite(512, 512); StreamLoader streamLoader_6 = streamLoaderForName(5, "update list", "versionlist", expectedCRCs[5], 60); drawLoadingText(25, "Preparing High Alchemy.."); onDemandFetcher = new OnDemandFetcher(); onDemandFetcher.start(streamLoader_6, this); Class36.method528(onDemandFetcher.getAnimCount()); Model.method459(onDemandFetcher.getVersionCount(0), onDemandFetcher); preloadModels(); if(!lowMem) { nextSong = 0; try { nextSong = Integer.parseInt(getParameter("music")); } catch(Exception _ex) { } songChanging = true; onDemandFetcher.method558(2, nextSong); while(onDemandFetcher.getNodeCount() > 0) { processOnDemandQueue(); try { Thread.sleep(100L); } catch(Exception _ex) { } if(onDemandFetcher.anInt1349 > 3) { loadError(); return; } } } drawLoadingText(45, "Earning Experience.."); int k = onDemandFetcher.getVersionCount(1); for(int i1 = 0; i1 < k; i1++) onDemandFetcher.method558(1, i1); while(onDemandFetcher.getNodeCount() > 0) { int j1 = k - onDemandFetcher.getNodeCount(); if(j1 > 0) drawLoadingText(75, "Cooking Food.."); processOnDemandQueue(); try { Thread.sleep(100L); } catch(Exception _ex) { } if(onDemandFetcher.anInt1349 > 3) { loadError(); return; } } drawLoadingText(65, "Brewing Potions.."); k = onDemandFetcher.getVersionCount(0); for(int k1 = 0; k1 < k; k1++) { int l1 = onDemandFetcher.getModelIndex(k1); if((l1 & 1) != 0) onDemandFetcher.method558(0, k1); } k = onDemandFetcher.getNodeCount(); while(onDemandFetcher.getNodeCount() > 0) { int i2 = k - onDemandFetcher.getNodeCount(); if(i2 > 0) drawLoadingText(90, "Gearing Up.."); processOnDemandQueue(); try { Thread.sleep(100L); } catch(Exception _ex) { } } if(decompressors[0] != null) { drawLoadingText(75, "Preparing Teleports.."); onDemandFetcher.method558(3, onDemandFetcher.method562(0, 48, 47)); onDemandFetcher.method558(3, onDemandFetcher.method562(1, 48, 47)); onDemandFetcher.method558(3, onDemandFetcher.method562(0, 48, 48)); onDemandFetcher.method558(3, onDemandFetcher.method562(1, 48, 48)); onDemandFetcher.method558(3, onDemandFetcher.method562(0, 48, 49)); onDemandFetcher.method558(3, onDemandFetcher.method562(1, 48, 49)); onDemandFetcher.method558(3, onDemandFetcher.method562(0, 47, 47)); onDemandFetcher.method558(3, onDemandFetcher.method562(1, 47, 47)); onDemandFetcher.method558(3, onDemandFetcher.method562(0, 47, 48)); onDemandFetcher.method558(3, onDemandFetcher.method562(1, 47, 48)); onDemandFetcher.method558(3, onDemandFetcher.method562(0, 148, 48)); onDemandFetcher.method558(3, onDemandFetcher.method562(1, 148, 48)); k = onDemandFetcher.getNodeCount(); while(onDemandFetcher.getNodeCount() > 0) { int j2 = k - onDemandFetcher.getNodeCount(); if(j2 > 0) drawLoadingText(85, "Burying Bones.."); processOnDemandQueue(); try { Thread.sleep(100L); } catch(Exception _ex) { } } } k = onDemandFetcher.getVersionCount(0); for(int k2 = 0; k2 < k; k2++) { int l2 = onDemandFetcher.getModelIndex(k2); byte byte0 = 0; if((l2 & 8) != 0) byte0 = 10; else if((l2 & 0x20) != 0) byte0 = 9; else if((l2 & 0x10) != 0) byte0 = 8; else if((l2 & 0x40) != 0) byte0 = 7; else if((l2 & 0x80) != 0) byte0 = 6; else if((l2 & 2) != 0) byte0 = 5; else if((l2 & 4) != 0) byte0 = 4; if((l2 & 1) != 0) byte0 = 3; if(byte0 != 0) onDemandFetcher.method563(byte0, 0, k2); } onDemandFetcher.method554(isMembers); if(!lowMem) { int l = onDemandFetcher.getVersionCount(2); for(int i3 = 1; i3 < l; i3++) if(onDemandFetcher.method569(i3)) onDemandFetcher.method563((byte)1, 2, i3); } drawLoadingText(95, "Selecting Music.."); /* Custom sprite unpacking */ chatArea = new Sprite("chatarea"); chatButtonH = new Sprite("chathover"); chatButtonC = new Sprite("chatclicked"); chatButtonHC = new Sprite("chatclickedh"); reportH = new Sprite("reporthover"); tabArea = new Sprite("tabarea"); mapArea = new Sprite("maparea"); /**/ mapBack = new Background(streamLoader_2, "mapback", 0); for(int j3 = 0; j3 < 14; j3++) sideIcons[j3] = new Sprite(streamLoader_2, "sideicons", j3); for(int r1 = 0; r1 < 10; r1++) redStones[r1] = new Sprite(streamLoader_2, "redstones", r1); compass = new Sprite(streamLoader_2, "compass", 0); mapEdge = new Sprite(streamLoader_2, "mapedge", 0); mapEdge.method345(); try { for(int k3 = 0; k3 < 100; k3++) mapScenes[k3] = new Background(streamLoader_2, "mapscene", k3); } catch(Exception _ex) { } try { for(int l3 = 0; l3 < 100; l3++) mapFunctions[l3] = new Sprite(streamLoader_2, "mapfunction", l3); } catch(Exception _ex) { } try { for(int i4 = 0; i4 < 20; i4++) hitMarks[i4] = new Sprite(streamLoader_2, "hitmarks", i4); } catch(Exception _ex) { } try { for(int h1 = 0; h1 < 6; h1++) headIconsHint[h1] = new Sprite(streamLoader_2, "headicons_hint", h1); } catch(Exception _ex) { } try { for(int j4 = 0; j4 < 8; j4++) headIcons[j4] = new Sprite(streamLoader_2, "headicons_prayer", j4); for(int j45 = 0; j45 < 3; j45++) skullIcons[j45] = new Sprite(streamLoader_2, "headicons_pk", j45 ); } catch(Exception _ex) { } mapFlag = new Sprite(streamLoader_2, "mapmarker", 0); mapMarker = new Sprite(streamLoader_2, "mapmarker", 1); for(int k4 = 0; k4 < 8; k4++) crosses[k4] = new Sprite(streamLoader_2, "cross", k4); mapDotItem = new Sprite(streamLoader_2, "mapdots", 0); mapDotNPC = new Sprite(streamLoader_2, "mapdots", 1); mapDotPlayer = new Sprite(streamLoader_2, "mapdots", 2); mapDotFriend = new Sprite(streamLoader_2, "mapdots", 3); mapDotTeam = new Sprite(streamLoader_2, "mapdots", 4); backBase1 = new Background(streamLoader_2, "backbase", 0); scrollBar1 = new Background(streamLoader_2, "scrollbar", 0); scrollBar2 = new Background(streamLoader_2, "scrollbar", 1); for(int l4 = 0; l4 < 2; l4++) modIcons[l4] = new Background(streamLoader_2, "mod_icons", l4); Sprite sprite = new Sprite("frame"); frame = new RSImageProducer(sprite.myWidth, sprite.myHeight, getGameComponent()); sprite.method346(0, 0); int i5 = (int)(Math.random() * 21D) - 10; int j5 = (int)(Math.random() * 21D) - 10; int k5 = (int)(Math.random() * 21D) - 10; int l5 = (int)(Math.random() * 41D) - 20; for(int i6 = 0; i6 < 100; i6++) { if(mapFunctions[i6] != null) mapFunctions[i6].method344(i5 + l5, j5 + l5, k5 + l5); if(mapScenes[i6] != null) mapScenes[i6].method360(i5 + l5, j5 + l5, k5 + l5); } drawLoadingText(96, "Selecting Music.."); Texture.method368(streamLoader_3); Texture.method372(0.80000000000000004D); Texture.method367(); drawLoadingText(97, "Selecting Music.."); Animation.unpackConfig(streamLoader); ObjectDef.unpackConfig(streamLoader); Flo.unpackConfig(streamLoader); ItemDef.unpackConfig(streamLoader); EntityDef.unpackConfig(streamLoader); IDK.unpackConfig(streamLoader); SpotAnim.unpackConfig(streamLoader); Varp.unpackConfig(streamLoader); VarBit.unpackConfig(streamLoader); ItemDef.isMembers = isMembers; if(!lowMem) { drawLoadingText(98, "Selecting Music.."); byte abyte0[] = streamLoader_5.getDataForName("sounds.dat"); Stream stream = new Stream(abyte0); Sounds.unpack(stream); } drawLoadingText(99, "Selecting Music.."); TextDrawingArea aclass30_sub2_sub1_sub4s[] = { smallText, aTextDrawingArea_1271, chatTextDrawingArea, aTextDrawingArea_1273 }; RSInterface.unpack(streamLoader_1, aclass30_sub2_sub1_sub4s, streamLoader_2); drawLoadingText(100, "Starting Slayer Task.."); for(int j6 = 0; j6 < 33; j6++) { int k6 = 999; int i7 = 0; for(int k7 = 0; k7 < 34; k7++) { if(mapBack.aByteArray1450[k7 + j6 * mapBack.anInt1452] == 0) { if(k6 == 999) k6 = k7; continue; } if(k6 == 999) continue; i7 = k7; break; }[/CODE] drawLoginScreen: [CODE]private void drawLoginScreen(boolean flag) { resetImageProducers(); aRSImageProducer_1109.initDrawingArea(); aBackground_966.method361(0, 0); char c = '\u0168'; char c1 = '\310'; if(loginScreenState == 0) { int i = c1 / 2 + 80; smallText.method382(0x75a9a9, c / 2, onDemandFetcher.statusString, i, true); i = c1 / 2 - 20; chatTextDrawingArea.method382(0xB22222, c / 2, "Welcome to text", i, true); i += 30; int l = c / 2 - 80; int k1 = c1 / 2 + 20; aBackground_967.method361(l - 73, k1 - 20); chatTextDrawingArea.method382(0xB22222, l, "Information", k1 + 5, true); l = c / 2 + 80; aBackground_967.method361(l - 73, k1 - 20); chatTextDrawingArea.method382(0xB22222, l, "Play Now", k1 + 5, true); } if(loginScreenState == 2) { int j = c1 / 2 - 40; if(loginMessage1.length() > 0) { chatTextDrawingArea.method382(0xB22222, c / 2, loginMessage1, j - 15, true); chatTextDrawingArea.method382(0xB22222, c / 2, loginMessage2, j, true); j += 30; } else { chatTextDrawingArea.method382(0xB22222, c / 2, loginMessage2, j - 7, true); j += 30; } chatTextDrawingArea.method389(true, c / 2 - 90, 0xB22222, "Username: " + myUsername + ((loginScreenCursorPos == 0) & (loopCycle % 40 < 20) ? "@[email protected]<3" : ""), j); j += 15; chatTextDrawingArea.method389(true, c / 2 - 88, 0xB22222, "Password: " + TextClass.passwordAsterisks(myPassword) + ((loginScreenCursorPos == 1) & (loopCycle % 40 < 20) ? "@[email protected]<3" : ""), j); j += 15; if(!flag) { int i1 = c / 2 - 80; int l1 = c1 / 2 + 50; aBackground_967.method361(i1 - 73, l1 - 20); chatTextDrawingArea.method382(0xB22222, i1, "Login", l1 + 5, true); i1 = c / 2 + 80; aBackground_967.method361(i1 - 73, l1 - 20); chatTextDrawingArea.method382(0xB22222, i1, "Cancel", l1 + 5, true); } } if(loginScreenState == 3) { chatTextDrawingArea.method382(0xB22222, c / 2, "Heart06 Information", c1 / 2 - 60, true); int k = c1 / 2 - 35; chatTextDrawingArea.method382(0xB22222, c / 2, "text", k, true); k += 15; chatTextDrawingArea.method382(0xB22222, c / 2, "text", k, true); k += 15; chatTextDrawingArea.method382(0xffffff, c / 2, "", k, true); k += 15; chatTextDrawingArea.method382(0xB22222, c / 2, "text", k, true); k += 15; int j1 = c / 2; int i2 = c1 / 2 + 50; aBackground_967.method361(j1 - 73, i2 - 20); chatTextDrawingArea.method382(0xB22222, j1, "Go Back", i2 + 5, true); } aRSImageProducer_1109.drawGraphics(171, super.graphics, 202); if(welcomeScreenRaised) { welcomeScreenRaised = false; aRSImageProducer_1107.drawGraphics(0, super.graphics, 128); aRSImageProducer_1108.drawGraphics(371, super.graphics, 202); aRSImageProducer_1112.drawGraphics(265, super.graphics, 0); aRSImageProducer_1113.drawGraphics(265, super.graphics, 562); aRSImageProducer_1114.drawGraphics(171, super.graphics, 128); aRSImageProducer_1115.drawGraphics(171, super.graphics, 562); } }[/CODE] [SIZE=5]EDIT: Got rid of the white "Loading" text at client start up, just seeking a way to remove border from client start up and relocating loading bar + login box![/SIZE]
  2. Gaabe

    Enso Chat Box

    Could someone please me help with enso chat box error this is how it looks [IMG]http://i.imgur.com/HchPFGV.png[/IMG] I need the right ID for the place Chatbox tab is sent. sendTab(73, 752); this is what I have atm, if anyone know the right ID please share with me! :( I've tried using from other sources but it seems different :(
  3. so for dev purposes, i wanted to know how do you make it to where when i click on something in game it gives me the id of that item in the chat box so i do what i wish with the item id, so that when my players click on that item whatever action i wish to happen will happen... using asteria 2.0 if that matters (also i want this only to happen for admins+) thanks ahead of time lacero
  4. When im logging into my server it says IN THE CHAT BOX: [ATTACH=CONFIG]10663[/ATTACH] I dont know how to remove it or edit, so please help! Im using TrisidiaX source and client, if it is any help...
  5. another request from someone on skype What your adding - [img]http://i.gyazo.com/038c2721243c253cd7ef1acb6c5f68ef.gif[/img] basically a stackable box that allows you to bank anywhere. itemdef.java (client sided) [code] case 3062: itemDef.name = "Banking Box"; itemDef.description = "Bank Anywhere With This Box"; break; [/code] item.cfg (replace old item data with this) [code] item = 3062 Banking_box Bank_anwhere_with_this_box 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 [/code] clickitem.java (add this anywhere) [code] if(itemId == 3062) { //banking box by fatmess c.getPA().openUpBank(); c.sendMessage("You open your bank and use a banking box"); c.getItems().deleteItem(3062, 1); } //banking box by fatmess [/code] item.java (add this with the other stackables) [code] itemStackable[3062] = true; //banking box [/code]
  6. Well I want to add an item to my server that you can buy and when you click it, it will make you donator. [CODE]if (itemId == 6545) { player.getInventory().deleteItem(6545, 1); if (player.getRights() = 1); player.logout(); }[/CODE] I'm a beginner with java code, mind steering me in the right direction with this? thanks.
  7. Phobix

    Login box problem

    Ok so my loading screen is fine. But I attempted to convert the client to a Webclient but a problem occurred. It works fine and downloads etc. No errors. But when the client unpakcs the login box is not there. The little line that blinks to type username and password is there but no box. You have to restart the client and it works fine, but id rather not have a new player restart their client each time they join. It only happens after the cache is downloaded but after that it works fine long as you re open the client again once. I am not sure why its not working. If you need any methods or anything let me know.
  8. Onex

    Custom LogIn Box

    Hey, I'm trying to add a custom login box on my beta client and get rid of the old 317 RS login box. I have the titlebox and titlebutton .png's in my sprites folder and have also done the class30_sub2_sub1_sub1 edits that are needed to load the new login, but it still won't show up. I know there are some tut's and snippets on how to do this, which I followed. here's my class30 edit ... else if (s.startsWith("titlebox")){ try{ Image image = Toolkit.getDefaultToolkit().getImage(".files/spirtes/titlebox.png"); anIntArray1439 = new int[anInt1440 * anInt1441]; PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440); pixelgrabber.grabPixels(); }catch (Exception exception){ } } else if (s.equalsIgnoreCase("titlebutton")) { try { Image image = Toolkit.getDefaultToolkit().getImage(".Files/Spirtes/titlebutton.png"); anIntArray1439 = new int[anInt1440 * anInt1441]; PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440); pixelgrabber.grabPixels(); } catch (Exception exception) { System.out.println(((Object) (exception))); } }
  9. [img]http://i.imgur.com/t3lHGXA.png[/img] Made this a couple of days ago, decided to try something out besides tags. It's pretty simple (took about an hour or two though). I think I'll make more.
  10. Base: PI Difficulty: Copy & Paste Hello, Zygaria here. I'm releasing my class i just wrote. What this does is gives you four methods for boxes for donations or w/e you want. Make a new class w/e you want & name it DonatorReward. put this in clickItem.java [code] case 11846: DonatorReward.addBarrowsReward(c); break; case 15246: DonatorReward.addRareReward(c); break; case 6183: DonatorReward.addGodwarsReward(c); break; case 14664: DonatorReward.addChaoticReward(c); break; [/code] Here's the class. [code] package game; import game.player.*; import engine.util.*; /** * [MENTION=52317]auth[/MENTION]or Thee Legacy */ /** * * Random Boxes for Donaters. * Can be anything, I've added three boxes. * You may add as many as your heart desires. * */ public class DonatorReward { private static int[][] randomGodwars = {//item id: 6183 {11732, 1}, {11730, 1}, {11694, 1}, {11696, 1}, {11698, 1}, {11700, 1}, {11724, 1}, {11726, 1}, {11728, 1}, {11718, 1}, {11720, 1}, {11722, 1}, {20135, 1}, {20139, 1}, {20143, 1}, {20147, 1}, {20151, 1}, {20155, 1}, {20159, 1}, {20163, 1}, {20167, 1}, {20171, 1} }; private static int[][] randomBarrows = {//item id: 11846 {4708, 1}, {4710, 1}, {4712, 1}, {4714, 1}, {4716, 1}, {4718, 1}, {4720, 1}, {4722, 1}, {4724, 1}, {4726, 1}, {4728, 1}, {4730, 1}, {4732, 1}, {4734, 1}, {4736, 1}, {4738, 1}, {4745, 1}, {4747, 1}, {4749, 1}, {4751, 1}, {4753, 1}, {4755, 1}, {4757, 1}, {4759, 1} }; private static int[][] randomChaotic = {//item id: 14664 {18349, 1}, {18351, 1}, {18353, 1}, {18355, 1}, {18357, 1}, {18359, 1} }; private static int[][] rareRewards = {//item id: 15246 {1037, 1}, {1038, 1}, {1040, 1}, {1042, 1}, {1044, 1}, {1046, 1}, {1048, 1}, {1050, 1}, {1053, 1}, {1055, 1}, {1057, 1} }; public static int generateBarrowsReward() { int rewardLevel = 0; if(rewardLevel == 0) { rewardLevel = 3; } return rewardLevel; } public static void addBarrowsReward(Player c) { int items = 11846; if(c.getItems().freeSlots() >= 1) { if(c.getItems().playerHasItem(items)) { c.getItems().deleteItem(items, 1); int reward = generateBarrowsReward(); switch(reward) { case 3: int rareRandom = Misc.random(randomBarrows.length - 1); c.getItems().addItem(randomBarrows[rareRandom][0], randomBarrows[rareRandom][1]); break; } c.sendMessage("You have recieved a "+c.getItems().getItemName(reward)+" from your barrows box!"); } } else { c.sendMessage("You need to have atleast 1 free inventory slot to open this!"); } } public static int generateRareReward() { int rewardLevel = 0; if(rewardLevel == 0) { rewardLevel = 3; } return rewardLevel; } public static void addRareReward(Player c) { int items = 15246; if(c.getItems().freeSlots() >= 1) { if(c.getItems().playerHasItem(items)) { c.getItems().deleteItem(items, 1); int reward = generateRareReward(); switch(reward) { case 3: int rareRandom = Misc.random(rareRewards.length - 1); c.getItems().addItem(rareRewards[rareRandom][0], rareRewards[rareRandom][1]); break; } c.sendMessage("You have recieved a "+c.getItems().getItemName(reward)+" from your rare box!"); } } else { c.sendMessage("You need to have atleast 1 free inventory slot to open this!"); } } public static int generateGodwarsReward() { int rewardLevel = 0; if(rewardLevel == 0) { rewardLevel = 3; } return rewardLevel; } public static void addGodwarsReward(Player c) { int items = 6183; if(c.getItems().freeSlots() >= 1) { if(c.getItems().playerHasItem(items)) { c.getItems().deleteItem(items, 1); int reward = generateGodwarsReward(); switch(reward) { case 3: int rareRandom = Misc.random(randomGodwars.length - 1); c.getItems().addItem(randomGodwars[rareRandom][0], randomGodwars[rareRandom][1]); break; } c.sendMessage("You have recieved a "+c.getItems().getItemName(reward)+" from your godwars box!"); } } else { c.sendMessage("You need to have atleast 1 free inventory slot to open this!"); } } public static int generateChaoticReward() { int rewardLevel = 0; if(rewardLevel == 0) { rewardLevel = 3; } return rewardLevel; } public static void addChaoticReward(Player c) { int items = 14664; if(c.getItems().freeSlots() >= 1) { if(c.getItems().playerHasItem(items)) { c.getItems().deleteItem(items, 1); int reward = generateChaoticReward(); switch(reward) { case 3: int rareRandom = Misc.random(randomChaotic.length - 1); c.getItems().addItem(randomChaotic[rareRandom][0], randomChaotic[rareRandom][1]); break; } c.sendMessage("You have recieved a "+c.getItems().getItemName(reward)+" from your chaotic box!"); } } else { c.sendMessage("You need to have atleast 1 free inventory slot to open this!"); } } } [/code]
  11. [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]
  12. I was working on this for a while and wanted to see if it would be worth anything. It's just a shot I have spent alot of time on this and alot of editing has been done aswell. This is me testing it on my website, I can change the image on the top and all text can be changed. 100% all buttons including mouse over. [IMG]http://www.projectimmortal.net/showoff.png[/IMG] [IMG]http://www.projectimmortal.net/showoff2.png[/IMG] Note: These images are not final. I would like to keep away from RuneScape because it makes it look like I copied. I only grabbed there images because I had nothing else to work with. The full Background image can be change. The buttons to the play now were just something I had from an old project. Give me status on what you think or I should add.
  13. hey im making a cache auto downloader and i downloaded drop box, but when i go into it there is no "public" folder so i can put my cache in it and get the link, so what do i do to get my cache link for my auto dler some one help plz
  14. Ok so i was messing around and i thought it would be fun just to add the box sets like on runescape the diff barrows. Im sure you all know what i meen. I know this is easy but i just decided i would release for the lazy people that dont wanna make it. This makes it so if you use any of the barrows item with each other it makes the set. Ima only show you one but im sure you can do the rest of the sets with it. Ill also show you how to make it open and show them. basically go into your useitem.java and under itemonitem add this [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 Dh parts into a set."); } else { c.sendMessage("You dont have all parts to make this set."); } } [/code] Basically the first line is saying that any of those ids can be used with any of the useWith ids and itll make the box, so basically its saying any of the dh pieces used with the other dh pieces will make the box. The second line obviously checks to make sure you have that. And the rest i think you can figure out. So that will basically if you use any dh piece with the other itll make a box only if you have all them. Now for the second part, to make it open. Open up Itemdef.java in ur client and with the rest add this SOme people might need to add .getBytes(); if it doesnt work and u add that to the end of description [code] case 11848: itemDef.itemActions = new String[5]; itemDef.itemActions[1] = "Open"; itemDef.name = "Barrows dharok's set"; itemDef.description = "A box containing full Dharoks"; itemDef.stackable = true; break; [/code] Basically this will add a "open" option to it. But if you go and try that youll wield it, so you need to go to itemass.java and search this [code] } else if(itemType(wearID).equalsIgnoreCase("ring")) { targetSlot=12; } else { targetSlot = 3; }[/code] Should see a bunch of those but with diff numbers ands stuff. Under the last one add this [code] if (wearID == 11848) { 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] Now compile ur server and client and run and you should be able to open your boxes and make them. PS: I know this is easy but i was helping someone do it and decided to write a tut for it so ya. } if you want it so they need inventory spots though that way they dont lose items, (if they have 1 invy spot and they clcik it theyll lost 3 items) you can add this [code] if (c.inWild() && c.isBanking) { c.sendMessage("You cannot do this right now"); } else if(c.getItems().freeSlots() <= 10) { c.sendMessage("You need atleast 10 free slot's to use this feature."); }[/code] this also makes them not be able to do it in wild (it would help them, think about it, 4 items into 1 for prot or something). This goes in the item ass like below the wearitem id code
  15. Hello. I have 317 PI, Mostly Based on InsidiaX and I'd like to know how to remove that: ''objectid: **** objectX: **** objectY: ****'' always appearing when I click object, It's really annoying and only causes spam in Message Box. Please Help soon as possible. Image about what I mean. [IMG]http://i49.tinypic.com/2rf7inq.png[/IMG] Thanks.
  16. Pixelation

    Run box closes.

    Right, so when i click on run, it opens for less than a second, then goes. I've changed compiler and compiled. The run box goes off to quick for me to read anything, Delta Source btw.
  17. Can anyone help me fixing the trade box glitch? cuz it closes everytime i trade and people lose their items.... plz! skype: chava2995 hope someone can help me plzz!
  18. hay guy's i added the new loadingscreen and loginbox i get no error's in compile but when i run.bat i get this error [IMG]http://i41.tinypic.com/30vch6t.jpg[/IMG] the nullpointer.lang is when i run server and the other error is when i close it
  19. Well I dont know about you guys but I have been trying to find this for a few days now and I finally found one that works so I am VERY happy with it and I want to share it with you all. I cant give credits because it was from a random pastebin.com site thingy sooooo to who ever made this, I love you! :D EDIT: I just tested this same code but changed it around a bit to add 2 types of random rewards systems like this! Okay so for example you already did this but you want another box / item to do the same thing with different items, you can use 6183 (thats what I used) its a random event gift and all you need to change is the word "reward" and "lottery" for prize or any other word you want, and it works! :D [CODE]// Alright, go into client.java and find: public void flushOutStream() { // Right above that, declare this void: public void givereward() { if (getItems().playerHasItem(6199)) { getItems().deleteItem(6199, 1); getItems().addItem(randomlottery(), 1); } else { sendMessage("You need 2 free slots."); } } public static int randomlottery[] = {15000, 15001, 15002, 15003, 15004, 15005, 15006, 15007, 15008, 15009, 15010, 15011, 15012, 15013, 15014, 15015, 15016, 15017, 15018, 15019, 15020, 11694}; public static int randomlottery() { return randomlottery[(int) (Math.random() * randomlottery.length)]; } /** * Change the randomlottery[] those numbers Example:15000, 15001, and stuff those are all dwarf remains, it means you lost the lottery. * And the 11694, is ags. * Save and close out of it. * Go into clickitem.java and find: */ if (c.getHerblore().isUnidHerb(itemId)) c.getHerblore().handleHerbClick(itemId); // Right above it paste this: if(itemId == 6199) { c.givereward(); }[/CODE]
  20. Hey guys, thanks for taking the time to talk a look at this, would love a solution! I want a player with donator status to be able to show it off with a "Donator crow." I've seen this in multiple servers, but there are not snippets on how to do this. I tried doing it myself, but I can't even find the admin/mod crowns in my sprites. I thought they might be in the cache, but its not their either. Any Idea's?
  21. Obviously it is in the sprites but named what/where is it? 474 PI. I want to change this- [IMG]http://i.imgur.com/JstqJ.png[/IMG] To this- [IMG]http://i.imgur.com/8PP2f.png[/IMG] What I mean by that is I want the NEW login box I see some RSPS' having. If you inform me how can you provide me with a sprite for it? Thanks
  22. Where is this sprite located? It is the login box that says Welcome to blahblah scape. [IMG]http://i.imgur.com/2hmuX.png[/IMG] It is NOT located in the login folder in sprites and I have check almost every folder in sprites. WHERE IS IT??
  23. hi how do i add a pk box to a 639 server need answer asap thx
×