summaryrefslogtreecommitdiff
path: root/src/map/pc.cpp
diff options
context:
space:
mode:
authormekolat <mekolat@users.noreply.github.com>2015-05-07 11:22:25 -0400
committermekolat <mekolat@users.noreply.github.com>2015-05-07 11:22:25 -0400
commitd582d06bfb0ea3239d1c61b355ab3427318e915d (patch)
treed285a016f1c217ad0b47a92253d17e1ad3a35571 /src/map/pc.cpp
parent784ca0b6ec91ecd66019ea915e897ecca4adbed0 (diff)
downloadtmwa-d582d06bfb0ea3239d1c61b355ab3427318e915d.tar.gz
tmwa-d582d06bfb0ea3239d1c61b355ab3427318e915d.tar.bz2
tmwa-d582d06bfb0ea3239d1c61b355ab3427318e915d.tar.xz
tmwa-d582d06bfb0ea3239d1c61b355ab3427318e915d.zip
wait for the player to be added to block list
Diffstat (limited to 'src/map/pc.cpp')
-rw-r--r--src/map/pc.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/pc.cpp b/src/map/pc.cpp
index 6fa35b0..80abb73 100644
--- a/src/map/pc.cpp
+++ b/src/map/pc.cpp
@@ -517,6 +517,7 @@ int pc_setnewpc(dumb_ptr<map_session_data> sd, AccountId account_id, CharId char
(void)client_tick;
sd->sex = sex;
sd->state.auth = 0;
+ sd->state.connect_new = 0;
sd->bl_type = BL::PC;
sd->canact_tick = sd->canmove_tick = gettick();
sd->canlog_tick = gettick();
@@ -795,7 +796,6 @@ int pc_authok(AccountId id, int login_id2,
pc_calcstatus(sd, 1);
- npc_event_doall_l(stringish<ScriptLabel>("OnPCLoginEvent"_s), sd->bl_id, nullptr);
// Init Quest Log
clif_sendallquest(sd);
return 0;
@@ -812,6 +812,7 @@ void pc_show_motd(dumb_ptr<map_session_data> sd)
// the license does not permit you to publicly use this software.
clif_displaymessage(sd->sess, "This server is Free Software, for details type @source in chat or use the tmwa-source tool"_s);
+ npc_event_doall_l(stringish<ScriptLabel>("OnPCLoginEvent"_s), sd->bl_id, nullptr);
sd->state.seen_motd = true;
io::ReadFile in(map_conf.motd_txt);