narko
vertrauenswürdig ~
I can't get this script works in the newest TFS 1.0 (10.37). I've been reading that the funcion newLevel has been replaced with skill == 8 and I also tried but it didn't work.
Code:
function onAdvance(cid, skill, oldlevel, newlevel)
if(getPlayerStorageValue(cid, 89966) ~= 1 and skill == 8 and oldlevel < 100 and player:getLevel() >= 100 then
doPlayerAddMount(cid, 24)
setPlayerStorageValue(cid, 89966, 1)
doPlayerSendTextMessage(cid, 22, "You have received a new mount!")
doCreatureSay(cid, "New mount!", TALKTYPE_ORANGE_1)
end
if(getPlayerStorageValue(cid, 89967) ~= 1 and skill == 8 and oldlevel < 200 and player:getLevel() >= 200 then
doPlayerAddItem(cid, 2160, 20)
doPlayerAddMount(cid, 38)
setPlayerStorageValue(cid, 89967, 1)
doPlayerSendTextMessage(cid, 22, "You have recieved 20 crystal coins and a new mount!")
doCreatureSay(cid, "New mount!", TALKTYPE_ORANGE_1)
end
if(getPlayerStorageValue(cid, 89968) ~= 1 and skill == 8 and oldlevel < 250 and player:getLevel() >= 250 then
doPlayerAddItem(cid, 9693, 1)
doPlayerAddMount(cid, 9)
setPlayerStorageValue(cid, 89968, 1)
doPlayerSendTextMessage(cid, 22, "You have recieved an addon doll and a new mount!")
doCreatureSay(cid, "New mount!", TALKTYPE_ORANGE_1)
end
if(getPlayerStorageValue(cid, 89969) ~= 1 and skill == 8 and oldlevel < 300 and player:getLevel() >= 300 then
doPlayerAddItem(cid, 16101, 1)
doPlayerAddMount(cid, 33)
setPlayerStorageValue(cid, 89969, 1)
doPlayerSendTextMessage(cid, 22, "You have recieved points scroll and a new mount!")
doCreatureSay(cid, "New mount!", TALKTYPE_ORANGE_1)
end
return TRUE
end