summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-03-18 08:44:27 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-03-18 08:44:27 +0000
commitdb15814cc463589087a9825dd6012126f89cb261 (patch)
treeae133d196b0a6d9ede41a9cd0c11b28d6257f9c5 /src/map/clif.c
parent5cf841f555c2d61390e4a3ff835b2c3eade84190 (diff)
downloadhercules-db15814cc463589087a9825dd6012126f89cb261.tar.gz
hercules-db15814cc463589087a9825dd6012126f89cb261.tar.bz2
hercules-db15814cc463589087a9825dd6012126f89cb261.tar.xz
hercules-db15814cc463589087a9825dd6012126f89cb261.zip
Fixed OnPCLoginEvent not working correctly (bugreport:1182).
Cleaned up some code typos/engrish. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12391 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index f910e5418..fdeef84d0 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -7936,17 +7936,23 @@ void clif_parse_LoadEndAck(int fd,struct map_session_data *sd)
npc_script_event(sd, NPCE_LOGIN);
mob_barricade_get(sd);
} else {
- //For some reason the client "loses" these on map-change.
+ //For some reason the client "loses" these on warp/map-change.
clif_updatestatus(sd,SP_STR);
clif_updatestatus(sd,SP_AGI);
clif_updatestatus(sd,SP_VIT);
clif_updatestatus(sd,SP_INT);
clif_updatestatus(sd,SP_DEX);
clif_updatestatus(sd,SP_LUK);
+
+ // abort currently running script
+ sd->state.using_fake_npc = 0;
+
+ if(sd->npc_id)
+ npc_event_dequeue(sd);
}
if( sd->state.changemap )
- {
+ {// restore information that gets lost on map-change
if (night_flag && map[sd->bl.m].flag.nightenabled)
{ //Display night.
if( !sd->state.night )
@@ -7965,11 +7971,6 @@ void clif_parse_LoadEndAck(int fd,struct map_session_data *sd)
sd->state.changemap = false;
}
- sd->state.using_fake_npc = 0;
-
- if(sd->npc_id)
- npc_event_dequeue(sd);
-
#ifndef TXT_ONLY
mail_clear(sd);
#endif
@@ -12023,9 +12024,9 @@ void clif_parse_cashshop_buy(int fd, struct map_session_data *sd)
* Adoption System
*==========================================*/
-// 0 : You cannot adopt more that 1 son
-// 1 : You should be at least lvl 70 to adopt
-// 2 : You cannot adopt a married player
+// 0 : "You cannot adopt more than 1 child."
+// 1 : "You must be at least character level 70 in order to adopt someone."
+// 2 : "You cannot adopt a married person."
void clif_Adopt_reply(struct map_session_data *sd, int type)
{
int fd = sd->fd;