From 350813333cb59dff30bd863bba1c44e4ce515d25 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 8 Jul 2018 18:19:10 -0300 Subject: @lang to change language --- npc/commands/language.txt | 28 ++++++++++++++++++++++++++++ npc/scripts.conf | 1 + 2 files changed, 29 insertions(+) create mode 100644 npc/commands/language.txt diff --git a/npc/commands/language.txt b/npc/commands/language.txt new file mode 100644 index 000000000..071e26cd7 --- /dev/null +++ b/npc/commands/language.txt @@ -0,0 +1,28 @@ +// @lang atcommand +// Changes Language +// +// group lv: 0 +// group char lv: 0 +// log: False +// +// usage: +// @lang +// + +- script @lang 32767,{ + end; + +OnCall: + checkclientversion; + mesq l("Tell me which language you speak and I will change the note on the ship passenger list."); + next; + asklanguage(LANG_IN_SHIP); + mes ""; + mesn; + mesq l("Ok, done."); + close; + +OnInit: + bindatcmd "lang", "@lang::OnCall", 0, 0, 0; + end; +} diff --git a/npc/scripts.conf b/npc/scripts.conf index 47f7613e7..bd3111f0b 100644 --- a/npc/scripts.conf +++ b/npc/scripts.conf @@ -65,6 +65,7 @@ "npc/commands/event.txt", "npc/commands/ipcheck.txt", "npc/commands/kami.txt", +"npc/commands/language.txt", "npc/commands/motd-debug-text.txt", "npc/commands/motd.txt", "npc/commands/rate-management.txt", -- cgit v1.2.3-60-g2f50