diff --git a/data-canary/scripts/spells/support/find_fiend.lua b/data-canary/scripts/spells/support/find_fiend.lua index 5b815f20b4e..c15f0c62384 100644 --- a/data-canary/scripts/spells/support/find_fiend.lua +++ b/data-canary/scripts/spells/support/find_fiend.lua @@ -105,7 +105,7 @@ function spell.onCastSpell(creature, variant) message = string.format(message .. " " .. ForgeMonster:getTimeLeftToChangeMonster(target)) end - creature:sendTextMessage(MESSAGE_INFO_DESCR, message) + creature:sendTextMessage(MESSAGE_LOOK, message) creaturePosition:sendMagicEffect(CONST_ME_MAGIC_BLUE) return true end diff --git a/data/libs/concoctions_lib.lua b/data/libs/concoctions_lib.lua index 1fc259e763d..dcbd1337572 100644 --- a/data/libs/concoctions_lib.lua +++ b/data/libs/concoctions_lib.lua @@ -165,7 +165,7 @@ function Concoction:activate(player, item) local cooldown = self:cooldown() if self:lastActivatedAt(player) + cooldown > os.time() then local cooldownLeft = self:lastActivatedAt(player) + cooldown - os.time() - player:sendTextMessage(MESSAGE_STATUS_SMALL, + player:sendTextMessage(MESSAGE_FAILURE, "You must wait " .. getTimeInWords(cooldownLeft) .. " before using " .. item:getName() .. " again.") return true end diff --git a/data/scripts/talkactions/god/vip_manager.lua b/data/scripts/talkactions/god/vip_manager.lua index fb811ad2cd8..72a72b2eecc 100644 --- a/data/scripts/talkactions/god/vip_manager.lua +++ b/data/scripts/talkactions/god/vip_manager.lua @@ -20,12 +20,12 @@ function vipGod.onSay(player, words, param) local target = Player(targetName) if not action or not targetName then - player:sendTextMessage(MESSAGE_INFO_DESCR, 'Command invalid.\nUsage:\n/vip , , [, ]\n\nAvailable actions:\ncheck, adddays, removedays, remove') + player:sendTextMessage(MESSAGE_LOOK, 'Command invalid.\nUsage:\n/vip , , [, ]\n\nAvailable actions:\ncheck, adddays, removedays, remove') return true end if not target then - player:sendTextMessage(MESSAGE_INFO_DESCR, string.format('Player "%s" is not online or does not exist!', targetName)) + player:sendTextMessage(MESSAGE_LOOK, string.format('Player "%s" is not online or does not exist!', targetName)) return true end @@ -43,7 +43,7 @@ function vipGod.onSay(player, words, param) end if amount < config.minDays or amount > config.maxDays then - player:sendTextMessage(MESSAGE_INFO_DESCR, string.format('You can only add %d to %d VIP days at a time.', config.minDays, config.maxDays)) + player:sendTextMessage(MESSAGE_LOOK, string.format('You can only add %d to %d VIP days at a time.', config.minDays, config.maxDays)) return true end @@ -55,7 +55,7 @@ function vipGod.onSay(player, words, param) elseif action == 'removedays' then local amount = tonumber(params[3]) if not amount then - player:sendTextMessage(MESSAGE_INFO_DESCR, ' has to be a numeric value.') + player:sendTextMessage(MESSAGE_LOOK, ' has to be a numeric value.') return true end if amount > targetVipDays then @@ -75,7 +75,7 @@ function vipGod.onSay(player, words, param) player:sendTextMessage(MESSAGE_STATUS, string.format('You removed all VIP days from %s.', targetName)) else - player:sendTextMessage(MESSAGE_INFO_DESCR, 'Action is required.\nUsage:\n/vip , , [, ]\n\nAvailable actions:\ncheck, adddays, removedays, remove') + player:sendTextMessage(MESSAGE_LOOK, 'Action is required.\nUsage:\n/vip , , [, ]\n\nAvailable actions:\ncheck, adddays, removedays, remove') return true end return true diff --git a/data/scripts/talkactions/player/auto_loot.lua b/data/scripts/talkactions/player/auto_loot.lua index b32b1f2bae4..2f97c896a8a 100644 --- a/data/scripts/talkactions/player/auto_loot.lua +++ b/data/scripts/talkactions/player/auto_loot.lua @@ -15,10 +15,10 @@ function autoLoot.onSay(player, words, param) end if param == "on" then player:setStorageValue(STORAGEVALUE_AUTO_LOOT, 1) - player:sendTextMessage(MESSAGE_INFO_DESCR, "You have successfully enabled your automatic looting!") + player:sendTextMessage(MESSAGE_LOOK, "You have successfully enabled your automatic looting!") elseif param == "off" then player:setStorageValue(STORAGEVALUE_AUTO_LOOT, 0) - player:sendTextMessage(MESSAGE_INFO_DESCR, "You have successfully disabled your automatic looting!") + player:sendTextMessage(MESSAGE_LOOK, "You have successfully disabled your automatic looting!") end return true end diff --git a/data/scripts/talkactions/player/bank.lua b/data/scripts/talkactions/player/bank.lua index ab88aebdfb6..e74c4b4cdd2 100644 --- a/data/scripts/talkactions/player/bank.lua +++ b/data/scripts/talkactions/player/bank.lua @@ -1,6 +1,6 @@ local config = { enabled = true, - messageStyle = MESSAGE_INFO_DESCR + messageStyle = MESSAGE_LOOK } if not config.enabled then diff --git a/data/scripts/talkactions/player/emote_spell.lua b/data/scripts/talkactions/player/emote_spell.lua index f53473b3e87..5dea5aee945 100644 --- a/data/scripts/talkactions/player/emote_spell.lua +++ b/data/scripts/talkactions/player/emote_spell.lua @@ -8,10 +8,10 @@ function emoteSpell.onSay(player, words, param) end if param == "on" then player:setStorageValue(STORAGEVALUE_EMOTE, 1) - player:sendTextMessage(MESSAGE_INFO_DESCR, "You activated emoted spells") + player:sendTextMessage(MESSAGE_LOOK, "You activated emoted spells") elseif param == "off" then player:setStorageValue(STORAGEVALUE_EMOTE, 0) - player:sendTextMessage(MESSAGE_INFO_DESCR, "You desactivated emoted spells") + player:sendTextMessage(MESSAGE_LOOK, "You desactivated emoted spells") end return true end