diff --git a/lilia/modules/characters/recognition/pim/shared.lua b/lilia/modules/characters/recognition/pim/shared.lua index a529053b2..47f000b15 100644 --- a/lilia/modules/characters/recognition/pim/shared.lua +++ b/lilia/modules/characters/recognition/pim/shared.lua @@ -20,4 +20,40 @@ PIM:AddOption("Recognize With Fake Name", { local tarChar = target:getChar() if CLIENT then Derma_StringRequest(L"recogMenuOptionFakeWhisper", L"recogFakeNamePrompt", tarChar:getName(), function(text) if text then netstream.Start("rgnDirect", target, text) end end) end end +}) + +MODULE:AddLocalOption("Allow Recognition by Recognize in Whisper Range", { + shouldShow = function(client) return client:getChar() and client:Alive() end, + onRun = function(client) MODULE:CharRecognize(2) end, + runServer = false +}) + +MODULE:AddLocalOption("Allow Recognition by Recognize in Talk Range", { + shouldShow = function(client) return client:getChar() and client:Alive() end, + onRun = function(client) MODULE:CharRecognize(3) end, + runServer = false +}) + +MODULE:AddLocalOption("Allow Recognition by Recognize in Yell Range", { + shouldShow = function(client) return client:getChar() and client:Alive() end, + onRun = function(client) MODULE:CharRecognize(4) end, + runServer = false +}) + +MODULE:AddLocalOption("Allow Recognition by Fake Name in Whisper Range", { + shouldShow = function(client) return client:getChar() and client:Alive() end, + onRun = function(client) if CLIENT then Derma_StringRequest(recogMenuOptionFakeWhisper, recogFakeNamePrompt, default or "", function(text) if text then MODULE:CharRecognize(2, text) end end) end end, + runServer = false +}) + +MODULE:AddLocalOption("Allow Recognition by Fake Name in Talk Range", { + shouldShow = function(client) return client:getChar() and client:Alive() end, + onRun = function(client) if CLIENT then Derma_StringRequest(recogMenuOptionFakeTalk, recogFakeNamePrompt, default or "", function(text) if text then MODULE:CharRecognize(3, text) end end) end end, + runServer = false +}) + +MODULE:AddLocalOption("Allow Recognition by Fake Name in Yell Range", { + shouldShow = function(client) return client:getChar() and client:Alive() end, + onRun = function(client) if CLIENT then Derma_StringRequest(recogMenuOptionFakeYell, recogFakeNamePrompt, default or "", function(text) if text then MODULE:CharRecognize(4, text) end end) end end, + runServer = false }) \ No newline at end of file