Code:
local mlqnt
mlqnt = math.ceil(getPlayerRequiredSkillTries(cid, SKILL_MAGIC, getPlayerSkillLevel(cid, SKILL_MAGIC) + 1)/3000) * (getPlayerStorageValue(cid, storages.length)) * (getPlayerStorageValue(cid, storages.difficult))
local shieldqnt
shieldqnt = math.ceil(getPlayerRequiredSkillTries(cid, SKILL_SHIELD, getPlayerSkillLevel(cid, SKILL_SHIELD) + 1)/3000) * (getPlayerStorageValue(cid, storages.length)) * (getPlayerStorageValue(cid, storages.difficult))
Code:
local mlstages
local shieldstages
mlstages = 40
shieldstages = 10
Code:
doPlayerAddSpentMana(cid, SKILL_MAGIC, (mlqnt / 2) * mlstages)
doPlayerAddSkillTry(cid, SKILL_SHIELD, (shieldqnt / 5) * shieldstages)