Thread: Deleting Default Quests but my quests don't show up? (508)

Results 1 to 5 of 5
  1. #1 Deleting Default Quests but my quests don't show up? (508) 
    Registered Member Stapler's Avatar
    Join Date
    Jul 2009
    Posts
    250
    Thanks given
    4
    Thanks received
    1
    Rep Power
    18
    I have a couple questions. So I made my own quests and I have 2 sections in my quest tab. Commands, and Quests. I put it under my Quests part and it doesn't show up. Also quests that I have deleted still show up, like 5 of them do. This is what may be interfering with this all. I just have these.

    Code:
        public void clearQuestInterface(Player p) {
           for (int i = 1; i <= 310; i++) {
            setString(p, "", 275, i);
        	}
        }
    
       public void clearQuestInterface2(Player p) {
            for (int i = 32; i <= 141; i++) {
            setString(p, "", 274, i);
        	}
        }
    
        /**
         * This clears the Quest tab to input your own quests.
         * <col=11cc11></col>
         */
        public void customQuestTab(Player p) {
     	setString(p, "       <col=11cc11><u>Reflection-X</u></col>", 274, 6);		
     	setString(p, "Forums: <col=66ffff>http://reflection-x.co.nr", 274, 7);		
     	setString(p, "", 274, 8);		
     	if(p.rights == 0) {
    		setString(p, "Rank:"+" "+" "+"<col=66ffff>Player", 274, 9);
    	} else if (p.rights == 1) {
    		setString(p, "Rank:"+" "+" "+"<col=66ffff>Moderator", 274, 9);
    	} else if (p.rights == 2) {
    		setString(p, "Rank:"+" "+" "+"<col=66ffff>Administrator", 274, 9);
    	}		
     	setString(p, "Username:"+" "+" "+"<col=66ffff>"+p.username.substring(0, 1).toUpperCase() + p.username.substring(1), 274, 10);		
     	setString(p, "", 274, 11);		
     	setString(p, "     <col=11cc11><u>Most recent update:</u></col>", 274, 12);		
     	setString(p, "<col=66ffff>Adding a ton of stuff!!!", 274, 13);		
     	setString(p, "", 274, 14);		
     	setString(p, "", 274, 15);		
     	setString(p, "", 274, 16);		
     	setString(p, "", 274, 17);		
     	setString(p, "           <col=11cc11><u>Commands</u></col>", 274, 18);		
     	setString(p, "", 274, 19);		
     	setString(p, "", 274, 20);		
     	setString(p, "", 274, 21);		
     	setString(p, "", 274, 22);		
     	setString(p, "", 274, 23);		
     	setString(p, "", 274, 24);		
     	setString(p, "", 274, 25);		
     	setString(p, "", 274, 26);		
     	setString(p, "", 274, 27);		
     	setString(p, "", 274, 28);		
     	setString(p, "", 274, 29);		
     	setString(p, "", 274, 30);		
     	setString(p, "              <col=11cc11><u>Quests</u></col>", 274, 32);		
     	setString(p, "", 274, 33);		
     	setString(p, "", 274, 34);		
     	setString(p, "", 274, 35);		
     	setString(p, "", 274, 36);		
     	setString(p, "", 274, 37);		
     	setString(p, "", 274, 38);		
     	setString(p, "", 274, 39);		
     	setString(p, "", 274, 40);		
     	setString(p, "", 274, 41);		
     	setString(p, "", 274, 42);		
     	setString(p, "", 274, 43);	
    	}
    Please help me. Thanks

    OWNER OF PERFECTIONSCAPE AND REFLECTION-X
    Reply With Quote  
     

  2. #2  
    Registered Member Stapler's Avatar
    Join Date
    Jul 2009
    Posts
    250
    Thanks given
    4
    Thanks received
    1
    Rep Power
    18
    BUMP please help me I need it!!!!!

    OWNER OF PERFECTIONSCAPE AND REFLECTION-X
    Reply With Quote  
     

  3. #3  
    Registered Member Stapler's Avatar
    Join Date
    Jul 2009
    Posts
    250
    Thanks given
    4
    Thanks received
    1
    Rep Power
    18
    Sorry for so many BUMPS! But I want to fix this. Any suggestions?

    OWNER OF PERFECTIONSCAPE AND REFLECTION-X
    Reply With Quote  
     

  4. #4  
    Registered Member tinosk's Avatar
    Join Date
    Sep 2008
    Posts
    161
    Thanks given
    0
    Thanks received
    1
    Rep Power
    11
    Code:
    public void clearQuestInterface(Player p) {
           for (int i = 1; i <= 310; i++) {
            setString(p, "", 275, i);
        	}
        }
    this is your problem. if you tell it clear the quest interface and then tell it to add stuff to the interface, then it will shit itself and take the first option (clear the interface competely). you should not need the above mentioned part because setstring replaces the string, it does not add a new sting over the current string.

    incase you werent paying attention to anything i said: remove this part and work your system around it.

    Code:
    public void clearQuestInterface(Player p) {
           for (int i = 1; i <= 310; i++) {
            setString(p, "", 275, i);
        	}
        }
    
       public void clearQuestInterface2(Player p) {
            for (int i = 32; i <= 141; i++) {
            setString(p, "", 274, i);
        	}
        }
    1) The early bird might get the worm, but the second mouse gets the cheese.
    2) Sex is not the answer. Sex is the question. "Yes" is the answer.
    3) If I agreed with you, we'd both be wrong.
    4) I asked God for a bike, but I know God doesn't work that way. So I stole a bike and asked for forgiveness.

    Visit Zaraki Project:
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  5. #5  
    Registered Member Stapler's Avatar
    Join Date
    Jul 2009
    Posts
    250
    Thanks given
    4
    Thanks received
    1
    Rep Power
    18
    Nevermind, I fixed it. Thanks anyways.

    OWNER OF PERFECTIONSCAPE AND REFLECTION-X
    Reply With Quote  
     


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
  •