Quote:
Originally Posted by Stratti
[/code]
I'm not going to explain the whole lua code, just a few tips:
- LuaGetQuestID("QNO_TEST_QUEST") must match with the quest name in your database!
- LuaSetStartCodition(2, QSC_QUEST, QSC_LEVEL, 1, 1) describes that the quest with the questId "1" & char level "1" is required to start the
quest
- LuaSetAchievedItem(1, 7200, 0, 0, 1, "ITEM_MALL_GLOBAL_CHATTING", 10) selfexplaining, if you finish the quest you'll get 7200 exp & 10 global chattings
Just look around in other quest files and it'll become clear.
Now save the file and open "QuestList.lua"
Add a new line to the end of the file with the following code:
Code:
LuaInsertQuest(TYPE_ID, "SN_QNO_TEST_QUEST.lua", "QNO_TEST_QUEST")
[Only registered and activated users can see links. Click Here To Register...]
|
LuaSetAchievedItem(1, 7200, 0, 0, 1, "ITEM_MALL_GLOBAL_CHATTING", 10)
can me add new line for example , like that
LuaSetAchievedItem(1, 7200, 0, 0, 1, "ITEM_MALL_GLOBAL_CHATTING", 10)
LuaSetAchievedItem(1, 7200, 0, 0, 1, "ITEM_MALL_SAYTAN_DRESS", 1)
?