Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- perks = {
- brilliance = {
- storage = 80051,
- gold = 10000,
- rebirth = 1,
- callback = function(cid) return doPlayerSetRate(cid, SKILL__LEVEL, getPlayerRates(cid)[SKILL__LEVEL] + 0.5) end
- description = "Increases the rate at which experience is gained by 0.5% per point."
- },
- vigor = {
- storage = 80052,
- gold = 10000,
- rebirth = 20,
- callback = function(cid)
- local points = getPlayerStorageValue(cid, 80052)
- if getCreatureCondition(cid, CONDITION_ATTRIBUTES, 1) then
- doRemoveCondition(cid, CONDITION_ATTRIBUTES, 1)
- end
- local c = createConditionObject(CONDITION_ATTRIBUTES)
- setConditionParam(c, CONDITION_PARAM_STAT_MAXMANAPOINTSPERCENT, points)
- setConditionParam(c, CONDITION_PARAM_TICKS, -1)
- setConditionParam(c, CONDITION_PARAM_SUBID, 1)
- return doAddCondition(cid, c)
- end
- description = "Increases max health by 1% per point."
- },
- vita = {
- storage = 80053,
- gold = 10000,
- rebirth = 20,
- callback = function(cid)
- local points = getPlayerStorageValue(cid, 80053)
- if getCreatureCondition(cid, CONDITION_ATTRIBUTES, 2) then
- doRemoveCondition(cid, CONDITION_ATTRIBUTES, 2)
- end
- local c = createConditionObject(CONDITION_ATTRIBUTES)
- setConditionParam(c, CONDITION_PARAM_STAT_MAXMANAPOINTSPERCENT, points)
- setConditionParam(c, CONDITION_PARAM_TICKS, -1)
- setConditionParam(c, CONDITION_PARAM_SUBID, 2)
- return doAddCondition(cid, c)
- end
- description = "Increases max mana by 1% per point."
- },
- arcane = {
- storage = 80054,
- gold = 10000,
- rebirth = 40,
- callback = function(cid)
- local points = getPlayerStorageValue(cid, 80054)
- if getCreatureCondition(cid, CONDITION_ATTRIBUTES, 3) then
- doRemoveCondition(cid, CONDITION_ATTRIBUTES, 3)
- end
- local c = createConditionObject(CONDITION_ATTRIBUTES)
- setConditionParam(c, CONDITION_PARAM_STAT_MAGLEVEL, points)
- setConditionParam(c, CONDITION_PARAM_TICKS, -1)
- setConditionParam(c, CONDITION_PARAM_SUBID, 3)
- return doAddCondition(cid, c)
- end
- description = "Increases magic level by 1 per point."
- },
- stragnosa = {
- storage = 80055,
- gold = 10000,
- rebirth = 40,
- callback = function(cid)
- local points = getPlayerStorageValue(cid, 80055)
- if getCreatureCondition(cid, CONDITION_ATTRIBUTES, 4) then
- doRemoveCondition(cid, CONDITION_ATTRIBUTES, 4)
- end
- local c = createConditionObject(CONDITION_ATTRIBUTES)
- setConditionParam(c, CONDITION_PARAM_SKILL_FIST, points)
- setConditionParam(c, CONDITION_PARAM_SKILL_CLUB, points)
- setConditionParam(c, CONDITION_PARAM_SKILL_SWORD, points)
- setConditionParam(c, CONDITION_PARAM_SKILL_AXE, points)
- setConditionParam(c, CONDITION_PARAM_TICKS, -1)
- setConditionParam(c, CONDITION_PARAM_SUBID, 4)
- return doAddCondition(cid, c)
- end
- description = "Increases axe/sword/fist/club fighting by 1 per point"
- }
- }
- function getPlayerPerks(cid)
- local ret = {}
- for perk, data in pairs(perks) do
- local points = getPlayerStorageValue(cid, data.storage)
- if points ~= -1 then
- ret[#ret+1] = data.callback
- end
- end
- return ret
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement