From 160db78d55700e295f5bec810d2a1aabad8e3478 Mon Sep 17 00:00:00 2001 From: HubDamian <57452808+HubDamian95@users.noreply.github.com> Date: Wed, 28 May 2025 18:59:05 +0100 Subject: [PATCH 1/7] Update extras.lua to include monk on tibia 14 Update extras.lua to include monk on tibia 14 --- vBot/extras.lua | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/vBot/extras.lua b/vBot/extras.lua index bd1a3fb..08a9d4f 100644 --- a/vBot/extras.lua +++ b/vBot/extras.lua @@ -127,16 +127,17 @@ addCheckBox("reachable", "Target only pathable mobs", false, leftPanel, "Ignore addCheckBox("title", "Custom Window Title", true, rightPanel, "Personalize OTCv8 window name according to character specific.") if true then - local vocText = "" - - if voc() == 1 or voc() == 11 then - vocText = "- EK" - elseif voc() == 2 or voc() == 12 then - vocText = "- RP" - elseif voc() == 3 or voc() == 13 then - vocText = "- MS" - elseif voc() == 4 or voc() == 14 then - vocText = "- ED" + local voc + if text:lower():find("sorcerer") then + voc = "MS" + elseif text:lower():find("druid") then + voc = "ED" + elseif text:lower():find("knight") then + voc = "EK" + elseif text:lower():find("paladin") then + voc = "RP" + elseif text:lower():find("monk") then + voc = "EM" end macro(5000, function() @@ -641,4 +642,4 @@ if true then forceMarked(newCreature) end end) -end \ No newline at end of file +end From 285790c9ab8a157cca82a2699d90f9fcf729afcd Mon Sep 17 00:00:00 2001 From: HubDamian <57452808+HubDamian95@users.noreply.github.com> Date: Thu, 29 May 2025 00:02:10 +0100 Subject: [PATCH 2/7] fix correct cde --- vBot/extras.lua | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/vBot/extras.lua b/vBot/extras.lua index 08a9d4f..2b3f1f8 100644 --- a/vBot/extras.lua +++ b/vBot/extras.lua @@ -127,18 +127,16 @@ addCheckBox("reachable", "Target only pathable mobs", false, leftPanel, "Ignore addCheckBox("title", "Custom Window Title", true, rightPanel, "Personalize OTCv8 window name according to character specific.") if true then - local voc - if text:lower():find("sorcerer") then - voc = "MS" - elseif text:lower():find("druid") then - voc = "ED" - elseif text:lower():find("knight") then - voc = "EK" - elseif text:lower():find("paladin") then - voc = "RP" - elseif text:lower():find("monk") then - voc = "EM" - end + local vocText = "" + + if voc() == 1 or voc() == 11 then + vocText = "- EK" + elseif voc() == 2 or voc() == 12 then + vocText = "- RP" + elseif voc() == 3 or voc() == 13 then + vocText = "- MS" + elseif voc() == 4 or voc() == 14 then + vocText = "- ED" macro(5000, function() if settings.title then @@ -572,13 +570,15 @@ if true then end local voc if text:lower():find("sorcerer") then - voc = "MS" + voc = "MS" elseif text:lower():find("druid") then - voc = "ED" + voc = "ED" elseif text:lower():find("knight") then - voc = "EK" + voc = "EK" elseif text:lower():find("paladin") then - voc = "RP" + voc = "RP" + elseif text:lower():find("monk") then + voc = "EM" end local creature = getCreatureByName(name) if creature then From 41c2f0a9d31c12424ab610516fa2b0aafb2e23ba Mon Sep 17 00:00:00 2001 From: HubDamian <57452808+HubDamian95@users.noreply.github.com> Date: Thu, 29 May 2025 00:02:59 +0100 Subject: [PATCH 3/7] Update extras.lua --- vBot/extras.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/vBot/extras.lua b/vBot/extras.lua index 2b3f1f8..6ca2774 100644 --- a/vBot/extras.lua +++ b/vBot/extras.lua @@ -570,15 +570,15 @@ if true then end local voc if text:lower():find("sorcerer") then - voc = "MS" + voc = "MS" elseif text:lower():find("druid") then - voc = "ED" + voc = "ED" elseif text:lower():find("knight") then - voc = "EK" + voc = "EK" elseif text:lower():find("paladin") then - voc = "RP" + voc = "RP" elseif text:lower():find("monk") then - voc = "EM" + voc = "EM" end local creature = getCreatureByName(name) if creature then From 01c0ca252c81d15920bb1a28c3b4372dc8f2d42b Mon Sep 17 00:00:00 2001 From: HubDamian <57452808+HubDamian95@users.noreply.github.com> Date: Thu, 29 May 2025 00:03:24 +0100 Subject: [PATCH 4/7] Update extras.lua --- vBot/extras.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vBot/extras.lua b/vBot/extras.lua index 6ca2774..2bfdc2b 100644 --- a/vBot/extras.lua +++ b/vBot/extras.lua @@ -137,7 +137,7 @@ if true then vocText = "- MS" elseif voc() == 4 or voc() == 14 then vocText = "- ED" - + end macro(5000, function() if settings.title then if hppercent() > 0 then From 38b5fa9e61cbc167521ca959b7f9e3d264d57a10 Mon Sep 17 00:00:00 2001 From: HubDamian <57452808+HubDamian95@users.noreply.github.com> Date: Thu, 29 May 2025 00:03:41 +0100 Subject: [PATCH 5/7] Update extras.lua --- vBot/extras.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/vBot/extras.lua b/vBot/extras.lua index 2bfdc2b..9a17cd6 100644 --- a/vBot/extras.lua +++ b/vBot/extras.lua @@ -138,6 +138,7 @@ if true then elseif voc() == 4 or voc() == 14 then vocText = "- ED" end + macro(5000, function() if settings.title then if hppercent() > 0 then From 5a1ab0eff3295bb33e1ceec754044e98c102c53c Mon Sep 17 00:00:00 2001 From: HubDamian <57452808+HubDamian95@users.noreply.github.com> Date: Thu, 29 May 2025 00:04:03 +0100 Subject: [PATCH 6/7] Update extras.lua --- vBot/extras.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vBot/extras.lua b/vBot/extras.lua index 9a17cd6..37d9a28 100644 --- a/vBot/extras.lua +++ b/vBot/extras.lua @@ -138,7 +138,7 @@ if true then elseif voc() == 4 or voc() == 14 then vocText = "- ED" end - + macro(5000, function() if settings.title then if hppercent() > 0 then From 1bc764e4dddba5f58faa95fac9bb6383ad249554 Mon Sep 17 00:00:00 2001 From: HubDamian <57452808+HubDamian95@users.noreply.github.com> Date: Thu, 29 May 2025 00:15:33 +0100 Subject: [PATCH 7/7] stop attempt to concatenate local 'voc' (a nil value) --- vBot/extras.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vBot/extras.lua b/vBot/extras.lua index 37d9a28..668b245 100644 --- a/vBot/extras.lua +++ b/vBot/extras.lua @@ -569,7 +569,7 @@ if true then guild = guild:sub(1,10) -- change to proper (last) values guild = guild.."..." end - local voc + local voc = "" if text:lower():find("sorcerer") then voc = "MS" elseif text:lower():find("druid") then