[Release] Silkroad lua scripts - new quests & more

05/06/2012 19:12 Stratti#16
Quote:
Originally Posted by tamer15 View Post
still w8ing ur answer
Open a texteditor, write the lua code inside it and save the file with .lua extension? :p

Quote:
Originally Posted by Mokho View Post
if there a button which gives 100 thanks. i would have spammed it till morning. Many thanks for something only known by few people. -Mykha
haha thx man ;)
05/06/2012 19:51 Serenduk#17
very nice share thnx you

is it possible so theres a few items on the reward list but player can choose only 1 item on each completion of the quest?
05/06/2012 19:56 Stratti#18
Quote:
Originally Posted by Serenduk View Post
very nice share thnx you

is it possible so theres a few items on the reward list but player can choose only 1 item on each completion of the quest?
Hmm I really don't know ;(. Could be possible but I dont know.
05/06/2012 23:07 Disco Teka#19
#moved

Very nice release. Thanks alot for sharing it with the epvp community.
05/06/2012 23:17 eldanger08#20
Quote:
Originally Posted by tamer15 View Post
really useful guide thx man , but when i create a files it shows me txt normal lolz !
u forgot .lua

atm the Quest Text is my problem :)3
i need good way to add text string to the Quest that wont work that u add bro :(
05/07/2012 04:05 PortalDark#21
wow this is really a great release
just one question
have checked them already
i mean, are you 100% able to create a quest from scratch?

Quote:
Originally Posted by Mokho View Post
if there a button which gives 100 thanks. i would have spammed it till morning. Many thanks for something only known by few people. -Mykha
9000 thnx is ENOUGH XD
05/07/2012 14:31 Stratti#22
Quote:
Originally Posted by PortalDark View Post
wow this is really a great release
just one question
have checked them already
i mean, are you 100% able to create a quest from scratch?


9000 thnx is ENOUGH XD
Basically you can add a quest "from scratch". But your possibilities are limited, you cannot do everything :p
05/07/2012 15:13 vorosmihaly#23
btw,these are all the functions that you can use:
Quote:
LuaSetStartCodition
LuaSetJobTypeStartCondition
LuaSetStartMethod
LuaInsertMissionOrCompleteNpc
LuaSetMissionDataSize
LuaSetMissionData
LuaSetMissionCompleteNum
LuaSetAchievedItem
InsertQuestMenuStringList
LuaInsertQuest
LuaQuestShowMenu
LuaQuestShowMenuCommon
LuaInsertQuestNeedItem
LuaGetQuestCurPage
LuaGetMenuResponse
LuaSaveQuestNow
LuaTerminateQuestMenu
LuaSendQuestEventMessage
LuaGetQuestStatus
LuaInsertQuestFunctionStringList
LuaInsertDependancyQuests
LuaSetMissionDifferentQuestData
LuaInQuireSameItem
LuaSetPayStep
LuaSaveLocalQuestNow
LuaEnablePayQuestItem
LuaSetStep
LuaPayQuest
LuaDelItemEXT
LuaSendAchieveMessage
LuaSetupCompleteProviso
LuaSetOtherStartCondition
LuaSetInstanceWorldConfig
LuaCheckEntranceCondition
LuaGetJobState
LuaGoInstanceDungeonInQuest
LuaGetWorldID
LuaCheckQuestAchieveCondition
LuaPrepareQuestData
LuaSaveCurPosAsLastTelPosition
LuabSetPayQuest
LuaGObjAppearedInSight
LuaGetInsDungeon
LuaGetTeleportState
LuaSetAbortQuest
LuaSetUpdateQuestTimeLimit
LuaLocalTimer
LuaGetQuestID
LuaEventRegister
LuaGetNameQuestID
LuaQuestStart
LuaSetWorldConfig
LuaFixEventRegister
LuaQuestTimeSet
LuaIndeonInitializeData
LuaIndeonAllUserRelease
LuaFindCharName
LuaIndeonRelease
LuaIndeonUpdateInitializeData
LuaGetQuestStep
LuaGetElapsedTime
LuaGetNextSpawnObjTime
LuaGetNextEventTime
LuaSetQuestStep
LuaMobSpawn
LuaSetEventNextTime
LuaSetOrgUpdateTimeLimit
LuaSetNextSpawnObjTime
LuaForceComplete
LuaCloseInstanceDungeonInQuest
LuaQuestChk
LuaGetLastTime
LuaGetTickCount
LuaSetLastTime
LuaSetElapsedTime
LuaSetAchievementLimit
LuaQuestInsertNpc
LuaSetCollectionItemMissionData
LuaSetDialLogMissionData"
LuaSetDeliverMissionData
LuaSetDeliverMissionData_EX
LuaInsertMissionNPC
LuaSetLimitTimeStartCondition
LuaGetQuestAchievementCount
LuaSetDifferentString
LuaSetCollectionItemMissionData_EX
LuaSetDependencyQuestCount
LuaSetDayOrNight
LuaStartDayLimit
LuaGetStep
LuaSetMissionData_EX
LuaQuestGiveEventPoint_EXP_Gold
LuaSetJobTypeStartCondition
LuaSetHwanLevel
LuaSetKillPlayerMissionData
LuaSetAchievedPoint
LuaSetAchievedSkillPont
LuaInsertDependancyQuestsOneClear
LuaSetRaceStartCodition
LuaGetQuestMenuResponse
LuaQuestAddItem_EXT
LuaGetCurRegionID
LuaCmpCodeName
LuaQuestSetStartHandler
LuaQuestSetDeleteHandler
LuaSetQuestCurPage
LuaQuestShowRewardWindow
LuaSetRealTime
LuaSetTalismanMissionData
LuaSetDivideType
LuaSetDisableQuest
LuaSetFlagRewardInProgress
LuaInsertMissionCompleteNpcList
LuaQuestGetCountEmptyInventory
I don't know the function of each of these functions,but it might be useful :P
05/07/2012 15:54 ÑõÑ_Ŝŧóp#24
seems interesting
05/07/2012 17:16 Shifty*#25
Well, time to learn this shiat ^^. Just gotta study the current scripts and try to learn from them.
05/07/2012 20:56 mrkuartx#26
just a question, can this script (event) be able to start the events from servers? btw thank you for that guide and all.! Nice Release =)
05/09/2012 19:08 ZiCo*#27
Awesome release , I tried to do it but I couldn't actually and I gave up.
Good Job.
05/10/2012 06:53 eldanger08#28
Did it xDD
Kill 10 DS Get a Title + 100GLobals ...
Titles is in Db guys not in the Quest.sct
05/10/2012 15:35 Stratti#29
Quote:
Originally Posted by eldanger08 View Post
Did it xDD
Kill 10 DS Get a Title + 100GLobals ...
Titles is in Db guys not in the Quest.sct
Nice to see that you are developing own quests ;)
05/15/2012 16:21 tamer15#30
Quote:
Originally Posted by Stratti View Post
[/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)

?