[Tutorial]Finding out the name of a script.

Discussion in 'Archives' started by Kool-Aid, Feb 19, 2009.

Thread Status:
Not open for further replies.
[Tutorial]Finding out the name of a script.
  1. Unread #1 - Feb 19, 2009 at 10:14 PM
  2. Kool-Aid
    Joined:
    Feb 27, 2008
    Posts:
    385
    Referrals:
    1
    Sythe Gold:
    0

    Kool-Aid Forum Addict

    [Tutorial]Finding out the name of a script.

    If you happen to not know what to save a script as, here's how u figure it out.

    1. Open up the script

    2. The first lines of code you should see should begin with the word "import"

    3. Right below the last line, should be the first line of actual code, it will begin with "public class", the first word after this SHOULD be the name of the script.


    Example:

    Code:
    import com.speljohan.rsbot.accessors.NPC;
    import com.speljohan.rsbot.bot.Bot;
    import com.speljohan.rsbot.event.listeners.PaintListener;
    import com.speljohan.rsbot.plugin.NonPluginClass;
    import com.speljohan.rsbot.script.Calculations;
    import com.speljohan.rsbot.script.Script;
    import com.speljohan.rsbot.script.wrappers.RSInterface;
    import com.speljohan.rsbot.script.wrappers.RSItemTile;
    import com.speljohan.rsbot.script.wrappers.RSNPC;
    import com.speljohan.rsbot.script.wrappers.RSPlayer;
    import com.speljohan.rsbot.script.wrappers.RSTile;
    import java.awt.Color;
    import java.awt.Graphics;
    import java.awt.Point;
    import java.awt.event.ActionEvent;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.util.List;
    import java.util.Properties;
    import java.awt.event.ActionListener;
    import java.util.ArrayList;
    import java.util.Map;
    
    public class RuskisFighter extends Script implements ActionListener, PaintListener {
    As you can see, the name of the script is RuskisFighter. This is what you name the script as. ENJOY!
     
  3. Unread #2 - Feb 19, 2009 at 10:15 PM
  4. d4rkk0
    Joined:
    Dec 11, 2008
    Posts:
    447
    Referrals:
    1
    Sythe Gold:
    0

    d4rkk0 Forum Addict

    [Tutorial]Finding out the name of a script.

    ty ;D

    P.S. i alrdy knew how to do it
    its for the new people >.>
     
  5. Unread #3 - Feb 19, 2009 at 10:41 PM
  6. perc
    Joined:
    Feb 1, 2007
    Posts:
    830
    Referrals:
    1
    Sythe Gold:
    0

    perc Apprentice

    [Tutorial]Finding out the name of a script.

    or go ctrl+F and type in public class
     
  7. Unread #4 - Feb 19, 2009 at 10:43 PM
  8. Kool-Aid
    Joined:
    Feb 27, 2008
    Posts:
    385
    Referrals:
    1
    Sythe Gold:
    0

    Kool-Aid Forum Addict

    [Tutorial]Finding out the name of a script.

    why would you need to do that? thats a waste of time as the name is usually visible without scrolling down.
     
  9. Unread #5 - Feb 19, 2009 at 11:57 PM
  10. Sheabo
    Joined:
    Dec 12, 2008
    Posts:
    33
    Referrals:
    2
    Sythe Gold:
    0

    Sheabo Member

    [Tutorial]Finding out the name of a script.

    This is true, and thanks for the small guide to help the peeps who didnt know =-)
     
  11. Unread #6 - Feb 20, 2009 at 8:56 AM
  12. SuF
    Joined:
    Jan 21, 2007
    Posts:
    14,211
    Referrals:
    28
    Sythe Gold:
    1,234
    Discord Unique ID:
    203283096668340224
    <3 n4n0 Two Factor Authentication User Community Participant Spam Forum Participant Sythe's 10th Anniversary

    SuF Legend
    Pirate Retired Global Moderator

    [Tutorial]Finding out the name of a script.

    Moved to help section.
     
< Got an Infraction for a retarted reason. | [Pins, Swaps] Selling str pure[Pins, Swaps] >

Users viewing this thread
1 guest
Thread Status:
Not open for further replies.


 
 
Adblock breaks this site