Jump to content

QuodDG

Members
  • Content Count

    0
  • Joined

  • Last visited


Reputation Activity

  1. Upvote
    QuodDG reacted to Dastgir in [GUIDE] Add Custom Quest (In Any Tab)   
    Hello Community,
     
    Yesterday, I was trying to make Quest Appear on other TAB's and result was successful.
     
    Prerequisite:
    You need latest ROClientside Repository : https://github.com/ROClientSide/Translation/ https://github.com/ROClientSide/Translation/commit/9d93ef1 (This Commit is necessary) you need Client >= 2014-10-22 (Haven't Tested with old clients, You can test and tell if it works )  
    Here's a Guide:
     
    questluafilelist.lub:
     
    You need 2 files, local_XYZquest_list and l_XYZ_list and in the folders as mentioned below:
    Add Following lines to questluafilelist.lub(at end of file) without EXTENSIONS as mentioned below:
    Add[[localquest\local_dastgirquest_list]] Add[[localquest\questinfo\l_dastgir_list]]  
    local_dastgirquest_list.lub(Sample Files, Modify to your needs):
    LOCAL_DastgirQuest_List = { { name = [[Dastgir Custom Quests]], imagefile = [[ep_test_sample.bmp]], list = { { name = [[Novice]], list = { { name =[[Test1]], scrfilename = [[DastgirQuest]], questID = 1019, }, { name =[[Test2]], scrfilename = [[DastgirQuest]], questID = 1017, } } }, { name = [[Quests 11~25]], list = { { name =[[11-15]], scrfilename = [[DastgirQuest]], questID = 1017, }, { name =[[16-20]], scrfilename = [[DastgirQuest]], questID = 1019, }, } } } } } _G.QuestTable.add(LOCAL_DastgirQuest_List, "EVENT")  
    It needs Following line at the bottom for compulsary
     
    _G.QuestTable.add(LOCAL_XYZQuest_List, "TAB") where TAB's are
    EVENT LOCAL EP NEW RECOMMENDED Replace LOCAL_XYZQuest_List with Table name at top of this file...
     
    l_dastgir_list.lub(Sample File, Modify to your needs):
    DastgirQuest_List = { [1019] = { NPCFromName = [[Dastgir]], NPCFromMap = [[new_1-1]], NPCFromSpr = [[4_M_01]], NPCFromX = 63, NPCFromY = 53, NPCToName = [[Dastgir]], NPCToMap = [[prontera]], NPCToSpr = [[4_M_01]], NPCToX = 86, NPCToY = 84, Item = [[]], PrizeItem = [[]], Title = [[Event QuestInfo ]], Info = [[Testing the Event.]], QuickInfo = [[QuickInfo.]], Hunt1 = [[]], Hunt2 = [[]], Hunt3 = [[]], Time = [[0]], LV = [[0]], }, [1017] = { NPCFromName = [[Dastgir-1]], NPCFromMap = [[prontera]], NPCFromSpr = [[4_BRICKPILE]], NPCFromX = 84, NPCFromY = 123, NPCToName = [[Dastgir-2]], NPCToMap = [[payon]], NPCToSpr = [[4_BOARD3]], NPCToX = 76, NPCToY = 114, Item = [[]], PrizeItem = [[]], Title = [[Event QuestInfo ]], Info = [[Testing the Event.]], QuickInfo = [[QuickInfo.]], Hunt1 = [[Alarm]], Hunt2 = [[]], Hunt3 = [[]], Time = [[0]], LV = [[0]], }, } _G.QuestTable.addList("DastgirQuest",DastgirQuest_List) In this file too, you need Following line in the end
    _G.QuestTable.addList("XYZQuest",XYZQuest_List) where XYZQuest_List is table_name(mentioned in first line of this file), (Please see the quotes)
     
     
    and that's it. put it into your GRF, and it will work
     
     
    NOTE: Many Functions are modified, so you would need quest_function.lub provided in the repository
     
    ScreenShot:

     
    Please Don't Remove credits in the quest_function file...
  2. Upvote
    QuodDG reacted to thanna in [GUIDE] Add Custom Quest (In Any Tab)   
    Hello there. Im using 2015-11-04aRagexe client.
     
    Edit:
    I manage to make it work. For everyone crashing on the item tag

    here is the fix

     
    local imagetag_front_startpos, imagetag_front_endpos = string.find(msg, [[<%s*image%s*=%s*"%d*"%s*>]]); Just replace the above line with the line below. local imagetag_front_startpos, imagetag_front_endpos = string.find(msg, [[<%s*image%s*=%s*\"%d*\"%s*>]]); Hope this helps everyone who are looking for the answer.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.