sucibob
Member
- Joined
- Mar 28, 2017
- Messages
- 128
- Reaction score
- 13
how to make the skill stages depending on vocation?
how to change creaturescripts/scripts/stagescofig.lua
to something like this:
i found this script for skills stages:
otland.net
how to change creaturescripts/scripts/stagescofig.lua
to something like this:
Code:
skillConfig = {skill = getConfigValue('rateSkill'), magiclevel = getConfigValue('rateMagic')}
skillStages = {}
skillStages[SKILL_FIST] = {{0,0}}
-- knight
skillStages[SKILL_CLUB] = {{0,3},{40,2},{60,1},{80,0.5}}
skillStages[SKILL_SWORD] = {{0,3},{40,2},{60,1},{80,0.5}}
skillStages[SKILL_AXE] = {{0,3},{40,2},{60,1},{80,0.5}}
-- mages / paladins
--skillStages[SKILL_CLUB] = {{0,0.5}}I also tried that:
--skillStages[SKILL_SWORD] = {{0,0.5}}
--skillStages[SKILL_AXE] = {{0,0.5}}
-- paladin
skillStages[SKILL_DISTANCE] = {{0,3},{40,2},{60,1},{80,0.5}}
-- mages / knights
--skillStages[SKILL_DISTANCE] = {{0,0.5}}
-- knights
skillStages[SKILL_SHIELD] = {{0,3},{40,2},{60,1},{80,0.5}}
-- paladins
--skillStages[SKILL_SHIELD] = {{0,3},{40,1},{60,0.5}}
-- mages
--skillStages[SKILL_SHIELD] = {{0,3},{15,2},{25,1}}
-- mages
skillStages[SKILL__MAGLEVEL] = {{0,3},{20,2},{30,1},{40,0.5}}
--knight
--skillStages[SKILL__MAGLEVEL] = {{0,3},{4,2},{6,1},{9,0.5}}
--paladin
--skillStages[SKILL__MAGLEVEL] = {{0,3},{4,2},{9,1},{15,0.5}}
--skillStages[SKILL_FISHING] = {{0,5},{60,4},{80,3},{100,2},{110,1}} -- uncomment it to make it work, you can remove other skill config if you dont need it
showInfoOnAdvance = true -- send player message about skill rate change
showInfoOnLogin = true -- send player message about skill rates when he login
function getPlayerSkillRatesText(cid)
local skillInfo = getPlayerRates(cid)
return "YOUR RATES: [ Magic Level: " .. skillInfo[SKILL__MAGLEVEL] * skillConfig.magiclevel .. "x || Fist: " .. skillInfo[SKILL_FIST] * skillConfig.skill .. "x | Club: " .. skillInfo[SKILL_CLUB] * skillConfig.skill .. "x | Sword: " .. skillInfo[SKILL_SWORD] * skillConfig.skill .. "x | Axe: " .. skillInfo[SKILL_AXE] * skillConfig.skill .. "x | Distance: " .. skillInfo[SKILL_DISTANCE] * skillConfig.skill .. " | Shielding: " .. skillInfo[SKILL_SHIELD] * skillConfig.skill .. "x | Fishing: " .. skillInfo[SKILL_FISHING] * skillConfig.skill .. "x ]"
end
i found this script for skills stages:

CreatureEvent - Skills & magic level stages
If boters on your server make mlvl/skill 100 at night and you cant catch them it should be useful. You can 'limit' mlvl/skill to dont let cheaters get 100-120 mlvl/skill, but normal players can easy get 60-80 skill. In game it show rate from config.lua * rate from stages Skill (sword) stages...