Hello...so this is my script...
Now, I am not the best at this -- but how do I also award vocations with level 20 gear? Etc -- so they have something better than starter weapons?
This is just crystal coin.
Edit: It is not a huge deal - but meh...I can just make them buy it or quest maybe
Just was wondering if somebody had time to add it to that
Lua:
local t = {
39001, {
[20] = {2160, 2, "Congratulations on level 20! You have been awarded with 2 crystal coins! Get that promo slacker.", 1},
[50] = {2160, 3, "Congratulations on level 50! Beware, you are vulnerable to those shitty PKers now! Here is 3 crystal coins! Store it fast!", 2},
[75] = {2160, 5, "Congratulations, you made it this far, you might as well stay here forever, here is 5 crystal coins!", 3},
[100] = {2160, 10, "Congratulations, you have successfully played way to much, I suppose an award is in order? You have been awarded with 10 crystal coins!", 4}
}
}
function onAdvance(cid, skill, oldlevel, newlevel)
if skill == SKILL__LEVEL then
for level, v in pairs(t[2]) do
if oldlevel < level and getPlayerLevel(cid) >= level and getPlayerStorageValue(cid, t[1]) < v[4] then
doPlayerAddItem(cid, v[1], v[2])
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, v[3])
setPlayerStorageValue(cid, t[1], v[4])
end
end
end
doPlayerSave(cid, true)
return true
end
Now, I am not the best at this -- but how do I also award vocations with level 20 gear? Etc -- so they have something better than starter weapons?
This is just crystal coin.
Edit: It is not a huge deal - but meh...I can just make them buy it or quest maybe
Just was wondering if somebody had time to add it to that