sucibob
Member
- Joined
- Mar 28, 2017
- Messages
- 128
- Reaction score
- 13
I used to have skills rates 10 magic level 5
config.lua
Until i found this skills stages script: CreatureEvent - Skills & magic level stages (https://otland.net/threads/skills-magic-level-stages.49165/)
But it broke a movemment i used to use:
How to make it change skills depending on player skill stages?
can i do a:
and check some how the player rates stages?
that is the way?
config.lua
Code:
rateSkill = 10.0
rateMagic = 5.0
Until i found this skills stages script: CreatureEvent - Skills & magic level stages (https://otland.net/threads/skills-magic-level-stages.49165/)
But it broke a movemment i used to use:
Code:
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
setPlayerStorageValue(cid, 17000, 5)
doPlayerSetRate(cid, SKILL_FIST, 5)
doPlayerSetRate(cid, SKILL_CLUB, 5)
doPlayerSetRate(cid, SKILL_SWORD, 5)
doPlayerSetRate(cid, SKILL_AXE, 5)
doPlayerSetRate(cid, SKILL_DISTANCE, 5)
doPlayerSetRate(cid, SKILL_SHIELD, 5)
doPlayerSetRate(cid, SKILL_FISHING, 5)
doPlayerSetRate(cid, SKILL__MAGLEVEL, 25)
return true
end
function onStepOut(cid, item, position, fromPosition)
setPlayerStorageValue(cid, 17000, 0)
doPlayerSetRate(cid, SKILL_FIST, 10)
doPlayerSetRate(cid, SKILL_CLUB, 10)
doPlayerSetRate(cid, SKILL_SWORD, 10)
doPlayerSetRate(cid, SKILL_AXE, 10)
doPlayerSetRate(cid, SKILL_DISTANCE, 10)
doPlayerSetRate(cid, SKILL_SHIELD, 10)
doPlayerSetRate(cid, SKILL_FISHING, 10)
doPlayerSetRate(cid, SKILL__MAGLEVEL, 5)
return true
end
How to make it change skills depending on player skill stages?
can i do a:
Code:
dofile(getDataDir() .. "creaturescripts/scripts/stagesconfig.lua")
and check some how the player rates stages?
that is the way?