Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if itemid == 7720 and getPlayerStorageValue(cid,120212) == 2 then
doCreatureSay(cid, "You can only use this scroll once!", TALKTYPE_ORANGE_1)
else if getPlayerVocation(cid) == 4 or getPlayerVocation(cid) == 8 or getPlayerVocation(cid) == 9 or getPlayerVocation(cid) == 3 or getPlayerVocation(cid) == 7 or getPlayerVocation(cid) == 10 then
setPlayerStorageValue(cid,1202,2)
doRemoveItem(item.uid)
doPlayerAddSkillTry(cid,1,10)
doPlayerAddSkillTry(cid,2,10)
doPlayerAddSkillTry(cid,3,10)
doPlayerAddSkillTry(cid,4,10)
doSendMagicEffect(fromPosition, CONST_ME_GIFT_WRAPS)
doCreatureSay(cid, "You Gained 10 Melee and Distance Skills! Thank you for your donation!", TALKTYPE_ORANGE_1)
else
doCreatureSay(cid, "Only for Knights and Paladins!", TALKTYPE_ORANGE_1)
end
end
end
Hey guys, I rep that guy that helpes me getting it just to 10 axe, sword, club, dist.
Hope you guys can help me one more time
Regards, Wibbenz
Last edited: