Fandom

WoWWiki

Lore.SetLang

104,634pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

WoW API

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

SetLang(Lang, ToParty, ShowParty);

Function Script Edit

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 Edit

Arguments Edit

(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 Edit

nil

Example Edit

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

Result Edit

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)

DetailsEdit

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").



Also on Fandom

Random Wiki