Thread: RichScape command help?

Results 1 to 3 of 3
  1. #1 RichScape command help? 
    Registered Member
    Join Date
    Dec 2008
    Posts
    104
    Thanks given
    0
    Thanks received
    1
    Rep Power
    12
    First off, please don't post the regular 317 commands, it's not right for RichScape.
    So, I'm working on a Beta, (idk why I chose richscape..), and I'm trying to make a command.

    My code:

    Code:
    		if (Command.customCommand("40killcount")) {
    			SarakillCount = 40;
    		}
    I put it in between this.
    Code:
    	void customCommand(String cmd) {
    		Command.customCommand(this, cmd);
    	}
    And I get this error..

    Code:
    .\Client.java:7099: customCommand(Client,java.lang.String) in Command cannot be
    applied to (java.lang.String)
                    if (Command.customCommand("40killcount")) {
                               ^
    Note: .\Stream.java uses or overrides a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    1 error
    Press any key to continue . . .
    I've also tried this.

    Code:
    		if (customCommand("40killcount")) {
    			SarakillCount = 40;
    		}
    Does anyone know what I could do?
    Thanks for any help
    -Tony
    Signature removed - links to another website
     

  2. #2  
    Community Veteran

    Dexter Morgan's Avatar
    Join Date
    Nov 2008
    Age
    16
    Posts
    4,364
    Thanks given
    1,027
    Thanks received
    703
    Discord
    View profile
    Rep Power
    2991
    OMFG

    it says
    Code:
    void customCommand(String cmd) {
    Look in side those to brackets..

    so it should be
    Code:
    if (cmd.startsWith("killcount") && playerRights >= 2) {
    int KC = Integer.parseInt(cmd.substring(10));
    SarakillCount = KC;
    Send("Kill Count is now "+KC+"");
    	}
    So you just type killcount 40 and it gives you 40 kc also works with anynumber..
    i havnt tested it should work
    [Only registered and activated users can see links. ]
    Quote Originally Posted by UberNation View Post
    Did you update the quantum network sockets to match the polarity of the wilderness counter levels in the Boolean that divides the wilderness level by zero?
     

  3. #3  
    Registered Member
    Join Date
    Dec 2008
    Posts
    104
    Thanks given
    0
    Thanks received
    1
    Rep Power
    12
    Oh, thanks for that.
    That makes sence >.<
    I'm such a ****** '

    Can I ask though, what's substring 10?
    Signature removed - links to another website
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •