ralke
(҂ ͠❛ ෴ ͡❛)ᕤ
Hi there! I've been using this wonderfull script make by @Xikini that allows to set experience stages to skills. But I encounter the issue that knights, for example, would benefit from the raised magic level stage (knights advance really slower in comparision to sorcerers or mages).
So, if I have:
The multiplier would be much easier for knights, from the other hand, I would like to have mages and druids to be able to progress really quick on their first magic level stages. So... How can I add vocation for each separated skill stage?. Thanks in advance!
Lua - Xikini's Free Scripting Service TFS 1.4.2
Request whatever you want, within reason. Please do not request for things that require source editing or database queries. ------------------------------------ If I've reacted to your post, it means I've read it. 👍😍🤣😲🙁😡🤔😉 ------------------------------------ Completed Requests A boss that...
otland.net
Lua:
local skillStages = {
[SKILL_FIST] = {
[{ 1, 60}] = {multiplier = 32},
[{ 60, 100}] = {multiplier = 16},
[{101}] = {multiplier = 8}
},
[SKILL_CLUB] = {
[{ 1, 60}] = {multiplier = 32},
[{ 60, 100}] = {multiplier = 16},
[{101}] = {multiplier = 8}
},
[SKILL_SWORD] = {
[{ 1, 60}] = {multiplier = 32},
[{ 60, 100}] = {multiplier = 16},
[{101}] = {multiplier = 8}
},
[SKILL_AXE] = {
[{ 1, 60}] = {multiplier = 32},
[{ 60, 100}] = {multiplier = 16},
[{101}] = {multiplier = 8}
},
[SKILL_DISTANCE] = {
[{ 1, 60}] = {multiplier = 32},
[{ 60, 100}] = {multiplier = 16},
[{101}] = {multiplier = 8}
},
[SKILL_SHIELD] = {
[{ 1, 60}] = {multiplier = 32},
[{ 60, 100}] = {multiplier = 16},
[{101}] = {multiplier = 8}
},
[SKILL_FISHING] = {
[{ 1, 60}] = {multiplier = 32},
[{ 60, 100}] = {multiplier = 16},
[{101}] = {multiplier = 8}
},
[SKILL_MAGLEVEL] = {
[{ 1, 60}] = {multiplier = 16},
[{ 60, 100}] = {multiplier = 8},
[{101}] = {multiplier = 4}
}
}
local ec = EventCallback
ec.onGainSkillTries = function(self, skill, tries)
if not skillStages[skill] then
return tries
end
local playerLevel = skill == SKILL_MAGLEVEL and self:getMagicLevel() or self:getSkillLevel(skill)
for k, v in pairs(skillStages[skill]) do
if playerLevel >= k[1] then
if not k[2] or playerLevel <= k[2] then
tries = tries * v.multiplier
end
end
end
return tries
end
ec:register()
Lua:
[SKILL_MAGLEVEL] = {
[{ 1, 60}] = {multiplier = 16},
[{ 60, 100}] = {multiplier = 8},
[{101}] = {multiplier = 4}
}
The multiplier would be much easier for knights, from the other hand, I would like to have mages and druids to be able to progress really quick on their first magic level stages. So... How can I add vocation for each separated skill stage?. Thanks in advance!