Jump to content
Toggle menu
  • 17.3K articles
  • 8.2K files
  • 5 users
  • 280.7K edits
WoW Classic Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
SetLang - Documentation by VelvetPaw -

This allows you to handle the different settings in Lore (Get the Lore MOD at Curse Gaming).

SetLang(Lang, ToParty, ShowParty);

Function Script

function SetLang(Lang, ToParty, ShowParty, ToGuild)
  if (Lang == nil or ToParty == nil or ShowParty == nil or
Lang == "" or ToParty == "" or ShowParty == "") then DEFAULT_CHAT_FRAME:AddMessage("Usage: SetLang(Lang, ToParty{on|off}, ShowParty{on|off})",1,1,0) if (Lang == nil or Lang == "") then DEFAULT_CHAT_FRAME:AddMessage("------------------------------------",0.75,1,0) DEFAULT_CHAT_FRAME:AddMessage("Possible languages:",1,0.25,0) DEFAULT_CHAT_FRAME:AddMessage("------------------------------------",0.75,1,0) DEFAULT_CHAT_FRAME:AddMessage("Dark Iron",0.25,1,0) DEFAULT_CHAT_FRAME:AddMessage("Kalimag / Elemental",0.25,1,0) DEFAULT_CHAT_FRAME:AddMessage("Eredun / Demonic",0.25,1,0) DEFAULT_CHAT_FRAME:AddMessage("Tier / Druidic / Yseran",0.25,1,0) DEFAULT_CHAT_FRAME:AddMessage("Thelassian / High Elven",0.25,1,0) DEFAULT_CHAT_FRAME:AddMessage("Draconic",0.25,1,0) end return end ChatFrame1.editBox.language=GetDefaultLanguage("player") Lore_Options("setl "..Lang) Lore_Options("tp "..ToParty) Lore_Options("sp "..ShowParty) Lore_BindingInterpreter() end

Parameters

Arguments

(Lang, ToParty, ShowParty)
Lang
String - Set the Lore language here.
ToParty
String - "on" to send the clear words to the PARTY chat.
"off" will not send clear words to the PARTY chat.
ShowParty
String - "on" to be able to chat in the specified language in the PARTY or the GUILD chat.
"off" only lets you chat in SAY chat in the specified language.

Returns

nil

Example

/script SetLang("Thelassian", "on", "off")

Result

Lore <> Language is now Thelassian
Lore <> translations will now display to party chat
Lore <> party chat will not be translated
Lore <> translations will now display to [selected PC]   (if you have selected a friendly PC)
Lore <> translations will not display to an interpreter  (if no target is selected)

Details

If you have a target (a friendly PC) then you will set him/her as the interpreter ("/lore int"),
but does not work if you are in a party and the party member you have selected is too far away
(Will return "Lore <> translations will not display to an interpreter").


Template:WoW API