Jump to content

Search the Community

Showing results for tags 'text'.



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

  1. I tried every method and cant seem to get the cache downloading to show ...Can someone please help?? I tried with 3 different developers and none can seem to find a answer... These are the lines I used; [img]http://i.imgur.com/M0HIIJR.png[/img] EDIT: It does show this after cache downloads, also the cache downloads in the cmd [img]http://i.imgur.com/0VOOtJI.png[/img]
  2. [url]http://imgur.com/eBWjGpn[/url] Uhm okay I tried to copy the RS3 text design, but this is as close as I can get.. Feel free to use or whatever.
  3. How would I go about making an optimized text on an interface in a RSPS??. I want it to be just like the 'report abuse panel in RS, I want it to have the same function properties as that, but my own 'text' obviously. Could somebody please explain how this could be done most efficiently an proper way? I made a control panel interface with a sidebar and its all good, an I've added a staff panel with a ban option and kick option and I want to be able to write my 'own' text an hit a 'ban' button, etc. And it will ban the name that is written... THANKS!
  4. Hey Guys, I'm new to making an RSPS, but I'm slowly getting there, but one thing I can't find is how to change the alertback text ("Welcome to Aggroth!", "please play from...", "We now added NEX.."): [IMG]http://i.imgur.com/ibXQfC3.png[/IMG] I've looked in client.java, alerthandler.java and some others, but I have no idea where to find it? Also, in the chat you can see the auto messages [Aggroth], how do I go about finding that location? Sorry if these are really dumb questions, but I just can't seem to find this stuff anywhere, thanks!
  5. Is there anyway of changing the public chat text color? Here is a picture of what it looks like. [ATTACH=CONFIG]9686[/ATTACH]
  6. So I got bored and decided to make a small text based project. The work I have currently took me about 15 minutes because it's just a skeleton. I was deciding whether or not to save the "human's" details to .txt or .xml. The objects in the Human's Backpack which is a container will be stored in a .xml. [IMG]http://i.imgur.com/6tr0LYu.png[/IMG] [IMG]http://img690.imageshack.us/img690/2016/yv4s.png[/IMG]
  7. Okay, my problem is that I have GUI and I want to have a method that I can use that'll update the JTextArea with the new string. But I keep getting this error [code] Exception in thread "main" java.lang.NullPointerException at text.gui.GUI.updateTextArea(GUI.java:138) at text.game.Test.intro(Test.java:10) at text.gui.GUI.main(GUI.java:50) [/code] Here's all the code I have that involves the text area, am I missing something, I don't know what's wrong. [code]private JTextArea textArea;[/code] [code] public static void main(String[] args) { /*try { UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel"); } catch(Throwable e) { e.printStackTrace(); } EventQueue.invokeLater(new Runnable() { public void run() { GUI frame = new GUI(); Test.intro(); } });*/ GUI frame = new GUI(); frame.setVisible(true); Test.intro(); }[/code] [code] final JTextArea textArea = new JTextArea(); textArea.setBackground(new Color(176, 224, 230)); scrollPane.setViewportView(textArea); textArea.setEditable(false);[/code] [code] textField.addKeyListener(new KeyAdapter() { @Override public void keyPressed(KeyEvent e) { if(e.getKeyCode() == KeyEvent.VK_ENTER) { inputString = textField.getText(); textArea.append(inputString+"\n"); textField.setText(""); } } });[/code] [code] public void updateTextArea(String message) { textArea.append(textArea.getText() + message + "\n"); textArea.selectAll(); int x = textArea.getSelectionEnd(); textArea.select(x, x); }[/code] [code]public class Test { static GUI frame = new GUI(); public static void intro() { frame.updateTextArea("Testing"); } }[/code] :confused:
  8. In this quick little tutorial I will be showing you how you can change any text that currently says 'Runescape' into your server name. So to do what we stated above, simple follow the below steps: 1. Open up Rsinterface.java and search for "[I][B]if(rsInterface.type == 3)[/B][/I]" and you should see a bunch of if statements similar to that, but simple just add the below code underneath what we searched for. [CODE] if (rsInterface.type == 4) { rsInterface.message = stream.readString().replaceAll( "RuneScape", "Server Name"); rsInterface.aString228 = stream.readString(); } [/CODE] 2. Change the "Server Name" to whatever you want! I hope this helped you out, thanks for reading! - Raw Envy
  9. Okay so, I currently have my items list saved in a .xml file and what I want to do is basically get the info from the xml for the specific item. Mm... Like Lets say in my item list file I have 3 items: health_potion, coins, wooden_sword I want to be able to get the item from the xml and use it in the game (like be able to get the specific items info like examine and shop price etc) and save it in Playersinvy.txt (I'm storing it in a .txt because I can't seem to get the inventory to save in the players XML file like RSPS do, if someone can help with that I would appreciate it!) Here's my Item related stuff and XMLParser(don't know if you need that though) [code] public class XMLParser { private List<Map<String, String>> elements = new ArrayList<Map<String, String>>(); private BufferedReader reader; public XMLParser(final String file) throws IOException { reader = new BufferedReader(new FileReader(file)); } public void setByElement(String name) throws IOException { String line; String endName = "</" + name + ">"; name = "<" + name + ">"; while ((line = reader.readLine()) != null) { if (line.contains(name)) { Map<String, String> element = new HashMap<String, String>(); while (!(line = reader.readLine()).contains(endName)) { element.put(line.substring(line.indexOf("<") + 1, line.indexOf(">")), line.substring(line.indexOf(">") + 1, line.lastIndexOf("<"))); } elements.add(element); } } reader.close(); } public List<Map<String, String>> getElements() { return elements; } public String getStringByTag(Map<String, String> element, String name) { return element.get(name); } public long getLongByTag(Map<String, String> element, String name) { return Long.parseLong(element.get(name)); } public int getIntByTag(Map<String, String> element, String name) { return Integer.parseInt(element.get(name)); } public short getShortByTag(Map<String, String> element, String name) { return Short.parseShort(element.get(name)); } public byte getByteByTag(Map<String, String> element, String name) { return Byte.parseByte(element.get(name)); } }[/code] [code]public class ItemList { private int id; private String name; private String examine; private boolean stackable; private int minPrice; private int normPrice; private int maxPrice; private int classType; public ItemList(int id, String name, String examine, int minPrice, int normPrice, int maxPrice, int classType, boolean stackable) { this.id = id; this.name = name; this.examine = examine; this.stackable = stackable; this.minPrice = minPrice; this.normPrice = normPrice; this.maxPrice = maxPrice; this.classType = classType; } public int getId() { return id; } public String getName() { return name; } public String getExamine() { return examine; } public boolean isStackable() { return stackable; } public int getMinPrice() { return minPrice; } public int getNormPrice() { return normPrice; } public int getMaxPrice() { return maxPrice; } public int getClassType() { return classType; } }[/code] [code]public class ItemManager { private static Map<Integer, ItemList> itemLists = new HashMap<Integer, ItemList>(); public ItemManager() { loadItemXML(); } public ItemList getList(int id) { return itemLists.get(id); } public int getItemClassType(int itemId) { ItemList list = itemLists.get(itemId); return list != null ? list.getClassType() : -1; } public String getItemName(int itemId) { ItemList list = itemLists.get(itemId); return list != null ? list.getName() : "Item"; } public boolean getStackable(int itemId) { ItemList list = itemLists.get(itemId); return list != null && list.isStackable(); } public String getItemExamine(int itemId) { ItemList list = itemLists.get(itemId); return list != null ? list.getExamine() : "an Item."; } public int getItemShopMinValue(int itemId) { ItemList list = itemLists.get(itemId); return list != null ? list.getMinPrice() : 1; } public int getItemShopNormPrice(int itemId) { ItemList list = itemLists.get(itemId); return list != null ? list.getNormPrice() : 1; } public int getItemShopMaxPrice(int itemId) { ItemList list = itemLists.get(itemId); return list != null ? list.getMaxPrice() : 1; } public static void loadItemXML() { try { XMLParser itemInfoXML = new XMLParser("data/items/items.xml"); itemInfoXML.setByElement("Item"); for(int i = 0; i < itemInfoXML.getElements().size(); i++) { Map<String, String> element = itemInfoXML.getElements().get(i); int id = itemInfoXML.getIntByTag(element, "Id"); String name = itemInfoXML.getStringByTag(element, "Name"); String examine = itemInfoXML.getStringByTag(element, "Examine"); boolean stackable = Boolean.parseBoolean(itemInfoXML.getStringByTag(element, "Stackable")); int minPrice = itemInfoXML.getIntByTag(element, "MinPrice"); int normPrice = itemInfoXML.getIntByTag(element, "NormPrice"); int maxPrice = itemInfoXML.getIntByTag(element, "MaxPrice"); int classType = itemInfoXML.getIntByTag(element, "ClassType"); itemLists.put(id, new ItemList(id, name, examine, classType, minPrice, normPrice, maxPrice, stackable)); } Constants.println("Item info loaded: "+itemLists.size()); } catch (Exception e) { System.out.println("Error loading items!"); } } }[/code] Item XML list [code]<Item> <Id>1</Id> <Name>Health_Potion</Name> <Examine>It's a health potion!</Examine> <Stackable>true</Stackable> <MinPrice>2</MinPrice> <NormPrice>5</NormPrice> <MaxPrice>10</MaxPrice> <ClassType>0</ClassType> </Item> <Item> <Id>2</Id> <Name>Wooden_Sword</Name> <Examine>Carved from a normal tree.</Examine> <Stackable>false</Stackable> <MinPrice>3</MinPrice> <NormPrice>8</NormPrice> <MaxPrice>13</MaxPrice> <ClassType>0</ClassType> </Item>[/code]
  10. I'm wondering how you edit in-game books texts so when a player reads the book it will display have the text i added in.
  11. Hey the title pretty much says it all , I need to know how to make NPC's have chat over their head :D if you know wut i mean
  12. [IMG]http://i50.tinypic.com/25sva09.png[/IMG] CNC Requested. Text was made in Cinema4D Lighting/Optical Flares Done In Photoshop
  13. Is it possible to change how big the text size is on a sendstring?
  14. My "Click to continue" and other dialogue are different colours than the default, and when hovered over, they turn green. How do I change that? [URL="http://puu.sh/QPql"]http://puu.sh/QPql[/URL]. Hovered - [url]http://puu.sh/QPs1[/url]. My magic book does not draw the black box behind the spell info, ancients does the same, lunars has no spell info or black box. Magic book - [url]http://puu.sh/QPt2[/url]. Ancient book - [url]http://puu.sh/QPtC[/url]. Lunar book - [url]http://puu.sh/QPtT[/url]. Lastly, when I click my equipment tab, the client freezes, and gives me this error - [url]http://puu.sh/QPuQ[/url]. I'm sure it has something to do with my sprites. Here's my sprites - [url]http://puu.sh/QPyV[/url], and RSInterface. I have a feeling I'm missing a sprite. public static void equipmentScreen(TextDrawingArea[] wid) { [CODE]RSInterface Interface = RSInterface.interfaceCache[1644]; addButton(19144, 6, "Equipment/CUSTOM", 150, 40, "Show Equipment Stats", 1); removeSomething(19145); removeSomething(19146); removeSomething(19147); setBounds(19144, 21, 210, 23, Interface); setBounds(19145, 40, 210, 24, Interface); setBounds(19146, 40, 210, 25, Interface); setBounds(19147, 40, 210, 26, Interface); RSInterface tab = addTabInterface(15106); addSprite(15107, 1, "bg"); addHoverButton(15210, "SPRITE", 1, 21, 21, "Close", 250, 15211, 3); addHoveredButton(15211, "SPRITE", 3, 21, 21, 15212); addText(15111, "", wid, 2, 0xe4a146, false, true); int rofl = 3; addText(15112, "Attack bonuses", wid, 2, 0xFF8900, false, true); addText(15113, "Defence bonuses", wid, 2, 0xFF8900, false, true); addText(15114, "Other bonuses", wid, 2, 0xFF8900, false, true); addText(19148, "Summoning: +0", wid, 1, 0xFF8900, false, true); addText(19149, "Absorb Melee: +0%", wid, 1, 0xFF9200, false, true); addText(19150, "Absorb Magic: +0%", wid, 1, 0xFF9200, false, true); addText(19151, "Absorb Ranged: +0%", wid, 1, 0xFF9200, false, true); addText(19152, "Ranged Strength: +0", wid, 1, 0xFF9200, false, true); addText(19153, "Magic Damage: +0%", wid, 1, 0xFF9200, false, true); for(int i = 1675; i <= 1684; i++) { textSize(i, wid, 1); } textSize(1686, wid, 1); textSize(1687, wid, 1); addChar(15125); tab.totalChildren(50); tab.child(0, 15107, 15, 5); tab.child(1, 15210, 476, 8); tab.child(2, 15211, 476, 8); tab.child(3, 15111, 14, 30); int Child = 4; int Y = 45; tab.child(16, 15112, 24, 30 - rofl); for(int i = 1675; i <= 1679; i++) { tab.child(Child, i, 29, Y - rofl); Child++; Y += 14; } int edit = 7 + rofl; tab.child(18, 15113, 24, 122 - edit); tab.child(9, 1680, 29, 137 - edit - 2); tab.child(10, 1681, 29, 153 - edit - 3); tab.child(11, 1682, 29, 168 - edit - 3); tab.child(12, 1683, 29, 183 - edit - 3); tab.child(13, 1684, 29, 197 - edit - 3); tab.child(44, 19148, 29, 211 - edit - 3); tab.child(45, 19149, 29, 225 - edit - 3); tab.child(46, 19150, 29, 239 - edit - 3); tab.child(47, 19151, 29, 253 - edit - 3); int edit2 = 33 - rofl, edit3 = 2; tab.child(19, 15114, 24, 223 + edit2); tab.child(14, 1686, 29, ((262-24) + edit2) - edit3); tab.child(17, 19152, 29, ((276-24) + edit2) - edit3); tab.child(48, 1687, 29, ((290-24) + edit2) - edit3); tab.child(49, 19153, 29, ((304-24) + edit2) - edit3); tab.child(15, 15125, 170, 200); tab.child(20, 1645, 104+295, 149-52); tab.child(21, 1646, 399, 163); tab.child(22, 1647, 399, 163); tab.child(23, 1648, 399, 58+146); tab.child(24, 1649, (26+22+297)-2, (((110-44)+118)-13)+5); tab.child(25, 1650, 321+22, 58+154); tab.child(26, 1651, 321+134, 58+118); tab.child(27, 1652, 321+134, 58+154); tab.child(28, 1653, 321+48, 58+81); tab.child(29, 1654, 321+107, 58+81); tab.child(30, 1655, 321+58, 58+42); tab.child(31, 1656, 321+112, 58+41); tab.child(32, 1657, 321+78, 58+4); tab.child(33, 1658, 321+37, 58+43); tab.child(34, 1659, 321+78, 58+43); tab.child(35, 1660, 321+119, 58+43); tab.child(36, 1661, 321+22, 58+82); tab.child(37, 1662, 321+78, 58+82); tab.child(38, 1663, 321+134, 58+82); tab.child(39, 1664, 321+78, 58+122); tab.child(40, 1665, 321+78, 58+162); tab.child(41, 1666, 321+22, 58+162); tab.child(42, 1667, 321+134, 58+162); tab.child(43, 1688, (50+297)-2, (110-13)+5); for(int i = 1675; i <= 1684; i++){ RSInterface rsi = interfaceCache[i]; rsi.textColor = 0xFF9200; rsi.centerText = false; } for(int i = 1686; i <= 1687; i++) { RSInterface rsi = interfaceCache[i]; rsi.textColor = 0xFF9200; rsi.centerText = false; } }[/CODE]
  15. SolitudeX

    Text help

    I've never had to worry about it, and never really thought of it but does anyone know how to make a in-client text size smaller?
  16. 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.
  17. Okay so I'm working on a text base adventure game and I tried to make a save/load feature by using this [url]http://java.sun.com/developer/technicalArticles/Programming/serialization/[/url] I failed. Then I tried using XStream, I got confused <.<. So now I need help trying to make a save & load feature using XStream. Here's my player file if you need it [code]public class Player implements Serializable { private static final long serialVersionUID = 8495992061792087696L; public int HP = 100; public int FT = 50; public int COINS = 0; public int STR = 10; public int STAGE; static String SAVE_PATH = "data/saves"; public Player(int HP, int FT, int COINS, int STR, int STAGE) { super(); HP = this.HP; FT = this.FT; COINS = this.COINS; STR = this.STR; STAGE = this.STAGE; } public int getSTAGE() { return STAGE; } public int getCOINS() { return COINS; } public int getSTR() { return STR; } public int getHP() { return HP; } public int getFT() { return FT; } public int getCoins() { return COINS; } public void setCOINS(int COINS) { COINS = this.COINS; } public void setSTR(int STR) { STR = this.STR; } public void setHP(int HP) { HP = this.HP; } public void setFT(int FT) { FT = this.FT; } public void setSTAGE(int STAGE) { STAGE = this.STAGE; } } [/code]
  18. [url]http://www.yourworldoftext.com/runelocus[/url] lets go :cool:
  19. OK well me and my friend are working on coding a blank PI source when we notice that the last 4 skills have no numbers near them. After a while of scanning through the client code I decided to mess with the text int. All 25 of the text is there. So I don't know if this is server side or client side. Any help would be so nice. Also it shows up for the half a second that the black loading screen is there, and it also shows up when you die until you relog. This problem also happens for the summoning orb which doesn't show up until you do the same things. Uploading screenshots right now. Only time it shows them before I die: [IMG]http://i49.tinypic.com/j7w5yh.png[/IMG] What I see: [IMG]http://i49.tinypic.com/m7gq5h.png[/IMG] OFF TOPIC: This is a capcha I got when uploading these. [IMG]http://i48.tinypic.com/2s1162v.png[/IMG]
  20. can someone help me making ::update command im using 711 server and also with changing the default above head text colour to change it from green thanks :)
  21. How could I change when people talk instead of the text being black I would make it like green? What files and how?
  22. Hello, I was wondering how I can change the subtext on the interfaces? eg. On the slayer reward interface, when you mouse hover Buy Slayer XP, you see how much slayer XP you can buy (10,000 XP is shown) And also how to change the Option name of the button eg. When right clicking on the button to buy xp it says Buy XP. And if you also know about how to change the color of the text it would be nice! Note that I just need the name of each of these method. I don't ask to get spoon-fed. Thanks in advance! EDIT: By subtext I mean the messages that popup in the beige box when hovering an interface button: [ATTACH=CONFIG]5337[/ATTACH]
  23. For some reason I have been having the strangest problem with my teleporting spells in the magic tab. Even though I have the code that should allow me to change the text you see when scrolling over the teleport, it still will not change the text. I've tried everything. Anything from rearranging the code in a different form to putting the code in a different place within the text handler. I'm not an idiot. I know how to code these scripts and have had success with these exact codes on other sources. The source I am using is a deltascape base, yet is HIGHLY modified. But not to the extent where the text handler should not be working, because I know damn well the text handler is working for other texts within my source. Take a look at what the problem is. For example, I am trying to make a yanille teleport over the trollheim teleport in the normal magicks tab. Here is the code implemented within my texthandler.java for a varrock teleport spell, when I go to the magicks tab, it reads "Level 25: Varrock Teleport" just as it would in regular runescape. I just want it to say, "Varrock Teleport" and nothing else. I could care less about the description or the amount of runes it takes. The varrock teleport code I have is as follows... [code] c.sendQuest("Varrock", 1300); c.sendQuest("Teleports you to Varrock.", 1301);[/code] However, it still does not change the text over the varrock teleport tab, it still reads the annoying "Level 25: blah...." jibberish you see in runescape, any ideas on why this might be? Any help is appreciated! Thanks much.
×