local vocationChangeTime = 120 -- Tempo em segundos (2 minutos) local newVocation = 2 -- Nova vocação temporária local originalOutfit = {lookType = 45} -- Outfit original local temporaryOutfit = {lookType = 44} -- Outfit temporário function onCastSpell(creature, variant) if not creature or not creature:isPlayer() then return false end local player = creature:getPlayer() local originalVocation = player:getVocation():getId() if originalVocation ~= 2 then player:sendCancelMessage("Apenas jogadores com vocation 2 podem usar essa magia.") return false end -- Altera a vocação player:setVocation(Vocation(newVocation)) -- Altera o outfit player:setOutfit(temporaryOutfit) -- Mensagem de feedback player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Sua vocação foi alterada temporariamente!") -- Reverte a mudança após o tempo definido addEvent(function() if player and player:isPlayer() then player:setVocation(Vocation(originalVocation)) player:setOutfit(originalOutfit) player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Sua vocação voltou ao normal.") end end, vocationChangeTime * 1000) return true end