Thorn
Spriting since 2013
Hello guys! im trying to make this father's burden quest work, so far so good, but the thing that doesnt work and i can't figure out why, is the strong sinew and glitterscale scale part...you should be able to right click on the corpses and get the items, but instead it says: You cannot use this object, and im using original scripts from tfs :S
i dont understand why doesn't work :S also the route is fine, anyone have any ideas? D:
Code:
<!-- Father's Burden Quest -->
<action fromid="12545" toid="12546" script="quests/fathers burden/corpse.lua" />
Lua:
local config = {
[12545] = {itemId = 12506, storage = Storage.FathersBurdenQuest.Corpse.Scale, text = 'Glitterscale\'s scale.'},
[12546] = {itemId = 12504, storage = Storage.FathersBurdenQuest.Corpse.Sinew, text = 'Heoni\'s sinew'}
}
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
local corpse = config[item.itemid]
if not corpse then
return true
end
if player:getStorageValue(corpse.storage) == 1 then
return false
end
player:addItem(corpse.itemId, 1)
player:setStorageValue(corpse.storage, 1)
player:say('You acquired ' .. corpse.text, TALKTYPE_MONSTER_SAY)
return true
end
i dont understand why doesn't work :S also the route is fine, anyone have any ideas? D: