From b3de76997820293dd0a41cfde20cadb568d4c944 Mon Sep 17 00:00:00 2001 From: divinity76 Date: Sat, 24 Aug 2024 16:22:56 +0200 Subject: [PATCH] support "Mage" vocation several OT servers merge MS/ED vocation into a Mage vocation having the best features of both MS and ED. Also without this fix, on those servers, vBot would constantly error out with Error: (...) concatenat voc: a nil value --- vBot/extras.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vBot/extras.lua b/vBot/extras.lua index bd1a3fb..3abe7dc 100644 --- a/vBot/extras.lua +++ b/vBot/extras.lua @@ -570,7 +570,7 @@ if true then guild = guild.."..." end local voc - if text:lower():find("sorcerer") then + if text:lower():find("sorcerer") or text:lower():find("mage") then voc = "MS" elseif text:lower():find("druid") then voc = "ED" @@ -641,4 +641,4 @@ if true then forceMarked(newCreature) end end) -end \ No newline at end of file +end