Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local t = {
- {20, 2160, 3, 124124}
- {50, 2160, 5, 429384}
- {100, 2160, 10, 423094}
- }
- function onAdvance(cid, skill, oldLevel, newLevel)
- for k, v in pairs(t) do
- if newLevel >= k and getPlayerStorageValue(cid, v[4]) == EMPTY_STORAGE then
- doPlayerAddItem(cid, v[2], v[3], false)
- setPlayerStorageValue(cid, v[4], 1)
- end
- end
- return true
- end
Add Comment
Please, Sign In to add comment