summaryrefslogtreecommitdiff
path: root/npc/commands
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-07-16 23:03:53 -0300
committerJesusaves <cpntb1@ymail.com>2018-07-16 23:03:53 -0300
commit3a512bb30e8e8721c0e191a93d5b49ef27b5719e (patch)
tree7da8df5838551f08000ba881525475d90e135fe1 /npc/commands
parentb27d189868e08f4459d324fcdc71d996b4ba84ae (diff)
downloadserverdata-3a512bb30e8e8721c0e191a93d5b49ef27b5719e.tar.gz
serverdata-3a512bb30e8e8721c0e191a93d5b49ef27b5719e.tar.bz2
serverdata-3a512bb30e8e8721c0e191a93d5b49ef27b5719e.tar.xz
serverdata-3a512bb30e8e8721c0e191a93d5b49ef27b5719e.zip
You can now change language from UCP. This should make TMW2 compliant with the GDPR.
Diffstat (limited to 'npc/commands')
-rw-r--r--npc/commands/language.txt2
-rw-r--r--npc/commands/ucp.txt4
2 files changed, 4 insertions, 2 deletions
diff --git a/npc/commands/language.txt b/npc/commands/language.txt
index 071e26cd7..ba5d3d6ee 100644
--- a/npc/commands/language.txt
+++ b/npc/commands/language.txt
@@ -23,6 +23,6 @@ OnCall:
close;
OnInit:
- bindatcmd "lang", "@lang::OnCall", 0, 0, 0;
+ bindatcmd "lang", "@lang::OnCall", 0, 99, 0;
end;
}
diff --git a/npc/commands/ucp.txt b/npc/commands/ucp.txt
index dbdf06221..8372502cf 100644
--- a/npc/commands/ucp.txt
+++ b/npc/commands/ucp.txt
@@ -12,6 +12,7 @@ function script UserCtrlPanel {
l("Rules"),
l("Game News"),
l("Account Information"),
+ l("Change Language"),
l("Quit");
switch (@menu)
@@ -46,7 +47,8 @@ function script UserCtrlPanel {
}
next;
break;
- case 7: close; break;
+ case 4: asklanguage(LANG_IN_SHIP); break;
+ case 5: close; break;
}
} while (1);
}