From 96fcb2acd3fe36d7d44d95d83c5845822987734c Mon Sep 17 00:00:00 2001 From: mekolat Date: Tue, 22 Mar 2016 10:58:33 -0400 Subject: get language from client for game rules --- world/map/npc/functions/game_rules.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 -- cgit v1.2.3-60-g2f50