From 8e3d87d39d89568f7eff4286f75474d12218a091 Mon Sep 17 00:00:00 2001 From: euphyy Date: Sun, 5 May 2013 02:30:57 +0000 Subject: [PATCH] * Documented changes to @fontcolor from r17317. * Updated IDN, FRN, and RUS map_msg translations. (credits: Cydh, Capuche, Jarek) * A couple updates to script_commands.txt. (incl. bugreport:7649) * Other misc. changes. git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@17319 54d463be-8e91-2dee-dedb-b68131a5f0ec --- conf/msg_conf/map_msg.conf | 16 ++++++------ conf/msg_conf/map_msg_frn.conf | 10 ++++++-- conf/msg_conf/map_msg_idn.conf | 4 +-- conf/msg_conf/map_msg_rus.conf | 8 +++++- doc/atcommands.txt | 3 ++- doc/script_commands.txt | 46 +++++++++++++++++----------------- src/map/channel.c | 22 +++++++--------- src/map/pc.c | 4 +-- src/map/skill.c | 4 +-- 9 files changed, 63 insertions(+), 54 deletions(-) diff --git a/conf/msg_conf/map_msg.conf b/conf/msg_conf/map_msg.conf index 6161e91542..3dc9661b57 100644 --- a/conf/msg_conf/map_msg.conf +++ b/conf/msg_conf/map_msg.conf @@ -388,11 +388,11 @@ 376: -> Player %s has accepted the duel -- 377: -- Player %s has rejected the duel -- //etc -378: Eleanor is now in %s mode -379: Item Failed. [%s] is cooling down. wait %.1f minutes. -380: Item Failed. [%s] is cooling down. wait %d seconds. -381: Skill Failed. [%s] requires %dx %s -382: You're too close to a stone or emperium to do this skill +378: Eleanor is now in %s mode. +379: Item Failed. [%s] is cooling down. Wait %.1f minutes. +380: Item Failed. [%s] is cooling down. Wait %d seconds. +381: Skill Failed. [%s] requires %dx %s. +382: You're too close to a stone or emperium to use this skill. //383-389 free //NoAsk 390: Autorejecting is activated. @@ -1469,10 +1469,10 @@ 1447: Unknown channel option '%s'. 1448: Channel '%s' deleted. 1449: Option '%s' is already enabled (use '@channel setopt %s 0' to disable). -1450: Option '%s' is enabled for channel '%s'. +1450: Option '%s' is enabled for channel '#%s'. 1451: Value '%d' for option '%s' is out of range (limit 0-10). -1452: Option '%s' is enabled for channel '%s' at %d seconds. -1453: Option '%s' is disabled for channel '%s'. +1452: Option '%s' is enabled for channel '#%s' at %d seconds. +1453: Option '%s' is disabled for channel '#%s'. 1454: Color set to '%s'. 1455: You're talking too fast! 1456: * %s ban <#channel_name> diff --git a/conf/msg_conf/map_msg_frn.conf b/conf/msg_conf/map_msg_frn.conf index a1263ffcf9..577b38d07f 100644 --- a/conf/msg_conf/map_msg_frn.conf +++ b/conf/msg_conf/map_msg_frn.conf @@ -386,7 +386,13 @@ 375: <- Joueur %s quitte le duel -- 376: -> Joueur %s accepte le duel -- 377: -- Joueur %s rejete la demande de duel -- -//378-389 free +//etc +378: Eleanor passe en mode %s. +379: Utilisation йchouйe. [%s] a un dйlai de rйutilisation. Attendez %.1f minutes. +380: Utilisation йchouйe. [%s] a un dйlai de rйutilisation. Attendez %d secondes. +381: Skill йchouй. [%s] requiert %dx %s. +382: Vous кtes trop proche d'une stone ou d'un emperium pour exйcuter ce skill. +//383-389 free //NoAsk 390: Rejet automatique activй. 391: Rejet automatique dйsactivй. @@ -1466,7 +1472,7 @@ 1451: La valeur '%d' pour l'option '%s' est incorrecte (doit кtre comprise entre 0-10). 1452: Option '%s' activйe sur le canal '%s' avec %d secondes. 1453: Option '%s' dйsactivйe sur le canal '%s'. -//1454 free +1454: Couleur maintenant en '%s'. 1455: Vous parlez trop rapidement! 1456: * %s ban <#nom_canal> 1457: -- Banni le joueur spйcifiй du canal. diff --git a/conf/msg_conf/map_msg_idn.conf b/conf/msg_conf/map_msg_idn.conf index 6519c6d193..4aadd73ca8 100644 --- a/conf/msg_conf/map_msg_idn.conf +++ b/conf/msg_conf/map_msg_idn.conf @@ -1,7 +1,7 @@ // rAthena map_msg_idn.conf // Pengaturan pesan. Diterjemahkan oleh [Cydh] dan [nanakiwurtz] // Untuk terjemahan, cukup ubah pesan di sini (pada baris setelah pesan asli), tidak perlu mengubah source code, -// atau dapat dilakukan dengan cara lain, gunakan conf/msg_conf/import/map_msg_idn_conf.txt +// atau juga dapat dilakukan dengan menggunakan conf/msg_conf/import/map_msg_idn_conf.txt // Format penulisan: // //nomor_pesan: pesan asli // nomor_pesan: pesan yang diterjemahkan @@ -1465,7 +1465,7 @@ 1451: Nilai '%d' keluar dari batas untuk option '%s' (batasnya 0-10). 1452: Pilihan '%s' sekarang diaktifkan untuk channel '%s' dalam %d detik. 1453: Pilihan '%s' sekarang dimatikan untuk channel '%s'. -//1454 kosong +1454: Warna telah diatur menjadi '%s'. 1455: Kamu berbicara terlalu cepat! 1456: * %s ban <#nama_channel> 1457: -- Ban pemain yang ditentukan dari channel. diff --git a/conf/msg_conf/map_msg_rus.conf b/conf/msg_conf/map_msg_rus.conf index 5dfa601e4b..e8fe96c7fe 100644 --- a/conf/msg_conf/map_msg_rus.conf +++ b/conf/msg_conf/map_msg_rus.conf @@ -390,7 +390,13 @@ 376: -> Игрок %s принял приглашение -- 377: -- Игрок %s отверг приглашение -- -//378-389 НЕ ИСПОЛЬЗУЕТСЯ +//и т.д. +378: Eleanor переключилась на режим %s +379: Неудачное использование предмета. [%s] еще не готов к использованию. Подождите %.1f минут. +380: Неудачное использование предмета. [%s] еще не готов к использованию. Подождите %d секунд. +381: Неудачное использование навыка. [%s] необходимо %dx %s +382: Вы находитесь слишком близко к Империуму, чтобы использовать этот навык +//383-389 НЕ ИСПОЛЬЗУЕТСЯ // Сообщения команды @NoAsk 390: Автоматический отказ включен. diff --git a/doc/atcommands.txt b/doc/atcommands.txt index 4897efd478..d85f898c18 100644 --- a/doc/atcommands.txt +++ b/doc/atcommands.txt @@ -1479,7 +1479,7 @@ Destroys the specified channel. Sets channel chat font color for the invoking character only. Typing "Normal" returns text to the normal channel color. If no parameter is given, a list of available colors is displayed. -'allow_user_color_override' must be enabled in '/conf/channels.conf'. +Option 'ColorOverride' must be enabled for this to take effect. --------------------------------------- @@ -1499,6 +1499,7 @@ You must either be the channel's owner or have the channel_admin permission. Available options: -- 'JoinAnnounce <1|0>' : Toggles channel announcement when a new player enters. -- 'MessageDelay <0-10>' : Sets the delay (in seconds) for messages sent to the channel. +-- 'ColorOverride <1|0>' : Toggles the permission for players to change their color through @fontcolor. --------------------------------------- diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 33afed05f4..ee4b361d7f 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -192,7 +192,7 @@ NPC names are kinda special and are formatted this way: {::} All NPCs need to have a unique name that is used for identification purposes. -When you have to identify a NPC by it's name, you should use . +When you have to identify a NPC by its name, you should use . If is not provided, use instead. The client has a special feature when displaying names: @@ -321,8 +321,7 @@ The code part is the script code that will execute whenever the function is called with 'callfunc'. It has to be in curly brackets, unlike elsewhere where we use curly brackets, these do NOT signify an optional parameter. - -Once an object is defined which has a 'code' field to it's definition, it +Once an object is defined which has a 'code' field to its definition, it contains script commands which can actually be triggered and executed. ~ RID? GID? ~ @@ -334,7 +333,7 @@ Most scripting commands and functions will want to request data about a character, store variables referenced to that character, send stuff to the client connected to that specific character. Whenever a script is invoked by a character, it is passed a so-called RID - this is the account ID number of a -character that caused the code to execute by clicking on it, walking into it's +character that caused the code to execute by clicking on it, walking into its OnTouch zone, or otherwise. If you are only writing common NPCs, you don't need to bother with it. However, @@ -445,10 +444,10 @@ nothing - A permanent variable attached to the character, the default variable are accessible from inside the function, however 'getvariableofnpc' does NOT work on function objects. ".@" - A scope variable. - They are unique to the instance and scope. Each instance has it's + They are unique to the instance and scope. Each instance has its own scope that ends when the script ends. Calling a function with callsub/callfunc starts a new scope, returning from the function - ends it. When a scope ends, it's variables are converted to values + ends it. When a scope ends, its variables are converted to values ('return .@var;' returns a value, not a reference). "'" - An instance variable These are used with the instancing system, and are unique to each @@ -1200,7 +1199,7 @@ getvariableofnpc will not work on them. *goto