summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-05-31 19:00:20 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-05-31 19:00:20 +0000
commita97e97e7ef25feec0b2cc7106bc8f25e014b5d8f (patch)
tree6ab241569d45eb358bae65d8cab7c94a5cb9b600 /src/map
parent99ce33003b10e75388370e6a3e9fe931dc79d8e5 (diff)
downloadhercules-a97e97e7ef25feec0b2cc7106bc8f25e014b5d8f.tar.gz
hercules-a97e97e7ef25feec0b2cc7106bc8f25e014b5d8f.tar.bz2
hercules-a97e97e7ef25feec0b2cc7106bc8f25e014b5d8f.tar.xz
hercules-a97e97e7ef25feec0b2cc7106bc8f25e014b5d8f.zip
Updated @changelook to support robe id added missing instruction for already-supported id #6
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16186 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/atcommand.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 9c891df2f..d616efec3 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -5607,17 +5607,17 @@ ACMD_FUNC(divorce)
ACMD_FUNC(changelook)
{
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) {
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;
- } else if (i == 2) {
- if (j < 1) j = 1;
- else if (j > 6) j = 6; // 6 = Shoes - for beta clients only perhaps
+ } else if ( i == 2 ) {
+ if (j < 1 || j > 7)
+ 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
j = LOOK_HEAD_TOP;
}