diff options
author | mekolat <mekolat@users.noreply.github.com> | 2016-03-22 10:58:33 -0400 |
---|---|---|
committer | mekolat <mekolat@users.noreply.github.com> | 2016-03-30 11:23:00 -0400 |
commit | 96fcb2acd3fe36d7d44d95d83c5845822987734c (patch) | |
tree | 3969407a982529caa7e93589d4de600af70cf4bf /world/map/npc/functions/game_rules.txt | |
parent | 1834f64f6ae790876f9447c8da1dcd7bf5195bbf (diff) | |
download | serverdata-96fcb2acd3fe36d7d44d95d83c5845822987734c.tar.gz serverdata-96fcb2acd3fe36d7d44d95d83c5845822987734c.tar.bz2 serverdata-96fcb2acd3fe36d7d44d95d83c5845822987734c.tar.xz serverdata-96fcb2acd3fe36d7d44d95d83c5845822987734c.zip |
get language from client for game rules
Diffstat (limited to 'world/map/npc/functions/game_rules.txt')
-rw-r--r-- | world/map/npc/functions/game_rules.txt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/world/map/npc/functions/game_rules.txt b/world/map/npc/functions/game_rules.txt index e2b9df81..d898b436 100644 --- a/world/map/npc/functions/game_rules.txt +++ b/world/map/npc/functions/game_rules.txt @@ -2,6 +2,21 @@ function|script|GameRules { + requestlang .@cl$; + explode .@l$, .@cl$, "_"; + if (.@l$[0] == "en") goto L_English; + if (.@l$[0] == "nl") goto L_Dutch; + if (.@l$[0] == "de") goto L_German; + if (.@l$[0] == "da") goto L_Danish; + if (.@l$[0] == "fr") goto L_French; + if (.@l$[0] == "es") goto L_Spanish; + if (.@l$[0] == "sv") goto L_Swedish; + if (.@l$[0] == "pt") goto L_Portuguese; + if (.@l$[0] == "pl") goto L_Polish; + if (.@l$[0] == "it") goto L_Italian; + if (.@l$[0] == "zh") goto L_zhHant; + if (.@l$[0] == "ru") goto L_Russian; + mes "[Game Rules]"; mes "Please select a language:"; menu |