sestorme
Member
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(itemEx.itemid == 389) then
doTransformItem(itemEx.uid, 388)
doCreateItem(5904, 1, toPosition)
doDecayItem(itemEx.uid)
doPlayerAddSkill(cid, SKILL_SHIELDING, 10)
return true
end
return destroyItem(cid, itemEx, toPosition)
end
Okay, so this script generally works, it does provide items I expected and swaps to another dodoad. However, it does not provide AddSkill - heh, it used to only until the character reached 11 level in shielding, no effect since. I am also finding issues with adding math.random. If anyone could implement an example it would be great.