Thread: Character Design help

Results 1 to 7 of 7
  1. #1 Character Design help 
    Registered Member
    Join Date
    Mar 2019
    Posts
    14
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Hello,

    I am creating a 508 rsps revision and have got the character design all working 100% but i have one problem when equipping any items to my character my appearance resets itself any ideas?
    Reply With Quote  
     

  2. #2  
    Registered Member
    Smokey's Avatar
    Join Date
    Apr 2011
    Posts
    287
    Thanks given
    124
    Thanks received
    73
    Rep Power
    351
    Quote Originally Posted by Zyerah View Post
    Hello,

    I am creating a 508 rsps revision and have got the character design all working 100% but i have one problem when equipping any items to my character my appearance resets itself any ideas?
    what do you mean your character design? the player updating packets in the server?

    If you post some relevant code I could help you a little better too
    Spoiler for signature:

    He is richest who is content with the least, for contentment is the wealth of nature. - Socrates
    Attached image
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Mar 2019
    Posts
    14
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by Smokey View Post
    what do you mean your character design? the player updating packets in the server?

    If you post some relevant code I could help you a little better too
    Thanks for getting back to me so basically the situation i am having is when a character designs their appearance through the interface i have it changes everything correctly 100% but the problem is when a player equips any items or logs out it resets their appearance back to default male or female look depending on what gender they choose, what code do you need me to paste

    thanks for getting back to me so soon and i apologies for the slow reply

    Many thanks
    Zyerah
    Reply With Quote  
     

  4. #4  
    Registered Member
    bracket's Avatar
    Join Date
    Aug 2009
    Posts
    5,278
    Thanks given
    1,059
    Thanks received
    1,465
    Rep Power
    5000
    You have to save the characters appearance settings to the player file upon logout and load them again on login, looks and colors are based on the appearance data that you send through the appearance block in your player updating class.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Mar 2019
    Posts
    14
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by bracket View Post
    You have to save the characters appearance settings to the player file upon logout and load them again on login, looks and colors are based on the appearance data that you send through the appearance block in your player updating class.
    This is my case for the character design any ideas?
    Code:
    case 771: 
    
            	    if (buttonId == 362) { //SAVE AND ACCEPT CHANGES
                        	p.frames.removeShownInterface(p);
                        	p.frames.sendMessage(p, "<col=FF0000>Your Appearance has been changed!");
                        	p.appearanceUpdateReq = true;
                        	
                        	
                        	
            	    }
    
            	    if (buttonId == 158) { //SKIN-COLOR
            				p.color[4] = 7;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 151) { //SKIN-COLOR
            				p.color[4] = 0;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 152) { //SKIN-COLOR
            				p.color[4] = 1;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 153) { //SKIN-COLOR
            				p.color[4] = 2;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 154) { //SKIN-COLOR
            				p.color[4] = 3;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 155) { //SKIN-COLOR
            				p.color[4] = 4;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 156) { //SKIN-COLOR
            				p.color[4] = 5;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 157) { //SKIN-COLOR
            				p.color[4] = 6;
            				p.appearanceUpdateReq = true;
            				
            	    }
    
            	    if (buttonId == 307) { //BOOT-COLOR
            				p.color[3] = 6;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 308) { //BOOT-COLOR
            				p.color[3] = 1;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 309) { //BOOT-COLOR
            				p.color[3] = 2;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 310) { //BOOT-COLOR
            				p.color[3] = 3;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 311) { //BOOT-COLOR
            				p.color[3] = 4;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 312) { //BOOT-COLOR
            				p.color[3] = 5;
            				p.appearanceUpdateReq = true;
            				
            	    }
    
            	    if (buttonId == 263) { //LEG-COLOR
            				p.color[2] = 0;
            				p.appearanceUpdateReq = true;
            				;
            	    }
            	    if (buttonId == 258) { //LEG-COLOR
            				p.color[2] = 1;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 275) { //LEG-COLOR
            				p.color[2] = 2;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 251) { //LEG-COLOR
            				p.color[2] = 3;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 271) { //LEG-COLOR
            				p.color[2] = 4;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 257) { //LEG-COLOR
            				p.color[2] = 5;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 272) { //LEG-COLOR
            				p.color[2] = 6;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 255) { //LEG-COLOR
            				p.color[2] = 7;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 265) { //LEG-COLOR
            				p.color[2] = 8;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 262) { //LEG-COLOR
            				p.color[2] = 9;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 259) { //LEG-COLOR
            				p.color[2] = 10;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 268) { //LEG-COLOR
            				p.color[2] = 11;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 254) { //LEG-COLOR
            				p.color[2] = 12;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 253) { //LEG-COLOR
            				p.color[2] = 13;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 260) { //LEG-COLOR
            				p.color[2] = 14;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 267) { //LEG-COLOR
            				p.color[2] = 15;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 276) { //LEG-COLOR
            				p.color[2] = 16;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 274) { //LEG-COLOR
            				p.color[2] = 17;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 273) { //LEG-COLOR
            				p.color[2] = 18;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 256) { //LEG-COLOR
            				p.color[2] = 19;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 266) { //LEG-COLOR
            				p.color[2] = 20;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 264) { //LEG-COLOR
            				p.color[2] = 21;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 252) { //LEG-COLOR
            				p.color[2] = 22;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 250) { //LEG-COLOR
            				p.color[2] = 23;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 249) { //LEG-COLOR
            				p.color[2] = 24;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 261) { //LEG-COLOR
            				p.color[2] = 25;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 248) { //LEG-COLOR
            				p.color[2] = 26;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 270) { //LEG-COLOR
            				p.color[2] = 27;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 269) { //LEG-COLOR
            				p.color[2] = 28;
            				p.appearanceUpdateReq = true;
            				
            	    }
    
            	    if (buttonId == 198) { //TOP-COLOR
            				p.color[1] = 0;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 216) { //TOP-COLOR
            				p.color[1] = 1;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 191) { //TOP-COLOR
            				p.color[1] = 2;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 212) { //TOP-COLOR
            				p.color[1] = 3;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 197) { //TOP-COLOR
            				p.color[1] = 4;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 213) { //TOP-COLOR
            				p.color[1] = 5;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 195) { //TOP-COLOR
            				p.color[1] = 6;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 206) { //TOP-COLOR
            				p.color[1] = 7;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 202) { //TOP-COLOR
            				p.color[1] = 8;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 199) { //TOP-COLOR
            				p.color[1] = 9;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 209) { //TOP-COLOR
            				p.color[1] = 10;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 194) { //TOP-COLOR
            				p.color[1] = 11;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 193) { //TOP-COLOR
            				p.color[1] = 12;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 200) { //TOP-COLOR
            				p.color[1] = 13;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 208) { //TOP-COLOR
            				p.color[1] = 14;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 203) { //TOP-COLOR
            				p.color[1] = 15;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 217) { //TOP-COLOR
            				p.color[1] = 16;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 215) { //TOP-COLOR
            				p.color[1] = 17;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 214) { //TOP-COLOR
            				p.color[1] = 18;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 196) { //TOP-COLOR
            				p.color[1] = 19;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 207) { //TOP-COLOR
            				p.color[1] = 20;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 205) { //TOP-COLOR
            				p.color[1] = 21;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 192) { //TOP-COLOR
            				p.color[1] = 22;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 190) { //TOP-COLOR
            				p.color[1] = 23;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 189) { //TOP-COLOR
            				p.color[1] = 24;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 201) { //TOP-COLOR
            				p.color[1] = 25;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 204) { //TOP-COLOR
            				p.color[1] = 26;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 211) { //TOP-COLOR
            				p.color[1] = 27;
            				p.appearanceUpdateReq = true;
            				
            	    }
            	    if (buttonId == 210) { //TOP-COLOR
            				p.color[1] = 28;
            				p.appearanceUpdateReq = true;
            				
            	    }
    
            if(buttonId == 49) { //male
            				p.look[0] = 7;
            				p.look[1] = 14;
                    			p.look[2] = 18;
                    			p.look[3] = 26;
                    			p.look[4] = 33;
                    			p.look[5] = 36;
                    			p.look[6] = 42;
                                		p.gender = 0;
            				p.appearanceUpdateReq = true;
            				p.updateReq = true;
            				
            }
    
            if(buttonId == 52) { //female
                                		p.look[0] = 48; // Hair
                                		p.look[1] = 1000; // Beard
                                		p.look[2] = 57; // Torso
                                		p.look[3] = 64; // Arms
                                		p.look[4] = 68; // Bracelets
                                		p.look[5] = 77; // Legs
                                		p.look[6] = 80; // Shoes
                                		p.gender = 1;
            				p.appearanceUpdateReq = true;
            				p.updateReq = true;
            }
            
            
    
            break;
    Reply With Quote  
     

  6. #6  
    Soon to be a Blaziken

    Torchic's Avatar
    Join Date
    Mar 2011
    Age
    29
    Posts
    1,711
    Thanks given
    14
    Thanks received
    452
    Rep Power
    529
    Quote Originally Posted by Zyerah View Post
    This is my case for the character design any ideas?

    Firstly - use a switch statement for that!

    Secondly, you're setting a boolean to request the appearance is updated but is there an actual method that utilizes them?

    Code:
    p.appearanceUpdateReq = true;
    p.updateReq = true;

    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Mar 2019
    Posts
    14
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by Torchic View Post
    Firstly - use a switch statement for that!

    Secondly, you're setting a boolean to request the appearance is updated but is there an actual method that utilizes them?

    Code:
    p.appearanceUpdateReq = true;
    p.updateReq = true;
    The problem i am having now is the hair on character design screen keeps skipping i click the button once to change the hair and it skips a few and sets the hair as random here is the updated case 771

    Code:
    case 771:
                	if (buttonId == 49) {
                	p.look[0] = 3;
                	p.look[1] = 10;
                	p.look[2] = 18;
                	p.look[3] = 26;
                	p.look[4] = 33;
                	p.look[5] = 36;
                	p.look[6] = 42;
                	p.gender = 0;
                	}
                	if (buttonId == 52) {
                	p.look[0] = 48; // Hair
                	p.look[1] = 1000; // Beard
                	p.look[2] = 57; // Torso
                	p.look[3] = 64; // Arms
                	p.look[4] = 68; // Bracelets
                	p.look[5] = 77; // Legs
                	p.look[6] = 80; // Shoes
                	p.gender = 1;
                	}
                	if (buttonId == 92 && p.gender < 1) {
                	p.look[0] = p.look[0] - 1;
                	if (p.look[0] < 0)
                	p.look[0] = 260;
                	if (p.look[0] > 8 && p.look[0] < 91)
                	p.look[0] = 8;
                	if (p.look[0] > 97 && p.look[0] < 246)
                	p.look[0] = 97;
                	if (p.look[0] > 260 && p.look[0] < 1000)
                	p.look[0] = 260;
                	}
                	if (buttonId == 92 && p.gender > 0) {
                	p.look[0] = p.look[0] - 1;
                	if (p.look[0] < 45)
                	p.look[0] = 280;
                	if (p.look[0] > 55 && p.look[0] < 135)
                	p.look[0] = 55;
                	if (p.look[0] > 144 && p.look[0] < 269)
                	p.look[0] = 144;
                	if (p.look[0] > 280 && p.look[0] < 1000)
                	p.look[0] = 45;
                	}
                	if (buttonId == 93 && p.gender < 1) {
                	p.look[0] = p.look[0] + 1;
                	if (p.look[0] > 8 && p.look[0] < 91)
                	p.look[0] = 91;
                	if (p.look[0] > 97 && p.look[0] < 246)
                	p.look[0] = 246;
                	if (p.look[0] > 260 && p.look[0] < 1000)
                	p.look[0] = 0;
                	}
                	if (buttonId == 93 && p.gender > 0) {
                	p.look[0] = p.look[0] + 1;
                	if (p.look[0] > 55 && p.look[0] < 135)
                	p.look[0] = 135;
                	if (p.look[0] > 144 && p.look[0] < 269)
                	p.look[0] = 269;
                	if (p.look[0] > 280 && p.look[0] < 1000)
                	p.look[0] = 45;
                	}
                	if (buttonId == 97) {
                	p.look[1] = p.look[1] - 1;
                	if (p.look[1] < 10)
                	p.look[1] = 17;
                	}
                	if (buttonId == 98) {
                	p.look[1] = p.look[1] + 1;
                	if (p.look[1] > 17)
                	p.look[1] = 10;
    
                	}
                	if (buttonId == 100) {
                	p.color[0] = 20;
                	}
                	if (buttonId == 101) {
                	p.color[0] = 19;
                	}
                	if (buttonId == 102) {
                	p.color[0] = 10;
                	}
                	if (buttonId == 103) {
                	p.color[0] = 18;
                	}
                	if (buttonId == 104) {
                	p.color[0] = 4;
                	}
                	if (buttonId == 105) {
                	p.color[0] = 5;
                	}
                	if (buttonId == 106) {
                	p.color[0] = 15;
                	}
                	if (buttonId == 107) {
                	p.color[0] = 7;
                	}
                	if (buttonId == 108) {
                	p.color[0] = 26;
                	}
                	if (buttonId == 109) {
                	p.color[0] = 6;
                	}
                	if (buttonId == 110) {
                	p.color[0] = 21;
                	}
                	if (buttonId == 111) {
                	p.color[0] = 9;
                	}
                	if (buttonId == 112) {
                	p.color[0] = 22;
                	}
                	if (buttonId == 113) {
                	p.color[0] = 17;
                	}
                	if (buttonId == 114) {
                	p.color[0] = 8;
                	}
                	if (buttonId == 115) {
                	p.color[0] = 16;
                	}
                	if (buttonId == 116) {
                	p.color[0] = 11;
                	}
                	if (buttonId == 117) {
                	p.color[0] = 24;
                	}
                	if (buttonId == 118) {
                	p.color[0] = 23;
                	}
                	if (buttonId == 119) {
                	p.color[0] = 3;
                	}
                	if (buttonId == 120) {
                	p.color[0] = 2;
                	}
                	if (buttonId == 121) {
                	p.color[0] = 1;
                	}
                	if (buttonId == 122) {
                	p.color[0] = 14;
                	}
                	if (buttonId == 123) {
                	p.color[0] = 13;
                	}
                	if (buttonId == 124) {
                	p.color[0] = 12;
                	}
                	if (buttonId == 158) {
                	p.color[4] = 7;
                	}
                	if (buttonId == 151) {
                	p.color[4] = 8;
                	}
                	if (buttonId == 152) {
                	p.color[4] = 1;
                	}
                	if (buttonId == 153) {
                	p.color[4] = 2;
                	}
                	if (buttonId == 154) {
                	p.color[4] = 3;
                	}
                	if (buttonId == 155) {
                	p.color[4] = 4;
                	}
                	if (buttonId == 156) {
                	p.color[4] = 5;
                	}
                	if (buttonId == 157) {
                	p.color[4] = 6;
                	}
                		    if (buttonId == 307) { //BOOT-COLOR
                					p.color[3] = 6;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 308) { //BOOT-COLOR
                					p.color[3] = 1;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 309) { //BOOT-COLOR
                					p.color[3] = 2;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 310) { //BOOT-COLOR
                					p.color[3] = 3;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 311) { //BOOT-COLOR
                					p.color[3] = 4;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 312) { //BOOT-COLOR
                					p.color[3] = 5;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
    
                		    if (buttonId == 263) { //LEG-COLOR
                					p.color[2] = 0;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 258) { //LEG-COLOR
                					p.color[2] = 1;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 275) { //LEG-COLOR
                					p.color[2] = 2;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 251) { //LEG-COLOR
                					p.color[2] = 3;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 271) { //LEG-COLOR
                					p.color[2] = 4;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 257) { //LEG-COLOR
                					p.color[2] = 5;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 272) { //LEG-COLOR
                					p.color[2] = 6;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 255) { //LEG-COLOR
                					p.color[2] = 7;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 265) { //LEG-COLOR
                					p.color[2] = 8;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 262) { //LEG-COLOR
                					p.color[2] = 9;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 259) { //LEG-COLOR
                					p.color[2] = 10;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 268) { //LEG-COLOR
                					p.color[2] = 11;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 254) { //LEG-COLOR
                					p.color[2] = 12;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 253) { //LEG-COLOR
                					p.color[2] = 13;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 260) { //LEG-COLOR
                					p.color[2] = 14;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 267) { //LEG-COLOR
                					p.color[2] = 15;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 276) { //LEG-COLOR
                					p.color[2] = 16;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 274) { //LEG-COLOR
                					p.color[2] = 17;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 273) { //LEG-COLOR
                					p.color[2] = 18;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 256) { //LEG-COLOR
                					p.color[2] = 19;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 266) { //LEG-COLOR
                					p.color[2] = 20;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 264) { //LEG-COLOR
                					p.color[2] = 21;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 252) { //LEG-COLOR
                					p.color[2] = 22;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 250) { //LEG-COLOR
                					p.color[2] = 23;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 249) { //LEG-COLOR
                					p.color[2] = 24;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 261) { //LEG-COLOR
                					p.color[2] = 25;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 248) { //LEG-COLOR
                					p.color[2] = 26;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 270) { //LEG-COLOR
                					p.color[2] = 27;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 269) { //LEG-COLOR
                					p.color[2] = 28;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
    
                		    if (buttonId == 198) { //TOP-COLOR
                					p.color[1] = 0;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 216) { //TOP-COLOR
                					p.color[1] = 1;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 191) { //TOP-COLOR
                					p.color[1] = 2;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 212) { //TOP-COLOR
                					p.color[1] = 3;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 197) { //TOP-COLOR
                					p.color[1] = 4;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 213) { //TOP-COLOR
                					p.color[1] = 5;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 195) { //TOP-COLOR
                					p.color[1] = 6;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 206) { //TOP-COLOR
                					p.color[1] = 7;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 202) { //TOP-COLOR
                					p.color[1] = 8;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 199) { //TOP-COLOR
                					p.color[1] = 9;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 209) { //TOP-COLOR
                					p.color[1] = 10;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 194) { //TOP-COLOR
                					p.color[1] = 11;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 193) { //TOP-COLOR
                					p.color[1] = 12;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 200) { //TOP-COLOR
                					p.color[1] = 13;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 208) { //TOP-COLOR
                					p.color[1] = 14;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 203) { //TOP-COLOR
                					p.color[1] = 15;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 217) { //TOP-COLOR
                					p.color[1] = 16;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 215) { //TOP-COLOR
                					p.color[1] = 17;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 214) { //TOP-COLOR
                					p.color[1] = 18;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 196) { //TOP-COLOR
                					p.color[1] = 19;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 207) { //TOP-COLOR
                					p.color[1] = 20;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 205) { //TOP-COLOR
                					p.color[1] = 21;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 192) { //TOP-COLOR
                					p.color[1] = 22;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 190) { //TOP-COLOR
                					p.color[1] = 23;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 189) { //TOP-COLOR
                					p.color[1] = 24;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 201) { //TOP-COLOR
                					p.color[1] = 25;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 204) { //TOP-COLOR
                					p.color[1] = 26;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 211) { //TOP-COLOR
                					p.color[1] = 27;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
                		    if (buttonId == 210) { //TOP-COLOR
                					p.color[1] = 28;
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                		    }
    
                		    if (buttonId == 362) {
                					p.frames.removeShownInterface(p);
                					p.firstLog = 1;
                		     }
    
                					p.appearanceUpdateReq = true;
                					p.updateReq = true;
                					break;
    Also here is the char design class
    Code:
    public class CharDesign {
    
    	public void charScreenTabs(Player p, int button) {
    		switch(button) {
    			case 14:
    				resetCharScreenTabs(p);
    				mouseOptions = true;
    				sendMouseOptions(p, button);
    				break;
    			case 16:
    				resetCharScreenTabs(p);
    				genderOptions = true;
    				sendGenderOptions(p, button);
    				break;
    			case 18:
    				resetCharScreenTabs(p);
    				headOptions = true;
    				sendHeadOptions(p, button);
    				break;
    			case 20:
    				resetCharScreenTabs(p);
    				bodyOptions = true;
    				sendBodyOptions(p, button);
    				break;
    		}
    	}
    	
    	public void sendMouseOptions(Player p, int button) {
    		switch(button) {
    			case 37://two buttons
    			case 40://one button
    			case 46://next button
    				break;
    		}
    	}
    	
    	public void sendGenderOptions(Player p, int button) {
    		switch(button) {
    			case 49://male
    			case 52://female
    			case 56://back button
    			case 58://next button
    				break;
    		}
    	}
    	
    	public void sendHeadOptions(Player p, int button) {
    		switch(button) {
    			case 61://Skin colour
    			case 62://Hair colour
    			case 92://hair -1
    			case 93://hair +1
    			case 97://facial hair -1
    			case 98://facial hair +1
    			case 100://char hair color
    			case 101://char hair color
    			case 102://char hair color
    			case 103://char hair color
    			case 104://char hair color
    			case 105://char hair color
    			case 106://char hair color
    			case 107://char hair color
    			case 108://char hair color
    			case 109://char hair color
    			case 110://char hair color
    			case 111://char hair color
    			case 112://char hair color
    			case 113://char hair color
    			case 114://char hair color
    			case 115://char hair color
    			case 116://char hair color
    			case 117://char hair color
    			case 118://char hair color
    			case 119://char hair color
    			case 120://char hair color
    			case 121://char hair color
    			case 122://char hair color
    			case 123://char hair color
    			case 124://char hair color
    			case 167://next button
    			case 169://randomize button
    			case 171://back button
    				break;
    		}
    	}
    	
    	public void sendBodyOptions(Player p, int button) {
    		switch(button) {
    			case 174://feet button
    			case 176://legs button
    			case 178://torso button
    			case 189://char torso colour
    			case 190://char torso colour
    			case 191://char torso colour
    			case 192://char torso colour
    			case 193://char torso colour
    			case 194://char torso colour
    			case 195://char torso colour
    			case 196://char torso colour
    			case 197://char torso colour
    			case 198://char torso colour
    			case 199://char torso colour
    			case 200://char torso colour
    			case 201://char torso colour
    			case 202://char torso colour
    			case 203://char torso colour
    			case 204://char torso colour
    			case 205://char torso colour
    			case 206://char torso colour
    			case 207://char torso colour
    			case 208://char torso colour
    			case 209://char torso colour
    			case 210://char torso colour
    			case 211://char torso colour
    			case 212://char torso colour
    			case 213://char torso colour
    			case 214://char torso colour
    			case 215://char torso colour
    			case 216://char torso colour
    			case 217://char torso colour
    			case 249://char legs colour
    			case 250://char legs colour
    			case 251://char legs colour
    			case 252://char legs colour
    			case 253://char legs colour
    			case 254://char legs colour
    			case 255://char legs colour
    			case 256://char legs colour
    			case 257://char legs colour
    			case 258://char legs colour
    			case 259://char legs colour
    			case 260://char legs colour
    			case 261://char legs colour
    			case 262://char legs colour
    			case 263://char legs colour
    			case 264://char legs colour
    			case 265://char legs colour
    			case 267://char legs colour
    			case 268://char legs colour
    			case 269://char legs colour
    			case 270://char legs colour
    			case 271://char legs colour
    			case 272://char legs colour
    			case 273://char legs colour
    			case 274://char legs colour
    			case 275://char legs colour
    			case 276://char legs colour
    			case 307://char skin colour
    			case 308://char skin colour
    			case 309://char skin colour
    			case 310://char skin colour
    			case 311://char skin colour
    			case 312://char skin colour
    			case 319://confirm button
    			case 321://randomize button
    			case 323://back button
    			case 341://torso -1
    			case 342://torso +1
    			case 345://arms -1
    			case 346://arms +1
    			case 349://wrists -1
    			case 350://wrists +1
    			case 353://legs -1
    			case 354://legs +1
    			case 357://feet -1
    			case 358://feet +1
    				break;
    		}
    	}
    	
    	public void sendConfirmOptions(Player p, int button) {
    		switch(button) {
    			case 360://no
    			case 362://yes
                                
    				break;
    		}
    	}
    	
    	public void resetCharScreenTabs(Player p) {
    	mouseOptions = false;
    	genderOptions = false;
    	headOptions = false;
    	bodyOptions = false;
    	}
    
    	private boolean mouseOptions = false;
    	private boolean genderOptions = false;
    	private boolean headOptions = false;
    	private boolean bodyOptions = false;
    }
    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

Similar Threads

  1. [HELP] Character design id
    By exedll in forum Help
    Replies: 1
    Last Post: 01-26-2013, 02:17 PM
  2. Character design help
    By sdfu in forum Help
    Replies: 2
    Last Post: 06-07-2012, 05:22 PM
  3. 613 Character Design Help
    By Jesse in forum Help
    Replies: 2
    Last Post: 08-16-2011, 06:09 PM
  4. [BS] Character Design Interface HELP!!!!
    By Mrthunder23 in forum Help
    Replies: 0
    Last Post: 03-28-2010, 05:29 PM
  5. [tut]Character design screen.. [100%]
    By Santa Clause in forum Tutorials
    Replies: 11
    Last Post: 12-04-2007, 09:40 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •