Jump to content

Search the Community

Showing results for tags 'number'.



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

  1. Hello, I came up with these 2 formulas to find the pin number for each button rather than just giving each button its number. So how this works is, when the button on the interface is clicked, it will use the buttonId in one of these formulas based on which interface Id it is (759 if the first 3 pins are being entered & 13 if its the last pin). [code] // Interface 759 int enteredDigit = buttonId / 4 - 1; // This also works for interface 759 private static int getNumberValue(int buttonId) { return ((buttonId >> 2) - 1); } [/code] [code] // Interface 13 int finalDigit = buttonId - 6; [/code] I found using these formulas so much more efficient and saves a lot of clutter when it comes to handling the buttons.. So an example of what handling your pin buttons should look could be something like this now; [code] private int interfaceStage = 0; private int[] enteredPin = new int[4]; public void handleButtons(int interfaceId, int buttonId) { int formula = 0; switch (interfaceId) { case 13: formula = buttonId - 6; break; case 759: formula = buttonId / 4 - 1; // Or getNumberValue(buttonId); break; } enteredPin[interfaceStage] = formula; interfaceStage++; } [/code] I hope this saves you a bit of time!
  2. Delete this thread please, it was the thread title but for some reason said it was the amount of tags haha.
  3. 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]
  4. high105

    Need a Line Number

    Ok I'm trying to add a quest points line, at the bottom of the quest tab, could anyone give me the line # for where the red is? 317 PI [IMG]http://i.imm.io/dx6r.jpeg[/IMG]
  5. I know there's already a thread on the bot nuke floating around... but the original topic of that thread just seems to be what are the bots going to do... where as the topic of this thread is.... WOW the number of people online are ridiculous... I think this whole thing is amazing... I despise bots I hate them with everything I have... they're the most pathetic thing ever brought onto this planet... and the people using them... even more pathetic.... but anyways I'm kinda getting off topic... soo... I took a screenie of the jagex homepage.... my question to you is... : When do you think the bots will be coming back? (if ever, which they most likely probably will but not all of them of course) here is my screenshot [img]http://imgtool.in/images/justproves.png[/img]
  6. When i wear onyx bolts (e) with rune c'bow i always keep hitting 100 i know why but it wont change its cuz of ranged strenght bonus in itemdefinitions.xml i changed it to 0 but now i keep hitting 100 anybody knows how to change?
  7. I made this one 100% from scratch, meaning I didn't use the NetBeans GUI maker. Main.java [code] package com.gui; import javax.swing.JFrame; /** * * @author Arrogance */ public class Main { public static void main(String[] args) { GUI Jframes = new GUI(); Jframes.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); Jframes.setSize(225, 100); Jframes.setVisible(true); } }[/code] GUI.java [code]package com.gui; import java.awt.FlowLayout; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JButton; import javax.swing.JTextField; /** * * @author Arrogance */ public class GUI extends JFrame { //Varribles private JLabel Label1; private JLabel Label2; private JButton Button1; private JButton Button2; private JButton Button3; private JTextField TextField1; int MyNumber = 15; public GUI() { super("Guess my Number"); setLayout(new FlowLayout()); Label1 = new JLabel("Guess My Number"); Label1.setToolTipText("Just Guess it.."); Label2 = new JLabel(""); Button1 = new JButton("Enter"); Button1.setToolTipText("Press when ready."); Button2 = new JButton("Clear"); Button2.setToolTipText("Clear Text the Text Box."); Button3 = new JButton("Close"); Button3.setToolTipText("Close the application."); TextField1 = new JTextField("(Guess)"); add(Label1); add(TextField1); add(Button1); add(Button2); Button2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { Button2ActionPerformed(evt); } }); add(Button3); add(Label2); Button1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { Button1ActionPerformed(evt); } }); Button3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { Button3ActionPerformed(evt); } }); } private void Button2ActionPerformed(java.awt.event.ActionEvent evt) { TextField1.setText(""); Label1.setText(""); } private void Button3ActionPerformed(java.awt.event.ActionEvent evt) { System.exit(0); } private void Button1ActionPerformed(java.awt.event.ActionEvent evt) { int YourGuess = Integer.parseInt(this.TextField1.getText()); if (YourGuess < MyNumber) { Label2.setText("Too Low!"); } else if (YourGuess > MyNumber) { Label2.setText("Too High!"); } else if (YourGuess == MyNumber) { Label2.setText("Correct!"); } } }[/code] [IMG]http://i53.tinypic.com/szznsw.jpg[/IMG] Jared copy: [url]http://www.mediafire.com/?lv97a8af6ev35gz[/url]
  8. [code]#include <iostream> #include <ctime> #include <cstdlib> using namespace std; int main(int argc, char** argv) { srand(static_cast<unsigned int>(time(0))); int iMyNumber; int iYourNumber; while(true) { cin.clear(); iMyNumber = rand() % 100 + 1; cout << "Guess my Number '1 - 100'" << endl; do { cout << "Enter your Number "; cin >> iYourNumber; if (iYourNumber > iMyNumber) cout << "Too high!" << endl << endl; else if (iYourNumber < iMyNumber) cout << "Too low!" << endl << endl; } while (iYourNumber != iMyNumber); cout << "Correct!" << endl << endl; cin.get(); } return 0; }[/code]
  9. Hi, this is a simple piece of code that can make skills, more specifically theiving, or anything else you have more utilized with players. This is simply a quick lesson for the noobiest of coders, I was there one day too and knew absolutely nothing. So anyways this snippet will help you send a message with your random variable in it. [ATTACH=CONFIG]1438[/ATTACH] This is it, if done right, but it's impossible to mess up on one line of code. basically the code is this. [CODE]TheifStall("silk stall", "You steal "+ misc.random(50000) +" coins.", 1, 400 * playerLevel[17], 995, misc.random(50000), 12, 0x340);[/CODE] this will ofcourse give you two different numbers between your message and your cash. All you do is add a variable. [CODE]int thieveamount = misc.random(50000); TheifStall("silk stall", "You steal "+ thieveamount +" coins.", 1, 400 * playerLevel[17], 995, thieveamount, 12, 0x340);[/CODE]
×