In regular tibia. You have food that will give you a bonus to your skills. Example rotworm stew for knights. I was trying to mess around with it and get it to work on my ot. I wrote a code or whatever, but I'm sue it's not right.
I got the bottom part to work lol, but thats all. I'm sure it's something I've did wrong. Any help is welcome.
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == 9992 and getPlayerLevel(cid) >= 1 and getPlayerSkill(cid, 1) and getPlayerVocation == 4 then
doPlayerAddSkillTrys(cid, 3, 10)
doPlayerSendTextMessage(cid, 22, "You feel stronger.")
else
doPlayerSendTextMessage(cid,22, "Your not the right class for this item.")
end
end
I got the bottom part to work lol, but thats all. I'm sure it's something I've did wrong. Any help is welcome.