diff options
Diffstat (limited to 'src/emap/script_buildins.c')
-rw-r--r-- | src/emap/script_buildins.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/emap/script_buildins.c b/src/emap/script_buildins.c index 4c32a9a..d888b22 100644 --- a/src/emap/script_buildins.c +++ b/src/emap/script_buildins.c @@ -179,17 +179,19 @@ BUILDIN(npcTalk3) return true; } -BUILDIN(closeDialog) -{ - getSD(); - send_npccommand(sd, st->oid, 5); - return true; -} - BUILDIN(closeClientDialog) { getSD(); - send_npccommand(sd, st->oid, 14); + struct SessionExt *data = session_get_bysd(sd); + + if (data->clientVersion < 19) + { + send_npccommand(sd, st->oid, 5); + } + else + { + send_npccommand(sd, st->oid, 14); + } return true; } |