
Originally Posted by
naaxt420
With some help i figured out the CRLF at the end of the lines.
It's fixed now.
Got any ideas why, at the end of the quest when i should receive the reward there are no "squares" showing my items, but, after i click to receive the items i do receive it.
It's just a blank place where there should be the squared that holds the items.
Thank you for your reply valcro.
I never had a problem like that, maybe you forgot to add the item reward in your Media or at the Lua Script?
Here you got an example of a quest that gives you a D1 Shield SUN as reward:
Quest.sct
Code:
function QNO_TO_SHIELDBORN_1()
QUESTID = LuaGetQuestID("QNO_TO_SHIELDBORN_1")
LuaSetStartCodition(2, QSC_QUEST, QSC_LEVEL, 1, 1)
QM_CONVERSATION = 1
LuaSetStartMethod(QM_CONVERSATION, 1, "NPC_SHIELDBORN")
LuaInsertMissionOrCompleteNpc("NPC_SHIELDBORN")
LuaQuestInsertNpc(1, "NPC_SHIELDBORN")
LuaSetAchievementLimit(1)
LuaSetMissionDataSize(QUESTID, 1)
LuaSetMissionData_EX(QUESTID, 0, MISSION_TYPE_KILL_MONSTER, "SN_CON_QNO_TO_SHIELDBORN_1", 1, "MOB_CH_MANGNYANG", 0, 30, 0, 1)
InsertQuestMenuStringList("NPC_SHIELDBORN", 8, "BASIC_MENUSTRING_GREETING", "SN_NPC_CH_POTION_QS", "BASIC_MENUSTRING_REQUEST_ACCEPT_QUEST", "SN_TALK_QNO_TO_SHIELDBORN_1_01", "BASIC_MENUSTRING_AT_ACCEPT", "SN_TALK_QNO_TO_SHIELDBORN_1_02", "BASIC_MENUSTRING_AT_DENY", "SN_TALK_QNO_TO_SHIELDBORN_1_03", "BASIC_MENUSTRING_NOT_ACHIEVED", "SN_TALK_QNO_TO_SHIELDBORN_1_04", "BASIC_MENUSTRING_INVENTORY_FULL", "SN_TALK_QNO_TO_SHIELDBORN_1_05", "BASIC_MENUSTRING_ACHIEVED", "SN_TALK_QNO_TO_SHIELDBORN_1_06", "BASIC_MENUSTRING_ACHIEVED_NOW", "SN_TALK_QNO_TO_SHIELDBORN_1_07")
LuaSetMissionCompleteNum(0)
PAY_ITEM_METHOD_EXACT = 1
LuaSetAchievedItem(1, 375, 0, 0, 1, "ITEM_CH_SHIELD_01_C_RARE", 1)
LuaSetAchievedSkillPont(1500)
end
DB -> RefQuestRewardItem
Code:
1 1042 QNO_TO_SHIELDBORN_1 0 ITEM_CH_SHIELD_01_C_RARE xxx 0 1 xxx 0 xxx 0 xxx
MEDIA -> refquestrewarditems.txt
Code:
1042 QNO_TO_SHIELDBORN_1 0 ITEM_CH_SHIELD_01_C_RARE xxx xxx 0 1 0 xxx 0 xxx