orts / server

A real map datapack based on TFS 1.2 engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[ENCHANTING] - Gives to much mlvl.

MVJohnsen opened this issue · comments

By enchanting rubies etc, you can get magic level 180 in a day on this server.
Does anyone know where to fix this?

Simply remove the magic skill multiplier from enchanting.lua.

Could you please give me an example?
I cant seem to find a multiplier in the lua.

Are you talking about this one?

player:addMana(-mana)
player:addSoul(-soul)
item:transform(enchantedGems[targetId])
player:addManaSpent(mana * configManager.getNumber(configKeys.RATE_MAGIC))
player:getPosition():sendMagicEffect(CONST_ME_HOLYDAMAGE)
return true
end

player:addManaSpent(mana * configManager.getNumber(configKeys.RATE_MAGIC))

to

player:addManaSpent(mana)

Thank you :)