Updated @changelook to support robe id added missing instruction for already-supported id #6

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16186 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
shennetsind 2012-05-31 19:00:20 +00:00
parent 174068d04e
commit 66e10ae1a7

View File

@ -5607,15 +5607,15 @@ ACMD_FUNC(divorce)
ACMD_FUNC(changelook) ACMD_FUNC(changelook)
{ {
int i, j = 0, k = 0; int i, j = 0, k = 0;
int pos[6] = { LOOK_HEAD_TOP,LOOK_HEAD_MID,LOOK_HEAD_BOTTOM,LOOK_WEAPON,LOOK_SHIELD,LOOK_SHOES }; int pos[7] = { LOOK_HEAD_TOP,LOOK_HEAD_MID,LOOK_HEAD_BOTTOM,LOOK_WEAPON,LOOK_SHIELD,LOOK_SHOES,LOOK_ROBE };
if((i = sscanf(message, "%d %d", &j, &k)) < 1) { if((i = sscanf(message, "%d %d", &j, &k)) < 1) {
clif_displaymessage(fd, "Usage: @changelook [<position>] <view id> -- [] = optional"); clif_displaymessage(fd, "Usage: @changelook [<position>] <view id> -- [] = optional");
clif_displaymessage(fd, "Position: 1-Top 2-Middle 3-Bottom 4-Weapon 5-Shield"); clif_displaymessage(fd, "Position: 1-Top 2-Middle 3-Bottom 4-Weapon 5-Shield 6-Shoes 7-Robe");
return -1; return -1;
} else if ( i == 2 ) { } else if ( i == 2 ) {
if (j < 1) j = 1; if (j < 1 || j > 7)
else if (j > 6) j = 6; // 6 = Shoes - for beta clients only perhaps j = 1;
j = pos[j - 1]; j = pos[j - 1];
} else if( i == 1 ) { // position not defined, use HEAD_TOP as default } else if( i == 1 ) { // position not defined, use HEAD_TOP as default
k = j; // swap k = j; // swap