summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorcelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-28 20:34:22 +0000
committercelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-28 20:34:22 +0000
commit9deed641d8c485b858360e8f91b2fcb83368ec14 (patch)
treeb61e629da44b8a6a767af5c8dfd06fec24528bb4 /src/map/pc.c
parent4a2c014e4eb9229ff61c3ff762c44d3bd21b7f7c (diff)
downloadhercules-9deed641d8c485b858360e8f91b2fcb83368ec14.tar.gz
hercules-9deed641d8c485b858360e8f91b2fcb83368ec14.tar.bz2
hercules-9deed641d8c485b858360e8f91b2fcb83368ec14.tar.xz
hercules-9deed641d8c485b858360e8f91b2fcb83368ec14.zip
Resubmitting changes from /trunk to /branches/stable =p
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@405 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c20
1 files changed, 15 insertions, 5 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 5ec5b8a1b..bbf40eae6 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -31,6 +31,7 @@
#include "nullpo.h"
#include "atcommand.h"
#include "log.h"
+#include "showmsg.h"
#ifndef TXT_ONLY // mail system [Valaris]
#include "mail.h"
@@ -841,6 +842,10 @@ int pc_authok(int id, int login_id2, time_t connect_until_time, struct mmo_chars
}
fclose(fp);
}
+ else if(battle_config.error_log) {
+ sprintf(buf, "%s not found\n", motd_txt);
+ ShowWarning (buf);
+ }
}
#ifndef TXT_ONLY
@@ -5947,10 +5952,15 @@ int pc_jobchange(struct map_session_data *sd,int job, int upper)
return 1;
// check if we are changing from 1st to 2nd job
- if (s_class.job > 0 && s_class.job < 7 && job >= 7 && job <= 21)
- sd->change_level = sd->status.job_level;
- else
- sd->change_level = 0;
+ if (job >= 7 && job <= 21) {
+ if (s_class.job > 0 && s_class.job < 7)
+ sd->change_level = sd->status.job_level;
+ else
+ sd->change_level = 40;
+ }
+ else
+ sd->change_level = 0;
+
pc_setglobalreg (sd, "jobchange_level", sd->change_level);
sd->status.class = sd->view_class = b_class;
@@ -7341,7 +7351,7 @@ static int pc_natural_heal_sub(struct map_session_data *sd,va_list ap) {
if ((battle_config.natural_heal_weight_rate > 100 || sd->weight*100/sd->max_weight < battle_config.natural_heal_weight_rate) &&
!pc_isdead(sd) &&
!pc_ishiding(sd) &&
- sd->sc_data[SC_POISON].timer == -1 &&
+ !(sd->sc_data[SC_POISON].timer != -1 && sd->sc_data[SC_SLOWPOISON].timer == -1) &&
sd->sc_data[SC_BERSERK].timer == -1 ) {
pc_natural_heal_hp(sd);
if( sd->sc_data && sd->sc_data[SC_EXTREMITYFIST].timer == -1 && //ˆ¢C—…?‘Ô‚Å‚ÍSP‚ª‰ñ•œ‚µ‚È‚¢