function RecommendedQuestInfoLoad()
for questID, table in pairs(RecommendedQuestInfoList) do
if nil == table.Title then
table.Title = ""
end
if nil == table.IconName then
table.IconName = ""
end
if nil == table.Summary then
table.Summary = ""
end
if nil == table.BgName then
table.BgName = ""
end
if nil == table.NpcSpr then
table.NpcSpr = ""
end
if nil == table.NpcNavi then
table.NpcNavi = ""
end
if nil == table.NpcPosX then
table.NpcPosX = 0
end
if nil == table.NpcPosY then
table.NpcPosY = 0
end
InsertRecommededQuestInfo(questID, table.Title, table.IconName, table.Summary, table.BgName, table.NpcSpr, table.NpcNavi, table.NpcPosX, table.NpcPosY)
if nil ~= table.QuestInfo1 then
for k, v in pairs(table.QuestInfo1) do
AddRecommendedQuestInfo(questID, 0, v)
end
end
if nil ~= table.QuestInfo2 then
for k, v in pairs(table.QuestInfo2) do
AddRecommendedQuestInfo(questID, 1, v)
end
end
if nil ~= table.QuestInfo3 then
for k, v in pairs(table.QuestInfo3) do
AddRecommendedQuestInfo(questID, 2, v)
end
end
end
end
Hello
I got some error when i execute my hexed:
I think the error is on this script below
data\luafiles514\lua files\datainfo\questinfo_f.lub
function RecommendedQuestInfoLoad() for questID, table in pairs(RecommendedQuestInfoList) do if nil == table.Title then table.Title = "" end if nil == table.IconName then table.IconName = "" end if nil == table.Summary then table.Summary = "" end if nil == table.BgName then table.BgName = "" end if nil == table.NpcSpr then table.NpcSpr = "" end if nil == table.NpcNavi then table.NpcNavi = "" end if nil == table.NpcPosX then table.NpcPosX = 0 end if nil == table.NpcPosY then table.NpcPosY = 0 end InsertRecommededQuestInfo(questID, table.Title, table.IconName, table.Summary, table.BgName, table.NpcSpr, table.NpcNavi, table.NpcPosX, table.NpcPosY) if nil ~= table.QuestInfo1 then for k, v in pairs(table.QuestInfo1) do AddRecommendedQuestInfo(questID, 0, v) end end if nil ~= table.QuestInfo2 then for k, v in pairs(table.QuestInfo2) do AddRecommendedQuestInfo(questID, 1, v) end end if nil ~= table.QuestInfo3 then for k, v in pairs(table.QuestInfo3) do AddRecommendedQuestInfo(questID, 2, v) end end end end
I really need some help here
Share this post
Link to post
Share on other sites