ugurdrahs
New Member
Does someone make it so when a vocation receive level 45 he receive items;
sorcerer receive; wand of inferno
Knights: knight axe, fire sword, and another club weapon
pallys: enchanted spear
druids: hailstorm rod
I use this script so people get money at level 45,
but how to make it so they get items?
sorcerer receive; wand of inferno
Knights: knight axe, fire sword, and another club weapon
pallys: enchanted spear
druids: hailstorm rod
I use this script so people get money at level 45,
but how to make it so they get items?
PHP:
function onAdvance(cid, skill, oldlevel, newlevel)
if(getPlayerStorageValue(cid, 99963) ~= 1 and skill == SKILL__LEVEL and newlevel >= 45) then
doPlayerAddItem(cid, 2160, 5)
setPlayerStorageValue(cid, 99963, 1)
doPlayerSendTextMessage(cid, 22, "You have received 5 crystal coins because you reached level 45")
end
return TRUE
end
Last edited: