diff options
author | celest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-01-05 09:31:09 +0000 |
---|---|---|
committer | celest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-01-05 09:31:09 +0000 |
commit | 00c27a50bd63163a0de9cf4f7aefd3b60e8aa5d0 (patch) | |
tree | 5d60988f58a7dd4dd8d1c8eb57b6651484538088 /src/map/map.c | |
parent | e80324069deac5943aa9d7685b32198407c424bc (diff) | |
download | hercules-00c27a50bd63163a0de9cf4f7aefd3b60e8aa5d0.tar.gz hercules-00c27a50bd63163a0de9cf4f7aefd3b60e8aa5d0.tar.bz2 hercules-00c27a50bd63163a0de9cf4f7aefd3b60e8aa5d0.tar.xz hercules-00c27a50bd63163a0de9cf4f7aefd3b60e8aa5d0.zip |
Added a simplified version of Qamera's OnConnect: OnDisconnect: OnDeath: NPC events mod
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@914 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/map.c')
-rw-r--r-- | src/map/map.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/map/map.c b/src/map/map.c index 0ba13519f..7d82bc40c 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -969,6 +969,14 @@ void map_addnickdb(struct map_session_data *sd) { int map_quit(struct map_session_data *sd) { nullpo_retr(0, sd); + if (sd->state.event_disconnect) { + struct npc_data *npc; + if ((npc = npc_name2id("PCLogoutEvent"))) { + run_script(npc->u.scr.script,0,sd->bl.id,npc->bl.id); // PCLogoutNPC + ShowStatus("Event '"CL_WHITE"PCLogoutEvent"CL_RESET"' executed.\n"); + } + } + if(sd->chatID) // チャットから出る chat_leavechat(sd); |