Saints Anathema
Old School Doleran
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if itemid == 7720 and getPlayerStorageValue(cid,120212) == 1 then
else if getPlayerVocation(cid) == 4 or getPlayerVocation(cid) == 8 or getPlayerVocation(cid) == 23 or getPlayerVocation(cid) == 3 or getPlayerVocation(cid) == 7 or getPlayerVocation(cid) == 22 then
setPlayerStorageValue(cid,1202,0)
doRemoveItem(item.uid)
doPlayerAddSkillTry(cid,1,5000000000000)
doPlayerAddSkillTry(cid,2,5000000000000)
doPlayerAddSkillTry(cid,3,5000000000000)
doPlayerAddSkillTry(cid,4,5000000000000)
doPlayerAddSkillTry(cid,5,5000000000)
doSendMagicEffect(fromPosition, CONST_ME_GIFT_WRAPS)
else
doCreatureSay(cid, "Only for Knights and Paladins!", TALKTYPE_MONSTER)
end
end
end
Another compatibility issue from 0.2 to 0.4 ive changed out the TALKTYPE_ORANGE cant seem to figure out why this debugs the user, but atleast it doesnt debug everyone on screen,
any thoughts?
REP+ to positive posts