Tyson12302
New Member
- Joined
- Aug 6, 2014
- Messages
- 264
- Reaction score
- 4
I get this error when i open the Yalahar Quest Chest. It opens the chest and shows the item inside it instead of just giving it to me.
[06/06/2015 14:44:50] [Error - Action Interface]
[06/06/2015 14:44:50] data/actions/scripts/quests/yalaharrewards.lua
nUse
[06/06/2015 14:44:50] Description:
[06/06/2015 14:44:50] data/actions/scripts/quests/yalaharrewards.lua:21: attempt to index local 'player' (a number value)
[06/06/2015 14:44:50] stack traceback:
[06/06/2015 14:44:50] data/actions/scripts/quests/yalaharrewards.lua:21: in function <data/actions/scripts/quests/yalaharrewards.lua:1>
Heres my Yalaharchest script.
[06/06/2015 14:44:50] [Error - Action Interface]
[06/06/2015 14:44:50] data/actions/scripts/quests/yalaharrewards.lua
[06/06/2015 14:44:50] Description:
[06/06/2015 14:44:50] data/actions/scripts/quests/yalaharrewards.lua:21: attempt to index local 'player' (a number value)
[06/06/2015 14:44:50] stack traceback:
[06/06/2015 14:44:50] data/actions/scripts/quests/yalaharrewards.lua:21: in function <data/actions/scripts/quests/yalaharrewards.lua:1>
Heres my Yalaharchest script.
LUA:
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
if(item.uid == 3088) then
if(player:getStorageValue(Storage.InServiceofYalahar.Questline) == 53) then
player:setStorageValue(Storage.InServiceofYalahar.Questline, 54)
player:setStorageValue(Storage.InServiceofYalahar.Mission10, 5) -- StorageValue for Questlog "Mission 10: The Final Battle"
player:addItem(9776, 1)
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You have found a yalahari armor.")
else
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "The chest is empty.")
end
elseif(item.uid == 3089) then
if(player:getStorageValue(Storage.InServiceofYalahar.Questline) == 53) then
player:setStorageValue(Storage.InServiceofYalahar.Questline, 54)
player:setStorageValue(Storage.InServiceofYalahar.Mission10, 5) -- StorageValue for Questlog "Mission 10: The Final Battle"
player:addItem(9778, 1)
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You have found a yalahari mask.")
else
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "The chest is empty.")
end
elseif(item.uid == 3090) then
if(player:getStorageValue(Storage.InServiceofYalahar.Questline) == 53) then
player:setStorageValue(Storage.InServiceofYalahar.Questline, 54)
player:setStorageValue(Storage.InServiceofYalahar.Mission10, 5) -- StorageValue for Questlog "Mission 10: The Final Battle"
player:addItem(9777, 1)
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You have found a yalahari leg piece.")
else
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "The chest is empty.")
end
end
return true
end