summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorglighta <glighta@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-10-29 06:33:43 +0000
committerglighta <glighta@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-10-29 06:33:43 +0000
commit07ff4adffb312e138502a83316dff13287a8d153 (patch)
tree4e4a9d6f582d20ea6ba1490fc31b2085453b9e1f /src/map/atcommand.c
parent08080a5fc10eb6a9fdc2f1285ba32fda57684d29 (diff)
downloadhercules-07ff4adffb312e138502a83316dff13287a8d153.tar.gz
hercules-07ff4adffb312e138502a83316dff13287a8d153.tar.bz2
hercules-07ff4adffb312e138502a83316dff13287a8d153.tar.xz
hercules-07ff4adffb312e138502a83316dff13287a8d153.zip
-Add some src basic documentation.
-Change some remaining -1 for status ending timer. -Move some hardcoded msg in msg_athena -Small optimisation on battle_attr_fix git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16835 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 956637a8f..09a148a1b 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -1151,7 +1151,7 @@ ACMD_FUNC(jobchange)
if (job == 13 || job == 21 || job == 22 || job == 26 || job == 27 || job == 4014 || job == 4022 || job == 4036 || job == 4044 || job == 4048
|| (job >= JOB_RUNE_KNIGHT2 && job <= JOB_MECHANIC_T2) || (job >= JOB_BABY_RUNE2 && job <= JOB_BABY_MECHANIC2)
) // Deny direct transformation into dummy jobs
- {clif_displaymessage(fd, "You can not change to this job by command.");
+ {clif_displaymessage(fd, msg_txt(923)); //"You can not change to this job by command."
return 0;}
if (pcdb_checkid(job))
@@ -5196,7 +5196,7 @@ ACMD_FUNC(killer)
if(sd->state.killer)
clif_displaymessage(fd, msg_txt(241));
else {
- clif_displaymessage(fd, msg_txt(287));
+ clif_displaymessage(fd, msg_txt(292));
pc_stop_attack(sd);
}
return 0;
@@ -7461,17 +7461,17 @@ ACMD_FUNC(size)
int size = 0;
nullpo_retr(-1, sd);
- size = cap_value(atoi(message),0,2);
+ size = cap_value(atoi(message),SZ_SMALL,SZ_BIG);
if(sd->state.size) {
- sd->state.size = 0;
+ sd->state.size = SZ_SMALL;
pc_setpos(sd, sd->mapindex, sd->bl.x, sd->bl.y, CLR_TELEPORT);
}
sd->state.size = size;
- if( size == 1 )
+ if( size == SZ_MEDIUM )
clif_specialeffect(&sd->bl,420,AREA);
- else if( size == 2 )
+ else if( size == SZ_BIG )
clif_specialeffect(&sd->bl,422,AREA);
clif_displaymessage(fd, msg_txt(1303)); // Size change applied.
@@ -7491,14 +7491,14 @@ ACMD_FUNC(sizeall)
for( pl_sd = (TBL_PC*)mapit_first(iter); mapit_exists(iter); pl_sd = (TBL_PC*)mapit_next(iter) ) {
if( pl_sd->state.size != size ) {
if( pl_sd->state.size ) {
- pl_sd->state.size = 0;
+ pl_sd->state.size = SZ_SMALL;
pc_setpos(pl_sd, pl_sd->mapindex, pl_sd->bl.x, pl_sd->bl.y, CLR_TELEPORT);
}
pl_sd->state.size = size;
- if( size == 1 )
+ if( size == SZ_MEDIUM )
clif_specialeffect(&pl_sd->bl,420,AREA);
- else if( size == 2 )
+ else if( size == SZ_BIG )
clif_specialeffect(&pl_sd->bl,422,AREA);
}
}
@@ -7528,19 +7528,19 @@ ACMD_FUNC(sizeguild)
return -1;
}
- size = cap_value(size,0,2);
+ size = cap_value(size,SZ_SMALL,SZ_BIG);
for( i = 0; i < g->max_member; i++ ) {
if( (pl_sd = g->member[i].sd) && pl_sd->state.size != size ) {
if( pl_sd->state.size ) {
- pl_sd->state.size = 0;
+ pl_sd->state.size = SZ_SMALL;
pc_setpos(pl_sd, pl_sd->mapindex, pl_sd->bl.x, pl_sd->bl.y, CLR_TELEPORT);
}
pl_sd->state.size = size;
- if( size == 1 )
+ if( size == SZ_MEDIUM )
clif_specialeffect(&pl_sd->bl,420,AREA);
- else if( size == 2 )
+ else if( size == SZ_BIG )
clif_specialeffect(&pl_sd->bl,422,AREA);
}
}