Starter(kit) Problem + Replace Thing

Discussion in 'RuneScape Miscellaneous' started by Pk Scape Owner, Oct 19, 2008.

Starter(kit) Problem + Replace Thing
  1. Unread #1 - Oct 19, 2008 at 11:02 AM
  2. Pk Scape Owner
    Joined:
    Aug 10, 2008
    Posts:
    58
    Referrals:
    0
    Sythe Gold:
    0

    Pk Scape Owner Member

    Starter(kit) Problem + Replace Thing

    Starter(kit) Problem

    Starter command:
    Code:
    	else if (command.startsWith("starter")) {
    			if (starter == 0) {
    			addItem(995, 30000000);
    			addItem(841, 1);
    			addItem(892, 1000);
    			addItem(561, 1000);
    			addItem(554, 5000);
    			addItem(380, 500);
    			starter = 1;
    			savemoreinfo();
    			savechar();
    	} else if (starter == 1) {
    	  sendMessage("You can only get starter once!");
    	}
       }
    Whats Wrong:
    When i loggout i can type it again...

    What I need help with:
    How Can I do it so they only can type it once, even if they log in and out.

    Replace Thing

    Command
    Code:
    	public void customCommand(String command) {
    	try {
    			command.replaceAll("no-ip", "");
    			command.replaceAll("servegame", "");
    			command.replaceAll("www", "");
    			command.replaceAll("www.", "");
    			command.replaceAll(".com", "");
    			command.replaceAll("com", "");
    			command.trim();
    Whats wrong:
    I think it dont work because when i write www it says www

    What i need help with:
    How can i fix it?
     
< Free Money! | CratorScape-Awesome hamachi server im always working on it >

Users viewing this thread
1 guest


 
 
Adblock breaks this site