Sorry, I actually meant hp and mana regen. Like, increasing your sorcerer man regain with 1 extra mana
It would be such a perfect addition to my server and I would kill to have it working. If you have any idea of what functions and codes I would need I could do my absolute best to add them myself.
m8 u rly salty sometimes. keep calm, smoke one and let them be them (i dont want to define "them")If you really want to learn and try yourself, try reading code over and over, come back to code you didn't understand as you progress. If you do know any thing about doing good edits then here is how to make the regen in simple way. Use storage values, save the percent or level in storage values, find player.feed function in global.lua and alter it to check for a conditition you create globally, have the condition (regen) increase in how many points by the storage value and add the conditon to the player, as well as the the point increase thru a function you create (to be used on the modalwindow skillpoint system), then make sure the conditon used in player feed use same condition for regen, and make sure to have it count off the same condition that way it still determines the ticks and everything correctly when first creating the conditon object.
[1] = {'Health', function(player) return player:getMaxHealth() end, function(player) local gain = gainVoc[player:getBaseVocId()].health player:setMaxHealth(185 + (player:getVocation():getHealthGainAmount() * (player:getLevel() - 8)) + player:getStorageValue(321) + gain) player:setStorageValue(321, player:getStorageValue(321) + gain) return gain end, 10},
[2] = {'Mana', function(player) return player:getMaxMana() end, function(player) local gain = gainVoc[player:getBaseVocId()].mana player:setMaxMana(40 + (player:getVocation():getManaGainAmount() * (player:getLevel() - 8)) + player:getStorageValue(322) + gain) player:setStorageValue(322, player:getStorageValue(322) + gain) return gain end, 10},
local xp = math.ceil(self:getVocation():getRequiredSkillTries(skill, self:getSkillLevel(skill) + 1))
self:addSkillTries(skill, xp)
player:setStorageValue(321, 0)
player:setStorageValue(322, 0)