09-20-2021, 08:09 PM
Cast spell when player cast too (Combo Spell)
local CONFIG = {
Friends = { 'Friend', 'another friend' }, -- Players that can trigger this script.
Keyword = 'exevo gran mas vis', -- keyword to trigger.
Mana = 600, -- Minimum mana to cast spell.
Spell = 'exevo gran mas vis', -- Spellwords to cast.
}
if connected() and cancast() and mp() >= CONFIG.Mana then
table.lower(Friends)
local messages = getnewmessages()
for _, msg in ipairs(messages) do
if msg.content:lower() == CONFIG.Keyword:lower() and table.find(Friends, msg.sender:lower()) ~= nil then
cast(CONFIG.Spell)
wait(300, 600)
break
end
end
end