--- Lua ½ºÅ©¸³Æ® ¾Ïȣȭ function get_module_name() return "NPC_QuestClient" end -- Äù½ºÆ® ÀÇ·ÚÀΠŬ¸¯ ½Ã È£Ãâ ÇÔ¼ö function NPC_QuestClient_contact() -- Àӽà º¯¼ö ¼±¾ð°ú µ¿½Ã¿¡ NPC ID °¡Á®¿À±â local npc_id = get_npc_id() -- <À̸§ Ãâ·Â> °¢ NPC¿¡ µû¶ó ÀûÇÕÇÑ -- °¡ÀÌ¾Æ ÀÏ ¶§ (4024 Äù½ºÆ® ÀÇ·ÚÀÎ À¯¿Ï) if npc_id == 4024 then dlg_title("@90402401") -- µ¥¹Ù ÀÏ ¶§ (1024 Äù½ºÆ® ÀÇ·ÚÀÎ ·ÎÇϽº) elseif npc_id == 1024 then dlg_title("@90102401") -- ¾Æ¼ö¶ó ÀÏ ¶§ (2024 Äù½ºÆ® ÀÇ·ÚÀÎ Àױ׸¶¸£) elseif npc_id == 2024 then dlg_title("@90202401") -- ½ÃÅ©·çÆ® ÀÏ ¶§ (7024 Äù½ºÆ® ÀÇ·ÚÀÎ »ç¾Æ) elseif npc_id == 7024 then dlg_title("@90702401") end -- if ³¡ -- <´ë»ç Ãâ·Â> °¢ NPC¿¡ µû¶ó ÀûÇÕÇÑ -- °¡ÀÌ¾Æ ÀÏ ¶§ (4024 Äù½ºÆ® ÀÇ·ÚÀÎ À¯¿Ï) if npc_id == 4024 then dlg_text("@90402402") -- µ¥¹Ù ÀÏ ¶§ (1024 Äù½ºÆ® ÀÇ·ÚÀÎ ·ÎÇϽº) elseif npc_id == 1024 then dlg_text("@90102402") -- ¾Æ¼ö¶ó ÀÏ ¶§ (2024 Äù½ºÆ® ÀÇ·ÚÀÎ Àױ׸¶¸£) elseif npc_id == 2024 then dlg_text("@90202402") -- ½ÃÅ©·çÆ® ÀÏ ¶§ (7024 Äù½ºÆ® ÀÇ·ÚÀÎ »ç¾Æ) elseif npc_id == 7024 then if is_premium() then dlg_text("@90702402") else dlg_text_without_quest_menu( "@90700118" ) end end -- if ³¡ -- <°øÅë ¸Þ´º> -- ´ëÈ­ Á¾·á dlg_menu( "@90010002", "" ) -- ´ÙÀ̾ó·Î±× Ãâ·ÂÇϱâ dlg_show() end-- Æã¼Ç ³¡ -- ·£´ý Äù½ºÆ® ¼ö¶ô½Ã ³ª¿À´Â ´ë»ç function NPC_Random_Quest_Start() -- Àӽà º¯¼ö ¼±¾ð°ú µ¿½Ã¿¡ NPC ID °¡Á®¿À±â local npc_id = get_npc_id() -- <À̸§ Ãâ·Â> °¢ NPC¿¡ µû¶ó ÀûÇÕÇÑ -- °¡ÀÌ¾Æ ÀÏ ¶§ (4024 Äù½ºÆ® ÀÇ·ÚÀÎ À¯¿Ï) if npc_id == 4024 then dlg_title("@90402401") -- µ¥¹Ù ÀÏ ¶§ (1024 Äù½ºÆ® ÀÇ·ÚÀÎ ·ÎÇϽº) elseif npc_id == 1024 then dlg_title("@90102401") -- ¾Æ¼ö¶ó ÀÏ ¶§ (2024 Äù½ºÆ® ÀÇ·ÚÀÎ Àױ׸¶¸£) elseif npc_id == 2024 then dlg_title("@90202401") -- ½ÃÅ©·çÆ® ÀÏ ¶§ (7024 Äù½ºÆ® ÀÇ·ÚÀÎ »ç¾Æ) elseif npc_id == 7024 then dlg_title("@90702401") end -- if ³¡ -- <¼ö¶ô¸µÅ© Ãâ·Â> ³»¿ë º¯È¯À» À§ÇØ ·£´ýÄù½ºÆ® ¼ö¶ô¸µÅ©¸¦ ºÒ·¯¿À´Â ¹æ¹ý : quest_text_without_quest_menu( quest_id, quest_text_id ) -- <¸¶Áö¸·À¸·Î ¼ö¶ôÇÑ Äù½ºÆ® ID üũ> ·¹º§¿¡ µû¶ó Äù½ºÆ® ID°¡ ºÐ·ùµÈ °ÍÀ» üũÇÏ´Â ÇÔ¼ö : code = get_last_accept_quest() local code = get_last_accept_quest(); -- °¡ÀÌ¾Æ ÀÏ ¶§ (4024 Äù½ºÆ® ÀÇ·ÚÀÎ À¯¿Ï) if npc_id == 4024 then quest_text_without_quest_menu( code, 90402406 ) -- µ¥¹Ù ÀÏ ¶§ (1024 Äù½ºÆ® ÀÇ·ÚÀÎ ·ÎÇϽº) elseif npc_id == 1024 then quest_text_without_quest_menu( code, 90102406 ) -- ¾Æ¼ö¶ó ÀÏ ¶§ (2024 Äù½ºÆ® ÀÇ·ÚÀÎ Àױ׸¶¸£) elseif npc_id == 2024 then quest_text_without_quest_menu( code, 90202406 ) -- ½ÃÅ©·çÆ® ÀÏ ¶§ (7024 Äù½ºÆ® ÀÇ·ÚÀÎ »ç¾Æ) elseif npc_id == 7024 then if is_premium() then quest_text_without_quest_menu( code, 90702406 ) else dlg_text_without_quest_menu( "@90700118" ) end end -- if ³¡ -- <°øÅë ¸Þ´º> -- ´ëÈ­ Á¾·á dlg_menu( "@90010002", "" ) -- ´ÙÀ̾ó·Î±× Ãâ·ÂÇϱâ dlg_show() end-- Æã¼Ç ³¡ -- NPC_Quest_Lakcity_Highpriest ¶óÅ©½Ã °íÀ§ ½Å°ü ¶ó¸£°¥ -- NPC_Quest_Fairywood_Forestranger ¿äÁ¤ÀÇ ½£ ½£Áö±â ¿¡¶õ -- NPC_Quest_Katan_Councilmessenger īź Àå·Îȸ Àü·É Á¨ -- NPC_Quest_Cremationground_Shaman È­ÀåÅÍ ¹«³à Á¦À̳ª -- NPC_Quest_Horizon_Questmerchant È£¶óÀÌÁð ±³¿ª»ó ¿¤¹Î -- NPC_Quest_Templarheadquarter_Templar ÅÛÇ÷¯ ¿ÀÀ¯ -- NPC_Quest_Moonfirecemetery_Fighter Åõ»ç ·ù¿£ -- NPC_Quest_Desert_Adventurer ÀÏ±Þ ¸ðÇè°¡ ¶ó¿ì±Û -- NPC_Quest_Desert_Inquirer Á¶»ç´ë ¹Ì¿À -- NPC_Merchant_Etc_Desert ÀâÈ­»óÀÎ ¼¼ÀÌ½Ã¾Æ -- NPC_Quest_Horizon_Hunter È£¶óÀÌÁð »ç³É²Û ÄË --============================================================ --=============== ¶óÅ©½Ã °íÀ§ ½Å°ü ¶ó¸£°¥ --============================================================ function NPC_Quest_Lakcity_Highpriest_init() cprint( "!°íÀ§ ½Å°ü ¶ó¸£°¥ °¡µ¿" ) set_npc_name( "@90108100" ) end function NPC_Quest_Lakcity_Highpriest_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90108101" ) dlg_text( "@90108102" ) -- ´ëÈ­Á¾·á dlg_menu( "@70010600", "enter_dungeon(10600)" ) dlg_menu( "@90010002", " " ) dlg_show() end function Quest_Link_109_1() local count = find_item( 1100303 ) if count == 0 then insert_item( 1100303, 1 ) else end end function Quest_Link_111_1() local count = find_item( 1100304 ) if count == 0 then insert_item( 1100304, 1 ) else end end --============================================================ --=============== ¿äÁ¤ÀÇ ½£ ½£Áö±â ¿¡¶õ --============================================================ function NPC_Quest_Fairywood_Forestranger_init() cprint( "!½£Áö±â ¿¡¶õ °¡µ¿" ) set_npc_name( "@90108200" ) end function NPC_Quest_Fairywood_Forestranger_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90108201" ) dlg_text( "@90108202" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== īź Àå·Îȸ Àü·É Á¨ --============================================================ function NPC_Quest_Katan_Councilmessenger_init() cprint( "!Àå·Îȸ Àü·É Á¨ °¡µ¿" ) set_npc_name( "@90208100" ) end function NPC_Quest_Katan_Councilmessenger_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90208101" ) dlg_text( "@90208102" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== È­ÀåÅÍ ¹«³à Á¦À̳ª --============================================================ function NPC_Quest_Cremationground_Shaman_init() cprint( "!¹«³à Á¦À̳ª °¡µ¿" ) set_npc_name( "@90208200" ) end function NPC_Quest_Cremationground_Shaman_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90208201" ) -- Äù½ºÆ® »óÅ üũ get_quest_progress(ID) -- ¹Ýȯ°ª -1 : ¾Æ¹«°Íµµ ¾Æ´Ô / 0 : ¼ö¶ô°¡ / 1 : ¼öÇàÁß / 2 : Á¾·á°¡´É / 255 : À̹ÌÁ¾·á local quest_progress100 = get_quest_progress(1081) local quest_progress3351 = get_quest_progress(3351) -- <(version:7.3)>°­Ã¶ÀÇ ¿Õ local quest_progress3613 = get_quest_progress(3613) -- <(version:8.1)>±ä±ÞÈ£Ãâ -- Äù½ºÆ® Á¾·á½Ã ´ë»ç if quest_progress100 == 255 then dlg_text( "@90208213" ) -- Äù½ºÆ® ¼öÇà Àü, ¼öÇà Áß ´ë»ç else dlg_text( "@90208202" ) end if quest_progress3613 == 2 then dlg_text( "@90605478" ) -- Äù½ºÆ® ¼öÇà Àü, ¼öÇà Áß ´ë»ç else dlg_text( "@90208202" ) end if quest_progress3351 == 1 then dlg_menu( "@90604779", "open_market( 'tp_quest' )" ) end -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end function Quest_Link_107_1() local count = find_item( 1000032 ) if count == 0 then insert_item( 1000032, 1 ) else end end --============================================================ --=============== È£¶óÀÌÁð ±³¿ª»ó ¿¤¹Î --============================================================ function NPC_Quest_Horizon_Questmerchant_init() cprint( "!±³¿ª»ó ¿¤¹Î °¡µ¿" ) set_npc_name( "@90408100" ) end function NPC_Quest_Horizon_Questmerchant_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90408101" ) dlg_text( "@90408102" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ÅÛÇ÷¯ ÇìµåÄõÅÍ ÅÛÇ÷¯ ¿ÀÀ¯ --============================================================ function NPC_Quest_Templarheadquarter_Templar_init() cprint( "!ÅÛÇ÷¯ ¿ÀÀ¯ °¡µ¿" ) set_npc_name( "@90108300" ) end function NPC_Quest_Templarheadquarter_Templar_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90108301" ) dlg_text( "@90108302" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ¿ùÈ­ÀÇ °øµ¿¹¦Áö Åõ»ç ·ù¿£ --============================================================ function NPC_Quest_Moonfirecemetery_Fighter_init() cprint( "!Åõ»ç ·ù¿£ °¡µ¿" ) set_npc_name( "@90408200" ) end function NPC_Quest_Moonfirecemetery_Fighter_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90408201" ) -- Äù½ºÆ® »óÅ üũ get_quest_progress(ID) -- ¹Ýȯ°ª -1 : ¾Æ¹«°Íµµ ¾Æ´Ô / 0 : ¼ö¶ô°¡ / 1 : ¼öÇàÁß / 2 : Á¾·á°¡´É / 255 : À̹ÌÁ¾·á local quest_progress101 = get_quest_progress(1084) -- Äù½ºÆ® Á¾·á½Ã ´ë»ç if quest_progress101 == 255 then dlg_text( "@90408212" ) -- Äù½ºÆ® ¼öÇà Àü, ¼öÇà Áß ´ë»ç else dlg_text( "@90408202" ) end -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end function Quest_Link_106_1() local count = find_item( 1000028 ) if count == 0 then insert_item( 1000028, 1 ) else end end function Quest_Link_108_1() local count = find_item( 1000029 ) if count == 0 then insert_item( 1000029, 1 ) else end end --============================================================ --=============== ¼¼¸®¿ì »ç¸· ÀÏ±Þ ¸ðÇè°¡ ¶ó¿ì±Û --============================================================ function NPC_Quest_Desert_Adventurer_init() cprint( "!ÀÏ±Þ ¸ðÇè°¡ ¶ó¿ì±Û °¡µ¿" ) set_npc_name( "@90508100" ) end function NPC_Quest_Desert_Adventurer_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90508101" ) -- Äù½ºÆ® »óÅ üũ get_quest_progress(ID) -- ¹Ýȯ°ª -1 : ¾Æ¹«°Íµµ ¾Æ´Ô / 0 : ¼ö¶ô°¡ / 1 : ¼öÇàÁß / 2 : Á¾·á°¡´É / 255 : À̹ÌÁ¾·á local quest_progress103 = get_quest_progress(1086) -- Äù½ºÆ® Á¾·á½Ã ´ë»ç if quest_progress103 == 255 then dlg_text( "@90508109" ) -- Äù½ºÆ® ¼öÇà Àü, ¼öÇà Áß ´ë»ç else dlg_text( "@90508102" ) end -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ¼¼¸®¿ì »ç¸· Á¶»ç´ë ¹Ì¿À --============================================================ function NPC_Quest_Desert_Inquirer_init() cprint( "!Á¶»ç´ë ¹Ì¿À °¡µ¿" ) set_npc_name( "@90508200" ) end function NPC_Quest_Desert_Inquirer_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90508201" ) dlg_text( "@90508202" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ -- <<<<<< ¼¼¸®¿ì »ç¸· ÀâÈ­»óÀÎ ¼¼ÀÌ½Ã¾Æ >>>>>> --============================================================ function NPC_Merchant_Etc_Desert_init() cprint( "!ÀâÈ­»óÀÎ ¼¼ÀÌ½Ã¾Æ °¡µ¿" ) set_npc_name( "@90508300" ) end function NPC_Merchant_Etc_Desert_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90508301" ) -- Äù½ºÆ® »óÅ üũ get_quest_progress(ID) -- ¹Ýȯ°ª -1 : ¾Æ¹«°Íµµ ¾Æ´Ô / 0 : ¼ö¶ô°¡ / 1 : ¼öÇàÁß / 2 : Á¾·á°¡´É / 255 : À̹ÌÁ¾·á local quest_progress102 = get_quest_progress(1091) -- Äù½ºÆ® Á¾·á½Ã ´ë»ç if quest_progress102 == 255 then dlg_text( "@90508307" ) -- Äù½ºÆ® ¼öÇà Àü, ¼öÇà Áß ´ë»ç else dlg_text( "@90508302" ) end -- ÀâÈ­ ¸Þ´º ¹× ´ëÈ­ Á¾·á dlg_menu( "@90508306", "open_market( 'sec_sever_merchant_etc' )" ) dlg_menu( "@90010002", '' ) dlg_show() end -- NPC_Quest_Stump_Woodcutter ¹ú¸ñÀå ¹ú¸ñ²Û Å©¶ó¿ì -- NPC_Quest_Lizardhabitat_Monsterresearcher ¸®ÀÚµå¸Ç ¼­½ÄÁö ¸ó½ºÅÍ ¿¬±¸¿ø ³×µå¶ô -- NPC_Quest_Ivorytower_Guard »ó¾ÆÅ¾Áö±â º£¸£³ª¸£ -- NPC_Quest_Woodworker ¸ñ¼ö »çÀÌÆÛµå -- NPC_Quest_Assassinguild_Assassin ¾î½ê½Å ¶ó¹Ð -- NPC_Quest_crystalmountain_madman ¹ÌÄ¡±¤ÀÌ ÇØ·²µå --============================================================ --=============== ±×·çÅͱ⠹ú¸ñÀå ¹ú¸ñ²Û Å©¶ó¿ì --============================================================ function NPC_Quest_Stump_Woodcutter_init() cprint( "!¹ú¸ñ²Û Å©¶ó¿ì °¡µ¿" ) set_npc_name( "@90108400" ) end function NPC_Quest_Stump_Woodcutter_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90108401" ) -- Äù½ºÆ® »óÅ üũ get_quest_progress(ID) -- ¹Ýȯ°ª -1 : ¾Æ¹«°Íµµ ¾Æ´Ô / 0 : ¼ö¶ô°¡ / 1 : ¼öÇàÁß / 2 : Á¾·á°¡´É / 255 : À̹ÌÁ¾·á local quest_progress108 = get_quest_progress(1101) -- Äù½ºÆ® Á¾·á½Ã ´ë»ç if quest_progress108 == 255 then dlg_text( "@90108409" ) -- Äù½ºÆ® ¼öÇà Àü, ¼öÇà Áß ´ë»ç else dlg_text( "@90108402" ) end -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ¸®ÀÚµå¸Ç ¼­½ÄÁö ¸ó½ºÅÍ ¿¬±¸¿ø ³×µå¶ô --============================================================ function NPC_Quest_Lizardhabitat_Monsterresearcher_init() cprint( "!¸ó½ºÅÍ ¿¬±¸¿ø ³×µå¶ô °¡µ¿" ) set_npc_name( "@90108500" ) end function NPC_Quest_Lizardhabitat_Monsterresearcher_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90108501" ) -- Äù½ºÆ® »óÅ üũ get_quest_progress(ID) -- ¹Ýȯ°ª -1 : ¾Æ¹«°Íµµ ¾Æ´Ô / 0 : ¼ö¶ô°¡ / 1 : ¼öÇàÁß / 2 : Á¾·á°¡´É / 255 : À̹ÌÁ¾·á local quest_progress104 = get_quest_progress(1108) -- Äù½ºÆ® Á¾·á½Ã ´ë»ç if quest_progress104 == 255 then dlg_text( "@90108515" ) -- Äù½ºÆ® ¼öÇà Àü, ¼öÇà Áß ´ë»ç else dlg_text( "@90108502" ) end -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== »ó¾ÆÅ¾Áö±â º£¸£³ª¸£ --============================================================ function NPC_Quest_Ivorytower_Guard_init() cprint( "!»ó¾ÆÅ¾Áö±â º£¸£³ª¸£ °¡µ¿" ) set_npc_name( "@90108600" ) end function NPC_Quest_Ivorytower_Guard_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90108601" ) dlg_text( "@90108602" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end function Quest_Link_104_1() local count = find_item( 1000025 ) if count == 0 then insert_item( 1000025, 1 ) else end end --============================================================ --=============== ¸ñ¼ö »çÀÌÆÛµå --============================================================ function NPC_Quest_Woodworker_init() cprint( "!¸ñ¼ö »çÀÌÆÛµå °¡µ¿" ) set_npc_name( "@90208300" ) end function NPC_Quest_Woodworker_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90208301" ) dlg_text( "@90208302" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ¾î½ê½Å ±æµå ¾î½ê½Å ¶ó¹Ð --============================================================ function NPC_Quest_Assassinguild_Assassin_init() cprint( "!¾î½ê½Å ¶ó¹Ð °¡µ¿" ) set_npc_name( "@90208400" ) end function NPC_Quest_Assassinguild_Assassin_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90208401" ) dlg_text( "@90208402" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end function Quest_Link_101_1() local count = find_item( 1000031 ) if count == 0 then insert_item( 1000031, 1 ) else end end --============================================================ --=============== ¼öÁ¤ÀÇ »ê ¹ÌÄ¡±¤ÀÌ ÇØ·²µå --============================================================ function NPC_Quest_crystalmountain_madman_init() cprint( "!¹ÌÄ¡±¤ÀÌ ÇØ·²µå °¡µ¿" ) set_npc_name( "@90508400" ) end function NPC_Quest_crystalmountain_madman_contact() -- Äù½ºÆ® »óÅ üũ get_quest_progress(ID) -- ¹Ýȯ°ª -1 : ¾Æ¹«°Íµµ ¾Æ´Ô / 0 : ¼ö¶ô°¡ / 1 : ¼öÇàÁß / 2 : Á¾·á°¡´É / 255 : À̹ÌÁ¾·á local quest_progress000 = get_quest_progress(1225) -- Äù½ºÆ® Á¾·á½Ã ´ë»ç if quest_progress000 == 255 then dlg_title( "@90508401" ) dlg_text( "@90508418" ) -- Äù½ºÆ® ¼öÇà Àü, ¼öÇà Áß ´ë»ç else -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90508401" ) dlg_text( "@90508402" ) end -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --------------------------------- --- quest_progress108±îÁö »ç¿ë--- --------------------------------- -- NPC_Quest_Horizon_Hunter È£¶óÀÌÁð »ç³É²Û ÄË --============================================================ --=============== È£¶óÀÌÁð »ç³É²Û ÄË --============================================================ function NPC_Quest_Horizon_Hunter_init() cprint( "!»ç³É²Û ÄË °¡µ¿" ) set_npc_name( "@90508500" ) end function NPC_Quest_Horizon_Hunter_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90508501" ) dlg_text( "@90508502" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ¿ùµåÄÅ À̺¥Æ® NPC --============================================================ --COUNT01 = ÆÄ --COUNT02 = ÀÌ --COUNT03 = ÆÃ --COUNT04 = Å --COUNT05 = ±Ø --COUNT06 = Àü --COUNT07 = »ç --COUNT08 = ÇÊ --COUNT09 = ½Â --COUNT10 = ÄÚ --COUNT11 = ¸® --COUNT12 = ¾Æ -- ¿ùµåÄÅ À̺¥Æ® NPC Ŭ¸¯ ½Ã È£Ãâ ÇÔ¼ö function NPC_event_contact() -- Àӽà º¯¼ö ¼±¾ð°ú µ¿½Ã¿¡ NPC ID °¡Á®¿À±â local npc_id = get_npc_id() -- <À̸§ Ãâ·Â> °¢ NPC¿¡ µû¶ó ÀûÇÕÇÑ -- À̺¥Æ® µµ¿ì¹Ì ÄÚ¸®¾Ó À϶§ if npc_id == 7501 then dlg_title("@90750101") -- À̺¥Æ® µµ¿ì¹Ì ½ºÀ§Áî À϶§ elseif npc_id == 7502 then dlg_title("@90750201") -- À̺¥Æ® µµ¿ì¹Ì ÇÁ¶õ½º À϶§ elseif npc_id == 7503 then dlg_title("@90750301") -- À̺¥Æ® µµ¿ì¹Ì Å䱸 À϶§ elseif npc_id == 7504 then dlg_title("@90750401") -- À̺¥Æ® µµ¿ì¹Ì »çÄ« À϶§ elseif npc_id == 7505 then dlg_title("@90750501") end -- <´ë»ç Ãâ·Â> °¢ NPC¿¡ µû¶ó ÀûÇÕÇÑ -- À̺¥Æ® µµ¿ì¹Ì ÄÚ¸®¾Ó À϶§ if npc_id == 7501 then dlg_text("@90750102") -- À̺¥Æ® µµ¿ì¹Ì ½ºÀ§Áî À϶§ elseif npc_id == 7502 then dlg_text("@90750202") -- À̺¥Æ® µµ¿ì¹Ì ÇÁ¶õ½º À϶§ elseif npc_id == 7503 then dlg_text("@90750302") -- À̺¥Æ® µµ¿ì¹Ì Å䱸 À϶§ elseif npc_id == 7504 then dlg_text("@90750402") -- À̺¥Æ® µµ¿ì¹Ì »çÄ« À϶§ elseif npc_id == 7505 then dlg_text("@90750502") end -- <°øÅë ¸Þ´º> -- ¿ùµåÄÅ À̺¥Æ®¿¡ °üÇØ ¼³¸íÇØÁØ´Ù dlg_menu( "@90010109", 'worldcupEvent_explanation()' ) -- Ä«µå¸¦ º¸»ó ¾ÆÀÌÅÛÀ¸·Î ±³È¯ÇÑ´Ù. dlg_menu( "@90010110", 'worldcupEvent_card_to_item()' ) --´ëÈ­ Á¾·á dlg_menu( "@90010002", "" ) -- ´ÙÀ̾ó·Î±× Ãâ·ÂÇϱâ dlg_show() end -- ¿ùµåÄÅ À̺¥Æ®¿¡ °üÇØ ¼³¸íÇÑ´Ù function worldcupEvent_explanation() -- À̺¥Æ® ¼³¸í dlg_text("@90750103") --µ¹¾Æ°¡±â dlg_menu( "@90010003", 'NPC_event_contact()' ) --´ëÈ­ Á¾·á dlg_menu( "@90010002", "" ) -- ´ÙÀ̾ó·Î±× Ãâ·ÂÇϱâ dlg_show() end -- Ä«µå¸¦ ¾ÆÀÌÅÛÀ¸·Î ±³È¯ÇÑ´Ù. function worldcupEvent_card_to_item() -- Àӽà º¯¼ö ¼±¾ð°ú µ¿½Ã¿¡ NPC ID °¡Á®¿À±â local npc_id = get_npc_id() -- <À̸§ Ãâ·Â> °¢ NPC¿¡ µû¶ó ÀûÇÕÇÑ -- À̺¥Æ® µµ¿ì¹Ì ÄÚ¸®¾Ó À϶§ if npc_id == 7501 then dlg_title("@90750101") -- À̺¥Æ® µµ¿ì¹Ì ½ºÀ§Áî À϶§ elseif npc_id == 7502 then dlg_title("@90750201") -- À̺¥Æ® µµ¿ì¹Ì ÇÁ¶õ½º À϶§ elseif npc_id == 7503 then dlg_title("@90750301") -- À̺¥Æ® µµ¿ì¹Ì Å䱸 À϶§ elseif npc_id == 7504 then dlg_title("@90750401") -- À̺¥Æ® µµ¿ì¹Ì »çÄ« À϶§ elseif npc_id == 7505 then dlg_title("@90750501") end -- ¹®ÀÚ Ä«¿îÆ® local count = {} local item_id = 2000401 -- ¸ÂÃá ¹®ÀÚ ¼Â local event_set = 0 for i = 1, 12 do count[i] = find_item( item_id ) -- Ä«µå°¡ ¾øÀ¸¸é ÇöÀç ¸î°³Â° ÀÎÁö üũ ÇÏ°í ³ª°¡¸®. if count[i] == 0 then if i < 3 then event_set = 0 elseif count[3] ~=0 and i < 7 then event_set = 1 end -- ¹ÛÀ¸·Î ºüÁ®³ª°£´Ù. break end -- 3°³Â° ¸Â°Ô µÇ¸é(¾È ¸ÂÀ¸¸é ¾Ë¾Æ¼­ ºüÁ®³ª°¡´Ï±î.) ¼¼Æ® 1 ¿Ï¼º if count[3] ~=0 and i == 3 then event_set = 1 end -- 7°³Â° ¸Â°Ô µÇ¸é ¼¼Æ® 2¿Ï¼º if count[7] ~=0 and i == 7 then event_set = 2 end -- 12°³Â° ¸Â°Ô µÇ¸é ¼¼Æ® 3 ¿Ï¼º. if count[12] ~=0 and i == 12 then event_set = 3 end item_id = item_id + 1 end -- <´ë»ç Ãâ·Â> °¢ NPC¿¡ µû¶ó ÀûÇÕÇÑ if event_set == 0 then -- À̺¥Æ® µµ¿ì¹Ì ÄÚ¸®¾Ó À϶§ if npc_id == 7501 then dlg_text("@90750110") -- À̺¥Æ® µµ¿ì¹Ì ½ºÀ§Áî À϶§ elseif npc_id == 7502 then dlg_text("@90750210") -- À̺¥Æ® µµ¿ì¹Ì ÇÁ¶õ½º À϶§ elseif npc_id == 7503 then dlg_text("@90750310") -- À̺¥Æ® µµ¿ì¹Ì Å䱸 À϶§ elseif npc_id == 7504 then dlg_text("@90750410") -- À̺¥Æ® µµ¿ì¹Ì »çÄ« À϶§ elseif npc_id == 7505 then dlg_text("@90750510") end else -- À̺¥Æ® µµ¿ì¹Ì ÄÚ¸®¾Ó À϶§ if npc_id == 7501 then dlg_text("@90750104") -- À̺¥Æ® µµ¿ì¹Ì ½ºÀ§Áî À϶§ elseif npc_id == 7502 then dlg_text("@90750204") -- À̺¥Æ® µµ¿ì¹Ì ÇÁ¶õ½º À϶§ elseif npc_id == 7503 then dlg_text("@90750304") -- À̺¥Æ® µµ¿ì¹Ì Å䱸 À϶§ elseif npc_id == 7504 then dlg_text("@90750404") -- À̺¥Æ® µµ¿ì¹Ì »çÄ« À϶§ elseif npc_id == 7505 then dlg_text("@90750504") end end -- ¼¼Æ®°¡ ¿Ï¼ºµÇ¾î ÀÖ´Ù¸é... if event_set >= 1 then dlg_menu( "ÆÄÀÌÆÃ ¼ÂÆ®", 'WorldcupEvent_question_1()' ) end if event_set >= 2 then dlg_menu( "űØÀü»ç ¼ÂÆ®", 'WorldcupEvent_question_2()' ) end if event_set >= 3 then dlg_menu( "ÇʽÂÄÚ¸®¾Æ ¼ÂÆ®", 'WorldcupEvent_question_3()' ) end --´ëÈ­ Á¾·á dlg_menu( "@90010002", "" ) -- ´ÙÀ̾ó·Î±× Ãâ·ÂÇϱâ dlg_show() end -- Ä«µå ±³È¯ ÃÖÁ¾ È®ÀÎ(ÆÄÀÌÆÃ ¼ÂÆ®) function WorldcupEvent_question_1() -- Àӽà º¯¼ö ¼±¾ð°ú µ¿½Ã¿¡ NPC ID °¡Á®¿À±â local npc_id = get_npc_id() -- <À̸§ Ãâ·Â> °¢ NPC¿¡ µû¶ó ÀûÇÕÇÑ -- À̺¥Æ® µµ¿ì¹Ì ÄÚ¸®¾Ó À϶§ if npc_id == 7501 then dlg_title("@90750101") -- À̺¥Æ® µµ¿ì¹Ì ½ºÀ§Áî À϶§ elseif npc_id == 7502 then dlg_title("@90750201") -- À̺¥Æ® µµ¿ì¹Ì ÇÁ¶õ½º À϶§ elseif npc_id == 7503 then dlg_title("@90750301") -- À̺¥Æ® µµ¿ì¹Ì Å䱸 À϶§ elseif npc_id == 7504 then dlg_title("@90750401") -- À̺¥Æ® µµ¿ì¹Ì »çÄ« À϶§ elseif npc_id == 7505 then dlg_title("@90750501") end -- <´ë»ç Ãâ·Â> °¢ NPC¿¡ µû¶ó ÀûÇÕÇÑ -- À̺¥Æ® µµ¿ì¹Ì ÄÚ¸®¾Ó À϶§ if npc_id == 7501 then dlg_text("@90750105") -- À̺¥Æ® µµ¿ì¹Ì ½ºÀ§Áî À϶§ elseif npc_id == 7502 then dlg_text("@90750205") -- À̺¥Æ® µµ¿ì¹Ì ÇÁ¶õ½º À϶§ elseif npc_id == 7503 then dlg_text("@90750305") -- À̺¥Æ® µµ¿ì¹Ì Å䱸 À϶§ elseif npc_id == 7504 then dlg_text("@90750405") -- À̺¥Æ® µµ¿ì¹Ì »çÄ« À϶§ elseif npc_id == 7505 then dlg_text("@90750505") end --È®ÀÎ ¹öư dlg_menu( "È®ÀÎ", 'WorldcupEvent_Item_change(1)' ) -- Ãë¼Ò ¹öư dlg_menu( "Ãë¼Ò", 'worldcupEvent_card_to_item()' ) -- ´ÙÀ̾ó·Î±× Ãâ·ÂÇϱâ dlg_show() end -- Ä«µå ±³È¯ ÃÖÁ¾ È®ÀÎ(űØÀü»ç ¼ÂÆ®) function WorldcupEvent_question_2() -- Àӽà º¯¼ö ¼±¾ð°ú µ¿½Ã¿¡ NPC ID °¡Á®¿À±â local npc_id = get_npc_id() -- <À̸§ Ãâ·Â> °¢ NPC¿¡ µû¶ó ÀûÇÕÇÑ -- À̺¥Æ® µµ¿ì¹Ì ÄÚ¸®¾Ó À϶§ if npc_id == 7501 then dlg_title("@90750101") -- À̺¥Æ® µµ¿ì¹Ì ½ºÀ§Áî À϶§ elseif npc_id == 7502 then dlg_title("@90750201") -- À̺¥Æ® µµ¿ì¹Ì ÇÁ¶õ½º À϶§ elseif npc_id == 7503 then dlg_title("@90750301") -- À̺¥Æ® µµ¿ì¹Ì Å䱸 À϶§ elseif npc_id == 7504 then dlg_title("@90750401") -- À̺¥Æ® µµ¿ì¹Ì »çÄ« À϶§ elseif npc_id == 7505 then dlg_title("@90750501") end -- <´ë»ç Ãâ·Â> °¢ NPC¿¡ µû¶ó ÀûÇÕÇÑ -- À̺¥Æ® µµ¿ì¹Ì ÄÚ¸®¾Ó À϶§ if npc_id == 7501 then dlg_text("@90750106") -- À̺¥Æ® µµ¿ì¹Ì ½ºÀ§Áî À϶§ elseif npc_id == 7502 then dlg_text("@90750206") -- À̺¥Æ® µµ¿ì¹Ì ÇÁ¶õ½º À϶§ elseif npc_id == 7503 then dlg_text("@90750306") -- À̺¥Æ® µµ¿ì¹Ì Å䱸 À϶§ elseif npc_id == 7504 then dlg_text("@90750406") -- À̺¥Æ® µµ¿ì¹Ì »çÄ« À϶§ elseif npc_id == 7505 then dlg_text("@90750506") end --È®ÀÎ ¹öư dlg_menu( "È®ÀÎ", 'WorldcupEvent_Item_change(2)' ) -- Ãë¼Ò ¹öư dlg_menu( "Ãë¼Ò", 'worldcupEvent_card_to_item()' ) -- ´ÙÀ̾ó·Î±× Ãâ·ÂÇϱâ dlg_show() end -- Ä«µå ±³È¯ ÃÖÁ¾ È®ÀÎ(ÇʽÂÄÚ¸®¾Æ ¼ÂÆ®) function WorldcupEvent_question_3() -- Àӽà º¯¼ö ¼±¾ð°ú µ¿½Ã¿¡ NPC ID °¡Á®¿À±â local npc_id = get_npc_id() -- <À̸§ Ãâ·Â> °¢ NPC¿¡ µû¶ó ÀûÇÕÇÑ -- À̺¥Æ® µµ¿ì¹Ì ÄÚ¸®¾Ó À϶§ if npc_id == 7501 then dlg_title("@90750101") -- À̺¥Æ® µµ¿ì¹Ì ½ºÀ§Áî À϶§ elseif npc_id == 7502 then dlg_title("@90750201") -- À̺¥Æ® µµ¿ì¹Ì ÇÁ¶õ½º À϶§ elseif npc_id == 7503 then dlg_title("@90750301") -- À̺¥Æ® µµ¿ì¹Ì Å䱸 À϶§ elseif npc_id == 7504 then dlg_title("@90750401") -- À̺¥Æ® µµ¿ì¹Ì »çÄ« À϶§ elseif npc_id == 7505 then dlg_title("@90750501") end -- <´ë»ç Ãâ·Â> °¢ NPC¿¡ µû¶ó ÀûÇÕÇÑ -- À̺¥Æ® µµ¿ì¹Ì ÄÚ¸®¾Ó À϶§ if npc_id == 7501 then dlg_text("@90750107") -- À̺¥Æ® µµ¿ì¹Ì ½ºÀ§Áî À϶§ elseif npc_id == 7502 then dlg_text("@90750207") -- À̺¥Æ® µµ¿ì¹Ì ÇÁ¶õ½º À϶§ elseif npc_id == 7503 then dlg_text("@90750307") -- À̺¥Æ® µµ¿ì¹Ì Å䱸 À϶§ elseif npc_id == 7504 then dlg_text("@90750407") -- À̺¥Æ® µµ¿ì¹Ì »çÄ« À϶§ elseif npc_id == 7505 then dlg_text("@90750507") end --È®ÀÎ ¹öư dlg_menu( "È®ÀÎ", 'WorldcupEvent_Item_change(3)' ) -- Ãë¼Ò ¹öư dlg_menu( "Ãë¼Ò", 'worldcupEvent_card_to_item()' ) -- ´ÙÀ̾ó·Î±× Ãâ·ÂÇϱâ dlg_show() end -- ¾ÆÀÌÅÛ Áö±Þ function WorldcupEvent_Item_change( event_set ) -- Àӽà º¯¼ö ¼±¾ð°ú µ¿½Ã¿¡ NPC ID °¡Á®¿À±â local npc_id = get_npc_id() -- <À̸§ Ãâ·Â> °¢ NPC¿¡ µû¶ó ÀûÇÕÇÑ -- À̺¥Æ® µµ¿ì¹Ì ÄÚ¸®¾Ó À϶§ if npc_id == 7501 then dlg_title("@90750101") -- À̺¥Æ® µµ¿ì¹Ì ½ºÀ§Áî À϶§ elseif npc_id == 7502 then dlg_title("@90750201") -- À̺¥Æ® µµ¿ì¹Ì ÇÁ¶õ½º À϶§ elseif npc_id == 7503 then dlg_title("@90750301") -- À̺¥Æ® µµ¿ì¹Ì Å䱸 À϶§ elseif npc_id == 7504 then dlg_title("@90750401") -- À̺¥Æ® µµ¿ì¹Ì »çÄ« À϶§ elseif npc_id == 7505 then dlg_title("@90750501") end -- <´ë»ç Ãâ·Â> °¢ NPC¿¡ µû¶ó ÀûÇÕÇÑ -- À̺¥Æ® µµ¿ì¹Ì ÄÚ¸®¾Ó À϶§ if npc_id == 7501 then dlg_text("@90750109") -- À̺¥Æ® µµ¿ì¹Ì ½ºÀ§Áî À϶§ elseif npc_id == 7502 then dlg_text("@90750209") -- À̺¥Æ® µµ¿ì¹Ì ÇÁ¶õ½º À϶§ elseif npc_id == 7503 then dlg_text("@90750309") -- À̺¥Æ® µµ¿ì¹Ì Å䱸 À϶§ elseif npc_id == 7504 then dlg_text("@90750409") -- À̺¥Æ® µµ¿ì¹Ì »çÄ« À϶§ elseif npc_id == 7505 then dlg_text("@90750509") end -- ¸¸¾àÀ» À§Çؼ­ ´Ù½Ã Çѹø üũ local item_id = 2000401 local count = {} local temp_event_set = 0 for i = 1, 12 do count[i] = find_item( item_id ) -- Ä«µå°¡ ¾øÀ¸¸é ÇöÀç ¸î°³Â° ÀÎÁö üũ ÇÏ°í ³ª°¡¸®. if count[i] == 0 then if i < 3 then temp_event_set = 0 elseif count[3] ~=0 and i < 7 then temp_event_set = 1 end -- ¹ÛÀ¸·Î ºüÁ®³ª°£´Ù. break end -- 3°³Â° ¸Â°Ô µÇ¸é(¾È ¸ÂÀ¸¸é ¾Ë¾Æ¼­ ºüÁ®³ª°¡´Ï±î.) ¼¼Æ® 1 ¿Ï¼º if count[3] ~=0 and i == 3 then temp_event_set = 1 end -- 7°³Â° ¸Â°Ô µÇ¸é ¼¼Æ® 2¿Ï¼º if count[7] ~=0 and i == 7 then temp_event_set = 2 end -- 12°³Â° ¸Â°Ô µÇ¸é ¼¼Æ® 3 ¿Ï¼º. if count[12] ~=0 and i == 12 then temp_event_set = 3 end item_id = item_id + 1 end local flag = 1 -- ²Ç¼ö ºÎ¸®±â ÅðÄ¡ (ÇöÀç ¿Ï¼ºµÈ Ä«µå¼ÂÀÇ Á¾·ùº¸´Ù º¸»óÀ¸·Î °í¸¥ °ÍÀÌ ´õ Ŭ¶§, Áï º¸»óÀ» Å« °ÍÀ» °í¸£°í Ä«µå¸¦ »©µ¹¸° »óÅÂ) if event_set > temp_event_set then flag = 0 -- À̺¥Æ® µµ¿ì¹Ì ÄÚ¸®¾Ó À϶§ if npc_id == 7501 then dlg_text("@90750110") -- À̺¥Æ® µµ¿ì¹Ì ½ºÀ§Áî À϶§ elseif npc_id == 7502 then dlg_text("@90750210") -- À̺¥Æ® µµ¿ì¹Ì ÇÁ¶õ½º À϶§ elseif npc_id == 7503 then dlg_text("@90750310") -- À̺¥Æ® µµ¿ì¹Ì Å䱸 À϶§ elseif npc_id == 7504 then dlg_text("@90750410") -- À̺¥Æ® µµ¿ì¹Ì »çÄ« À϶§ elseif npc_id == 7505 then dlg_text("@90750510") end end if flag == 1 then -- Áö±ÞÇÒ ¾ÆÀÌÅÛ ¼¼ÆÃ local item_set = {} local item_set_percentage = {} if event_set == 1 then item_set = { 700102, 700202, 602302, 602305, 602402, 2900500, 2000204, 700401 } item_set_percentage = { 4, 20, 35, 50, 65, 70, 95, 100 } elseif event_set == 2 then item_set = { 700401, 700103, 700203, 2901000, 2000205, 900001, 602303, 602403 } item_set_percentage = { 15, 17, 25, 35, 40, 50, 75, 100 } elseif event_set == 3 then item_set = { 540002, 540005, 540006, 540011, 540018, 540019, 900000, 2010201 } item_set_percentage = { 7, 14, 21, 28, 35, 42, 90, 100 } end local event_item = math.random( 100 ) local count_item = 0 -- ¾ÆÀÌÅÛ ID ÃʱâÈ­ item_id = 0 -- ¾ÆÀÌÅÛ Áö±Þ if temp_event_set > 0 then if event_item <= item_set_percentage[1] then item_id = item_set[1] elseif event_item <= item_set_percentage[2] then item_id = item_set[2] elseif event_item <= item_set_percentage[3] then item_id = item_set[3] elseif event_item <= item_set_percentage[4] then item_id = item_set[4] elseif event_item <= item_set_percentage[5] then item_id = item_set[5] elseif event_item <= item_set_percentage[6] then item_id = item_set[6] elseif event_item <= item_set_percentage[7] then item_id = item_set[7] elseif event_item <= item_set_percentage[8] then item_id = item_set[8] end insert_item( item_id, 1) -- ½Ã½ºÅÛ ¸Þ½ÃÁö Ãâ·Â local text = sconv("@941", "#@item_name@#", "@" .. tostring( item_id+10000000 ) ) message( text ) -- ÆÄÀÌÆÃ ´ëÇѹα¹ ÇʽÂÄÚ¸®¾Æ »èÁ¦. item_id = 2000401 local count_item = 3 if event_set == 1 then count_item = 3 elseif event_set == 2 then count_item = 7 elseif event_set == 3 then count_item = 12 end -- ÁÖ¸£¸¤ »èÁ¦. for i = 1, count_item do if count_item < 0 or count_item > 12 then break end delete_item( get_item_handle(item_id), 1) item_id = item_id + 1 end end end --µ¹¾Æ°¡±â dlg_menu( "@90010003", 'NPC_event_contact()' ) --´ëÈ­ Á¾·á dlg_menu( "@90010002", "" ) -- ´ÙÀ̾ó·Î±× Ãâ·ÂÇϱâ dlg_show() end --============================================================ --=============== ´øÀü °ü¸®ÀÎ ¹ÌÀ̳ª --============================================================ -- ÀÏ¹Ý Ç÷¹À̾î -- ´ëÈ­ - ´øÀü Á¤º¸ º¸±â - ¼ÒÀ¯ ±æµå¶õ? -- - ¼¼À²À̶õ? -- -------------------------------------------------------------- -- ±æµå ¸¶½ºÅÍ -- ´ëÈ­ - ´øÀü Á¤º¸ º¸±â - ¼ÒÀ¯ ±æµå¶õ? -- ! - ¼¼À²À̶õ? -- ! -- - °ü¸® ¸Þ´º - ¼¼±Ý ¼ö±Ý(¼¼±Ý + ¶óÅ©) -- - ¼¼À² Á¶Á¤ -------------------------------------------------------------- -- ¼ÒÀ¯ ±æµå À̸§À» °¡Á® ¿È: get_own_guild_name( dungeon_id ) -- ´øÀü °úÀÇ °ü°è¸¦ °¡Á® ¿È: get_dungeon_relation( dungeon_id ) -- ÇöÀç ¼¼À²: get_tax_rate( dungeon_id ) -- ¼¼À² º¯°æ: set_tax_rate( dungeon_id, tax_rate ) -- ÇöÀç ¼¼±Ý: get_tax_amount() -- ¼¼±Ý ÀúÀå: draw_tax() -- get_tax_chaos_amount() : ÇöÀç ÀúÀåµÈ ¶óÅ© ¾ç ÇÔ¼ö -- draw_tax_chaos() : ²¨³»´Â ÇÔ¼ö function NPC_dungeon_siege_manager_init() cprint( "!´øÀü °ü¸®ÀÎ ¹ÌÀ̳ª °¡µ¿" ) set_npc_name( "@90408500" ) end function NPC_dungeon_siege_manager_contact( dungeon_id ) -- scf_is_owned_dungeon()ÀÇ ¸®ÅÏ °ª : get_dungeon_relation( dungeon_id )·Î ÇØ´ç ´øÀüÀ» ¼ÒÀ¯Çß´Ù´Â °ÍÀ» üũÇÑ ÈÄ °ª ¸®ÅÏ -- 0 : ´øÀü°ú °ü°è ¾øÀ½ -- 1 : ´øÀü ¼ÒÀ¯ ±æµå ¶Ç´Â ¿¬ÇÕÀÇ ¸¶½ºÅÍ ±æµåÀÇ ±æµå ¸¶½ºÅÍ -- 2 : ´øÀü ¼ÒÀ¯ ±æµå ¶Ç´Â ¿¬ÇÕÀÇ ¸¶½ºÅÍ ±æµåÀÇ ±æµå¿ø -- 3 : ´øÀü ¼ÒÀ¯ ¿¬ÇÕÀÇ ¸¶½ºÅÍ ±æµå°¡ ¾Æ´Ñ ¼­ºê ±æµåÀÇ ±æµå ¸¶½ºÅÍ -- 4 : ´øÀü ¼ÒÀ¯ ¿¬ÇÕÀÇ ¸¶½ºÅÍ ±æµå°¡ ¾Æ´Ñ ¼­ºê ±æµåÀÇ ±æµå¿ø -- 5 : ´øÀü ½ÃÁî °ø°ÝÀÚ ±æµå ¶Ç´Â °ø°ÝÀÚ ¿¬ÇÕ ¸¶½ºÅÍ ±æµåÀÇ ±æµå ¸¶½ºÅÍ -- 6 : ´øÀü ½ÃÁî °ø°ÝÀÚ ±æµå ¶Ç´Â °ø°ÝÀÚ ¿¬ÇÕ ¸¶½ºÅÍ ±æµåÀÇ ±æµå¿ø -- 7 : ´øÀü ½ÃÁî °ø°ÝÀÚ ¿¬ÇÕÀÇ ¸¶½ºÅÍ ±æµå°¡ ¾Æ´Ñ ¼­ºê ±æµåÀÇ ±æµå ¸¶½ºÅÍ -- 8 : ´øÀü ½ÃÁî °ø°ÝÀÚ ¿¬ÇÕÀÇ ¸¶½ºÅÍ ±æµå°¡ ¾Æ´Ñ ¼­ºê ±æµåÀÇ ±æµå¿ø -- 9 : ´øÀü ¼ÒÀ¯ ±æµåÀÇ ±æµå¿ø Áß ´øÀü°ü¸® ±ÇÇÑÀ» °¡Áø ±æµå¿ø -- ´øÀü ¼ÒÀ¯ ±æµåÀÇ ¸¶½ºÅÍÀÎÁö ±æµå¿øÀÎÁö ¾Æ´Ï¸é ÀϹÝÀÎÀÎÁö ¹Þ¾Æ¿Â´Ù. -- À߸øµÈ ³»¿ëÀ¸·Î ·¹µå¸¶ÀÎ ¹ö±× ¼öÁ¤ [QA]_¹ö±× #14539 -- ¸¶½ºÅÍ=1 ±æµå¿ø=2 ÀϹÝÀÎ=0 ´øÀü °ü¸® ±ÇÇÑ ¼ÒÀ¯ ±æµå¿ø=9 local dungeon_relation = get_dungeon_relation( dungeon_id ) -- ¸¶½ºÅÍ´Â °ü¸® ¸Þ´º·Î, ±æµå¿øÀº ´øÀü Á¤º¸ ¸Þ´º·Î, ÀϹÝÀÎÀº ÀÏ¹Ý Á¤º¸ ¸Þ´º·Î º¸³½´Ù. if dungeon_relation == 1 or dungeon_relation == 9 then NPC_dungeon_siege_guildmaster_contact( dungeon_id ) elseif dungeon_relation == 2 or dungeon_relation == 3 or dungeon_relation == 4 then NPC_dungeon_siege_guildmember_contact( dungeon_id ) elseif dungeon_relation == 0 or dungeon_relation == 5 or dungeon_relation == 6 or dungeon_relation == 7 or dungeon_relation == 8 then NPC_dungeon_siege_adventurer_contact( dungeon_id ) end end function NPC_dungeon_siege_adventurer_contact( dungeon_id ) -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90408501" ) dlg_text( "@90408502" ) -- ¼û°ÜÁø ´øÀü ¸®½ºÆ® : 130300 ¼öÁ¤°è°î / 130800 ÆÈ¹Ì¸£1 / 130900 ÆÈ¹Ì¸£2 / 120700 ¿¤Ä«½Ã¾Æ / 121000 ¹é·æ / 122000 Èæ·æ / 123000 »ç·æ if dungeon_id == 130300 or dungeon_id == 130800 or dungeon_id == 120700 or dungeon_id == 130900 or dungeon_id == 121000 or dungeon_id == 122000 or dungeon_id == 123000 then -- ¼û°ÜÁø ´øÀü Á¤º¸ º¸±â dlg_menu( "@90010121", 'dungeon_information( '..dungeon_id..' )' ) dlg_menu( "@90019007", 'secret_dungeon_information( '..dungeon_id..' )' ) elseif -- ÀÏ¹Ý Á¤º¸ º¸±â dlg_menu( "@90010121", 'dungeon_information( '..dungeon_id..' )' ) then end --´ëÈ­ Á¾·á dlg_menu( "@90010002", "" ) dlg_show() end function NPC_dungeon_siege_guildmaster_contact( dungeon_id ) -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90408501" ) dlg_text( "@90408502" ) local dungeon_check = dungeon_id -- ¼û°ÜÁø ´øÀü ¸®½ºÆ® : 130300 ¼öÁ¤°è°î / 130800 ÆÈ¹Ì¸£1 / 130900 ÆÈ¹Ì¸£2 / 120700 ¿¤Ä«½Ã¾Æ / 121000 ¹é·æ / 122000 Èæ·æ / 123000 »ç·æ if dungeon_id == 130300 or dungeon_id == 130800 or dungeon_id == 120700 or dungeon_id == 130900 or dungeon_id == 121000 or dungeon_id == 122000 or dungeon_id == 123000 then -- ¼û°ÜÁø ´øÀü Á¤º¸ º¸±â dlg_menu( "@90019007", 'secret_dungeon_information( '..dungeon_id..' )' ) elseif -- ÀÏ¹Ý Á¤º¸ º¸±â dlg_menu( "@90010121", 'dungeon_information( '..dungeon_id..' )' ) then end -- °ü¸® ¸Þ´º - ÇØ´ç ´øÀü ¼ÒÀ¯ ±æµå ¸¶½ºÅÍ¿¡°Ô¸¸ º¸ÀÓ. dlg_menu( "@90010114", 'management_menu( '..dungeon_id..' )' ) -- ´øÀü Æ÷±â - ÇØ´ç ´øÀü ¼ÒÀ¯ ±æµå ¸¶½ºÅÍ¿¡°Ô¸¸ º¸ÀÓ. dlg_menu( "@90010158", 'dungeon_drop( '..dungeon_id..' )' ) --´ëÈ­ Á¾·á dlg_menu( "@90010002", "" ) dlg_show() end -- ´øÀü Æ÷±â? function dungeon_drop( dungeon_id ) dlg_title( "@90408501" ) dlg_text( "@90408518" ) -- È®ÀÎ dlg_menu( "@90010016", 'click_dungeon_drop( '..dungeon_id..' )' ) -- Ãë¼Ò dlg_menu( "@90010001", 'NPC_dungeon_siege_manager_contact( '..dungeon_id..' )' ) dlg_show() end -- Ŭ¸¯ ´øÀü Æ÷±â function click_dungeon_drop( dungeon_id ) -- ´øÀü Æ÷±â ½ÇÇà µÇ¸é¼­ °ªÀÌ drop_result¿¡ µé¾î°¨ ¼º°ø½Ã 1, ½ÇÆÐ½Ã 0 local drop_result = drop_dungeon_owner_ship() if drop_result == 0 then dlg_title( "@90408501" ) dlg_text( "@90408519" ) elseif drop_result == 1 then dlg_title( "@90408501" ) dlg_text( "@90408520" ) warp( get_value( "x" ), get_value( "y" ), 0 ) end --´ëÈ­ Á¾·á dlg_menu( "@90010002", "" ) dlg_show() end function NPC_dungeon_siege_guildmember_contact( dungeon_id ) -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90408501" ) dlg_text( "@90408502" ) -- ¼û°ÜÁø ´øÀü ¸®½ºÆ® : 130300 ¼öÁ¤°è°î / 130800 ÆÈ¹Ì¸£1 / 130900 ÆÈ¹Ì¸£2 / 120700 ¿¤Ä«½Ã¾Æ / 121000 ¹é·æ / 122000 Èæ·æ / 123000 »ç·æ if dungeon_id == 130300 or dungeon_id == 130800 or dungeon_id == 120700 or dungeon_id == 130900 or dungeon_id == 121000 or dungeon_id == 122000 or dungeon_id == 123000 then -- ¼û°ÜÁø ´øÀü Á¤º¸ º¸±â dlg_menu( "@90019007", 'secret_dungeon_information( '..dungeon_id..' )' ) elseif -- ÀÏ¹Ý Á¤º¸ º¸±â dlg_menu( "@90010121", 'dungeon_information( '..dungeon_id..' )' ) then end --´ëÈ­ Á¾·á dlg_menu( "@90010002", "" ) dlg_show() end -- ´øÀü ÀÏ¹Ý Á¤º¸ º¸±â(ÀϹÝÀÎ Àü¿ë ¸Þ´º) function dungeon_information( dungeon_id ) -- ÇöÀç ¼¼À²°ªÀ» ¹Þ¾Æ¿Â´Ù. local tax_rate = get_tax_rate( dungeon_id ) -- ´øÀü ¼ÒÀ¯ ±æµå¸íÀ» ¹Þ¾Æ¿Â´Ù. local own_guild_name = get_own_guild_name( dungeon_id ) -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90408501" ) dlg_text(sconv("@90408510" , "#@own_guild@#" , own_guild_name , "#@tax_rate@#" , tostring(tax_rate))) -- ¼ÒÀ¯ ±æµå¶õ? dlg_menu( "@90010122", 'question_dungeon_owner('..dungeon_id..')' ) -- ¼¼À²À̶õ? dlg_menu( "@90010123", 'question_tax_rate('..dungeon_id..')' ) --µ¹¾Æ°¡±â dlg_menu( "@90010003", 'NPC_dungeon_siege_manager_contact( '..dungeon_id..' )' ) dlg_show() end -- ¼û°ÜÁø ´øÀü ÀÏ¹Ý Á¤º¸ º¸±â(ÀϹÝÀÎ Àü¿ë ¸Þ´º) function secret_dungeon_information( dungeon_id ) -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90408501" ) -- ¼û°ÜÁø ´øÀü ¼Ò°³ dlg_text( "@90408806" ) -- µé¾î°¡´Â ¹æ¹ý? dlg_menu( "@90019008", 'question_secret_dungeon_enter('..dungeon_id..')' ) -- Ű ¸ó½ºÅͶõ? dlg_menu( "@90019009", 'question_secret_dungeon_keymonster('..dungeon_id..')' ) -- ³ª¿À´Â ¹æ¹ý? dlg_menu( "@90019010", 'question_secret_dungeon_exit('..dungeon_id..')' ) -- ÁÖÀÇ»çÇ× dlg_menu( "@90019011", 'question_secret_dungeon_caution('..dungeon_id..')' ) --µ¹¾Æ°¡±â dlg_menu( "@90010003", 'NPC_dungeon_siege_manager_contact( '..dungeon_id..' )' ) dlg_show() end function question_secret_dungeon_enter(dungeon_id) -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90408501" ) -- µé¾î°¡´Â ¹æ¹ý? dlg_text( "@90408807" ) -- ´õ ¹°¾îº¸±â dlg_menu( "@90019012", 'question_secret_dungeon_enter_add('..dungeon_id..')' ) -- Ű ¸ó½ºÅͶõ? dlg_menu( "@90019009", 'question_secret_dungeon_keymonster('..dungeon_id..')' ) -- ³ª¿À´Â ¹æ¹ý? dlg_menu( "@90019010", 'question_secret_dungeon_exit('..dungeon_id..')' ) -- ÁÖÀÇ»çÇ× dlg_menu( "@90019011", 'question_secret_dungeon_caution('..dungeon_id..')' ) --µ¹¾Æ°¡±â dlg_menu( "@90010003", 'NPC_dungeon_siege_manager_contact( '..dungeon_id..' )' ) dlg_show() end function question_secret_dungeon_enter_add( dungeon_id ) -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90408501" ) -- ³ª°¡´Â ¹æ¹ý? dlg_text( "@90408811" ) -- µé¾î°¡´Â ¹æ¹ý? dlg_menu( "@90019008", 'question_secret_dungeon_enter('..dungeon_id..')' ) -- Ű ¸ó½ºÅͶõ? dlg_menu( "@90019009", 'question_secret_dungeon_keymonster('..dungeon_id..')' ) -- ÁÖÀÇ»çÇ× dlg_menu( "@90019011", 'question_secret_dungeon_caution('..dungeon_id..')' ) --µ¹¾Æ°¡±â dlg_menu( "@90010003", 'NPC_dungeon_siege_manager_contact( '..dungeon_id..' )' ) dlg_show() end function question_secret_dungeon_keymonster(dungeon_id) -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90408501" ) -- ۸ó½ºÅÍ´Â... dlg_text( "@90408808" ) -- µé¾î°¡´Â ¹æ¹ý? dlg_menu( "@90019008", 'question_secret_dungeon_enter('..dungeon_id..')' ) -- ³ª¿À´Â ¹æ¹ý? dlg_menu( "@90019010", 'question_secret_dungeon_exit('..dungeon_id..')' ) -- ÁÖÀÇ»çÇ× dlg_menu( "@90019011", 'question_secret_dungeon_caution('..dungeon_id..')' ) --µ¹¾Æ°¡±â dlg_menu( "@90010003", 'NPC_dungeon_siege_manager_contact( '..dungeon_id..' )' ) dlg_show() end function question_secret_dungeon_exit(dungeon_id) -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90408501" ) -- ³ª°¡´Â ¹æ¹ý? dlg_text( "@90408809" ) -- ´õ ¹°¾îº¸±â dlg_menu( "@90019012", 'question_secret_dungeon_exit_add('..dungeon_id..')' ) -- µé¾î°¡´Â ¹æ¹ý? dlg_menu( "@90019008", 'question_secret_dungeon_enter('..dungeon_id..')' ) -- Ű ¸ó½ºÅͶõ? dlg_menu( "@90019009", 'question_secret_dungeon_keymonster('..dungeon_id..')' ) -- ÁÖÀÇ»çÇ× dlg_menu( "@90019011", 'question_secret_dungeon_caution('..dungeon_id..')' ) --µ¹¾Æ°¡±â dlg_menu( "@90010003", 'NPC_dungeon_siege_manager_contact( '..dungeon_id..' )' ) dlg_show() end function question_secret_dungeon_exit_add( dungeon_id ) -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90408501" ) -- ³ª°¡´Â ¹æ¹ý? dlg_text( "@90408812" ) -- µé¾î°¡´Â ¹æ¹ý? dlg_menu( "@90019008", 'question_secret_dungeon_enter('..dungeon_id..')' ) -- Ű ¸ó½ºÅͶõ? dlg_menu( "@90019009", 'question_secret_dungeon_keymonster('..dungeon_id..')' ) -- ÁÖÀÇ»çÇ× dlg_menu( "@90019011", 'question_secret_dungeon_caution('..dungeon_id..')' ) --µ¹¾Æ°¡±â dlg_menu( "@90010003", 'NPC_dungeon_siege_manager_contact( '..dungeon_id..' )' ) dlg_show() end function question_secret_dungeon_caution(dungeon_id) -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90408501" ) -- ÁÖÀÇ»çÇ×? dlg_text( "@90408810" ) -- ´õ ¹°¾îº¸±â dlg_menu( "@90019012", 'question_secret_dungeon_caution_add('..dungeon_id..')' ) -- µé¾î°¡´Â ¹æ¹ý? dlg_menu( "@90019008", 'question_secret_dungeon_enter('..dungeon_id..')' ) -- Ű ¸ó½ºÅͶõ? dlg_menu( "@90019009", 'question_secret_dungeon_keymonster('..dungeon_id..')' ) -- ³ª¿À´Â ¹æ¹ý? dlg_menu( "@90019010", 'question_secret_dungeon_exit('..dungeon_id..')' ) --µ¹¾Æ°¡±â dlg_menu( "@90010003", 'NPC_dungeon_siege_manager_contact( '..dungeon_id..' )' ) dlg_show() end function question_secret_dungeon_caution_add( dungeon_id ) -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90408501" ) -- ³ª°¡´Â ¹æ¹ý? dlg_text( "@90408813" ) -- ´õ ¹°¾îº¸±â dlg_menu( "@90019012", 'question_secret_dungeon_caution_add_1('..dungeon_id..')' ) -- µé¾î°¡´Â ¹æ¹ý? dlg_menu( "@90019008", 'question_secret_dungeon_enter('..dungeon_id..')' ) -- Ű ¸ó½ºÅͶõ? dlg_menu( "@90019009", 'question_secret_dungeon_keymonster('..dungeon_id..')' ) -- ÁÖÀÇ»çÇ× dlg_menu( "@90019011", 'question_secret_dungeon_caution('..dungeon_id..')' ) --µ¹¾Æ°¡±â dlg_menu( "@90010003", 'NPC_dungeon_siege_manager_contact( '..dungeon_id..' )' ) dlg_show() end function question_secret_dungeon_caution_add_1( dungeon_id ) -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90408501" ) -- ³ª°¡´Â ¹æ¹ý? dlg_text( "@90408814" ) -- µé¾î°¡´Â ¹æ¹ý? dlg_menu( "@90019008", 'question_secret_dungeon_enter('..dungeon_id..')' ) -- Ű ¸ó½ºÅͶõ? dlg_menu( "@90019009", 'question_secret_dungeon_keymonster('..dungeon_id..')' ) -- ÁÖÀÇ»çÇ× dlg_menu( "@90019011", 'question_secret_dungeon_caution('..dungeon_id..')' ) --µ¹¾Æ°¡±â dlg_menu( "@90010003", 'NPC_dungeon_siege_manager_contact( '..dungeon_id..' )' ) dlg_show() end -- ¼ÒÀ¯ ±æµå¶õ? function question_dungeon_owner( dungeon_id ) -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90408501" ) dlg_text( "@90408511" ) --µ¹¾Æ°¡±â dlg_menu( "@90010003", 'dungeon_information( '..dungeon_id..' )' ) dlg_show() end -- ¼¼À²À̶õ? function question_tax_rate( dungeon_id ) -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90408501" ) dlg_text( "@90408512" ) --µ¹¾Æ°¡±â dlg_menu( "@90010003", 'dungeon_information( '..dungeon_id..' )' ) dlg_show() end -- °ü¸® ¸Þ´º(´øÀü ¼ÒÀ¯ ±æµå¿ø¿¡°Ô¸¸ º¸ÀÓ.) function dungeon_guild_information( dungeon_id ) -- ÇöÀç ¼¼À²°ªÀ» ¹Þ¾Æ¿Â´Ù. local tax_rate = get_tax_rate( dungeon_id ) -- °ÈÈù ¼¼±Ý ¾ò¾î¿È local tax = get_tax_amount() -- °ÈÈù ¶óÅ© ¾ò¾î¿È local lak = get_tax_chaos_amount() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90408501" ) dlg_text(sconv("@90408515" , "#@tax_rate@#" , tostring(tax_rate) , "#@tax@#" , tostring(tax) , "#@lak@#" , tostring(lak))) --µ¹¾Æ°¡±â dlg_menu( "@90010003", 'NPC_dungeon_siege_manager_contact( '..dungeon_id..' )' ) dlg_show() end -- °ü¸® ¸Þ´º(±æµå ¸¶½ºÅÍ¿¡°Ô¸¸ º¸ÀÓ.) function management_menu( dungeon_id ) -- °ÈÈù ¼¼±Ý ¾ò¾î¿È local tax = get_tax_amount() -- ÇöÀç ¼¼À²°ªÀ» ¹Þ¾Æ¿Â´Ù. local tax_rate = get_tax_rate( dungeon_id ) -- °ÈÈù ¶óÅ© ¾ò¾î¿È local lak = get_tax_chaos_amount() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90408501" ) dlg_text(sconv("@90408515" , "#@tax_rate@#" , tostring(tax_rate) , "#@tax@#" , tostring(tax) , "#@lak@#" , tostring(lak))) -- ¼¼±Ý ¼ö±Ý dlg_menu( "@90010116", 'tax_collection( '..dungeon_id..' )' ) -- ¶óÅ© ¼ö±Ý dlg_menu( "@90010125", 'lak_collection( '..dungeon_id..' )' ) -- ¼¼À² Á¶Á¤ dlg_menu( "@90010118", 'tax_rate_adjust( '..dungeon_id..' )' ) --µ¹¾Æ°¡±â dlg_menu( "@90010003", 'NPC_dungeon_siege_guildmaster_contact('..dungeon_id..')' ) dlg_show() end -- ¼¼±Ý ¼ö±Ý function tax_collection( dungeon_id ) -- °ÈÈù ¼¼±Ý ¾ò¾î¿È local tax = get_tax_amount() -- ¼ö±ÝÇϽðڽÀ´Ï±î? dlg_title( "@90408501" ) dlg_text(sconv("@90408504" , "#@tax@#" , tostring(tax))) -- È®ÀÎ(µ· Áö±Þ) dlg_menu( "@90010030", 'tax_collection_click( '..dungeon_id..' )' ) -- Ãë¼Ò(Àü ¸Þ´º·Î µ¹¾Æ°¨) dlg_menu( "@90010001", 'management_menu(' .. dungeon_id .. ')' ) dlg_show() end -- ¼ö±Ý ¹öư ´­·¯¼­ µ· Áö±Þ function tax_collection_click( dungeon_id ) -- °ÈÈù ¼¼±Ý ¾ò¾î¿È local tax = get_tax_amount() -- ¼ÒÁö±Ý Á¦ÇÑ ·çƾ local nummoney, player_money player_money = gv("gold") -- À¯Àú ÇöÀç ¼ÒÁö±ÝÀ» °¡Á®¿Â´Ù. nummoney = tax + player_money -- À¯Àú ÇöÀç ¼ÒÁö±Ý°ú °ÈÈù ¼¼±ÝÀ» ÇÕÄ£´Ù. if nummoney > 10000000000 then -- ¼¼±Ý°ú À¯Àú ÇöÀç ¼ÒÁö±ÝÀ» ÇÕÃļ­ 100¾ïÀÌ ³Ñ´ÂÁö üũ ÇÑ´Ù. dlg_title( "@90408501" ) dlg_text("@577") -- ¼ÒÁö±ÝÀÌ ÃʰúµÇ¾ú´Ù´Â ¸Þ½ÃÁöÃâ·Â dlg_menu( "@90010003", 'management_menu(' .. dungeon_id .. ')' ) -- ¸Þ´º È£Ãâ dlg_show() -- º¸À̱â -- ÀÌ¹Ì °È¾î°£ »óÅÂÀ̰ųª ¼ö±ÝÇÒ µ·ÀÌ ¾ø´Ù¸é elseif tax == 0 then dlg_title( "@90408501" ) dlg_text( "@90408513" ) --µ¹¾Æ°¡±â dlg_menu( "@90010003", 'management_menu( '..dungeon_id..' )' ) dlg_show() else -- ¼¼±Ý °È°í ÀúÀå draw_tax() -- ÀúÀå save() -- °ü¸® ¸Þ´º·Î µ¹¾Æ°¨ management_menu( dungeon_id ) end end -- ¶óÅ© ¼ö±Ý function lak_collection( dungeon_id ) -- °ÈÈù ¶óÅ© ¾ò¾î¿È local lak = get_tax_chaos_amount() -- ¼ö±ÝÇϽðڽÀ´Ï±î? dlg_title( "@90408501" ) dlg_text( "@90408516" ) -- È®ÀÎ(¶óÅ© Áö±Þ) dlg_menu( "@90010030", 'lak_collection_click( '..dungeon_id..' )' ) -- Ãë¼Ò(Àü ¸Þ´º·Î µ¹¾Æ°¨) dlg_menu( "@90010001", 'management_menu(' .. dungeon_id .. ')' ) dlg_show() end -- ¼ö±Ý ¹öư ´­·¯¼­ ¶óÅ© Áö±Þ function lak_collection_click( dungeon_id ) -- °ÈÈù ¶óÅ© ¾ò¾î¿È local lak = get_tax_chaos_amount() -- ÀÌ¹Ì °È¾î°£ »óÅÂÀ̰ųª ¼ö±ÝÇÒ µ·ÀÌ ¾ø´Ù¸é if lak == 0 then dlg_title( "@90408501" ) dlg_text( "@90408517" ) --µ¹¾Æ°¡±â dlg_menu( "@90010003", 'management_menu( '..dungeon_id..' )' ) dlg_show() else -- ¶óÅ© °È°í ÀúÀå draw_tax_chaos() -- ÀúÀå save() -- °ü¸® ¸Þ´º·Î µ¹¾Æ°¨ management_menu( dungeon_id ) end end -- ¼¼À² Á¶Á¤ function tax_rate_adjust( dungeon_id ) -- ÇöÀç ¼¼À²°ªÀ» ¹Þ¾Æ¿Â´Ù. local tax_rate = get_tax_rate( dungeon_id ) dlg_title( "@90408501" ) dlg_text( "@90408506" ) dlg_text(sconv("@90408506" , "#@tax_rate@#" , tostring(tax_rate))) -- ¼¼À² 1% Áõ°¡ ¸Þ´º dlg_menu( "@90010119", 'tax_rate_increase('..dungeon_id..')' ) -- ¼¼À² 1% °¨¼Ò ¸Þ´º dlg_menu( "@90010120", 'tax_rate_decrease('..dungeon_id..')' ) --µ¹¾Æ°¡±â dlg_menu( "@90010003", 'management_menu('..dungeon_id..')' ) dlg_show() end function tax_rate_increase( dungeon_id ) -- ÇöÀç ¼¼À²°ªÀ» ¹Þ¾Æ¿Â´Ù. local tax_rate = get_tax_rate( dungeon_id ) -- ¼¼À²ÀÌ ÀÌ¹Ì 10%¶ó¸é ÅðÂ¥ if tax_rate == 10 then dlg_title( "@90408501" ) dlg_text( "@90408507" ) --µ¹¾Æ°¡±â dlg_menu( "@90010003", 'tax_rate_adjust('..dungeon_id..')' ) dlg_show() -- ¼¼À² º¯°æ: elseif tax_rate < 10 then set_tax_rate( dungeon_id, tax_rate+1 ) -- À­ ´Ü°è·Î µ¹¾Æ°¨ tax_rate_adjust( dungeon_id ) end end function tax_rate_decrease( dungeon_id ) -- ÇöÀç ¼¼À²°ªÀ» ¹Þ¾Æ¿Â´Ù. local tax_rate = get_tax_rate( dungeon_id ) -- ¼¼À²ÀÌ ÀÌ¹Ì 1%À̶ó¸é ÅðÂ¥ if tax_rate == 1 then dlg_title( "@90408501" ) dlg_text( "@90408508" ) --µ¹¾Æ°¡±â dlg_menu( "@90010003", 'tax_rate_adjust('..dungeon_id..')' ) dlg_show() -- ¼¼À² º¯°æ: elseif tax_rate > 1 then set_tax_rate( dungeon_id, tax_rate-1 ) -- À­ ´Ü°è·Î µ¹¾Æ°¨ tax_rate_adjust( dungeon_id ) end end ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- ------------------- º¢²É À̺¥Æ® npc ´Ü¼ú µ¿È£È¸ ȸ¿ø ----------------------- ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- function NPC_sweet_drink_init() cprint( "!´Ü¼ú µ¿È£È¸ ȸ¿ø" ) set_npc_name( "@90991200" ) end function NPC_sweet_drink_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90991201" ) dlg_text( "@90991202" ) -- ´ç½ÅÀº ´©±¸? dlg_menu( "@90010148", 'sweet_drink_who_are_you()' ) -- ´Ü¼úÀ̶õ? dlg_menu( "@90010149", 'sweet_drink_question()' ) -- ´Ü¼ú ±³È¯ dlg_menu( "@90010150", 'sweet_drink_exchange()' ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end -- ´ç½ÅÀº ´©±¸? function sweet_drink_who_are_you() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90991201" ) dlg_text( "@90991203" ) --µ¹¾Æ°¡±â dlg_menu( "@90010003", 'NPC_sweet_drink_contact()' ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end -- ´Ü¼úÀ̶õ? function sweet_drink_question() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90991201" ) dlg_text( "@90991204" ) --µ¹¾Æ°¡±â dlg_menu( "@90010003", 'NPC_sweet_drink_contact()' ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end -- ´Ü¼ú ±³È¯ function sweet_drink_exchange() local item_count = find_item ( 2000140 ) item_handle = get_item_handle ( 2000140 ) if item_count >= 50 then -- ´Ü¼ú ±³È¯ ¼º°ø½Ã dlg_title( "@90991201" ) dlg_text( "@90991205" ) delete_item ( item_handle, 50 ) insert_item ( 2000141, 1 ) else -- ´Ü¼ú ¸ðÀÚ¶ö °æ¿ì dlg_title( "@90991201" ) dlg_text( "@90991206" ) end --µ¹¾Æ°¡±â dlg_menu( "@90010003", 'NPC_sweet_drink_contact()' ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== È£¶óÀÌÁð Á¶ÇÕÀå °¡´õ --============================================================ function NPC_Quest_Gangway_Administrator_init() cprint( "!Á¶ÇÕÀå °¡´õ °¡µ¿" ) set_npc_name( "@90409100" ) end function NPC_Quest_Gangway_Administrator_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90409101" ) dlg_text( "@90409102" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ÀÒ¾î¹ö¸° °»µµ »ýÁ¸ÀÚ Æª --============================================================ function NPC_Quest_Gangway_survivor_init() cprint( "!»ýÁ¸ÀÚ Æª °¡µ¿" ) set_npc_name( "@90409200" ) end function NPC_Quest_Gangway_survivor_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90409201" ) dlg_text( "@90409202" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ·Ðµµ ¹«¿ª Á¶ÇÕ »ç¿ø ¶óÄ«µå --============================================================ function NPC_Trade_member_Rondoh_init() cprint( "!¹«¿ª Á¶ÇÕ »ç¿ø ¶óÄ«µå °¡µ¿" ) set_npc_name( "@90601700" ) end function NPC_Trade_member_Rondoh_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90601701" ) dlg_text( "@90601702" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ·Ðµµ ¾ç¾ÆÄ¡ ۸®¿À --============================================================ function NPC_Beggar_Rondoh_init() cprint( "!¾ç¾ÆÄ¡ ۸®¿À °¡µ¿" ) set_npc_name( "@90601800" ) end function NPC_Beggar_Rondoh_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90601801" ) dlg_text( "@90601802" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ·Ðµµ °Ç´Þ ÆÄµÎ --============================================================ function NPC_Scamp_Rondoh_init() cprint( "!°Ç´Þ ÆÄµÎ °¡µ¿" ) set_npc_name( "@90601900" ) end function NPC_Scamp_Rondoh_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90601901" ) dlg_text( "@90601902" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ·Ðµµ ½ÃÀå ¿¡ÀÏ·¹³ª --============================================================ function NPC_Mayoress_Rondoh_init() cprint( "!½ÃÀå ¿¡ÀÏ·¹³ª °¡µ¿" ) set_npc_name( "@90602000" ) end function NPC_Mayoress_Rondoh_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90602001" ) dlg_text( "@90602002" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ·Ðµµ ¹«¿ª Á¶ÇÕÀå ¹Ì·û --============================================================ function NPC_Trade_master_Rondoh_init() cprint( "!¹«¿ª Á¶ÇÕÀå ¹Ì·û °¡µ¿" ) set_npc_name( "@90602100" ) end function NPC_Trade_master_Rondoh_contact() -- Äù½ºÆ® »óÅ üũ get_quest_progress(ID) -- ¹Ýȯ°ª -1 : ¾Æ¹«°Íµµ ¾Æ´Ô / 0 : ¼ö¶ô°¡ / 1 : ¼öÇàÁß / 2 : Á¾·á°¡´É / 255 : À̹ÌÁ¾·á local quest_progress000 = get_quest_progress(1226) -- Äù½ºÆ® Á¾·á½Ã ´ë»ç if quest_progress000 == 255 then dlg_title( "@90602101" ) dlg_text( "@90602106" ) -- Äù½ºÆ® ¼öÇà Àü, ¼öÇà Áß ´ë»ç else -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90602101" ) dlg_text( "@90602102" ) end -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ·Ðµµ ¼¨µµ¿ìÇåÅÍ Å丣ÇÏ --============================================================ function NPC_Shadow_Hunter_Rondoh_init() cprint( "!¼¨µµ¿ìÇåÅÍ Å丣ÇÏ °¡µ¿" ) set_npc_name( "@90602300" ) end function NPC_Shadow_Hunter_Rondoh_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90602301" ) dlg_text( "@90602302" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ·Ðµµ °æºñº´ --============================================================ function NPC_Guard_Rondoh_contact() -- Àӽà º¯¼ö ¼±¾ð°ú µ¿½Ã¿¡ NPC ID °¡Á®¿À±â local npc_id = get_npc_id() -- <À̸§ Ãâ·Â> °¢ NPC¿¡ µû¶ó ÀûÇÕÇÑ if npc_id == 6024 then dlg_title("@90602401") dlg_text( "@90602402" ) elseif npc_id == 6025 then dlg_title("@90602501") dlg_text( "@90602502" ) elseif npc_id == 6026 then dlg_title("@90602601") dlg_text( "@90602602" ) elseif npc_id == 6027 then dlg_title("@90602701") dlg_text( "@90602702" ) elseif npc_id == 6028 then dlg_title("@90602801") dlg_text( "@90602802" ) elseif npc_id == 6029 then dlg_title("@90602901") dlg_text( "@90602902" ) elseif npc_id == 6030 then dlg_title("@90603001") dlg_text( "@90603002" ) elseif npc_id == 6031 then dlg_title("@90603101") dlg_text( "@90603102" ) elseif npc_id == 6040 then dlg_title("@90604001") dlg_text( "@90604002" ) elseif npc_id == 6041 then dlg_title("@90604101") dlg_text( "@90604102" ) end -- ³¡³»±â dlg_menu( "@90010002", "" ) -- ´ÙÀ̾ó·Î±× Ãâ·ÂÇϱâ dlg_show() end --============================================================ --=============== ·Ðµµ °æºñ´ëÀå ÄíµÐ --============================================================ function NPC_Guard_Commander_Rondoh_init() cprint( "!°æºñ´ëÀå ÄíµÐ °¡µ¿" ) set_npc_name( "@90603200" ) end function NPC_Guard_Commander_Rondoh_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90603201" ) dlg_text( "@90603202" ) --[[ ÇÒ·ÎÀ© »çÅÁ¹Þ±â//ÇÒ·ÎÀ© À̺¥Æ®¿¡¸¸ °¡µ¿ Npc_event.lua¿¡ ÀÖÀ½ dlg_menu( "@90604959", 'Trick_or_treat_2011()' ) ----------------------------------------------------------]] -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ·Ðµµ ´ëºÎÈ£ Äí¶ö¸®´À --============================================================ function NPC_Great_Rich_Rondoh_init() cprint( "!´ëºÎÈ£ Äí¶ö¸®´À °¡µ¿" ) set_npc_name( "@90603300" ) end function NPC_Great_Rich_Rondoh_contact() dlg_title( "@90603301" ) dlg_text( "@90603302" ) local state_code = get_local_info() if state_code == 4 or state_code == 8 or state_code == 128 or state_code == 16384 or state_code == 32768 or state_code == 65536 then dlg_menu( "@90610497", "NPC_Event_2017_Devildom_Crystal_Trade_About()" ) -- Can I make an investment? if get_env( "game.devildom_crystal_trade" ) == 1 then --If feature is active dlg_menu( "@90610498", "NPC_Event_2017_Devildom_Crystal_Trade()" ) -- Trade Crystals end end dlg_menu( "@90010002", " " ) -- ´ëÈ­Á¾·á dlg_show() end --============================================================ --=============== ·Ðµµ Èæ¶û ±æµå¿ø Ã÷¹ÙÄí --============================================================ function NPC_Dark_Wolf_member_1_Rondoh_init() cprint( "!Èæ¶û ±æµå¿ø Ã÷¹ÙÄí °¡µ¿" ) set_npc_name( "@90603400" ) end function NPC_Dark_Wolf_member_1_Rondoh_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90603401" ) dlg_text( "@90603402" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ·Ðµµ Èæ¶û ±æµå¿ø µåºå --============================================================ function NPC_Dark_Wolf_member_2_Rondoh_init() cprint( "!Èæ¶û ±æµå¿ø µåºå °¡µ¿" ) set_npc_name( "@90603500" ) end function NPC_Dark_Wolf_member_2_Rondoh_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90603501" ) dlg_text( "@90603502" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ·Ðµµ ¾Æ½ºÆ®¶ö ±³ÀÎ ¹Ì³ë¾Æ --============================================================ function NPC_Astral_Believer_Rondoh_init() cprint( "!¾Æ½ºÆ®¶ö ±³ÀÎ ¹Ì³ë¾Æ °¡µ¿" ) set_npc_name( "@90603600" ) end function NPC_Astral_Believer_Rondoh_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90603601" ) dlg_text( "@90603602" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ·Ðµµ ¿¬ÀÎ Á¦´Ï¾Æ --============================================================ function NPC_lover_1_Rondoh_init() cprint( "!¿¬ÀÎ Á¦´Ï¾Æ °¡µ¿" ) set_npc_name( "@90603700" ) end function NPC_lover_1_Rondoh_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90603701" ) dlg_text( "@90603702" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ·Ðµµ ¿¬ÀÎ ÄÉÀÏ --============================================================ function NPC_lover_2_Rondoh_init() cprint( "!¿¬ÀÎ ÄÉÀÏ °¡µ¿" ) set_npc_name( "@90603800" ) end function NPC_lover_2_Rondoh_contact() dlg_title( "@90603801" ) --2016 ¹ß·»Å¸ÀÎ À̺¥Æ® ±â°£¸¸ µ¿ÀÛÇÏ°Ô local state_code = get_local_info() local current_time = get_os_date( "%Y-%m-%d %H:%M:%S" ) local check = 0 local SoloBuff = tonumber( get_global_variable( "solo_buff_2016" ) ) or 0 if state_code == 1 and '2016-02-11 10:00:00' <= current_time and current_time < '2016-03-03 10:00:00' then check = 1 elseif state_code == 16 and '2016-02-12 11:00:00' <= current_time and current_time < '2016-03-01 11:00:00' then check = 1 elseif state_code == 256 and '2016-02-08 08:00:00' <= current_time and current_time < '2016-02-29 08:00:00' then check = 1 elseif state_code == 512 and '2016-02-19 11:00:00' <= current_time and current_time < '2016-03-04 11:00:00' then check = 1 end if check == 1 then if SoloBuff == 0 then -- ¼Ö·Î¹öÇÁ ¾øÀ» °æ¿ì dlg_text( "@90610187" ) -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_menu( "@90610184", "Valentine_2016_Kale_Give()" ) -- ÄíÇǵåÀÇ ¼±¹°À» °Ç³×ÁØ´Ù else dlg_text( "@90610189" ) -- ´ÙÀ̾ó·Î±× Ãâ·Â end else dlg_text( "@90603802" ) -- ´ÙÀ̾ó·Î±× Ãâ·Â end -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ·Ðµµ º¸µð°¡µå ÆÄǪ°¡ --============================================================ function NPC_BodyGuard_Rondoh_init() cprint( "!º¸µð°¡µå ÆÄǪ°¡ °¡µ¿" ) set_npc_name( "@90603900" ) end function NPC_BodyGuard_Rondoh_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90603901" ) dlg_text( "@90603902" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ¼öÁ¤ÀÇ »ê ¿¡ÀÌÀüÆ® ÄÉÀÌ --============================================================ function NPC_Agent_K_Rondoh_init() cprint( "!¿¡ÀÌÀüÆ® ÄÉÀÌ ±âµ¿" ) set_npc_name( "@90604200" ) end function NPC_Agent_K_Rondoh_contact() -- Äù½ºÆ® »óÅ üũ get_quest_progress(ID) -- ¹Ýȯ°ª -1 : ¾Æ¹«°Íµµ ¾Æ´Ô / 0 : ¼ö¶ô°¡ / 1 : ¼öÇàÁß / 2 : Á¾·á°¡´É / 255 : À̹ÌÁ¾·á local quest_progress000 = get_quest_progress(1224) -- Äù½ºÆ® Á¾·á½Ã ´ë»ç if quest_progress000 == 255 then dlg_title( "@90604201" ) dlg_text( "@90604217" ) -- Äù½ºÆ® ¼öÇà Àü, ¼öÇà Áß ´ë»ç else dlg_title( "@90604201" ) dlg_text( "@90604202" ) end -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ´ë·ÃÀå Ä¡·á»ç ½ÃÀ¯ --============================================================ function NPC_healer_contact() local npc_id = get_npc_id() if npc_id == 6043 then dlg_title( "@90604301" ) dlg_text( "@90604302" ) elseif npc_id == 1088 then dlg_title("@90108801") dlg_text( "@90108802" ) elseif npc_id == 4093 then dlg_title("@90409301") dlg_text( "@90409302" ) elseif npc_id == 2086 then dlg_title("@90208601") dlg_text( "@90208602" ) end -- ´ëÈ­Á¾·á dlg_menu( "@90010156", "question_vie()" ) dlg_menu( "@90010157", "vie_healling()" ) dlg_menu( "@90010002", " " ) dlg_show() end function question_vie() local npc_id = get_npc_id() if npc_id == 6043 then dlg_title( "@90604301" ) dlg_text( "@90604303" ) elseif npc_id == 1088 then dlg_title("@90108801") dlg_text( "@90108803" ) elseif npc_id == 4093 then dlg_title("@90409301") dlg_text( "@90409303" ) elseif npc_id == 2086 then dlg_title("@90208601") dlg_text( "@90208603" ) end dlg_menu( "@90010003", "NPC_healer_contact()" ) dlg_menu( "@90010002", " " ) dlg_show() end function vie_healling() local gold = get_value( "gold" ) local level = get_value( "level" ) local npc_id = get_npc_id() -- ±âÁ¸ °¡°Ý -- local cost = level * 100 -- º¯°æµÈ °¡°Ý local cost = math.floor( 1.9* (level ^ 1.85) + 9 ) if npc_id == 6043 then dlg_title( "@90604301" ) elseif npc_id == 1088 then dlg_title("@90108801") elseif npc_id == 4093 then dlg_title("@90409301") elseif npc_id == 2086 then dlg_title("@90208601") end temp_text =sconv("@90604304", "#@healling_cost@#", cost) dlg_text(temp_text) dlg_menu( "@90010016", "pay_heal()" ) dlg_menu( "@90010001", "NPC_healer_contact()" ) dlg_show() end function pay_heal() local gold = get_value( "gold" ) local level = get_value( "level" ) local npc_id = get_npc_id() -- ±âÁ¸ °¡°Ý -- local cost = level * 100 -- º¯°æµÈ °¡°Ý local cost = math.floor( 1.9* (level ^ 1.85) + 9 ) if npc_id == 6043 then dlg_title( "@90604301" ) elseif npc_id == 1088 then dlg_title("@90108801") elseif npc_id == 4093 then dlg_title("@90409301") elseif npc_id == 2086 then dlg_title("@90208601") end if cost > gold then if npc_id == 6043 then dlg_title( "@90604301" ) elseif npc_id == 1088 then dlg_title("@90108801") elseif npc_id == 4093 then dlg_title("@90409301") elseif npc_id == 2086 then dlg_title("@90208601") end dlg_text( "@90604305" ) else if npc_id == 6043 then dlg_title( "@90604301" ) elseif npc_id == 1088 then dlg_title("@90108801") elseif npc_id == 4093 then dlg_title("@90409301") elseif npc_id == 2086 then dlg_title("@90208601") end dlg_text( "@90604306" ) set_value( "hp" , get_value( "max_hp") ) set_value( "gold", gold - cost ) update_gold_chaos() end dlg_menu( "@90010002", " " ) dlg_show() end -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- --============================================================ --=============== ½ºÅÛ ÇÁ·¯ ¸® --============================================================ function NPC_stamp_master_contact() -- Äù½ºÆ® ÁßÀÎÁö ¹Þ¾Æ¿Â´Ù. 1À̸é Äù½ºÆ® Áß. 0ÀÌ¸é µµÀü ½ÃÀÛ local q_flag = get_flag( "q4" ) local q_flag1 = get_flag( "q5" ) local q_flag2 = get_flag( "q6" ) local q_flag3 = get_flag( "q7" ) local q_flag4 = get_flag( "q8" ) local q_flag5 = get_flag( "q9" ) local q_flag6 = get_flag( "q10" ) local q_flag7 = get_flag( "q11" ) local q_flag8 = get_flag( "q12" ) local q_flag9 = get_flag( "q13" ) local q_flag10 = get_flag( "q14" ) local q_flag00 = get_flag( "q15" ) -- Äù½ºÆ® ¿Ï·áÇØ¹ö¸° µÚ. ÇÒ °Ô ¾øÀ½ if q_flag00 == 1 then -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90991901" ) dlg_text( "@90991913" ) -- Äù½ºÆ® ¹ÞÀº »óÅ¿¡¼­ ¸ðµÎ ¸ð¾ÒÀ» ¶§ elseif q_flag == 1 and q_flag1 == 1 and q_flag2 == 1 and q_flag3 == 1 and q_flag4 == 1 and q_flag5 == 1 and q_flag6 == 1 and q_flag7 == 1 and q_flag8 == 1 and q_flag9 == 1 and q_flag10 == 1 then -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90991901" ) dlg_text( "@90991912" ) -- Äù½ºÆ® ¿ÏÀüÈ÷ ¿Ï·á set_flag( "q15", "1") delete_item( get_item_handle(2010247), 1 ) delete_item( get_item_handle(2010248), 1 ) delete_item( get_item_handle(2010249), 1 ) delete_item( get_item_handle(2010250), 1 ) delete_item( get_item_handle(2010251), 1 ) delete_item( get_item_handle(2010252), 1 ) delete_item( get_item_handle(2010253), 1 ) delete_item( get_item_handle(2010254), 1 ) delete_item( get_item_handle(2010255), 1 ) delete_item( get_item_handle(2010256), 1 ) stamp_master_clear() insert_item( 2901000, 3 ) elseif q_flag == 1 then -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90991901" ) dlg_text( "@90991905" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010159", 'question_stamp()' ) dlg_menu( "@90010162", 'question_stamp_master()' ) elseif q_flag == 0 then -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90991901" ) dlg_text( "@90991902" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010159", 'question_stamp()' ) dlg_menu( "@90010162", 'question_stamp_master()' ) dlg_menu( "@90010160", 'challenge_stamp_master()' ) else -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90991901" ) dlg_text( "@90991902" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010159", 'question_stamp()' ) dlg_menu( "@90010162", 'question_stamp_master()' ) dlg_menu( "@90010160", 'challenge_stamp_master()' ) q_flag = set_flag( "q4" , "0") q_flag1 = set_flag( "q5" , "0") q_flag2 = set_flag( "q6" , "0") q_flag3 = set_flag( "q7" , "0") q_flag4 = set_flag( "q8" , "0") q_flag5 = set_flag( "q9" , "0") q_flag6 = set_flag( "q10" , "0") q_flag7 = set_flag( "q11" , "0") q_flag8 = set_flag( "q12" , "0") q_flag9 = set_flag( "q13" , "0") q_flag10 = set_flag( "q14" , "0") q_flag00 = set_flag( "q15" , "0") end dlg_menu( "@90010002", " " ) dlg_show() end -- µµÀü ½ºÅÆÇÁ·¯¸®! function challenge_stamp_master() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90991901" ) dlg_text( "@90991904" ) --È®ÀÎ dlg_menu( "@90010016", 'yes_question_stamp()' ) --Ãë¼Ò dlg_menu( "@90010001", 'NPC_stamp_master_contact()' ) dlg_show() end -- µµÀü Çã¶ô function yes_question_stamp() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90991901" ) dlg_text( "@90991914" ) set_flag( "q4", "1") dlg_menu( "@90010002", " " ) dlg_show() end --½ºÅÆÇÁ·¯¸®¶õ? function question_stamp() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90991901" ) dlg_text( "@90991903" ) dlg_menu( "@90010003", ' NPC_stamp_master_contact() ' ) dlg_menu( "@90010002", " " ) -- ´ëÈ­Á¾·á dlg_show() end -- ½ºÅÆÇÁ·¯¸®´Â ¾îµð¿¡? function question_stamp_master() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90991901" ) dlg_text( "@90991907" ) dlg_menu( "@90010163", 'question_stamp_master_katan()' ) dlg_menu( "@90010164", 'question_stamp_master_larc()' ) dlg_menu( "@90010165", 'question_stamp_master_rondo()' ) dlg_menu( "@90010166", 'question_stamp_master_etc()' ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end function question_stamp_master_katan() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90991901" ) dlg_text( "@90991908" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010003", 'question_stamp_master()' ) dlg_menu( "@90010002", " " ) dlg_show() end function question_stamp_master_larc() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90991901" ) dlg_text( "@90991909" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010003", 'question_stamp_master()' ) dlg_menu( "@90010002", " " ) dlg_show() end function question_stamp_master_rondo() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90991901" ) dlg_text( "@90991910" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010003", 'question_stamp_master()' ) dlg_menu( "@90010002", " " ) dlg_show() end function question_stamp_master_etc() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90991901" ) dlg_text( "@90991911" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010003", 'question_stamp_master()' ) dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ½ºÅÆÇÁ·¯¸® ¾Æ°¡¾¾ --============================================================ function NPC_stamp_lady_1_contact() --Äù½ºÆ® ÁßÀÎÁö Àоî¿Â´Ù. Äù½ºÆ® ÁßÀ̸é q4°¡ 1. ¾Æ´Ï¸é 0 local q_flag1 = get_flag( "q4" ) --½ºÅÆÇÁ¸¦ ¹Þ¾Ò´ÂÁö Àоî¿Â´Ù. ¹Þ¾Ò´Ù¸é 1. ¾Æ´Ï¶ó¸é 0 local q_flag2 = get_flag( "q5" ) -- °ñµç À§Å© Äù½ºÆ® ÁßÀÌ ¾Æ´Ï¶ó¸é Áñ if q_flag1 == 0 then -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90992001" ) dlg_text( "@90992002" ) -- ¸¸¾à Äù½ºÆ® ÁßÀ̶ó¸é elseif q_flag1 == 1 then if q_flag2 == 1 then -- ½ºÅÆÇÁ¸¦ ¹ÞÀº »óŶó¸é 1 ¹ÞÁö ¾Ê¾Ò´Ù¸é 0 -- ½ºÅÆÇÁ ¹Þ¾ÒÀ¸´Ï Áñ -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90992001" ) dlg_text( "@90992004" ) dlg_menu( "@90010162", 'question_stamp_lady()' ) else -- ½ºÅÆÇÁ¸¦ ¹ÞÁö ¾Ê¾Ò´Ù¸é ÁØ´Ù. ÃàÇÏ! dlg_title( "@90992001" ) dlg_text( "@90992003" ) -- ½ºÅÆÇÁ ³Ö¾îÁÖ°í Ç÷¡±× 1·Î äũ set_flag( "q5", "1") insert_item( 2010247, 1 ) stamp_master_clear() dlg_menu( "@90010162", 'question_stamp_lady()' ) end end -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ½ºÅÆÇÁ·¯¸® ¾Æ°¡¾¾ --============================================================ function NPC_stamp_lady_2_contact() --Äù½ºÆ® ÁßÀÎÁö Àоî¿Â´Ù. Äù½ºÆ® ÁßÀ̸é q4°¡ 1. ¾Æ´Ï¸é 0 local q_flag1 = get_flag( "q4" ) --½ºÅÆÇÁ¸¦ ¹Þ¾Ò´ÂÁö Àоî¿Â´Ù. ¹Þ¾Ò´Ù¸é 1. ¾Æ´Ï¶ó¸é 0 local q_flag2 = get_flag( "q6" ) -- °ñµç À§Å© Äù½ºÆ® ÁßÀÌ ¾Æ´Ï¶ó¸é Áñ if q_flag1 == 0 then -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90992001" ) dlg_text( "@90992002" ) -- ¸¸¾à Äù½ºÆ® ÁßÀ̶ó¸é elseif q_flag1 == 1 then if q_flag2 == 1 then -- ½ºÅÆÇÁ¸¦ ¹ÞÀº »óŶó¸é 1 ¹ÞÁö ¾Ê¾Ò´Ù¸é 0 -- ½ºÅÆÇÁ ¹Þ¾ÒÀ¸´Ï Áñ -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90992001" ) dlg_text( "@90992004" ) dlg_menu( "@90010162", 'question_stamp_lady()' ) else -- ½ºÅÆÇÁ¸¦ ¹ÞÁö ¾Ê¾Ò´Ù¸é ÁØ´Ù. ÃàÇÏ! dlg_title( "@90992001" ) dlg_text( "@90992003" ) -- ½ºÅÆÇÁ ³Ö¾îÁÖ°í Ç÷¡±× 1·Î äũ set_flag( "q6", "1") insert_item( 2010248, 1 ) stamp_master_clear() dlg_menu( "@90010162", 'question_stamp_lady()' ) end end -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ½ºÅÆÇÁ·¯¸® ¾Æ°¡¾¾ --============================================================ function NPC_stamp_lady_3_contact() --Äù½ºÆ® ÁßÀÎÁö Àоî¿Â´Ù. Äù½ºÆ® ÁßÀ̸é q4°¡ 1. ¾Æ´Ï¸é 0 local q_flag1 = get_flag( "q4" ) --½ºÅÆÇÁ¸¦ ¹Þ¾Ò´ÂÁö Àоî¿Â´Ù. ¹Þ¾Ò´Ù¸é 1. ¾Æ´Ï¶ó¸é 0 local q_flag2 = get_flag( "q7" ) -- °ñµç À§Å© Äù½ºÆ® ÁßÀÌ ¾Æ´Ï¶ó¸é Áñ if q_flag1 == 0 then -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90992001" ) dlg_text( "@90992002" ) -- ¸¸¾à Äù½ºÆ® ÁßÀ̶ó¸é elseif q_flag1 == 1 then if q_flag2 == 1 then -- ½ºÅÆÇÁ¸¦ ¹ÞÀº »óŶó¸é 1 ¹ÞÁö ¾Ê¾Ò´Ù¸é 0 -- ½ºÅÆÇÁ ¹Þ¾ÒÀ¸´Ï Áñ -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90992001" ) dlg_text( "@90992004" ) dlg_menu( "@90010162", 'question_stamp_lady()' ) else -- ½ºÅÆÇÁ¸¦ ¹ÞÁö ¾Ê¾Ò´Ù¸é ÁØ´Ù. ÃàÇÏ! dlg_title( "@90992001" ) dlg_text( "@90992003" ) -- ½ºÅÆÇÁ ³Ö¾îÁÖ°í Ç÷¡±× 1·Î äũ set_flag( "q7", "1") insert_item( 2010249, 1 ) stamp_master_clear() dlg_menu( "@90010162", 'question_stamp_lady()' ) end end -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ½ºÅÆÇÁ·¯¸® ¾Æ°¡¾¾ --============================================================ function NPC_stamp_lady_4_contact() --Äù½ºÆ® ÁßÀÎÁö Àоî¿Â´Ù. Äù½ºÆ® ÁßÀ̸é q4°¡ 1. ¾Æ´Ï¸é 0 local q_flag1 = get_flag( "q4" ) --½ºÅÆÇÁ¸¦ ¹Þ¾Ò´ÂÁö Àоî¿Â´Ù. ¹Þ¾Ò´Ù¸é 1. ¾Æ´Ï¶ó¸é 0 local q_flag2 = get_flag( "q8" ) -- °ñµç À§Å© Äù½ºÆ® ÁßÀÌ ¾Æ´Ï¶ó¸é Áñ if q_flag1 == 0 then -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90992001" ) dlg_text( "@90992002" ) -- ¸¸¾à Äù½ºÆ® ÁßÀ̶ó¸é elseif q_flag1 == 1 then if q_flag2 == 1 then -- ½ºÅÆÇÁ¸¦ ¹ÞÀº »óŶó¸é 1 ¹ÞÁö ¾Ê¾Ò´Ù¸é 0 -- ½ºÅÆÇÁ ¹Þ¾ÒÀ¸´Ï Áñ -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90992001" ) dlg_text( "@90992004" ) dlg_menu( "@90010162", 'question_stamp_lady()' ) else -- ½ºÅÆÇÁ¸¦ ¹ÞÁö ¾Ê¾Ò´Ù¸é ÁØ´Ù. ÃàÇÏ! dlg_title( "@90992001" ) dlg_text( "@90992003" ) -- ½ºÅÆÇÁ ³Ö¾îÁÖ°í Ç÷¡±× 1·Î äũ set_flag( "q8", "1") insert_item( 2010250, 1 ) stamp_master_clear() dlg_menu( "@90010162", 'question_stamp_lady()' ) end end -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ½ºÅÆÇÁ·¯¸® ¾Æ°¡¾¾ --============================================================ function NPC_stamp_lady_5_contact() --Äù½ºÆ® ÁßÀÎÁö Àоî¿Â´Ù. Äù½ºÆ® ÁßÀ̸é q4°¡ 1. ¾Æ´Ï¸é 0 local q_flag1 = get_flag( "q4" ) --½ºÅÆÇÁ¸¦ ¹Þ¾Ò´ÂÁö Àоî¿Â´Ù. ¹Þ¾Ò´Ù¸é 1. ¾Æ´Ï¶ó¸é 0 local q_flag2 = get_flag( "q9" ) -- °ñµç À§Å© Äù½ºÆ® ÁßÀÌ ¾Æ´Ï¶ó¸é Áñ if q_flag1 == 0 then -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90992001" ) dlg_text( "@90992002" ) -- ¸¸¾à Äù½ºÆ® ÁßÀ̶ó¸é elseif q_flag1 == 1 then if q_flag2 == 1 then -- ½ºÅÆÇÁ¸¦ ¹ÞÀº »óŶó¸é 1 ¹ÞÁö ¾Ê¾Ò´Ù¸é 0 -- ½ºÅÆÇÁ ¹Þ¾ÒÀ¸´Ï Áñ -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90992001" ) dlg_text( "@90992004" ) dlg_menu( "@90010162", 'question_stamp_lady()' ) else -- ½ºÅÆÇÁ¸¦ ¹ÞÁö ¾Ê¾Ò´Ù¸é ÁØ´Ù. ÃàÇÏ! dlg_title( "@90992001" ) dlg_text( "@90992003" ) -- ½ºÅÆÇÁ ³Ö¾îÁÖ°í Ç÷¡±× 1·Î äũ set_flag( "q9", "1") insert_item( 2010251, 1 ) stamp_master_clear() dlg_menu( "@90010162", 'question_stamp_lady()' ) end end -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ½ºÅÆÇÁ·¯¸® ¾Æ°¡¾¾ --============================================================ function NPC_stamp_lady_6_contact() --Äù½ºÆ® ÁßÀÎÁö Àоî¿Â´Ù. Äù½ºÆ® ÁßÀ̸é q4°¡ 1. ¾Æ´Ï¸é 0 local q_flag1 = get_flag( "q4" ) --½ºÅÆÇÁ¸¦ ¹Þ¾Ò´ÂÁö Àоî¿Â´Ù. ¹Þ¾Ò´Ù¸é 1. ¾Æ´Ï¶ó¸é 0 local q_flag2 = get_flag( "q10" ) -- °ñµç À§Å© Äù½ºÆ® ÁßÀÌ ¾Æ´Ï¶ó¸é Áñ if q_flag1 == 0 then -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90992001" ) dlg_text( "@90992002" ) -- ¸¸¾à Äù½ºÆ® ÁßÀ̶ó¸é elseif q_flag1 == 1 then if q_flag2 == 1 then -- ½ºÅÆÇÁ¸¦ ¹ÞÀº »óŶó¸é 1 ¹ÞÁö ¾Ê¾Ò´Ù¸é 0 -- ½ºÅÆÇÁ ¹Þ¾ÒÀ¸´Ï Áñ -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90992001" ) dlg_text( "@90992004" ) dlg_menu( "@90010162", 'question_stamp_lady()' ) else -- ½ºÅÆÇÁ¸¦ ¹ÞÁö ¾Ê¾Ò´Ù¸é ÁØ´Ù. ÃàÇÏ! dlg_title( "@90992001" ) dlg_text( "@90992003" ) -- ½ºÅÆÇÁ ³Ö¾îÁÖ°í Ç÷¡±× 1·Î äũ set_flag( "q10", "1") insert_item( 2010252, 1 ) stamp_master_clear() dlg_menu( "@90010162", 'question_stamp_lady()' ) end end -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ½ºÅÆÇÁ·¯¸® ¾Æ°¡¾¾ --============================================================ function NPC_stamp_lady_7_contact() --Äù½ºÆ® ÁßÀÎÁö Àоî¿Â´Ù. Äù½ºÆ® ÁßÀ̸é q4°¡ 1. ¾Æ´Ï¸é 0 local q_flag1 = get_flag( "q4" ) --½ºÅÆÇÁ¸¦ ¹Þ¾Ò´ÂÁö Àоî¿Â´Ù. ¹Þ¾Ò´Ù¸é 1. ¾Æ´Ï¶ó¸é 0 local q_flag2 = get_flag( "q11" ) -- °ñµç À§Å© Äù½ºÆ® ÁßÀÌ ¾Æ´Ï¶ó¸é Áñ if q_flag1 == 0 then -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90992001" ) dlg_text( "@90992002" ) -- ¸¸¾à Äù½ºÆ® ÁßÀ̶ó¸é elseif q_flag1 == 1 then if q_flag2 == 1 then -- ½ºÅÆÇÁ¸¦ ¹ÞÀº »óŶó¸é 1 ¹ÞÁö ¾Ê¾Ò´Ù¸é 0 -- ½ºÅÆÇÁ ¹Þ¾ÒÀ¸´Ï Áñ -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90992001" ) dlg_text( "@90992004" ) dlg_menu( "@90010162", 'question_stamp_lady()' ) else -- ½ºÅÆÇÁ¸¦ ¹ÞÁö ¾Ê¾Ò´Ù¸é ÁØ´Ù. ÃàÇÏ! dlg_title( "@90992001" ) dlg_text( "@90992003" ) -- ½ºÅÆÇÁ ³Ö¾îÁÖ°í Ç÷¡±× 1·Î äũ set_flag( "q11", "1") insert_item( 2010253, 1 ) stamp_master_clear() dlg_menu( "@90010162", 'question_stamp_lady()' ) end end -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ½ºÅÆÇÁ·¯¸® ¾Æ°¡¾¾ --============================================================ function NPC_stamp_lady_8_contact() --Äù½ºÆ® ÁßÀÎÁö Àоî¿Â´Ù. Äù½ºÆ® ÁßÀ̸é q4°¡ 1. ¾Æ´Ï¸é 0 local q_flag1 = get_flag( "q4" ) --½ºÅÆÇÁ¸¦ ¹Þ¾Ò´ÂÁö Àоî¿Â´Ù. ¹Þ¾Ò´Ù¸é 1. ¾Æ´Ï¶ó¸é 0 local q_flag2 = get_flag( "q12" ) -- °ñµç À§Å© Äù½ºÆ® ÁßÀÌ ¾Æ´Ï¶ó¸é Áñ if q_flag1 == 0 then -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90992001" ) dlg_text( "@90992002" ) -- ¸¸¾à Äù½ºÆ® ÁßÀ̶ó¸é elseif q_flag1 == 1 then if q_flag2 == 1 then -- ½ºÅÆÇÁ¸¦ ¹ÞÀº »óŶó¸é 1 ¹ÞÁö ¾Ê¾Ò´Ù¸é 0 -- ½ºÅÆÇÁ ¹Þ¾ÒÀ¸´Ï Áñ -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90992001" ) dlg_text( "@90992004" ) dlg_menu( "@90010162", 'question_stamp_lady()' ) else -- ½ºÅÆÇÁ¸¦ ¹ÞÁö ¾Ê¾Ò´Ù¸é ÁØ´Ù. ÃàÇÏ! dlg_title( "@90992001" ) dlg_text( "@90992003" ) -- ½ºÅÆÇÁ ³Ö¾îÁÖ°í Ç÷¡±× 1·Î äũ set_flag( "q12", "1") insert_item( 2010254, 1 ) stamp_master_clear() dlg_menu( "@90010162", 'question_stamp_lady()' ) end end -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ½ºÅÆÇÁ·¯¸® ¾Æ°¡¾¾ --============================================================ function NPC_stamp_lady_9_contact() --Äù½ºÆ® ÁßÀÎÁö Àоî¿Â´Ù. Äù½ºÆ® ÁßÀ̸é q4°¡ 1. ¾Æ´Ï¸é 0 local q_flag1 = get_flag( "q4" ) --½ºÅÆÇÁ¸¦ ¹Þ¾Ò´ÂÁö Àоî¿Â´Ù. ¹Þ¾Ò´Ù¸é 1. ¾Æ´Ï¶ó¸é 0 local q_flag2 = get_flag( "q13" ) -- °ñµç À§Å© Äù½ºÆ® ÁßÀÌ ¾Æ´Ï¶ó¸é Áñ if q_flag1 == 0 then -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90992001" ) dlg_text( "@90992002" ) -- ¸¸¾à Äù½ºÆ® ÁßÀ̶ó¸é elseif q_flag1 == 1 then if q_flag2 == 1 then -- ½ºÅÆÇÁ¸¦ ¹ÞÀº »óŶó¸é 1 ¹ÞÁö ¾Ê¾Ò´Ù¸é 0 -- ½ºÅÆÇÁ ¹Þ¾ÒÀ¸´Ï Áñ -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90992001" ) dlg_text( "@90992004" ) dlg_menu( "@90010162", 'question_stamp_lady()' ) else -- ½ºÅÆÇÁ¸¦ ¹ÞÁö ¾Ê¾Ò´Ù¸é ÁØ´Ù. ÃàÇÏ! dlg_title( "@90992001" ) dlg_text( "@90992003" ) -- ½ºÅÆÇÁ ³Ö¾îÁÖ°í Ç÷¡±× 1·Î äũ set_flag( "q13", "1") insert_item( 2010255, 1 ) stamp_master_clear() dlg_menu( "@90010162", 'question_stamp_lady()' ) end end -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ½ºÅÆÇÁ·¯¸® ¾Æ°¡¾¾ --============================================================ function NPC_stamp_lady_10_contact() --Äù½ºÆ® ÁßÀÎÁö Àоî¿Â´Ù. Äù½ºÆ® ÁßÀ̸é q4°¡ 1. ¾Æ´Ï¸é 0 local q_flag1 = get_flag( "q4" ) --½ºÅÆÇÁ¸¦ ¹Þ¾Ò´ÂÁö Àоî¿Â´Ù. ¹Þ¾Ò´Ù¸é 1. ¾Æ´Ï¶ó¸é 0 local q_flag2 = get_flag( "q14" ) -- °ñµç À§Å© Äù½ºÆ® ÁßÀÌ ¾Æ´Ï¶ó¸é Áñ if q_flag1 == 0 then -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90992001" ) dlg_text( "@90992002" ) -- ¸¸¾à Äù½ºÆ® ÁßÀ̶ó¸é elseif q_flag1 == 1 then if q_flag2 == 1 then -- ½ºÅÆÇÁ¸¦ ¹ÞÀº »óŶó¸é 1 ¹ÞÁö ¾Ê¾Ò´Ù¸é 0 -- ½ºÅÆÇÁ ¹Þ¾ÒÀ¸´Ï Áñ -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90992001" ) dlg_text( "@90992004" ) dlg_menu( "@90010162", 'question_stamp_lady()' ) else -- ½ºÅÆÇÁ¸¦ ¹ÞÁö ¾Ê¾Ò´Ù¸é ÁØ´Ù. ÃàÇÏ! dlg_title( "@90992001" ) dlg_text( "@90992003" ) -- ½ºÅÆÇÁ ³Ö¾îÁÖ°í Ç÷¡±× 1·Î äũ set_flag( "q14", "1") insert_item( 2010256, 1 ) stamp_master_clear() dlg_menu( "@90010162", 'question_stamp_lady()' ) end end -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end function question_stamp_lady() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90992001" ) dlg_text( "@90992005" ) dlg_menu( "@90010163", 'question_stamp_lady_katan()' ) dlg_menu( "@90010164", 'question_stamp_lady_larc()' ) dlg_menu( "@90010165", 'question_stamp_lady_rondo()' ) dlg_menu( "@90010166", 'question_stamp_lady_etc()' ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end function question_stamp_lady_katan() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90992001" ) dlg_text( "@90992006" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010003", 'question_stamp_lady()' ) dlg_menu( "@90010002", " " ) dlg_show() end function question_stamp_lady_larc() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90992001" ) dlg_text( "@90992007" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010003", 'question_stamp_lady()' ) dlg_menu( "@90010002", " " ) dlg_show() end function question_stamp_lady_rondo() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90992001" ) dlg_text( "@90992008" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010003", 'question_stamp_lady()' ) dlg_menu( "@90010002", " " ) dlg_show() end function question_stamp_lady_etc() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90992001" ) dlg_text( "@90992009" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010003", 'question_stamp_lady()' ) dlg_menu( "@90010002", " " ) dlg_show() end -- º¸»ó ó¸® ±¸¿ª function stamp_master_clear() local level = get_value( "level" ) local expe = get_value( "exp" ) local jpe = get_value( "jp" ) local experien = math.floor( level * 2.4 + level^1.46 + ( level^ 2 * 0.1) + 2 ) * 40 local jp = math.floor( level * 0.8 * 40) set_value( "jp", jpe + jp ) set_value( "exp", expe + experien ) end --============================================================ --=============== ¼±¹° Áö±Þ µµ¿ì¹Ì --============================================================ function NPC_Second_present_contact() local q_flag0 = get_flag( "q18" ) local q_flag1 = get_flag( "q19" ) local Second_event = get_value( "event_code" ) if Second_event == 1 then -- Ç÷¡±× ÃʱâÈ­ ½Ã۱â! if q_flag0 == 0 or q_flag1 == 0 then -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90993000" ) --Á¦¸ñ : ¼±¹°´ë¿©µµ¿ì¹Ì dlg_text( "@90993002" ) --Àλ縻 -- ´ëÈ­Á¾·á dlg_menu( "@90010172", 'second_present()' ) --¼±¹°¹Þ±â dlg_menu( "@90010002", " " ) --´ëÈ­Á¾·á elseif q_flag0 == 1 or q_flag1 == 1 then -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90993000" ) --Á¦¸ñ : ¼±¹°´ë¿©µµ¿ì¹Ì dlg_text( "@90993002" ) --Àλ縻 -- ´ëÈ­Á¾·á dlg_menu( "@90010172", 'second_present()' ) --¼±¹°¹Þ±â dlg_menu( "@90010002", " " ) --´ëÈ­Á¾·á else -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90993000" ) --Á¦¸ñ : ¼±¹°´ë¿©µµ¿ì¹Ì dlg_text( "@90993002" ) --Àλ縻 -- ´ëÈ­Á¾·á dlg_menu( "@90010172", 'second_present()' ) --¼±¹°¹Þ±â dlg_menu( "@90010002", " " ) --´ëÈ­Á¾·á set_flag( "q18", "0") set_flag( "q19", "0") end else -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90993000" ) --Á¦¸ñ : ¼±¹°´ë¿©µµ¿ì¹Ì dlg_text( "@90993004" ) --Á˼ÛÇÏÁö¸¸ À̹ø ¼±¹°Àº ¶óÆçÁîÀÇ ¼¼°è¿¡ ¿À·£¸¸¿¡ ¿À½Å ºÐµé¸¸ ¹ÞÀ» ¼ö ÀÖ½À´Ï´Ù. dlg_menu( "@90010002", " " ) --´ëÈ­Á¾·á end dlg_show() end -- ¼±¹° ¹Þ±â function second_present() -- ÇöÀç Á÷¾÷ id¸¦ ¹Þ¾Æ³õ´Â´Ù. local job = get_value( "job" ) -- ·¹º§ ¹Þ¾Æ¿È local level = get_value( "level" ) local q_flag0 = get_flag( "q18" ) local q_flag1 = get_flag( "q19" ) -- ±âº» Á÷¾÷Àº Áñ ¶§¸² if job == 100 or job == 200 or job == 300 then -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90993000" ) --Á¦¸ñ : ¼±¹°´ë¿©µµ¿ì¹Ì dlg_text( "@90993009" ) --¼±¹°À» ´ë¿© ¹ÞÀ¸·Á¸é ¸ÕÀú 1Â÷ Á÷¾÷À¸·Î ÀüÁ÷À» ÇØ¾ß ÇÕ´Ï´Ù. elseif level <= 49 then --·©Å©2¹«±â´ë¿© --1Â÷ Á÷¾÷À» °¡Áö°í ÀÖ´ø 2Â÷ Á÷¾÷À» °¡Áö°í ÀÖ´ø ¸ðµÎ ±×¿¡ ¸Â´Â ¾ÆÀÌÅÛÀ» Áö±ÞÇØ ÁØ´Ù. if job == 201 or job == 202 or job == 203 or job == 301 or job == 302 or job == 303 or job == 101 or job == 102 or job == 103 or job == 210 or job == 211 or job == 212 or job == 213 or job == 214 or job == 310 or job == 311 or job == 312 or job == 313 or job == 314 or job == 110 or job == 111 or job == 112 or job == 113 or job == 114 then if q_flag0 == 1 and q_flag1 == 1 then -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90993000" ) --Á¦¸ñ : ¼±¹°´ë¿©µµ¿ì¹Ì dlg_text( "@90993005" ) --ÀÌ¹Ì ¼±¹°À» ´ë¿© ¹ÞÀ¸¼Ì³×¿ä. elseif q_flag0 == 1 then -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90993000" ) --Á¦¸ñ dlg_text( "@90993003" ) --¾î¶² ¼±¹°À» ¹ÞÀ¸½Ã°Ú½À´Ï±î? dlg_menu( "@90010174", 'second_present_armor()' ) --¹æ¾î±¸¹Þ±â elseif q_flag1 == 1 then -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90993000" ) --Á¦¸ñ dlg_text( "@90993003" ) --¾î¶² ¼±¹°À» ¹ÞÀ¸½Ã°Ú½À´Ï±î? dlg_menu( "@90010173", 'second_present_weapon()' ) --¹«±â¹Þ±â elseif q_flag0 == 0 and q_flag1 == 0 then -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90993000" ) --Á¦¸ñ dlg_text( "@90993003" ) --¾î¶² ¼±¹°À» ¹ÞÀ¸½Ã°Ú½À´Ï±î? dlg_menu( "@90010174", 'second_present_armor()' ) --¹æ¾î±¸¹Þ±â dlg_menu( "@90010173", 'second_present_weapon()' ) --¹«±â¹Þ±â end end elseif level >= 50 and level <= 79 then --·©Å©3¹«±â´ë¿© --1Â÷ Á÷¾÷À» °¡Áö°í ÀÖ´ø 2Â÷ Á÷¾÷À» °¡Áö°í ÀÖ´ø ¸ðµÎ ±×¿¡ ¸Â´Â ¾ÆÀÌÅÛÀ» Áö±ÞÇØ ÁØ´Ù. if job == 201 or job == 202 or job == 203 or job == 301 or job == 302 or job == 303 or job == 101 or job == 102 or job == 103 or job == 210 or job == 211 or job == 212 or job == 213 or job == 214 or job == 310 or job == 311 or job == 312 or job == 313 or job == 314 or job == 110 or job == 111 or job == 112 or job == 113 or job == 114 then if q_flag0 == 1 and q_flag1 == 1 then -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90993000" ) --Á¦¸ñ : ¼±¹°´ë¿©µµ¿ì¹Ì dlg_text( "@90993005" ) --ÀÌ¹Ì ¼±¹°À» ´ë¿© ¹ÞÀ¸¼Ì³×¿ä. elseif q_flag0 == 1 then -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90993000" ) --Á¦¸ñ dlg_text( "@90993003" ) --¾î¶² ¼±¹°À» ¹ÞÀ¸½Ã°Ú½À´Ï±î? dlg_menu( "@90010174", 'second_present_armor()' ) --¹æ¾î±¸¹Þ±â elseif q_flag1 == 1 then -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90993000" ) --Á¦¸ñ dlg_text( "@90993003" ) --¾î¶² ¼±¹°À» ¹ÞÀ¸½Ã°Ú½À´Ï±î? dlg_menu( "@90010173", 'second_present_weapon()' ) --¹«±â¹Þ±â elseif q_flag0 == 0 and q_flag1 == 0 then -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90993000" ) --Á¦¸ñ dlg_text( "@90993003" ) --¾î¶² ¼±¹°À» ¹ÞÀ¸½Ã°Ú½À´Ï±î? dlg_menu( "@90010174", 'second_present_armor()' ) --¹æ¾î±¸¹Þ±â dlg_menu( "@90010173", 'second_present_weapon()' ) --¹«±â¹Þ±â end end elseif level >= 80 and level <= 99 then --·©Å©4¹«±â´ë¿© --ÆÄÀÌÅÍ µî 1Â÷ Á÷¾÷ µéÀº 2Â÷·Î ÀüÁ÷ÇØ¶ó´Â ¹®±¸ Ãâ·Â if job == 201 or job == 202 or job == 203 or job == 301 or job == 302 or job == 303 or job == 101 or job == 102 or job == 103 then dlg_title( "@90993000" ) --Á¦¸ñ : ¼±¹°´ë¿©µµ¿ì¹Ì dlg_text( "@90993010" ) --2Â÷Á÷¾÷À¸·Î ÀüÁ÷ÇØ¾ßÇÕ´Ï´Ù. elseif job == 210 or job == 211 or job == 212 or job == 213 or job == 214 or job == 310 or job == 311 or job == 312 or job == 313 or job == 314 or job == 110 or job == 111 or job == 112 or job == 113 or job == 114 then if q_flag0 == 1 and q_flag1 == 1 then -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90993000" ) --Á¦¸ñ : ¼±¹°´ë¿©µµ¿ì¹Ì dlg_text( "@90993005" ) --ÀÌ¹Ì ¼±¹°À» ´ë¿© ¹ÞÀ¸¼Ì³×¿ä. elseif q_flag0 == 1 then -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90993000" ) --Á¦¸ñ dlg_text( "@90993003" ) --¾î¶² ¼±¹°À» ¹ÞÀ¸½Ã°Ú½À´Ï±î? dlg_menu( "@90010174", 'second_present_armor()' ) --¹æ¾î±¸¹Þ±â elseif q_flag1 == 1 then -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90993000" ) --Á¦¸ñ dlg_text( "@90993003" ) --¾î¶² ¼±¹°À» ¹ÞÀ¸½Ã°Ú½À´Ï±î? dlg_menu( "@90010173", 'second_present_weapon()' ) --¹«±â¹Þ±â elseif q_flag0 == 0 and q_flag1 == 0 then -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90993000" ) --Á¦¸ñ dlg_text( "@90993003" ) --¾î¶² ¼±¹°À» ¹ÞÀ¸½Ã°Ú½À´Ï±î? dlg_menu( "@90010174", 'second_present_armor()' ) --¹æ¾î±¸¹Þ±â dlg_menu( "@90010173", 'second_present_weapon()' ) --¹«±â¹Þ±â end end elseif level >= 100 and level <= 119 then --·©Å©5¹«±â´ë¿© --ÆÄÀÌÅÍ µî 1Â÷ Á÷¾÷ µéÀº 2Â÷·Î ÀüÁ÷ÇØ¶ó´Â ¹®±¸ Ãâ·Â if job == 201 or job == 202 or job == 203 or job == 301 or job == 302 or job == 303 or job == 101 or job == 102 or job == 103 then dlg_title( "@90993000" ) --Á¦¸ñ : ¼±¹°´ë¿©µµ¿ì¹Ì dlg_text( "@90993010" ) --2Â÷Á÷¾÷À¸·Î ÀüÁ÷ÇØ¾ßÇÕ´Ï´Ù. elseif job == 210 or job == 211 or job == 212 or job == 213 or job == 214 or job == 310 or job == 311 or job == 312 or job == 313 or job == 314 or job == 110 or job == 111 or job == 112 or job == 113 or job == 114 then if q_flag0 == 1 and q_flag1 == 1 then -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90993000" ) --Á¦¸ñ : ¼±¹°´ë¿©µµ¿ì¹Ì dlg_text( "@90993005" ) --ÀÌ¹Ì ¼±¹°À» ´ë¿© ¹ÞÀ¸¼Ì³×¿ä. elseif q_flag0 == 1 then -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90993000" ) --Á¦¸ñ dlg_text( "@90993003" ) --¾î¶² ¼±¹°À» ¹ÞÀ¸½Ã°Ú½À´Ï±î? dlg_menu( "@90010174", 'second_present_armor()' ) --¹æ¾î±¸¹Þ±â elseif q_flag1 == 1 then -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90993000" ) --Á¦¸ñ dlg_text( "@90993003" ) --¾î¶² ¼±¹°À» ¹ÞÀ¸½Ã°Ú½À´Ï±î? dlg_menu( "@90010173", 'second_present_weapon()' ) --¹«±â¹Þ±â elseif q_flag0 == 0 and q_flag1 == 0 then -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90993000" ) --Á¦¸ñ dlg_text( "@90993003" ) --¾î¶² ¼±¹°À» ¹ÞÀ¸½Ã°Ú½À´Ï±î? dlg_menu( "@90010174", 'second_present_armor()' ) --¹æ¾î±¸¹Þ±â dlg_menu( "@90010173", 'second_present_weapon()' ) --¹«±â¹Þ±â end end elseif level >= 120 and level <= 170 then --·©Å©6¹«±â´ë¿© --ÆÄÀÌÅÍ µî 1Â÷ Á÷¾÷ µéÀº 2Â÷·Î ÀüÁ÷ÇØ¶ó´Â ¹®±¸ Ãâ·Â if job == 201 or job == 202 or job == 203 or job == 301 or job == 302 or job == 303 or job == 101 or job == 102 or job == 103 then dlg_title( "@90993000" ) --Á¦¸ñ : ¼±¹°´ë¿©µµ¿ì¹Ì dlg_text( "@90993010" ) --2Â÷Á÷¾÷À¸·Î ÀüÁ÷ÇØ¾ßÇÕ´Ï´Ù. elseif job == 210 or job == 211 or job == 212 or job == 213 or job == 214 or job == 310 or job == 311 or job == 312 or job == 313 or job == 314 or job == 110 or job == 111 or job == 112 or job == 113 or job == 114 then if q_flag0 == 1 and q_flag1 == 1 then -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90993000" ) --Á¦¸ñ : ¼±¹°´ë¿©µµ¿ì¹Ì dlg_text( "@90993005" ) --ÀÌ¹Ì ¼±¹°À» ´ë¿© ¹ÞÀ¸¼Ì³×¿ä. elseif q_flag0 == 1 then -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90993000" ) --Á¦¸ñ dlg_text( "@90993003" ) --¾î¶² ¼±¹°À» ¹ÞÀ¸½Ã°Ú½À´Ï±î? dlg_menu( "@90010174", 'second_present_armor()' ) --¹æ¾î±¸¹Þ±â elseif q_flag1 == 1 then -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90993000" ) --Á¦¸ñ dlg_text( "@90993003" ) --¾î¶² ¼±¹°À» ¹ÞÀ¸½Ã°Ú½À´Ï±î? dlg_menu( "@90010173", 'second_present_weapon()' ) --¹«±â¹Þ±â elseif q_flag0 == 0 and q_flag1 == 0 then -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90993000" ) --Á¦¸ñ dlg_text( "@90993003" ) --¾î¶² ¼±¹°À» ¹ÞÀ¸½Ã°Ú½À´Ï±î? dlg_menu( "@90010174", 'second_present_armor()' ) --¹æ¾î±¸¹Þ±â dlg_menu( "@90010173", 'second_present_weapon()' ) --¹«±â¹Þ±â end end end dlg_menu( "@90010002", " " ) --´ëÈ­Á¾·á dlg_show() end -- ¹«±â Áö±Þ function second_present_weapon() -- ÇöÀç Á÷¾÷ id¸¦ ¹Þ¾Æ³õ´Â´Ù. local job = get_value( "job" ) -- ·¹º§ ¹Þ¾Æ¿È local level = get_value( "level" ) --ij¸¯ÅÍ ·¹º§Àº ³·À¸³ª 2Â÷Á÷¾÷À» °¡Áø ij¸¯Å͵鿡 ´ëÇÑ ¿¹¿Ü󸮷Π--2Â÷Á÷¾÷µµ °Ë»ö Á¶°Ç¿¡ Æ÷ÇÔ½ÃŲ´Ù. if level <= 49 then --·©Å©2¹«±â´ë¿© -- ÆÄÀÌÅÍ, ³ªÀÌÆ®, ¿ö¸®¾î Á÷¾÷ üũ if job == 201 or job == 210 or job == 211 then insert_item( 3000301, 1 ) --³ªÀÌÃ÷¼Òµå set_flag( "q18", "1") -- Ŭ·¹¸¯, ¸ÞÀÌÁö, ÇÁ¸®½ºÆ® elseif job == 202 or job == 212 or job == 213 then insert_item( 3000317, 1 ) --ÆÄ¼â°ï set_flag( "q18", "1") -- Å×À̸Ó, ºê¸®´õ elseif job == 203 or job == 214 then insert_item( 3000317, 1 ) --ÆÄ¼â°ï set_flag( "q18", "1") -- ½ºÆ®¶óÀÌ´õ, ¾î½Ø½Å, ·¹ÀÎÀú elseif job == 301 or job == 310 or job == 311 then insert_item( 3000301, 1 ) insert_item( 3000301, 1 ) --³ªÀÌÃ÷¼Òµå2°³´ë¿© insert_item( 3000309, 1 ) set_flag( "q18", "1") -- ¸ÅÁö¼Ç, ¼Ò¼­·¯, ´ÙÅ©¸ÅÁö¼Ç elseif job == 302 or job == 312 or job == 313 then insert_item( 3000321, 1 ) set_flag( "q18", "1") -- ¼­¸ð³Ê, ¹èƲ¼­¸ð³Ê elseif job == 303 or job == 314 then insert_item( 3000395, 1 ) --¾ÆÀ̷дë°Å set_flag( "q18", "1") -- Åõ»ç, Àü»ç, ±Ã»ç elseif job == 101 or job == 110 or job == 111 then insert_item( 3000387, 1 ) insert_item( 3000387, 1 ) --¾ÆÀ̽º ¿¢½º2°³´ë¿© insert_item( 3000305, 1 ) --¸µÅ¬ º¸¿ì set_flag( "q18", "1") -- ÁÖ¼ú»ç, ¸¶µµ»ç, ¸¶Åõ»ç elseif job == 102 or job == 112 or job == 113 then insert_item( 3000396, 1 ) --¾ç³¯ µµ³¢ set_flag( "q18", "1") -- ¾ß¼ö»ç, ¸¶¼ö»ç elseif job == 103 or job == 114 then insert_item( 3000313, 1 ) set_flag( "q18", "1") else return end elseif level >= 50 and level <= 79 then --·©Å©3¹«±â´ë¿© --¾Æ·¡ 1Â÷Á÷¾÷µéÀº ¿¹¿Ü»çÇ×À¸·Î ij¸¯ÅÍ·¹º§Àº ³ôÀ¸³ª --ÀüÁ÷À» ÇÏÁö ¾ÊÀº ij¸¯Å͸¦ À§ÇÑ ¿¹¿Ü»çÇ×ÀÌ´Ù. --±× ·¹º§¿¡ ¸Â´Â ¾ÆÀÌÅÛÀ» ÀüÁ÷¿¡ ¸Â°Ô ÁØ´Ù. -- ÆÄÀÌÅÍ if job == 201 then insert_item( 3000302, 1 ) --ÆÄ¿° insert_item( 3000397, 1 ) --¹Ù½ºÅ¸µå¼Òµå set_flag( "q18", "1") -- Ŭ·¹¸¯ elseif job == 202 then insert_item( 3000318, 1 ) --Áê¾ó¸®¸ÞÀ̽º set_flag( "q18", "1") -- Å×ÀÌ¸Ó elseif job == 203 then insert_item( 3000318, 1 ) --Áê¾ó¸®¸ÞÀ̽º set_flag( "q18", "1") -- ½ºÆ®¶óÀÌ´õ elseif job == 301 then insert_item( 3000302, 1 ) --ÆÄ¿° insert_item( 3000302, 1 ) --ÆÄ¿° insert_item( 3000310, 1 ) --±×·¹ÀÌÆ®º¸¿ì set_flag( "q18", "1") -- ¸ÅÁö¼Ç elseif job == 302 then insert_item( 3000322, 1 ) --Å©¸®½ºÅ»½ºÅÂÇÁ set_flag( "q18", "1") -- ¼­¸ð³Ê elseif job == 303 then insert_item( 3000388, 1 ) --¾îµÒÀǼձæ set_flag( "q18", "1") -- Åõ»ç elseif job == 101 then insert_item( 3000389, 1 ) --ºí·¯µð¿¢½º insert_item( 3000389, 1 ) --ºí·¯µð¿¢½º insert_item( 3000306, 1 ) --·¹ÀÎÁ®º¸¿ì set_flag( "q18", "1") -- ÁÖ¼ú»ç elseif job == 102 then insert_item( 3000390, 1 ) --ÀÚÀÌ¾ðÆ®¿¢½º set_flag( "q18", "1") -- ¾ß¼ö»ç elseif job == 103 then insert_item( 3000389, 1 ) --ºí·¯µð¿¢½º insert_item( 3000389, 1 ) --ºí·¯µð¿¢½º set_flag( "q18", "1") --Á¤»óÀûÀÎ ÀüÁ÷ ÁøÇàÀ» ÇÑ À¯ÀúµéÀº ¾Æ·¡¿Í °°ÀÌ --2Â÷ÀüÁ÷ÇÑ Á÷¾÷À» °¡Áö°í ÀÖ´Ù. -- ³ªÀÌÆ® elseif job == 210 then insert_item( 3000302, 1 ) --ÆÄ¿° set_flag( "q18", "1") -- ¿ö¸®¾î elseif job == 211 then insert_item( 3000397, 1 ) --¹Ù½ºÅ¸µå¼Òµå set_flag( "q18", "1") -- ¸ÞÀÌÁö elseif job == 212 then insert_item( 3000318, 1 ) --Áê¾ó¸®¸ÞÀ̽º set_flag( "q18", "1") -- ÇÁ¸®½ºÆ® elseif job == 213 then insert_item( 3000318, 1 ) --Áê¾ó¸®¸ÞÀ̽º set_flag( "q18", "1") -- ºê¸®´õ elseif job == 214 then insert_item( 3000318, 1 ) --Áê¾ó¸®¸ÞÀ̽º set_flag( "q18", "1") -- ¾î½Ø½Å elseif job == 310 then insert_item( 3000302, 1 ) insert_item( 3000302, 1 ) --ÆÄ¿°2°³´ë¿© set_flag( "q18", "1") -- ·¹ÀÎÀú elseif job == 311 then insert_item( 3000310, 1 ) --±×·¹ÀÌÆ®º¸¿ì set_flag( "q18", "1") -- ¼Ò¼­·¯ elseif job == 312 then insert_item( 3000322, 1 ) --Å©¸®½ºÅ»½ºÅÂÇÁ set_flag( "q18", "1") -- ´ÙÅ©¸ÅÁö¼Ç elseif job == 313 then insert_item( 3000322, 1 ) set_flag( "q18", "1") -- ¹èƲ¼­¸ð³Ê elseif job == 314 then insert_item( 3000388, 1 ) --¾îµÒÀǼձæ set_flag( "q18", "1") -- Àü»ç elseif job == 110 then insert_item( 3000389, 1 ) insert_item( 3000389, 1 ) --ºí·¯µð¿¢½º2°³´ë¿© set_flag( "q18", "1") -- ±Ã»ç elseif job == 111 then insert_item( 3000306, 1 ) --·¹ÀÎÁ®º¸¿ì set_flag( "q18", "1") -- ¸¶µµ»ç elseif job == 112 then insert_item( 3000390, 1 ) --ÀÚÀÌ¾ðÆ®¿¢½º set_flag( "q18", "1") -- ¸¶Åõ»ç elseif job == 113 then insert_item( 3000390, 1 ) --ÀÚÀÌ¾ðÆ®¿¢½º set_flag( "q18", "1") -- ¸¶¼ö»ç elseif job == 114 then insert_item( 3000389, 1 ) insert_item( 3000389, 1 ) --ºí·¯µð¿¢½º2°³´ë¿© set_flag( "q18", "1") else return end elseif level >= 80 and level <= 99 then --·©Å©4¹«±â´ë¿© -- ³ªÀÌÆ® if job == 210 then insert_item( 3000303, 1 ) --¼Òºê¿ÀºêºòÅ丮 set_flag( "q18", "1") -- ¿ö¸®¾î elseif job == 211 then insert_item( 3000398, 1 ) --ÀͽºÅ¥ÅÍ³Ê set_flag( "q18", "1") -- ¸ÞÀÌÁö, ÇÁ¸®½ºÆ® elseif job == 212 or job == 213 then insert_item( 3000319, 1 ) --ÇØ¸Ó set_flag( "q18", "1") -- ºê¸®´õ elseif job == 214 then insert_item( 3000319, 1 ) --ÇØ¸Ó set_flag( "q18", "1") -- ¾î½Ø½Å elseif job == 310 then insert_item( 3000303, 1 ) insert_item( 3000303, 1 ) --¼Òµå¿ÀºêºòÅ丮2°³´ë¿© set_flag( "q18", "1") -- ·¹ÀÎÀú elseif job == 311 then insert_item( 3000311, 1 ) --¸¶Å©º¸¿ì set_flag( "q18", "1") -- ¼Ò¼­·¯, ´ÙÅ©¸ÅÁö¼Ç elseif job == 312 or job == 313 then insert_item( 3000323, 1 ) --¶ó¿îµå½ºÅÂÇÁ set_flag( "q18", "1") -- ¹èƲ¼­¸ð³Ê elseif job == 314 then insert_item( 3000391, 1 ) --½î¿ì set_flag( "q18", "1") -- Àü»ç elseif job == 110 then insert_item( 3000392, 1 ) insert_item( 3000392, 1 ) --½ã´õ¿¢½º2°³´ë¿© set_flag( "q18", "1") -- ±Ã»ç elseif job == 111 then insert_item( 3000307, 1 ) --ÀÚÀÌ¾ðÆ®º¸¿ì set_flag( "q18", "1") -- ¸¶µµ»ç, ¸¶Åõ»ç elseif job == 112 or job == 113 then insert_item( 3000315, 1 ) --±×·¹ÀÌÆ®¾×½º set_flag( "q18", "1") -- ¸¶¼ö»ç elseif job == 114 then insert_item( 3000392, 1 ) insert_item( 3000392, 1 ) --½ã´õ¾×½º2°³´ë¿© set_flag( "q18", "1") else return end elseif level >= 100 and level <= 119 then --·©Å©5¹«±â´ë¿© -- ³ªÀÌÆ® if job == 210 then insert_item( 3000304, 1 ) --º£¿À¿ïÇÁ set_flag( "q18", "1") -- ¿ö¸®¾î elseif job == 211 then insert_item( 3000399, 1 ) --ÀÏ·é set_flag( "q18", "1") -- ¸ÞÀÌÁö, ÇÁ¸®½ºÆ® elseif job == 212 or job == 213 then insert_item( 3000320, 1 ) --¸ÞÅ׿À·ÎÀÌ´ÞÄ¿Á© set_flag( "q18", "1") -- ºê¸®´õ elseif job == 214 then insert_item( 3000320, 1 ) --¸ÞÅ׿À·ÎÀÌ´ÞÄ¿Á© set_flag( "q18", "1") -- ¾î½Ø½Å elseif job == 310 then insert_item( 3000304, 1 ) insert_item( 3000304, 1 ) --º£¿À¿ïÇÁ2°³´ë¿© set_flag( "q18", "1") -- ·¹ÀÎÀú elseif job == 311 then insert_item( 3000312, 1 ) --±×·£µåÅ©·Î½ºº¸¿ì set_flag( "q18", "1") -- ¼Ò¼­·¯, ´ÙÅ©¸ÅÁö¼Ç elseif job == 312 or job == 313 then insert_item( 3000324, 1 ) --½ºÅÂÇÁ¿Àºê¼¼ÀÌÁö set_flag( "q18", "1") -- ¹èƲ¼­¸ð³Ê elseif job == 314 then insert_item( 3000393, 1 ) --Æ®À§½ºÆ®´ë°Å set_flag( "q18", "1") -- Àü»ç elseif job == 110 then insert_item( 3000394, 1 ) insert_item( 3000394, 1 ) --ÁúdzÀǵµ³¢2°³´ë¿© set_flag( "q18", "1") -- ±Ã»ç elseif job == 111 then insert_item( 3000308, 1 ) --Å©¸®Æ¼Äú¸¿ì set_flag( "q18", "1") -- ¸¶µµ»ç, ¸¶Åõ»ç elseif job == 112 or job == 113 then insert_item( 3000316, 1 ) --Åä³×À̵µ¿Àºê¼Ò¿ï set_flag( "q18", "1") -- ¸¶¼ö»ç elseif job == 114 then insert_item( 3000394, 1 ) insert_item( 3000394, 1 ) --ÁúdzÀǵµ³¢2°³´ë¿© set_flag( "q18", "1") else return end elseif level >= 120 and level <= 170 then --·©Å©6¹«±â´ë¿© -- ³ªÀÌÆ® if job == 210 then insert_item( 3000401, 1 ) --ÇÁ¶ó°¡¶óÈå set_flag( "q18", "1") -- ¿ö¸®¾î elseif job == 211 then insert_item( 3000407, 1 ) --»çÀÎ°Ë set_flag( "q18", "1") -- ¸ÞÀÌÁö, ÇÁ¸®½ºÆ® elseif job == 212 or job == 213 then insert_item( 3000409, 1 ) --»ì°¡Å¸³Ê½º set_flag( "q18", "1") -- ºê¸®´õ elseif job == 214 then insert_item( 3000409, 1 ) --»ì°¡Å¸³Ê½º set_flag( "q18", "1") -- ¾î½Ø½Å elseif job == 310 then insert_item( 3000401, 1 ) insert_item( 3000401, 1 ) --ÇÁ¶ó°¡¶óÈå2°³´ë¿© set_flag( "q18", "1") -- ·¹ÀÎÀú elseif job == 311 then insert_item( 3000412, 1 ) --ÆÄ¸êÀÇ´« set_flag( "q18", "1") -- ¼Ò¼­·¯, ´ÙÅ©¸ÅÁö¼Ç elseif job == 312 or job == 313 then insert_item( 3000413, 1 ) --¿ëÀÇÀý±Ô set_flag( "q18", "1") -- ¹èƲ¼­¸ð³Ê elseif job == 314 then insert_item( 3000414, 1 ) --¿À¸®ÇÒÄÜ set_flag( "q18", "1") -- Àü»ç elseif job == 110 then insert_item( 3000415, 1 ) insert_item( 3000415, 1 ) --»ç½ÅÀǵµ³¢2°³´ë¿© set_flag( "q18", "1") -- ±Ã»ç elseif job == 111 then insert_item( 3000416, 1 ) --¹ÙÀÏ·±Æ®°ÔÀÏ set_flag( "q18", "1") -- ¸¶µµ»ç, ¸¶Åõ»ç elseif job == 112 or job == 113 then insert_item( 3000417, 1 ) --±²·Ú set_flag( "q18", "1") -- ¸¶¼ö»ç elseif job == 114 then insert_item( 3000415, 1 ) insert_item( 3000415, 1 ) --»ç½ÅÀǵµ³¢2°³´ë¿© set_flag( "q18", "1") else return end end -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90993000" ) dlg_text( "@90993007" ) -- ¹«±â Áö±Þ ¹Þ¾ÒÀ½) set_flag( "q18", "1") dlg_menu( "@90010002", " " ) dlg_show() end --µ¥¹Ù --µð¹ÙÀμÖÁ® 201 --Ŭ·¹¸¯ 203 --ºê¸®´õ 204 --¾Æ¼ö¶ó --½ºÆ®¶óÀÌ´õ 301 --´ÙÅ©¸ÅÁö¼Ç 303 --¼Ò¼­·¯ 304 --°¡ÀÌ¾Æ --Åõ»ç 101 --ÁÖ¼ú»ç 103 --¸¶¼ö»ç 104 -- ¹æ¾î±¸ Áö±Þ function second_present_armor() -- ÇöÀç Á÷¾÷ id¸¦ ¹Þ¾Æ³õ´Â´Ù. local job = get_value( "job" ) -- ·¹º§ ¹Þ¾Æ¿È local level = get_value( "level" ) if level <= 49 then --·©Å©2¹æ¾î±¸´ë¿© --ij¸¯ÅÍ ·¹º§Àº ³·À¸³ª 2Â÷Á÷¾÷À» °¡Áø ij¸¯Å͵鿡 ´ëÇÑ ¿¹¿Ü󸮷Π--2Â÷Á÷¾÷µµ °Ë»ö Á¶°Ç¿¡ Æ÷ÇÔ½ÃŲ´Ù. -- ÆÄÀÌÅÍ, ³ªÀÌÆ®, ¿ö¸®¾î if job == 201 or job == 210 or job == 211 then insert_item( 3000327, 1 ) --È­ÀÌÆ®¸ÞÀÏ insert_item( 3000375, 1 ) --¿ÍÀϵ巹´õ½´Áî insert_item( 3000379, 1 ) --¿ÍÀϵ巹´õ±Û·¯ºê insert_item( 3000367, 1 ) --Çìºñ½¯µå insert_item( 3000383, 1 ) --¿ìµçÇï¸ä insert_item( 3000371, 1 ) --¶óÀÌÆ®º§Æ® set_flag( "q19", "1") -- Ŭ·¹¸¯, ¸ÞÀÌÁö, ÇÁ¸®½ºÆ® elseif job == 202 or job == 212 or job == 213 then insert_item( 3000345, 1 ) --È­ÀÌÆ®·Îºê insert_item( 3000375, 1 ) insert_item( 3000379, 1 ) insert_item( 3000383, 1 ) insert_item( 3000371, 1 ) set_flag( "q19", "1") -- Å×À̸Ó, ºê¸®´õ elseif job == 203 or job == 214 then insert_item( 3000356, 1 ) --½Ç¹öÄÚÆ® insert_item( 3000375, 1 ) insert_item( 3000379, 1 ) insert_item( 3000383, 1 ) insert_item( 3000371, 1 ) set_flag( "q19", "1") -- ½ºÆ®¶óÀÌ´õ, ¾î½Ø½Å, ·¹ÀÎÀú elseif job == 301 or job == 310 or job == 311 then insert_item( 3000325, 1 ) --¶óÀÌÆ®Å¬·Î½º insert_item( 3000375, 1 ) insert_item( 3000379, 1 ) insert_item( 3000383, 1 ) insert_item( 3000371, 1 ) set_flag( "q19", "1") -- ¸ÅÁö¼Ç, ¼Ò¼­·¯, ´ÙÅ©¸ÅÁö¼Ç elseif job == 302 or job == 312 or job == 313 then insert_item( 3000344, 1 ) --¾Æ¼ö¶ó·Îºê insert_item( 3000375, 1 ) insert_item( 3000379, 1 ) insert_item( 3000383, 1 ) insert_item( 3000371, 1 ) set_flag( "q19", "1") -- ¼­¸ð³Ê, ¹èƲ¼­¸ð³Ê elseif job == 303 or job == 314 then insert_item( 3000357, 1 ) --¾Æ¼ö¶óÄÚÆ® insert_item( 3000375, 1 ) insert_item( 3000379, 1 ) insert_item( 3000367, 1 ) --Çìºñ½¯µå insert_item( 3000383, 1 ) insert_item( 3000371, 1 ) set_flag( "q19", "1") -- Åõ»ç, Àü»ç, ±Ã»ç elseif job == 101 or job == 110 or job == 111 then insert_item( 3000326, 1 ) --½ÉÈ¥Àǰ©¿Ê insert_item( 3000375, 1 ) insert_item( 3000379, 1 ) insert_item( 3000383, 1 ) insert_item( 3000371, 1 ) set_flag( "q19", "1") -- ÁÖ¼ú»ç, ¸¶µµ»ç, ¸¶Åõ»ç elseif job == 102 or job == 112 or job == 113 then insert_item( 3000343, 1 ) --½ÉÈ¥ÀǹýÀÇ insert_item( 3000375, 1 ) insert_item( 3000379, 1 ) insert_item( 3000383, 1 ) insert_item( 3000371, 1 ) set_flag( "q19", "1") -- ¾ß¼ö»ç, ¸¶¼ö»ç elseif job == 103 or job == 114 then insert_item( 3000355, 1 ) --°¡Á׿ÜÅõ insert_item( 3000375, 1 ) insert_item( 3000379, 1 ) insert_item( 3000383, 1 ) insert_item( 3000371, 1 ) set_flag( "q19", "1") else return end elseif level >= 50 and level <= 79 then --·©Å©3¹æ¾î±¸´ë¿© --¹«±â¿Í ¸¶Âù°¡Áö·Î ij¸¯ÅÍ ·¹º§Àº ³ôÀ¸³ª --2Â÷Á÷¾÷À¸·Î ÀüÁ÷ÇÏÁö ¾ÊÀº À¯Àú¸¦ À§ÇÑ ¿¹¿Ü ó¸®ÀÌ´Ù. -- ÆÄÀÌÅÍ if job == 201 then insert_item( 3000329, 1 ) --Ç÷¡Æ¼³Ñ¾Æ¸Ó insert_item( 3000376, 1 ) --½ÇŰÁî½´Áî insert_item( 3000380, 1 ) --½ÇŰÁî±Û·¯ºê insert_item( 3000368, 1 ) --°­Ã¶Àǰ¡È£ insert_item( 3000384, 1 ) --º»Çï¸ä insert_item( 3000372, 1 ) --±×·¹ÀÌÆ®º§Æ® set_flag( "q19", "1") -- Ŭ·¹¸¯ elseif job == 202 then insert_item( 3000347, 1 ) --Ç÷¡Æ¼³Ñ·Îºê insert_item( 3000376, 1 ) --½ÇŰÁî½´Áî insert_item( 3000380, 1 ) --½ÇŰÁî±Û·¯ºê insert_item( 3000384, 1 ) --º»Çï¸ä insert_item( 3000372, 1 ) --±×·¹ÀÌÆ®º§Æ® set_flag( "q19", "1") -- Å×ÀÌ¸Ó elseif job == 203 then insert_item( 3000358, 1 ) --Ç÷¡Æ¼³ÑÄÚÆ® insert_item( 3000376, 1 ) --½ÇŰÁî½´Áî insert_item( 3000380, 1 ) --½ÇŰÁî±Û·¯ºê insert_item( 3000384, 1 ) --º»Çï¸ä insert_item( 3000372, 1 ) --±×·¹ÀÌÆ®º§Æ® set_flag( "q19", "1") -- ½ºÆ®¶óÀÌ´õ elseif job == 301 then insert_item( 3000330, 1 ) --Ç︮½¬¾Æ¸Ó insert_item( 3000338, 1 ) --Ç︮½¬Å¸ÀÌÁî insert_item( 3000376, 1 ) --½ÇŰÁî½´Áî insert_item( 3000380, 1 ) --½ÇŰÁî±Û·¯ºê insert_item( 3000384, 1 ) --º»Çï¸ä insert_item( 3000372, 1 ) --±×·¹ÀÌÆ®º§Æ® set_flag( "q19", "1") -- ¸ÅÁö¼Ç elseif job == 302 then insert_item( 3000348, 1 ) --Ç︮½¬°¡ºê insert_item( 3000376, 1 ) --½ÇŰÁî½´Áî insert_item( 3000380, 1 ) --½ÇŰÁî±Û·¯ºê insert_item( 3000384, 1 ) --º»Çï¸ä insert_item( 3000372, 1 ) --±×·¹ÀÌÆ®º§Æ® set_flag( "q19", "1") -- ¼­¸ð³Ê elseif job == 303 then insert_item( 3000359, 1 ) --Ç︮½¬ÄÚÆ® insert_item( 3000376, 1 ) --½ÇŰÁî½´Áî insert_item( 3000380, 1 ) --½ÇŰÁî±Û·¯ºê insert_item( 3000368, 1 ) --°­Ã¶Àǰ¡È£ insert_item( 3000384, 1 ) --º»Çï¸ä insert_item( 3000372, 1 ) --±×·¹ÀÌÆ®º§Æ® set_flag( "q19", "1") -- Åõ»ç elseif job == 101 then insert_item( 3000328, 1 ) --¸Í¼¼Àǰ©¿Ê insert_item( 3000337, 1 ) --¸Í¼¼ÀǼö·Æº¹ insert_item( 3000376, 1 ) --½ÇŰÁî½´Áî insert_item( 3000380, 1 ) --½ÇŰÁî±Û·¯ºê insert_item( 3000384, 1 ) --º»Çï¸ä insert_item( 3000372, 1 ) --±×·¹ÀÌÆ®º§Æ® set_flag( "q19", "1") -- ÁÖ¼ú»ç elseif job == 102 then insert_item( 3000346, 1 ) --´ëÀÚ¿¬ÀǹýÀÇ insert_item( 3000376, 1 ) --½ÇŰÁî½´Áî insert_item( 3000380, 1 ) --½ÇŰÁî±Û·¯ºê insert_item( 3000384, 1 ) --º»Çï¸ä insert_item( 3000372, 1 ) --±×·¹ÀÌÆ®º§Æ® set_flag( "q19", "1") -- ¾ß¼ö»ç elseif job == 103 then insert_item( 3000360, 1 ) --ȯ¼úÀÇ»çÆ÷ insert_item( 3000376, 1 ) --½ÇŰÁî½´Áî insert_item( 3000380, 1 ) --½ÇŰÁî±Û·¯ºê insert_item( 3000384, 1 ) --º»Çï¸ä insert_item( 3000372, 1 ) --±×·¹ÀÌÆ®º§Æ® set_flag( "q19", "1") --¾Æ·¡ Á÷¾÷Àº 2Â÷ÀüÁ÷À» ÇÑ »óÅÂÀÇ À¯Àúµé¿¡°Ô --Àû¿ëÇÏ´Â ¾ÆÀÌÅÛµéÀÌ´Ù. ³»¿ëÀº 1Â÷ÀüÁ÷À» ÇÑ Ä³¸¯ÅÍ¿Í µ¿ÀÏÇÏ´Ù. -- ³ªÀÌÆ® elseif job == 210 then insert_item( 3000329, 1 ) --Ç÷¡Æ¼³Ñ¾Æ¸Ó insert_item( 3000376, 1 ) --½ÇŰÁî½´Áî insert_item( 3000380, 1 ) --½ÇŰÁî±Û·¯ºê insert_item( 3000368, 1 ) --°­Ã¶Àǰ¡È£ insert_item( 3000384, 1 ) --º»Çï¸ä insert_item( 3000372, 1 ) --±×·¹ÀÌÆ®º§Æ® set_flag( "q19", "1") -- ¿ö¸®¾î elseif job == 211 then insert_item( 3000329, 1 ) --Ç÷¡Æ¼³Ñ¾Æ¸Ó insert_item( 3000376, 1 ) --½ÇŰÁî½´Áî insert_item( 3000380, 1 ) --½ÇŰÁî±Û·¯ºê insert_item( 3000384, 1 ) --º»Çï¸ä insert_item( 3000372, 1 ) --±×·¹ÀÌÆ®º§Æ® set_flag( "q19", "1") -- ¸ÞÀÌÁö, ÇÁ¸®½ºÆ® elseif job == 212 or job == 213 then insert_item( 3000347, 1 ) --Ç÷¡Æ¼³Ñ·Îºê insert_item( 3000376, 1 ) insert_item( 3000380, 1 ) insert_item( 3000384, 1 ) insert_item( 3000372, 1 ) set_flag( "q19", "1") -- ºê¸®´õ elseif job == 214 then insert_item( 3000358, 1 ) --Ç÷¡Æ¼³ÑÄÚÆ® insert_item( 3000376, 1 ) insert_item( 3000380, 1 ) insert_item( 3000384, 1 ) insert_item( 3000372, 1 ) set_flag( "q19", "1") -- ¾î½Ø½Å elseif job == 310 then insert_item( 3000330, 1 ) --Ç︮½¬¾Æ¸Ó insert_item( 3000376, 1 ) insert_item( 3000380, 1 ) insert_item( 3000384, 1 ) insert_item( 3000372, 1 ) set_flag( "q19", "1") -- ·¹ÀÎÀú elseif job == 311 then insert_item( 3000338, 1 ) --Ç︮½¬Å¸ÀÌÁî insert_item( 3000376, 1 ) insert_item( 3000380, 1 ) insert_item( 3000384, 1 ) insert_item( 3000372, 1 ) set_flag( "q19", "1") -- ¼Ò¼­·¯, ´ÙÅ©¸ÅÁö¼Ç elseif job == 312 or job == 313 then insert_item( 3000348, 1 ) --Ç︮½¬°¡ºê insert_item( 3000376, 1 ) insert_item( 3000380, 1 ) insert_item( 3000384, 1 ) insert_item( 3000372, 1 ) set_flag( "q19", "1") -- ¹èƲ¼­¸ð³Ê elseif job == 314 then insert_item( 3000359, 1 ) --Ç︮½¬ÄÚÆ® insert_item( 3000376, 1 ) insert_item( 3000380, 1 ) insert_item( 3000368, 1 ) --°­Ã¶Àǰ¡È£ insert_item( 3000384, 1 ) insert_item( 3000372, 1 ) set_flag( "q19", "1") -- Àü»ç elseif job == 110 then insert_item( 3000328, 1 ) --¸Í¼¼Àǰ©¿Ê insert_item( 3000376, 1 ) insert_item( 3000380, 1 ) insert_item( 3000384, 1 ) insert_item( 3000372, 1 ) set_flag( "q19", "1") -- ±Ã»ç elseif job == 111 then insert_item( 3000337, 1 ) --¸Í¼¼ÀǼö·Æº¹ insert_item( 3000376, 1 ) insert_item( 3000380, 1 ) insert_item( 3000384, 1 ) insert_item( 3000372, 1 ) set_flag( "q19", "1") -- ¸¶µµ»ç, ¸¶Åõ»ç elseif job == 112 or job == 113 then insert_item( 3000346, 1 ) --´ëÀÚ¿¬ÀǹýÀÇ insert_item( 3000376, 1 ) insert_item( 3000380, 1 ) insert_item( 3000384, 1 ) insert_item( 3000372, 1 ) set_flag( "q19", "1") -- ¸¶¼ö»ç elseif job == 114 then insert_item( 3000360, 1 ) --ȯ¼úÀÇ»çÆ÷ insert_item( 3000376, 1 ) insert_item( 3000380, 1 ) insert_item( 3000384, 1 ) insert_item( 3000372, 1 ) set_flag( "q19", "1") else return end elseif level >= 80 and level <= 99 then --·©Å©4¹æ¾î±¸´ë¿© -- ³ªÀÌÆ® if job == 210 then insert_item( 3000333, 1 ) --Ȧ¸®¾Æ¸Ó insert_item( 3000377, 1 ) --½ºÆ®¶óÀÌ´õºÎÃ÷ insert_item( 3000381, 1 ) --½ºÆ®¶óÀÌ´õ±Û·¯ºê insert_item( 3000369, 1 ) --¿¢¼¿·±Æ®½¯µå insert_item( 3000385, 1 ) --¿¢¼¿·±Æ®Ç︧ insert_item( 3000373, 1 ) --¿¢¼¿·±Æ®º§Æ® set_flag( "q19", "1") -- ¿ö¸®¾î elseif job == 211 then insert_item( 3000333, 1 ) --Ȧ¸®¾Æ¸Ó insert_item( 3000377, 1 ) --½ºÆ®¶óÀÌ´õºÎÃ÷ insert_item( 3000381, 1 ) --½ºÆ®¶óÀÌ´õ±Û·¯ºê insert_item( 3000385, 1 ) --¿¢¼¿·±Æ®Ç︧ insert_item( 3000373, 1 ) --¿¢¼¿·±Æ®º§Æ® set_flag( "q19", "1") -- ¸ÞÀÌÁö, ÇÁ¸®½ºÆ® elseif job == 212 or job == 213 then insert_item( 3000351, 1 ) --Ȧ¸®·Îºê insert_item( 3000377, 1 ) insert_item( 3000381, 1 ) insert_item( 3000385, 1 ) insert_item( 3000373, 1 ) set_flag( "q19", "1") -- ºê¸®´õ elseif job == 214 then insert_item( 3000363, 1 ) --Ȧ¸®ÄÚÆ® insert_item( 3000377, 1 ) insert_item( 3000381, 1 ) insert_item( 3000385, 1 ) insert_item( 3000373, 1 ) set_flag( "q19", "1") -- ¾î½Ø½Å elseif job == 310 then insert_item( 3000331, 1 ) --¼¨µµ¿ì¸ÞÀÏ insert_item( 3000377, 1 ) insert_item( 3000381, 1 ) insert_item( 3000385, 1 ) insert_item( 3000373, 1 ) set_flag( "q19", "1") -- ·¹ÀÎÀú elseif job == 311 then insert_item( 3000339, 1 ) --¼¨µµ¿ìŸÀÌÁî insert_item( 3000377, 1 ) insert_item( 3000381, 1 ) insert_item( 3000385, 1 ) insert_item( 3000373, 1 ) set_flag( "q19", "1") -- ¼Ò¼­·¯, ´ÙÅ©¸ÅÁö¼Ç elseif job == 312 or job == 313 then insert_item( 3000349, 1 ) --¼¨µµ¿ì°¡ºê insert_item( 3000377, 1 ) insert_item( 3000381, 1 ) insert_item( 3000385, 1 ) insert_item( 3000373, 1 ) set_flag( "q19", "1") -- ¹èƲ¼­¸ð³Ê elseif job == 314 then insert_item( 3000361, 1 ) --¼¨µµ¿ìÄÚÆ® insert_item( 3000377, 1 ) insert_item( 3000381, 1 ) insert_item( 3000369, 1 ) --¿¢¼¿·±Æ®½¯µå insert_item( 3000385, 1 ) insert_item( 3000373, 1 ) set_flag( "q19", "1") -- Àü»ç elseif job == 110 then insert_item( 3000332, 1 ) --½ÖµÎ·æ°© insert_item( 3000377, 1 ) insert_item( 3000381, 1 ) insert_item( 3000385, 1 ) insert_item( 3000373, 1 ) set_flag( "q19", "1") -- ±Ã»ç elseif job == 111 then insert_item( 3000340, 1 ) --½Öµà·æÀǺñ´Ã insert_item( 3000377, 1 ) insert_item( 3000381, 1 ) insert_item( 3000385, 1 ) insert_item( 3000373, 1 ) set_flag( "q19", "1") -- ¸¶µµ»ç, ¸¶Åõ»ç elseif job == 112 or job == 113 then insert_item( 3000350, 1 ) --ÇöÀÚÀǹýÀÇ insert_item( 3000377, 1 ) insert_item( 3000381, 1 ) insert_item( 3000385, 1 ) insert_item( 3000373, 1 ) set_flag( "q19", "1") -- ¸¶¼ö»ç elseif job == 114 then insert_item( 3000362, 1 ) --½ÅºñÁÖ¼ú»çÀÇ¿ÜÅõ insert_item( 3000377, 1 ) insert_item( 3000381, 1 ) insert_item( 3000385, 1 ) insert_item( 3000373, 1 ) set_flag( "q19", "1") else return end elseif level >= 100 and level <= 119 then --·©Å©5¹æ¾î±¸´ë¿© -- ³ªÀÌÆ® if job == 210 then insert_item( 3000334, 1 ) --»ç·æÀǰ©ÁÖ insert_item( 3000378, 1 ) --·ç³ª·¹À̵åºÎÃ÷ insert_item( 3000382, 1 ) --·ç³ª·¹À̵å±Û·¯ºê insert_item( 3000370, 1 ) --¿¡ÀÎ¼ÇÆ®½¯µå insert_item( 3000386, 1 ) --¿¡ÀÎ¼ÇÆ®Ç︧ insert_item( 3000374, 1 ) --¿¡ÀÎ¼ÇÆ®º§Æ® set_flag( "q19", "1") -- ¿ö¸®¾î elseif job == 211 then insert_item( 3000334, 1 ) --»ç·æÀǰ©ÁÖ insert_item( 3000378, 1 ) --·ç³ª·¹À̵åºÎÃ÷ insert_item( 3000382, 1 ) --·ç³ª·¹À̵å±Û·¯ºê insert_item( 3000386, 1 ) --¿¡ÀÎ¼ÇÆ®Ç︧ insert_item( 3000374, 1 ) --¿¡ÀÎ¼ÇÆ®º§Æ® set_flag( "q19", "1") -- ¸ÞÀÌÁö, ÇÁ¸®½ºÆ® elseif job == 212 or job == 213 then insert_item( 3000352, 1 ) --°­Ã¶»ç½ÅÀǷκê insert_item( 3000378, 1 ) insert_item( 3000382, 1 ) insert_item( 3000386, 1 ) insert_item( 3000374, 1 ) set_flag( "q19", "1") -- ºê¸®´õ elseif job == 214 then insert_item( 3000365, 1 ) --¿À¸®¿£Å»¼Ò¿ï¾Æ¸Ó insert_item( 3000378, 1 ) insert_item( 3000382, 1 ) insert_item( 3000386, 1 ) insert_item( 3000374, 1 ) set_flag( "q19", "1") -- ¾î½Ø½Å elseif job == 310 then insert_item( 3000334, 1 ) --»ç·æÀǰ©ÁÖ insert_item( 3000378, 1 ) insert_item( 3000382, 1 ) insert_item( 3000386, 1 ) insert_item( 3000374, 1 ) set_flag( "q19", "1") -- ·¹ÀÎÀú elseif job == 311 then insert_item( 3000341, 1 ) --¿ë°¢ÀDZê insert_item( 3000378, 1 ) insert_item( 3000382, 1 ) insert_item( 3000386, 1 ) insert_item( 3000374, 1 ) set_flag( "q19", "1") -- ¼Ò¼­·¯, ´ÙÅ©¸ÅÁö¼Ç elseif job == 312 or job == 313 then insert_item( 3000352, 1 ) --°­Ã¶»ç½ÅÀǷκê insert_item( 3000378, 1 ) insert_item( 3000382, 1 ) insert_item( 3000386, 1 ) insert_item( 3000374, 1 ) set_flag( "q19", "1") -- ¹èƲ¼­¸ð³Ê elseif job == 314 then insert_item( 3000365, 1 ) --¿À¸®¿£Å»¼Ò¿ï¾Æ¸Ó insert_item( 3000378, 1 ) insert_item( 3000382, 1 ) insert_item( 3000370, 1 ) --¿¡ÀÎ¼ÇÆ®½¯µå insert_item( 3000386, 1 ) insert_item( 3000374, 1 ) set_flag( "q19", "1") -- Àü»ç elseif job == 110 then insert_item( 3000334, 1 ) --»ç·æÀǰ©ÁÖ insert_item( 3000378, 1 ) insert_item( 3000382, 1 ) insert_item( 3000386, 1 ) insert_item( 3000374, 1 ) set_flag( "q19", "1") -- ±Ã¼ö elseif job == 111 then insert_item( 3000341, 1 ) --¿ë°¢ÀDZê insert_item( 3000378, 1 ) insert_item( 3000382, 1 ) insert_item( 3000386, 1 ) insert_item( 3000374, 1 ) set_flag( "q19", "1") -- ¸¶µµ»ç, ¸¶Åõ»ç elseif job == 112 or job == 113 then insert_item( 3000352, 1 ) --°­Ã¶»ç½ÅÀǷκê insert_item( 3000378, 1 ) insert_item( 3000382, 1 ) insert_item( 3000386, 1 ) insert_item( 3000374, 1 ) set_flag( "q19", "1") -- ¸¶¼ö»ç elseif job == 114 then insert_item( 3000365, 1 ) --¿À¸®¿£Å»¼Ò¿ï¾Æ¸Ó insert_item( 3000378, 1 ) insert_item( 3000382, 1 ) insert_item( 3000386, 1 ) insert_item( 3000374, 1 ) set_flag( "q19", "1") else return end elseif level >= 120 and level <= 170 then --·©Å©6¹æ¾î±¸´ë¿© -- ³ªÀÌÆ® if job == 210 then insert_item( 3000400, 1 ) --½´ÅͺíÆ÷Æ®¸®½º insert_item( 3000402, 1 ) --Á¦´Ï¼Å¸®¾ðºÎÃ÷ insert_item( 3000403, 1 ) --Á¦´Ï¼Å¸®¾ð±Û·¯ºê insert_item( 3000404, 1 ) --À©µåÅ©·¯½ºÆ® insert_item( 3000405, 1 ) --°¡µé¸®Ç︧ insert_item( 3000406, 1 ) --°¡µé¸®º§Æ® set_flag( "q19", "1") -- ¿ö¸®¾î elseif job == 211 then insert_item( 3000400, 1 ) --½´ÅͺíÆ÷Æ®¸®½º insert_item( 3000402, 1 ) --Á¦´Ï¼Å¸®¾ðºÎÃ÷ insert_item( 3000403, 1 ) --Á¦´Ï¼Å¸®¾ð±Û·¯ºê insert_item( 3000405, 1 ) --°¡µé¸®Ç︧ insert_item( 3000406, 1 ) --°¡µé¸®º§Æ® set_flag( "q19", "1") -- ¸ÞÀÌÁö, ÇÁ¸®½ºÆ® elseif job == 212 or job == 213 then insert_item( 3000408, 1 ) --°ÅÀýÀǵµÆ÷ insert_item( 3000402, 1 ) --Á¦´Ï¼Å¸®¾ðºÎÃ÷ insert_item( 3000403, 1 ) --Á¦´Ï¼Å¸®¾ð±Û·¯ºê insert_item( 3000405, 1 ) --°¡µé¸®Ç︧ insert_item( 3000406, 1 ) --°¡µé¸®º§Æ® set_flag( "q19", "1") -- ºê¸®´õ elseif job == 214 then insert_item( 3000410, 1 ) --º¹Á¾ÀÇÆ÷½º¾Æ¸Ó insert_item( 3000402, 1 ) --Á¦´Ï¼Å¸®¾ðºÎÃ÷ insert_item( 3000403, 1 ) --Á¦´Ï¼Å¸®¾ð±Û·¯ºê insert_item( 3000405, 1 ) --°¡µé¸®Ç︧ insert_item( 3000406, 1 ) --°¡µé¸®º§Æ® set_flag( "q19", "1") -- ¾î½Ø½Å elseif job == 310 then insert_item( 3000400, 1 ) --½´ÅͺíÆ÷Æ®¸®½º insert_item( 3000402, 1 ) --Á¦´Ï¼Å¸®¾ðºÎÃ÷ insert_item( 3000403, 1 ) --Á¦´Ï¼Å¸®¾ð±Û·¯ºê insert_item( 3000405, 1 ) --°¡µé¸®Ç︧ insert_item( 3000406, 1 ) --°¡µé¸®º§Æ® set_flag( "q19", "1") -- ·¹ÀÎÀú elseif job == 311 then insert_item( 3000411, 1 ) --½´Ã÷¿ÀºêÇ︮¿À½º insert_item( 3000402, 1 ) --Á¦´Ï¼Å¸®¾ðºÎÃ÷ insert_item( 3000403, 1 ) --Á¦´Ï¼Å¸®¾ð±Û·¯ºê insert_item( 3000405, 1 ) --°¡µé¸®Ç︧ insert_item( 3000406, 1 ) --°¡µé¸®º§Æ® set_flag( "q19", "1") -- ¼Ò¼­·¯, ´ÙÅ©¸ÅÁö¼Ç elseif job == 312 or job == 313 then insert_item( 3000408, 1 ) --°ÅÀýÀǵµÆ÷ insert_item( 3000402, 1 ) --Á¦´Ï¼Å¸®¾ðºÎÃ÷ insert_item( 3000403, 1 ) --Á¦´Ï¼Å¸®¾ð±Û·¯ºê insert_item( 3000405, 1 ) --°¡µé¸®Ç︧ insert_item( 3000406, 1 ) --°¡µé¸®º§Æ® set_flag( "q19", "1") -- ¹èƲ¼­¸ð³Ê elseif job == 314 then insert_item( 3000410, 1 ) --º¹Á¾ÀÇÆ÷½º¾Æ¸Ó insert_item( 3000402, 1 ) --Á¦´Ï¼Å¸®¾ðºÎÃ÷ insert_item( 3000403, 1 ) --Á¦´Ï¼Å¸®¾ð±Û·¯ºê insert_item( 3000404, 1 ) --À©µåÅ©·¯½ºÆ® insert_item( 3000405, 1 ) --°¡µé¸®Ç︧ insert_item( 3000406, 1 ) --°¡µé¸®º§Æ® set_flag( "q19", "1") -- Àü»ç elseif job == 110 then insert_item( 3000400, 1 ) --½´ÅͺíÆ÷Æ®¸®½º insert_item( 3000402, 1 ) --Á¦´Ï¼Å¸®¾ðºÎÃ÷ insert_item( 3000403, 1 ) --Á¦´Ï¼Å¸®¾ð±Û·¯ºê insert_item( 3000405, 1 ) --°¡µé¸®Ç︧ insert_item( 3000406, 1 ) --°¡µé¸®º§Æ® set_flag( "q19", "1") -- ±Ã»ç elseif job == 111 then insert_item( 3000411, 1 ) --½´Ã÷¿ÀºêÇ︮¿À½º insert_item( 3000402, 1 ) --Á¦´Ï¼Å¸®¾ðºÎÃ÷ insert_item( 3000403, 1 ) --Á¦´Ï¼Å¸®¾ð±Û·¯ºê insert_item( 3000405, 1 ) --°¡µé¸®Ç︧ insert_item( 3000406, 1 ) --°¡µé¸®º§Æ® set_flag( "q19", "1") -- ¸¶µµ»ç, ¸¶Åõ»ç elseif job == 112 or job == 113 then insert_item( 3000408, 1 ) --°ÅÀýÀǵµÆ÷ insert_item( 3000402, 1 ) --Á¦´Ï¼Å¸®¾ðºÎÃ÷ insert_item( 3000403, 1 ) --Á¦´Ï¼Å¸®¾ð±Û·¯ºê insert_item( 3000405, 1 ) --°¡µé¸®Ç︧ insert_item( 3000406, 1 ) --°¡µé¸®º§Æ® set_flag( "q19", "1") -- ¸¶¼ö»ç elseif job == 114 then insert_item( 3000410, 1 ) --º¹Á¾ÀÇÆ÷½º¾Æ¸Ó insert_item( 3000402, 1 ) --Á¦´Ï¼Å¸®¾ðºÎÃ÷ insert_item( 3000403, 1 ) --Á¦´Ï¼Å¸®¾ð±Û·¯ºê insert_item( 3000405, 1 ) --°¡µé¸®Ç︧ insert_item( 3000406, 1 ) --°¡µé¸®º§Æ® set_flag( "q19", "1") else return end end -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90993000" ) dlg_text( "@90993008" ) -- ¹«±â Áö±Þ ¹Þ¾ÒÀ½) set_flag( "q19", "1") dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ·¹º§ ¾÷ µµ¿ì¹Ì --============================================================ -- ij¸¯ÅͰ¡ ·¹º§¾÷ ÇßÀ» ¶§ º¸»óÀ» ÁÖ´Â À̺¥Æ® -- 2009.03.03 ÇöÀç ÀϺ»¿¡´Â Ç×»ó ÁøÇàÁßÀÔ´Ï´Ù. function get_reward_item_of_level_up( achieve_level ) -- ±¹°¡ ÄÚµå(2009.03.03 ÇöÀç) -- get_local_info()ÀÇ ¹Ýȯ°ªµé --LOCAL_INFO_KOREA = 1 --LOCAL_INFO_HONGKONG = 2 --LOCAL_INFO_AMERICA = 4 --LOCAL_INFO_Germany = 8 --LOCAL_INFO_JAPAN = 16 --LOCAL_INFO_TAIWAN = 32 --LOCAL_INFO_CHINA = 64 --LOCAL_INFO_France = 128 --LOCAL_INFO_Russia = 256 --LOCAL_INFO_Malaysia = 512 --LOCAL_INFO_Singapore = 1024 --LOCAL_INFO_Vietnam = 2048 --LOCAL_INFO_Thailand = 4096 --LOCAL_INFO_Middle East = 8192 local state_code = get_local_info() -- ±¹°¡ÄÚµå 16 (ÀϺ»), ±¹°¡ÄÚµå 32(´ë¸¸) if state_code == 16 or state_code == 32 then if achieve_level == 10 then return 2902141 -- 10·¹º§ º¸»ó »óÀÚ ¾ÆÀÌÅÛ ÄÚµå elseif achieve_level == 20 then return 2902142 -- 20·¹º§ º¸»ó »óÀÚ ¾ÆÀÌÅÛ ÄÚµå elseif achieve_level == 30 then return 2902143 -- 30·¹º§ º¸»ó »óÀÚ ¾ÆÀÌÅÛ ÄÚµå elseif achieve_level == 40 then return 2902144 -- 40·¹º§ º¸»ó »óÀÚ ¾ÆÀÌÅÛ ÄÚµå elseif achieve_level == 50 then return 2902145 -- 50·¹º§ º¸»ó »óÀÚ ¾ÆÀÌÅÛ ÄÚµå end else --±¹°¡ÄÚµå 8(µ¶ÀÏ), 128(ÇÁ¶û½º) Áï, À¯·´±¹°¡µé if state_code == 8 or state_code == 128 then if achieve_level == 10 then return 2902146 -- 10 ·¹º§ ¾÷ ¼±¹° »óÀÚ<2009À¯·´·¹º§¾÷À̺¥Æ®> elseif achieve_level == 20 then return 2902147 -- 20 ·¹º§ ¾÷ ¼±¹° »óÀÚ<2009À¯·´·¹º§¾÷À̺¥Æ®> elseif achieve_level == 30 then return 2902148 -- 30 ·¹º§ ¾÷ ¼±¹° »óÀÚ<2009À¯·´·¹º§¾÷À̺¥Æ®> elseif achieve_level == 40 then return 2902149 -- 40 ·¹º§ ¾÷ ¼±¹° »óÀÚ<2009À¯·´·¹º§¾÷À̺¥Æ®> elseif achieve_level == 50 then return 2902150 -- 50 ·¹º§ ¾÷ ¼±¹° »óÀÚ<2009À¯·´·¹º§¾÷À̺¥Æ®> end else return 0 end end end function NPC_Second_level_up_contact() -- ±¹°¡ ÄÚµå(2009.03.03 ÇöÀç) -- get_local_info()ÀÇ ¹Ýȯ°ªµé --LOCAL_INFO_KOREA = 1 --LOCAL_INFO_HONGKONG = 2 --LOCAL_INFO_AMERICA = 4 --LOCAL_INFO_Germany = 8 --LOCAL_INFO_JAPAN = 16 --LOCAL_INFO_TAIWAN = 32 --LOCAL_INFO_CHINA = 64 --LOCAL_INFO_France = 128 --LOCAL_INFO_Russia = 256 --LOCAL_INFO_Malaysia = 512 --LOCAL_INFO_Singapore = 1024 --LOCAL_INFO_Vietnam = 2048 --LOCAL_INFO_Thailand = 4096 --LOCAL_INFO_Middle East = 8192 local state_code = get_local_info() -- ±¹°¡ÄÚµå 16 (ÀϺ»), ±¹°¡ÄÚµå 32(´ë¸¸) if state_code == 16 or state_code == 32 then -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90993400" ) dlg_text( "@90993402" ) dlg_menu( "@90010175", "Second_level_up()" ) else -- ±¹°¡ÄÚµå 8 (µ¶ÀÏ), ±¹°¡ÄÚµå 128 (ÇÁ¶û½º) if state_code == 8 or state_code == 128 then -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90993400" ) dlg_text( "@90993402" ) dlg_menu( "@90010175", "Second_level_up()" ) end end dlg_menu( "@90010002", " " ) dlg_show() end -- ±âÁ¸ ·¹º§ ÀúÀåµÈ »óÅ function Second_level_up() local level = get_value( "level" ) local max_achieved_level = get_flag( "q21" ) local is_quest_started = get_flag( "q22" ) -- ±¹°¡ ÄÚµå(2009.03.03 ÇöÀç) -- get_local_info()ÀÇ ¹Ýȯ°ªµé --LOCAL_INFO_KOREA = 1 --LOCAL_INFO_HONGKONG = 2 --LOCAL_INFO_AMERICA = 4 --LOCAL_INFO_Germany = 8 --LOCAL_INFO_JAPAN = 16 --LOCAL_INFO_TAIWAN = 32 --LOCAL_INFO_CHINA = 64 --LOCAL_INFO_France = 128 --LOCAL_INFO_Russia = 256 --LOCAL_INFO_Malaysia = 512 --LOCAL_INFO_Singapore = 1024 --LOCAL_INFO_Vietnam = 2048 --LOCAL_INFO_Thailand = 4096 --LOCAL_INFO_Middle East = 8192 local state_code = get_local_info() --±¹°¡ÄÚµå 16 (ÀϺ»), ±¹°¡ÄÚµå 32(´ë¸¸) if state_code == 16 or state_code == 32 then if max_achieved_level == "" then max_achieved_level = 0 end if is_quest_started == "" then is_quest_started = 0 end local current_achieve_level = ( math.floor( level / 10 ) + 1 ) * 10 -- ´ëȭâ Á¦¸ñ(npc À̸§) ¼³Á¤ dlg_title( "@90993400" ) -- Äù½ºÆ® ÁøÇà ÁßÀÌ ¾Æ´Ò °æ¿ì if is_quest_started == 0 then -- Áö±Ý±îÁö ´Þ¼ºÇß´ø(Äù½ºÆ®·Î) ÃÖ´ë ·¹º§º¸´Ù ÇöÀç ´Þ¼º ¸ñÇ¥ ·¹º§ÀÌ ³ô´Ù¸é Äù½ºÆ® ½ÃÀÛ °¡´É if current_achieve_level > max_achieved_level then -- Äù½ºÆ® ½ÃÀÛ °¡´É ¾È³»(º¸»óÀº current_achieve_level¿¡ µû¶ó¼­) if current_achieve_level == 10 then dlg_text( "@90993409" ) -- 10 ·¹º§ º¸»ó ¾È³» ¹× 10·¹º§ ´Þ¼ºÇϼÀ elseif current_achieve_level == 20 then dlg_text( "@90993410" ) -- 20 ·¹º§ º¸»ó ¾È³» ¹× 20·¹º§ ´Þ¼ºÇϼÀ elseif current_achieve_level == 30 then dlg_text( "@90993411" ) -- 30 ·¹º§ º¸»ó ¾È³» ¹× 30·¹º§ ´Þ¼ºÇϼÀ elseif current_achieve_level == 40 then dlg_text( "@90993412" ) -- 40 ·¹º§ º¸»ó ¾È³» ¹× 40·¹º§ ´Þ¼ºÇϼÀ elseif current_achieve_level == 50 then dlg_text( "@90993413" ) -- 50 ·¹º§ º¸»ó ¾È³» ¹× 50·¹º§ ´Þ¼ºÇϼÀ else dlg_text( "@90993408" ) -- À̺¥Æ® ´ë»ó ·¹º§ÀÌ ¾Æ´Ô dlg_menu( "@90010002", " " ) dlg_show() return end -- Äù½ºÆ® ½ÃÀÛ »óÅ ÀúÀå set_flag( "q21", current_achieve_level ) set_flag( "q22", "1" ) else -- Äù½ºÆ®¸¦ ÀÌ¹Ì Ç߰ųª ·¾´ÙÇÑ °æ¿ì dlg_text( "@90993406" ) -- ÇöÀç ·¹º§´ë ´Þ¼º º¸»óÀ» ÀÌ¹Ì ¹ÞÀ¸¼Ì³×¿ä. ´ÙÀ½ ·¾´ë·Î ¾÷ÇÏ°í ¿Àµç°¡ Áý¿¡ °¡¼À end -- Äù½ºÆ® ÁøÇà ÁßÀÎ °æ¿ì else -- ¸ñÇ¥ ´Þ¼º ·¹º§º¸´Ù ÇöÀç ·¹º§ÀÌ ³ôÀ¸¸é ¿Ï·á if max_achieved_level <= level then insert_item( get_reward_item_of_level_up( max_achieved_level ), 1 ) -- º¸»ó »óÀÚ Áö±Þ -- Äù½ºÆ® »óÅ ÀúÀå set_flag( "q22", "0" ) dlg_text( "@90993404" ) -- ÃßÄ«ÃßÄ« ¼±¹° ¹ÞÀ¸¼Ì»ï dlg_menu( "@90010175", "Second_level_up()" ) -- ´Ù½Ã Äù½ºÆ® ¹Þ±â üũ else -- ¸ñÇ¥ ·¹º§º¸´Ù ÇöÀç ·¹º§ÀÌ ³·À½ dlg_text( "@90993405" ) -- ¾ÆÁ÷ ¼ö·ÃÀÌ ºÎÁ·Çϱ¸³ª~ ´õ ¾÷ÇÏ°í ¿À°Å¶ó end end else -- ±¹°¡ÄÚµå 8 (µ¶ÀÏ) ±¹°¡ÄÚµå 128 (ÇÁ¶û½º) if state_code == 8 or state_code == 128 then if max_achieved_level == "" then max_achieved_level = 0 end if is_quest_started == "" then is_quest_started = 0 end local current_achieve_level = ( math.floor( level / 10 ) + 1 ) * 10 -- ´ëȭâ Á¦¸ñ(npc À̸§) ¼³Á¤ dlg_title( "@90993400" ) -- Äù½ºÆ® ÁøÇà ÁßÀÌ ¾Æ´Ò °æ¿ì if is_quest_started == 0 then -- Áö±Ý±îÁö ´Þ¼ºÇß´ø(Äù½ºÆ®·Î) ÃÖ´ë ·¹º§º¸´Ù ÇöÀç ´Þ¼º ¸ñÇ¥ ·¹º§ÀÌ ³ô´Ù¸é Äù½ºÆ® ½ÃÀÛ °¡´É if current_achieve_level > max_achieved_level then -- Äù½ºÆ® ½ÃÀÛ °¡´É ¾È³»(º¸»óÀº current_achieve_level¿¡ µû¶ó¼­) if current_achieve_level == 10 then dlg_text( "@90993409" ) -- 10 ·¹º§ º¸»ó ¾È³» ¹× 10·¹º§ ´Þ¼ºÇϼÀ elseif current_achieve_level == 20 then dlg_text( "@90993410" ) -- 20 ·¹º§ º¸»ó ¾È³» ¹× 20·¹º§ ´Þ¼ºÇϼÀ elseif current_achieve_level == 30 then dlg_text( "@90993411" ) -- 30 ·¹º§ º¸»ó ¾È³» ¹× 30·¹º§ ´Þ¼ºÇϼÀ elseif current_achieve_level == 40 then dlg_text( "@90993412" ) -- 40 ·¹º§ º¸»ó ¾È³» ¹× 40·¹º§ ´Þ¼ºÇϼÀ elseif current_achieve_level == 50 then dlg_text( "@90993413" ) -- 50 ·¹º§ º¸»ó ¾È³» ¹× 50·¹º§ ´Þ¼ºÇϼÀ else dlg_text( "@90993408" ) -- À̺¥Æ® ´ë»ó ·¹º§ÀÌ ¾Æ´Ô dlg_menu( "@90010002", " " ) dlg_show() return end -- Äù½ºÆ® ½ÃÀÛ »óÅ ÀúÀå set_flag( "q21", current_achieve_level ) set_flag( "q22", "1" ) else -- Äù½ºÆ®¸¦ ÀÌ¹Ì Ç߰ųª ·¾´ÙÇÑ °æ¿ì dlg_text( "@90993406" ) -- ÇöÀç ·¹º§´ë ´Þ¼º º¸»óÀ» ÀÌ¹Ì ¹ÞÀ¸¼Ì³×¿ä. ´ÙÀ½ ·¾´ë·Î ¾÷ÇÏ°í ¿Àµç°¡ Áý¿¡ °¡¼À end -- Äù½ºÆ® ÁøÇà ÁßÀÎ °æ¿ì else -- ¸ñÇ¥ ´Þ¼º ·¹º§º¸´Ù ÇöÀç ·¹º§ÀÌ ³ôÀ¸¸é ¿Ï·á if max_achieved_level <= level then insert_item( get_reward_item_of_level_up( max_achieved_level ), 1 ) -- º¸»ó »óÀÚ Áö±Þ -- Äù½ºÆ® »óÅ ÀúÀå set_flag( "q22", "0" ) dlg_text( "@90993404" ) -- ÃßÄ«ÃßÄ« ¼±¹° ¹ÞÀ¸¼Ì»ï dlg_menu( "@90010175", "Second_level_up()" ) -- ´Ù½Ã Äù½ºÆ® ¹Þ±â üũ else -- ¸ñÇ¥ ·¹º§º¸´Ù ÇöÀç ·¹º§ÀÌ ³·À½ dlg_text( "@90993405" ) -- ¾ÆÁ÷ ¼ö·ÃÀÌ ºÎÁ·Çϱ¸³ª~ ´õ ¾÷ÇÏ°í ¿À°Å¶ó end end end end dlg_menu( "@90010002", " " ) dlg_show() end ---------------------------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------------------------- -------------------------------------Èæ ¼Û ¹Ì ³à ÀÌ º¥ Æ® ------------------------------------------------------------ ---------------------------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------------------------- function NPC_darkwood_lady_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90993801" ) dlg_text( "@90408502" ) dlg_menu( "@90993803", "darkwood_event_1()" ) -- ¾È ÆÈ¸°´Ù°í ¾Æ·¡ µÎ ¸Þ´º´Â »ç¿ë ¾ÈÇÔ. -- dlg_menu( "@90993804", "open_market( 'darkwood_event_etc' )" ) -- dlg_menu( "@90993805", "darkwood_event_2()" ) dlg_menu( "@90010002", " " ) dlg_show() end function darkwood_event_1() if get_value( "level" ) >= 15 then open_popup("game.taiwan_darkwood_event_url", 1,0) else dlg_title( "@90993801" ) dlg_text( "@90993810" ) end dlg_menu( "@90010002", " " ) dlg_show() end function darkwood_event_2() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90993801" ) dlg_text( "@90993802" ) dlg_menu( "@90993806", "darkwood_point()" ) dlg_menu( "@90010003", " NPC_darkwood_lady_contact() " ) dlg_menu( "@90010002", " " ) dlg_show() end function darkwood_point() local count1 = find_item( 2010262 ) local count2 = find_item( 2010263 ) local count3 = find_item( 2010264 ) local count4 = find_item( 2010265 ) local count5 = find_item( 2010266 ) if count1 >= 1 and count2 >= 1 and count3 >= 1 and count4 >= 1 and count5 >= 1 then dlg_title( "@90993801" ) dlg_text( "@90993807" ) insert_item( 2010272, 1 ) delete_item( get_item_handle( 2010262), 1 ) delete_item( get_item_handle( 2010263), 1 ) delete_item( get_item_handle( 2010264), 1 ) delete_item( get_item_handle( 2010265), 1 ) delete_item( get_item_handle( 2010266), 1 ) else dlg_title( "@90993801" ) dlg_text( "@90993808" ) end dlg_menu( "@90010003", " darkwood_event_2() " ) dlg_menu( "@90010002", " " ) dlg_show() end ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- ------------------- °ñµç À§Å© À̺¥Æ® npc (±âÁ¸ ´Ü¼ú/º¢²É À̺¥Æ®)------------ ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- function NPC_golden_event_init() cprint( "!Âû¶± µµ¸Å»ó" ) set_npc_name( "@90996900" ) end function NPC_golden_event_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90996901" ) dlg_text( "@90996902" ) -- ´ç½ÅÀº ´©±¸ÁÒ? dlg_menu( "@90996907", 'golden_event_who_are_you()' ) -- ¹«¾ùÀ» µµ¿Íµå¸±±î¿ä? dlg_menu( "@90996908", 'golden_event_question()' ) -- Âû¶± ÁÖ¹®¼­ ±³È¯ dlg_menu( "@90996909", 'golden_event_exchange()' ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end -- ´ç½ÅÀº ´©±¸? function golden_event_who_are_you() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90996901" ) dlg_text( "@90996903" ) --µ¹¾Æ°¡±â dlg_menu( "@90010003", 'NPC_golden_event_contact()' ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end -- ¹«¾ùÀ» µµ¿Íµå¸±±î¿ä? function golden_event_question() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90996901" ) dlg_text( "@90996904" ) --µ¹¾Æ°¡±â dlg_menu( "@90010003", 'NPC_golden_event_contact()' ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end -- Âû¶± ±³È¯ function golden_event_exchange() local item_count = find_item ( 2000258 ) item_handle = get_item_handle ( 2000258 ) if item_count >= 50 then -- Âû¶± ÁÖ¹®¼­ ±³È¯ ¼º°ø½Ã(6°³ÀÇ Á¤Á¦µÈ Á¶°¢ Áö±Þ) dlg_title( "@90996901" ) dlg_text( "@90996905" ) delete_item ( item_handle, 50 ) insert_item ( 2600001, 1 ) insert_item ( 2600002, 1 ) insert_item ( 2600003, 1 ) insert_item ( 2600004, 1 ) insert_item ( 2600005, 1 ) insert_item ( 2600006, 1 ) else -- Âû¶± ÁÖ¹®¼­ ¸ðÀÚ¶ö °æ¿ì dlg_title( "@90996901" ) dlg_text( "@90996906" ) end --µ¹¾Æ°¡±â dlg_menu( "@90010003", 'NPC_golden_event_contact()' ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end ---------------------------------------------------------------------------- --------------linrey Äù½ºÆ® Å×½ºÆ® ¿ë Àӽà --------------------------------- ---------------------------------------------------------------------------- function NPC_linrey_test1_init() cprint( "!linrey test" ) set_npc_name( "@90999241" ) end function NPC_linrey_test1_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90999240" ) dlg_text( "@90999242" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== »óÀÎ ¿À¸£´ÏÅä<·Î¹Ö Å×½ºÆ®> --============================================================ function NPC_Quest_roaming_merchant_init() cprint( "!¼±ÂøÀå °æºñº´<ÁÂ> °¡µ¿" ) set_npc_name( "@90999039" ) end function NPC_Quest_roaming_merchant_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90999040" ) dlg_text( "@90999041" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ³ª¹«²Û Æ®¸®½´ --============================================================ function NPC_Quest_firewood_Treeshoe_init() cprint( "!³ª¹«²Û Æ®¸®½´ °¡µ¿" ) set_npc_name( "@90999543" ) end function NPC_Quest_firewood_Treeshoe_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90999544" ) dlg_text( "@90999545" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end function Quest_Link_110_1() local count = find_item( 1000051 ) if count == 0 then insert_item( 1000051, 15 ) else end end --============================================================ --=============== ¸¶µµ»ç Äɸ£¹Ù --============================================================ function NPC_Quest_ascetic_kerva_init() cprint( "!¸¶µµ»ç Äɸ£¹Ù °¡µ¿" ) set_npc_name( "@90999548" ) end function NPC_Quest_ascetic_kerva_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90999549" ) dlg_text( "@90999550" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end function Quest_Link_112_1() local count = find_item( 1100305 ) if count == 0 then insert_item( 1100305, 1 ) else end end --============================================================ --=============== ºÓÀº³óÀå Áê½Ã --============================================================ function NPC_mainquest_juicy_init() cprint( "!ºÓÀº³óÀå Áê½Ã °¡µ¿" ) set_npc_name( "@90999634" ) end function NPC_mainquest_juicy_contact() local gender = get_value('sex') local state_level = get_state_level( 6007 ) local quest_progress1 = get_quest_progress( 2004 ) if quest_progress1 == 255 then -- »óóÀÔÀº Áê½Ã ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90999857" ) dlg_text( "@90999858" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() else -- Ȧµå »óÅÂÀÎÁö¸¦ üũ(Ææ¸±ÀÇ ´Ü°ËÀ» »Ì¾ÆÁÖ´Ù °É¸°´Ù.) if state_level == 1 then if gender == 2 then -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90999635" ) dlg_text( "@90999640" ) -- Á¶°¢À» »Ì´Â´Ù. dlg_menu( "@90999655", "juicy_talkLink_2()" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() -- ¿©¼ºÀ϶§ elseif gender == 1 then dlg_title( "@90999635" ) dlg_text( "@90999641" ) -- Á¶°¢À» »Ì´Â´Ù. dlg_menu( "@90999655", "juicy_talkLink_2()" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end else -- ³²¼ºÀ϶§ if gender == 2 then -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90999635" ) dlg_text( "@90999636" ) -- ¿©¼ºÀ϶§ elseif gender == 1 then dlg_title( "@90999635" ) dlg_text( "@90999637" ) end -- ºÓÀº ¸Ó¸® ¼Ò³à¿¡ ´ëÇØ À̾߱âÈù´Ù. dlg_menu( "@90999638", "juicy_talkLink_1()" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end end -- »óóÀÔÀº Áê½Ã end function juicy_talkLink_1() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90999635" ) dlg_text( "@90999639" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end -- ´Ü°Ë »Ì±â¸¦ µµ¿ÍÁØ´Ù. function juicy_talkLink_2() local gender = get_value('sex') -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90999635" ) -- ³²¼ºÀ϶§ if gender == 2 then -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_text( "@90999645" ) -- ¿©¼ºÀ϶§ elseif gender == 1 then dlg_text( "@90999646" ) end -- ºÓÀº ¸Ó¸® ¼Ò³à¿¡ ´ëÇØ À̾߱âÈù´Ù. dlg_menu( "@90999638", "juicy_talkLink_2_1()" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end -- ´Ü°Ë »Ì±â¸¦ µµ¿ÍÁØ´Ù_2 function juicy_talkLink_2_1() local gender = get_value('sex') -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90999635" ) -- ³²¼ºÀ϶§ if gender == 2 then -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_text( "@90999683" ) -- ¿©¼ºÀ϶§ elseif gender == 1 then dlg_text( "@90999684" ) end -- ³»°¡ ´©±¸ÀÎÁö ¹°¾îº»´Ù. dlg_menu( "@90999686", "juicy_talkLink_2_1_1()" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end -- ³»°¡ ´©±¸ÀÎÁö ¹°¾îº»´Ù. function juicy_talkLink_2_1_1() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90999635" ) dlg_text( "@90999687" ) local quest_progress10 = get_quest_progress(2001) -- ¿¤·ÎÈû °­ÀÎ ÇÑ´Ù¸® if quest_progress10 == 0 then -- ³»°¡ ´©±¸ÀÎÁö ÀçÂ÷ ¹°¾îº»´Ù. dlg_menu( "@90999688", "juicy_talkLink_2_1_1_1()" ) end -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end -- ¿¤·ÎÈû Äù½ºÆ® ½ÃÀÛ function juicy_talkLink_2_1_1_1() show_quest_info_without_npc( 2001 ) end --============================================================ --=============== Ææ¸± ·¹ÀÎÄ«½º --============================================================ function NPC_mainquest_rainkas_init() cprint( "!Ææ¸± ·¹ÀÎÄ«½º °¡µ¿" ) set_npc_name( "@90999647" ) end function NPC_mainquest_rainkas_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90999648" ) dlg_text( "@90999649" ) -- ¸Ó¸®¸¦ ¾²´Ùµë´Â´Ù. dlg_menu( "@90999650", "fenrir_talkLink_1()" ) -- ¸ÔÀ̸¦ ÁØ´Ù. dlg_menu( "@90999651", "fenrir_talkLink_2()" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end -- ¸Ó¸®¸¦ ¾²´Ùµë´Â´Ù. function fenrir_talkLink_1() -- ´ÙÀ̾ó·Î±× Ãâ·Â --dlg_title( "@90999648" ) --dlg_text( "@90999639" ) cprint( "@90999653" ) add_state(6006, 1, 100) -- ´ëÈ­Á¾·á --dlg_menu( "@90010002", " " ) --dlg_show() end -- ¸ÔÀ̸¦ ÁØ´Ù. function fenrir_talkLink_2() local item_fenrir_food = find_item ( 1000092 ) local item_fenrir_food_handle = get_item_handle ( 1000092 ) -- ¸ÔÀ̰¡ ¾øÀ» °æ¿ì if item_fenrir_food == 0 or is_erasable_item( item_fenrir_food_handle ) == 0 then cprint( "@90999652" ) --add_state(6006, 1, 100) -- Äù½ºÆ® »óÅ üũ get_quest_progress(ID) -- ¹Ýȯ°ª -1 : ¾Æ¹«°Íµµ ¾Æ´Ô / 0 : ¼ö¶ô°¡ / 1 : ¼öÇàÁß / 2 : Á¾·á°¡´É / 255 : À̹ÌÁ¾·á --local quest_progress100 = get_quest_progress(2028) -- ·¹ÀÎÄ«½º ¸ÔÀÌ ±¸Çϱâ --if quest_progress100 == 0 then -- show_quest_info_without_npc( 2028 ) --end else -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90999648" ) dlg_text( "@90999654" ) delete_item( get_item_handle( 1000092 ), 1 ) -- ´Ü°ËÀ» »Ì´Â´Ù. dlg_menu( "@90999655", "fenrir_talkLink_2_1()" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end end -- ´Ü°ËÀ» »Ì´Â´Ù. function fenrir_talkLink_2_1() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90999648" ) dlg_text( "@90999656" ) -- Áö¼ÓÈ¿°ú Ȧµå ·¹º§ 1, 3Ãʰ£ À¯È¿ add_state(6007, 1, 1500) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --===================================================================================== --=============== '¿¤·ÎÈû'ÀÇ ÀÚ°Ý: °­ÀÎÇÑ ´Ù¸® --===================================================================================== --¿¤·ÎÈûÀÇ ÀÚ°Ý:°­ÀÎÇÑ ´Ù¸® function quest_start_2001() --local dice = math.random( 0, 2) --if dice == 0 then add_field_prop( 30028, 300, 128707 + math.random(0, 300), 102013 + math.random(0, 300))--, gv('layer'), 5, 0, 0, 0, 0, 0, 0, 0, false ) --elseif dice == 1 then add_field_prop( 30028, 300, 126761 + math.random(0, 300), 100882 + math.random(0, 300)) --elseif dice == 2 then add_field_prop( 30028, 300, 125554 + math.random(0, 300), 102645 + math.random(0, 300)) --end end function quest_end_2001() --¿¤·ÎÈûÀÇ ¹®Àå Ä«¿îÆ® ±¸Çϱâ local item_ellohimmark_count = find_item ( 1000086 ) if item_ellohimmark_count >= 1 then for i = 0, 10 do -- ¿¤·ÎÈûÀÇ ¹®Àå ³²Àº ¾ÆÀÌÅÛ ¾ø¾Ö±â delete_item( get_item_handle( 1000086 ), item_ellohimmark_count ) end end end function quest_end_2001_prop() add_state( 1013, 3, 3000) -- À̵¿¼Óµµ Áõ°¡( 10·¹º§ , 30ÃÊ) end --===================================================================================== --=============== '¿¤·ÎÈû'ÀÇ ÀÚ°Ý: Â÷°¡¿î ´« --===================================================================================== -- ¿¤·ÎÈûÀÇ ÀÚ°Ý: Â÷°¡¿î ´« function quest_start_2002() local dice = math.random( 0, 1) local questflag01 = get_flag( "mainquest_warp" ) -- ºÓÀº ³óÀå ¼öÁ¤ ¿öÇÁ°ÔÀÌÆ® ÁÂÃø --if dice == 0 then --add_field_prop( 30029, 30, 126537 + math.random(0, 30), 102257 + math.random(0, 30) ) --add_field_prop( 30032, 30, 126621 + math.random(0, 30), 102258 + math.random(0, 30) ) -- ºÓÀº ³óÀå ¼öÁ¤ ¿öÇÁ°ÔÀÌÆ® ¿ìÃø --elseif dice == 1 then --add_field_prop( 30032, 30, 126537 + math.random(0, 30), 102257 + math.random(0, 30) ) --add_field_prop( 30029, 30, 126621 + math.random(0, 30), 102258 + math.random(0, 30) ) --end if dice == 0 then set_flag( "mainquest_warp", "0") elseif dice == 1 then set_flag( "mainquest_warp", "1") end cprint( "@90999698" ) -- <#6DD67D>³²ÂÊ¿¡¼­ ¿öÇÁ°ÔÀÌÆ®ÀÇ ¸¶·ÂÀÌ ´À²¸Áø´Ù. end function quest_start_2002_1() local dice = math.random( 0, 1) warp( 121277 + math.random(0,10) , 110241 + math.random(0,10) ) -- ¿©¸íÀÇ °ú¼ö¿ø ¼öÁ¤ ¿öÇÁ°ÔÀÌÆ® ÁÂÃø if dice == 0 then add_field_prop( 30030, 30, 120996 + math.random(0, 30), 110200 + math.random(0, 40) ) add_field_prop( 30032, 30, 121040 + math.random(0, 30), 110326 + math.random(0, 40) ) -- ¿©¸íÀÇ °ú¼ö¿ø ¼öÁ¤ ¿öÇÁ°ÔÀÌÆ® ¿ìÃø elseif dice == 1 then add_field_prop( 30032, 30, 120996 + math.random(0, 30), 110200 + math.random(0, 40) ) add_field_prop( 30030, 30, 121040 + math.random(0, 30), 110326 + math.random(0, 40) ) end cprint( "@90999700" ) -- <#6DD67D>¼­ÂÊ¿¡¼­ ¿öÇÁ°ÔÀÌÆ®ÀÇ ¸¶·ÂÀÌ ´À²¸Áø´Ù. end function quest_start_2002_2() local dice = math.random( 0, 1) warp( 141842 + math.random(0,10) , 134561 + math.random(0,10) ) -- ¼¼ÀÌ·» ¼¶ ¼öÁ¤ ¿öÇÁ°ÔÀÌÆ® ÁÂÃø if dice == 0 then add_field_prop( 30031, 30, 142343 + math.random(0, 30), 134663 + math.random(0, 50) ) add_field_prop( 30032, 30, 142357 + math.random(0, 30), 134476 + math.random(0, 50) ) -- ¼¼ÀÌ·» ¼¶ ¼öÁ¤ ¿öÇÁ°ÔÀÌÆ® ¿ìÃø elseif dice == 1 then add_field_prop( 30032, 30, 142343 + math.random(0, 30), 134663 + math.random(0, 50) ) add_field_prop( 30031, 30, 142357 + math.random(0, 30), 134476 + math.random(0, 50) ) end cprint( "@90999697" ) -- <#6DD67D>¾ð´ö À§¿¡¼­ ¿öÇÁ°ÔÀÌÆ®ÀÇ ¸¶·ÂÀÌ ´À²¸Áø´Ù. end function quest_start_2002_3() warp( 134442 + math.random(0,10) , 157208 + math.random(0,10) ) add_field_prop( 30027, 30, 126537 + math.random(0, 30), 102257 + math.random(0, 50) ) cprint( "@90999871" ) -- <#6DD66D>ÆøÆ÷ ¼ö ¹æÇâ¿¡¼­ ¸¶³ªÀÇ È帧ÀÌ ´À²¸Áø´Ù. cprint( "@90999699" ) -- <#6DD66D>¿¤·ÎÈû ¸¶·ÂÀÌ ´À²¸Áø´Ù. ¿µÈ¥¼®À» Ž»öÇÏÀÚ. end -- Äù½ºÆ® ÇÁ¶ø ¹«Àú°» Çà(Äù½ºÆ® ½ÇÆÐ) function quest_start_2002_end() warp( 126572 + math.random(0,10) , 102406 + math.random(0,10) ) -- óÀ½À¸·Î ´Ù½Ã µ¹¾Æ¿Ô´Ù. local dice = math.random( 0, 1) -- ºÓÀº ³óÀå ¼öÁ¤ ¿öÇÁ°ÔÀÌÆ® ÁÂÃø if dice == 0 then add_field_prop( 30029, 30, 126537 + math.random(0, 30), 102257 + math.random(0, 30) ) add_field_prop( 30032, 30, 126621 + math.random(0, 30), 102258 + math.random(0, 30) ) -- ºÓÀº ³óÀå ¼öÁ¤ ¿öÇÁ°ÔÀÌÆ® ¿ìÃø elseif dice == 1 then add_field_prop( 30032, 30, 126537 + math.random(0, 30), 102257 + math.random(0, 30) ) add_field_prop( 30029, 30, 126621 + math.random(0, 30), 102258 + math.random(0, 30) ) end cprint( "@90999698" ) -- <#6DD67D>³²ÂÊ¿¡¼­ ¿öÇÁ°ÔÀÌÆ®ÀÇ ¸¶·ÂÀÌ ´À²¸Áø´Ù. end -- Äù½ºÆ® ¿Ï·á½Ã Áê½Ã¿¡°Ô·Î ¿öÇÁ function quest_end_2002() local qwarpflag_end = get_flag( "mainquest_warp" ) local dice = math.random( 0, 1 ) --¿¤·ÎÈûÀÇ ¸ñ°ÉÀÌ Ä«¿îÆ® ±¸Çϱâ local item_ellohimnecklace_count = find_item ( 1000093 ) if qwarpflag_end == 3 then warp( 126572 + math.random(0,10) , 102406 + math.random(0,10) ) if item_ellohimnecklace_count >= 1 then for i = 0, 10 do -- ¿¤·ÎÈûÀÇ ¸ñ°ÉÀÌ ³²Àº ¾ÆÀÌÅÛ ¾ø¾Ö±â delete_item( get_item_handle( 1000093 ), item_ellohimnecklace_count ) end end -- ¿¤·ÎÈûÀÇ ¸ñ°ÉÀÌ ³Ö¾îÁÖ±â insert_item( 1000093, 1 ) else warp( 126572 + math.random(0,10) , 102406 + math.random(0,10) ) cprint( "@90999698" ) -- <#6DD67D>³²ÂÊ¿¡¼­ ¿öÇÁ°ÔÀÌÆ®ÀÇ ¸¶·ÂÀÌ ´À²¸Áø´Ù. if dice == 0 then set_flag( "mainquest_warp", "1") elseif dice == 1 then set_flag( "mainquest_warp", "0") end end end -- Äù½ºÆ® ¿Ï·á½Ã Áê½Ã¿¡°Ô·Î ¿öÇÁ function quest_end_2005() warp( 126572 + math.random(0,10) , 102406 + math.random(0,10) ) end -- Äù½ºÆ® ¿Ï·á½Ã Áê½Ã¿¡°Ô·Î ¿öÇÁ function quest_end_2006() warp( 126572 + math.random(0,10) , 102406 + math.random(0,10) ) end -- Äù½ºÆ® ¿Ï·á½Ã Áê½Ã¿¡°Ô·Î ¿öÇÁ function quest_end_2007() warp( 126572 + math.random(0,10) , 102406 + math.random(0,10) ) end --===================================================================================== --=============== '¿¤·ÎÈû'ÀÇ ÀÚ°Ý: Â÷°¡¿î ´« ¿öÇÁ °ÔÀÌÆ® ¼öÁ¤ --===================================================================================== -- 0ÀÌ Á¤´äÀÎ ÇÁ¶ø function quest_start_2002_prop_redfarm_1() local qwarpflag01 = get_flag( "mainquest_warp" ) local dice = math.random( 0, 1 ) if qwarpflag01 == 0 then warp( 121277 + math.random(0,10) , 110241 + math.random(0,10) ) cprint( "@90999700" ) -- <#6DD67D>¼­ÂÊ¿¡¼­ ¿öÇÁ°ÔÀÌÆ®ÀÇ ¸¶·ÂÀÌ ´À²¸Áø´Ù. if dice == 0 then set_flag( "mainquest_warp", "1") elseif dice == 1 then set_flag( "mainquest_warp", "0") end elseif qwarpflag01 == 1 then warp( 126572 + math.random(0,10) , 102406 + math.random(0,10) ) cprint( "@90999698" ) -- <#6DD67D>³²ÂÊ¿¡¼­ ¿öÇÁ°ÔÀÌÆ®ÀÇ ¸¶·ÂÀÌ ´À²¸Áø´Ù. if dice == 0 then set_flag( "mainquest_warp", "1") elseif dice == 1 then set_flag( "mainquest_warp", "0") end end end -- 1ÀÌ Á¤´äÀÎ ÇÁ¶ø function quest_start_2002_prop_redfarm_2() local qwarpflag01 = get_flag( "mainquest_warp" ) local dice = math.random( 0, 1 ) if qwarpflag01 == 1 then warp( 121277 + math.random(0,10) , 110241 + math.random(0,10) ) cprint( "@90999700" ) -- <#6DD67D>¼­ÂÊ¿¡¼­ ¿öÇÁ°ÔÀÌÆ®ÀÇ ¸¶·ÂÀÌ ´À²¸Áø´Ù. if dice == 0 then set_flag( "mainquest_warp", "1") elseif dice == 1 then set_flag( "mainquest_warp", "0") end elseif qwarpflag01 == 0 then warp( 126572 + math.random(0,10) , 102406 + math.random(0,10) ) cprint( "@90999698" ) -- <#6DD67D>³²ÂÊ¿¡¼­ ¿öÇÁ°ÔÀÌÆ®ÀÇ ¸¶·ÂÀÌ ´À²¸Áø´Ù. if dice == 0 then set_flag( "mainquest_warp", "1") elseif dice == 1 then set_flag( "mainquest_warp", "0") end end end -- 0ÀÌ Á¤´äÀÎ ÇÁ¶ø_¿©¸íÀÇ °ú¼ö¿ø function quest_start_2002_prop_fruit_1() local qwarpflag02 = get_flag( "mainquest_warp" ) local dice = math.random( 0, 1 ) if qwarpflag02 == 0 then warp( 141842 + math.random(0,10) , 134561 + math.random(0,10) ) cprint( "@90999697" ) -- <#6DD67D>¾ð´ö À§¿¡¼­ ¿öÇÁ°ÔÀÌÆ®ÀÇ ¸¶·ÂÀÌ ´À²¸Áø´Ù. if dice == 0 then set_flag( "mainquest_warp", "1") elseif dice == 1 then set_flag( "mainquest_warp", "0") end elseif qwarpflag02 == 1 then warp( 126572 + math.random(0,10) , 102406 + math.random(0,10) ) cprint( "@90999698" ) -- <#6DD67D>³²ÂÊ¿¡¼­ ¿öÇÁ°ÔÀÌÆ®ÀÇ ¸¶·ÂÀÌ ´À²¸Áø´Ù. if dice == 0 then set_flag( "mainquest_warp", "1") elseif dice == 1 then set_flag( "mainquest_warp", "0") end end end -- 1ÀÌ Á¤´äÀÎ ÇÁ¶ø_¿©¸íÀÇ °ú¼ö¿ø function quest_start_2002_prop_fruit_2() local qwarpflag02 = get_flag( "mainquest_warp" ) local dice = math.random( 0, 1 ) if qwarpflag02 == 1 then warp( 141842 + math.random(0,10) , 134561 + math.random(0,10) ) cprint( "@90999697" ) -- <#6DD67D>¾ð´ö À§¿¡¼­ ¿öÇÁ°ÔÀÌÆ®ÀÇ ¸¶·ÂÀÌ ´À²¸Áø´Ù. if dice == 0 then set_flag( "mainquest_warp", "1") elseif dice == 1 then set_flag( "mainquest_warp", "0") end elseif qwarpflag02 == 0 then warp( 126572 + math.random(0,10) , 102406 + math.random(0,10) ) cprint( "@90999698" ) -- <#6DD67D>³²ÂÊ¿¡¼­ ¿öÇÁ°ÔÀÌÆ®ÀÇ ¸¶·ÂÀÌ ´À²¸Áø´Ù. if dice == 0 then set_flag( "mainquest_warp", "1") elseif dice == 1 then set_flag( "mainquest_warp", "0") end end end -- 0ÀÌ Á¤´äÀÎ ÇÁ¶ø_¼¼ÀÌ·» ¼¶ function quest_start_2002_prop_siland_1() local qwarpflag03 = get_flag( "mainquest_warp" ) local dice = math.random( 0, 1 ) if qwarpflag03 == 0 then warp( 134442 + math.random(0,10) , 157208 + math.random(0,10) ) --add_field_prop( 30027, 30, 126537 + math.random(0, 30), 102257 + math.random(0, 50) ) cprint( "@90999871" ) -- <#6DD66D>Â÷°¡¿î ´«ÀÇ ÀÚ°ÝÀ» Áõ¸íÇÏ¿´´Ù. cprint( "@90999699" ) -- <#6DD66D>ÆøÆ÷ ¼ö ¹æÇâÀÇ ³ÃöÇÔÀÇ ¿µÈ¥¼®À» Ž»öÇÏÀÚ. --if dice == 0 then set_flag( "mainquest_warp", "3") --elseif dice == 1 then --set_flag( "mainquest_warp", "0") --end elseif qwarpflag03 == 1 then warp( 126572 + math.random(0,10) , 102406 + math.random(0,10) ) cprint( "@90999698" ) -- <#6DD67D>³²ÂÊ¿¡¼­ ¿öÇÁ°ÔÀÌÆ®ÀÇ ¸¶·ÂÀÌ ´À²¸Áø´Ù. if dice == 0 then set_flag( "mainquest_warp", "1") elseif dice == 1 then set_flag( "mainquest_warp", "0") end end end -- 1ÀÌ Á¤´äÀÎ ÇÁ¶ø_¼¼ÀÌ·» ¼¶ function quest_start_2002_prop_siland_2() local qwarpflag03 = get_flag( "mainquest_warp" ) local dice = math.random( 0, 1 ) if qwarpflag03 == 1 then warp( 134442 + math.random(0,10) , 157208 + math.random(0,10) ) --add_field_prop( 30027, 30, 126537 + math.random(0, 30), 102257 + math.random(0, 50) ) cprint( "@90999871" ) -- <#6DD66D>Â÷°¡¿î ´«ÀÇ ÀÚ°ÝÀ» Áõ¸íÇÏ¿´´Ù. cprint( "@90999699" ) -- <#6DD66D>ÆøÆ÷ ¼ö ¹æÇâÀÇ ³ÃöÇÔÀÇ ¿µÈ¥¼®À» Ž»öÇÏÀÚ. --if dice == 0 then set_flag( "mainquest_warp", "3") --elseif dice == 1 then --set_flag( "mainquest_warp", "0") --end elseif qwarpflag03 == 0 then warp( 126572 + math.random(0,10) , 102406 + math.random(0,10) ) cprint( "@90999698" ) -- <#6DD67D>³²ÂÊ¿¡¼­ ¿öÇÁ°ÔÀÌÆ®ÀÇ ¸¶·ÂÀÌ ´À²¸Áø´Ù. if dice == 0 then set_flag( "mainquest_warp", "1") elseif dice == 1 then set_flag( "mainquest_warp", "0") end end end --===================================================================================== --=============== ¸ÞÀÎ Äù½ºÆ® etc --===================================================================================== -- Áê½Ã º¹¼öÇϱâ (±¤½Åµµ ¾Ï»ìÀÚ) function quest_start_2004_end() cprint( "@90999870" ) -- <#6DD66D>±Þ°ÝÇÑ ¸¶³ªÀÇ È帧À¸·Î µ¥¹ÌÁö¸¦ ÀÔ¾ú½À´Ï´Ù. -- Áö¼ÓÈ¿°ú ºÎ¿© => add_state( Áö¼ÓÈ¿°úID, ·¹º§, ½Ã°£ ) add_state( 12602, 30, 60000) -- Á¤½ÅÅëÀÏ(Å©¸®Æ¼Äà Áõ°¡) 10·¹º§ add_state( 6004, 5, 30000) -- ÃâÇ÷(¹«¼Ó¼º Áö¼Óµ¥¹ÌÁö) 5·¹º§ --show_quest_info_without_npc( 2008 ) end -- ´ë·úÀÇ °ú°Å ¹«³àÁ¦À̳ª¿¡°Ô ¿öÇÁ function quest_start_2005() warp( 120321 + math.random(0,10) , 72102 + math.random(0,10) ) end -- ´ë·úÀÇ °ú°Å »ç¸·Áö±â ¿¤·¹³ë¿¡°Ô ¿öÇÁ function quest_start_2006() warp( 120752 + math.random(0,10) , 86799 + math.random(0,10) ) end -- ´ë·úÀÇ °ú°Å ¿¤·ÎÈû ½Ã¾ÆÆä¿¡°Ô ¿öÇÁ function quest_start_2007() warp( 127542 + math.random(0,10) , 121326 + math.random(0,10) ) end -- ±¤½Åµµ ¾Ï»ìÀÚ ÁøÇàÀ» À§ÇÑ ÈùÆ® function quest_end_2008() cprint("@90999877") --<<#6DD66D>´ë·úÀÇ ±¤½Åµµ¸¦ ¹«ÂÀÚ. ±¤½ÅµµÀÇ Á¤º¸¸¦ ¾ò±â À§ÇØ ¸¶À»·Î °¡ÀÚ. cprint("@90999878") --<#6DD66D>»ç¶÷µéÀº Áê½ÃÀÇ Á¤Ã¼´Â ¸ð¸£´õ¶óµµ ±¤½Åµµ¿¡ ´ëÇØ¼­´Â ¾Ë °ÍÀÌ´Ù. ¹Ì·¡¸¦ ¿¹¾ðÇÏ´Â ¼Ò³à Áê½ÃÀÇ ¿ø¼ö! --cprint("@90999726") --<#6DD66D>(¿Üħ) ¾öû³­ ¸¶¹ýÀÌ´Ù. ¸¶¹ý ½ÇÇèÁö ºÏÂÊ¿¡ ¾öû³­ ¸¶·ÂÀÇ ¸¶³à°¡ ºÎȰÇß´Ù! del_flag( "mainquest_warp" ) end -- ¹Ý½ºÄ¡ ¸¸³ª±â ¿öÇÁ function quest_start_2014_end() warp( 109354 + math.random(10,20) , 71864 + math.random(10,20) ) end -- ÇÏÀÎÁ©¿öÄ¿ ¸¸³ª±â ¿öÇÁ function quest_start_2016_end() warp( 132678 + math.random(10,20) , 140055 + math.random(10,20) ) end -- ¸¶³à ºÎȰÀÇ ¿Üħµé function quest_end_2017() cprint("@90999739") --<#6DD66D>(¿Üħ)¸¶³à°¡ ³ªÅ¸³µ´Ù! ¸¶³à°¡ ºÎȰÇß´Ù! À¸¾Ç~ »ì·ÁÁà! cprint("@90999725") --<#6DD66D>(¿Üħ) ¸¶¹ý ½ÇÇèÁö¿¡ ¸¶³à°¡ ³ªÅ¸³µ¾î! ½ÇÇèÁö ºÏÂÊÀÌ´Ù! cprint("@90999726") --<#6DD66D>(¿Üħ) ¾öû³­ ¸¶¹ýÀÌ´Ù. ¸¶¹ý ½ÇÇèÁö ºÏÂÊ¿¡ ¾öû³­ ¸¶·ÂÀÇ ¸¶³à°¡ ºÎȰÇß´Ù! end -- ¸¶¹ý ½ÇÇèÁö ¸ó½ºÅÍ ¸®Á¨ --[[ function quest_start_2017_start() --local dice = math.random( 0, 3) -- ±¤½Åµµ ¼Òȯ add_npc( 131766 + math.random( 10, 50), 140998 + math.random( 10, 50), 85005, 1 + math.random( 0, 3) , 60000 ) add_npc( 131766 + math.random( 10, 50), 140998 + math.random( 10, 50), 85006, 1 + math.random( 0, 1) , 60000 ) add_npc( 130646 + math.random( 10, 50), 142164 + math.random( 10, 50), 85005, 1 + math.random( 0, 3) , 60000 ) add_npc( 130646 + math.random( 10, 50), 142164 + math.random( 10, 50), 85006, 1 + math.random( 0, 1) , 60000 ) add_npc( 132888 + math.random( 10, 50), 142000 + math.random( 10, 50), 85005, 1 + math.random( 0, 3) , 80000 ) add_npc( 132888 + math.random( 10, 50), 142000 + math.random( 10, 50), 85006, 1 + math.random( 0, 1) , 80000 ) add_npc( 132910 + math.random( 10, 50), 141977 + math.random( 10, 50), 85005, 1 + math.random( 0, 3) , 80000 ) add_npc( 132910 + math.random( 10, 50), 141977 + math.random( 10, 50), 85006, 1 + math.random( 0, 1) , 80000 ) add_npc( 131230 + math.random( 10, 50), 139236 + math.random( 10, 50), 85005, 1 + math.random( 0, 3) , 60000 ) add_npc( 131230 + math.random( 10, 50), 139236 + math.random( 10, 50), 85006, 1 + math.random( 0, 1) , 60000 ) add_npc( 130271 + math.random( 10, 50), 139426 + math.random( 10, 50), 85005, 1 + math.random( 0, 3) , 60000 ) add_npc( 130271 + math.random( 10, 50), 139426 + math.random( 10, 50), 85006, 1 + math.random( 0, 1) , 60000 ) --end cprint( "@90999865" ) -- <#6DD66D>¸¶³àÀÇ ¾îµÒÀÇ ¸¶³ªÀÇ ±â¿îÀÌ ´À²¸Áø´Ù. ¸¶¹ý½ÇÇèÁö¸¦ Á¤È­ÇÏÀÚ. end ]] -- ¸¶¹ý½ÇÇèÁö °¡Â¥¸¶³à ¸®Á¨ function quest_start_2018_start() cprint( "@90999879" ) -- <#6DD67D>¸¶³àÀÇ ºÎȰ? ¸¶¹ý ½ÇÇèÁö ºÏÂÊÀÌ´Ù! --add_npc( 132678 + math.random(0, 10), 140055 + math.random(0, 10), 76006, 1, 180000 ) end -- ·ç½Ã¾Ó ¸¸³ª±â ¿öÇÁ(¸¶³à ºÎȰ º¸°í) function quest_start_2019_start() warp( 138903 + math.random(10,20) , 142444 + math.random(10,20) ) end -- ±¤½Åµµ Ãâ¸ôÀÇ ¿Üħµé function quest_end_2019() cprint("@90999772") --<#6DD66D>(¿Üħ)¶óÅ© ½Ã¿¡ ±¤½Åµµ°¡ ³ªÅ¸³µ´Ù´Â Àü°¥À̿ɴϴÙ! cprint("@90999773") --<#6DD66D>(¿Üħ)È£¶óÀÌÁð¿¡µµ ±¤½Åµµ¿Í ¸¶³à°¡ ³ªÅ¸³µ´Ù´Â Àü°¥À̿ɴϴÙ! cprint("@90999774") --<#6DD66D>(¿Üħ)īźÀ» ºñ·ÔÇÑ °¡ÀÌ¾Æ ´ë·ú °÷°÷¿¡ ±¤½ÅµµÀÇ ½À°ÝÀ» ¹Þ¾Ò´Ù´Â Àü°¥ À̿ɴϴÙ. end -- Æä³ÍÆ® ¸¸³ª±â(±¤½Åµµ ô°á ¼±Æ÷, »ó¾ÆÅ¾ ±¤½Åµµ ¼ÒÅÁ) function quest_start_2020_start() warp( 121506 + math.random(10,20) , 152792 + math.random(10,20) ) end -- ¸®Ã³µå ¸¸³ª±â ¿öÇÁ(¾î½Ø½Å ±æµå Áö¿ø) function quest_start_2022_start() warp( 102577 + math.random(10,20) , 71378 + math.random(10,20) ) end -- ·ç½Ã¾Ó ¸¸³ª±â ¿öÇÁ(¾î½Ø½Å ±æµå ¼ÒÅÁ º¸°í) function quest_start_2024_end() warp( 138903 + math.random(10,20) , 142444 + math.random(10,20) ) end -- ÇíÅ丣 ¼Òȯ ¿öÇÁ function quest_start_2025_start() local quest_respawn_start = get_flag( "hectorspawn" ) set_flag( "hectorspawn", "0" ) warp( 120899 + math.random(10,20) , 73265 + math.random(10,20) ) -- Áö¿ªÁøÀÔ Ä«¿îÆ® ÃʱâÈ­ --set_event_area_enter_count( À̺¥Æ®¿µ¿ªID, get_event_area_enter_count( À̺¥Æ®¿µ¿ªID ) - 1 ) set_event_area_enter_count( 70401, get_event_area_enter_count( 70401 ) - 1 ) set_event_area_enter_count( 70402, get_event_area_enter_count( 70402 ) - 1 ) set_event_area_enter_count( 70403, get_event_area_enter_count( 70403 ) - 1 ) set_event_area_enter_count( 70404, get_event_area_enter_count( 70404 ) - 1 ) set_event_area_enter_count( 70405, get_event_area_enter_count( 70405 ) - 1 ) set_event_area_enter_count( 70406, get_event_area_enter_count( 70406 ) - 1 ) set_event_area_enter_count( 70407, get_event_area_enter_count( 70407 ) - 1 ) end -- ¸¶³à»ç³É Áö¿ø ¿öÇÁ function quest_start_2026_start() warp( 138665 + math.random(10,20) , 75192 + math.random(10,20) ) --¼ø¹éÀÇ ¹Ù½ºÅ¸µå ¼Òµå Ä«¿îÆ® ±¸Çϱâ local item_whitesword_count = find_item ( 1000090 ) if item_whitesword_count >= 1 then for i = 0, 10 do -- ¼ø¹éÀÇ ¹Ù½ºÅ¸µå ¼Òµå ³²Àº ¾ÆÀÌÅÛ ¾ø¾Ö±â delete_item( get_item_handle( 1000090 ), item_whitesword_count ) end end -- ¼ø¹éÀÇ ¹Ù½ºÅ¸µå ¼Òµå ³Ö¾îÁÖ±â insert_item( 1000090, 1 ) end -- ¸¶³à»ç³É ¿öÇÁ°ÔÀÌÆ® »ý¼º function quest_start_2027() --add_field_prop( 30040, 180, 139305 + math.random(1, 2), 73822 + math.random(1, 2) ) warp( 139541 + math.random(0,2) , 73447 + math.random(0,2) ) end -- ¸¶³à»ç³É ¼ø¹éÀÇ ¹Ù½ºÅ¸µå ¼Òµå »èÁ¦ function quest_end_2027() --¼ø¹éÀÇ ¹Ù½ºÅ¸µå ¼Òµå Ä«¿îÆ® ±¸Çϱâ local item_whitesword_count = find_item ( 1000090 ) if item_whitesword_count >= 1 then for i = 0, 10 do -- ¼ø¹éÀÇ ¹Ù½ºÅ¸µå ¼Òµå ³²Àº ¾ÆÀÌÅÛ ¾ø¾Ö±â delete_item( get_item_handle( 1000090 ), item_whitesword_count ) end end del_flag( "hectorspawn" ) end -- ¸¶³à»ç³É ¿öÇÁ°ÔÀÌÆ® »ý¼º function quest_start_2027_prop() --add_field_prop( 30040, 180, 139305 + math.random(1, 2), 73822 + math.random(1, 2) ) warp( 139256 + math.random(0,2) , 73908 + math.random(0,2) ) end -- ·¹ÀÎÄ«½º ¸ÔÀÌ ±¸Çϱâ function quest_start_2028() --warp( 138615 + math.random(10,20) , 75156 + math.random(10,20) ) end -- »ó¾ÆÅ¾ ±¤½Åµµ ¸®Á¨ --[[ function quest_start_2021_start() add_npc( 119644 + math.random(0, 10), 156120 + math.random(0, 10), 81007, 1, 60000 ) add_npc( 119644 + math.random(0, 10), 156120 + math.random(0, 10), 81008, 2+ math.random( 0, 4), 60000 ) add_npc( 120394 + math.random(0, 20), 156403 + math.random(0, 20), 81009, 1+ math.random( 0, 3), 60000 ) add_npc( 120394 + math.random(0, 20), 156403 + math.random(0, 20), 81006, 5+ math.random( 0, 4), 60000 ) add_npc( 120762 + math.random(0, 50), 156596 + math.random(0, 50), 81008, 2+ math.random( 0, 4), 70000 ) add_npc( 120762 + math.random(0, 50), 156596 + math.random(0, 50), 81009, 1, 70000 ) add_npc( 121451 + math.random(0, 50), 155799 + math.random(0, 50), 81006, 4+ math.random( 0, 5), 70000 ) add_npc( 121451 + math.random(0, 50), 155799 + math.random(0, 50), 81007, 1+ math.random( 0, 3), 70000 ) add_npc( 121740 + math.random(0, 50), 154852 + math.random(0, 50), 81006, 5+ math.random( 0, 4), 80000 ) add_npc( 120892 + math.random(0, 50), 154332 + math.random(0, 50), 81008, 5+ math.random( 0, 4), 80000 ) end ]] --¾î½Ø½Å ±æµå ±¤½Åµµ ¸®Á¨ --[[ function quest_start_2023_start() add_npc( 102720 + math.random(0, 10), 69459 + math.random(0, 10), 85006, 1, 70000 ) add_npc( 102720 + math.random(0, 20), 69459 + math.random(0, 20), 85008, 1, 70000 ) add_npc( 102720 + math.random(0, 50), 69459 + math.random(0, 50), 85005, 4+ math.random( 0, 3), 70000 ) add_npc( 102720 + math.random(0, 50), 69459 + math.random(0, 50), 85007, 3+ math.random( 0, 3), 70000 ) --add_npc( 102720 + math.random(0, 50), 69459 + math.random(0, 50), 85007, 4, 600 ) --add_npc( 102720 + math.random(0, 50), 69459 + math.random(0, 50), 85005, 5, 600 ) --add_npc( 101960 + math.random(0, 10), 69294 + math.random(0, 10), 85006, 1, 600 ) --add_npc( 101960 + math.random(0, 20), 69294 + math.random(0, 20), 85008, 1, 600 ) add_npc( 101960 + math.random(0, 50), 69294 + math.random(0, 50), 85005, 2+ math.random( 0, 3), 80000 ) add_npc( 101960 + math.random(0, 50), 69294 + math.random(0, 50), 85007, 3+ math.random( 0, 3), 80000 ) add_npc( 101960 + math.random(0, 50), 69294 + math.random(0, 50), 85007, 4+ math.random( 0, 3), 80000 ) add_npc( 101960 + math.random(0, 50), 69294 + math.random(0, 50), 85005, 5+ math.random( 0, 3), 80000 ) add_npc( 102570 + math.random(0, 10), 70130 + math.random(0, 10), 85006, 1+ math.random( 0, 2), 70000 ) add_npc( 102570 + math.random(0, 20), 70130 + math.random(0, 20), 85008, 1+ math.random( 0, 2), 70000 ) --add_npc( 102570 + math.random(0, 50), 70130 + math.random(0, 50), 85005, 2, 600 ) --add_npc( 102570 + math.random(0, 50), 70130 + math.random(0, 50), 85007, 3, 600 ) add_npc( 102570 + math.random(0, 50), 70130 + math.random(0, 50), 85007, 4+ math.random( 0, 3), 70000 ) add_npc( 102570 + math.random(0, 50), 70130 + math.random(0, 50), 85005, 5+ math.random( 0, 3), 70000 ) end ]] --===================================================================================== --=============== '¿¤·ÎÈû'ÀÇ ÀÚ°Ý: ¿µ·ÕÇÑ ¿µÈ¥ --===================================================================================== function quest_start_2003() --¿µ·ÕÇÑ ¹éÇÕ Ä«¿îÆ® ±¸Çϱâ local item_lily_count = find_item ( 1000088 ) if item_lily_count >= 1 then for i = 0, 10 do -- ¿µ·ÕÇÑ ¹éÇÕ ³²Àº ¾ÆÀÌÅÛ Á¦°Å delete_item( get_item_handle( 1000088 ), item_lily_count ) end end -- ¿µ·ÕÇÑ ¹éÇÕ ¾ÆÀÌÅÛ »õ·Î ³Ö¾îÁØ´Ù. insert_item( 1000088, 1 ) -- Áö¿ªÁøÀÔ Ä«¿îÆ® ÃʱâÈ­ --set_event_area_enter_count( À̺¥Æ®¿µ¿ªID, get_event_area_enter_count( À̺¥Æ®¿µ¿ªID ) - 1 ) set_event_area_enter_count( 70601, get_event_area_enter_count( 70601 ) - 1 ) set_event_area_enter_count( 70602, get_event_area_enter_count( 70602 ) - 1 ) set_event_area_enter_count( 70603, get_event_area_enter_count( 70603 ) - 1 ) set_event_area_enter_count( 70604, get_event_area_enter_count( 70604 ) - 1 ) set_event_area_enter_count( 70605, get_event_area_enter_count( 70605 ) - 1 ) set_event_area_enter_count( 70606, get_event_area_enter_count( 70606 ) - 1 ) set_event_area_enter_count( 70607, get_event_area_enter_count( 70607 ) - 1 ) set_event_area_enter_count( 70608, get_event_area_enter_count( 70608 ) - 1 ) end function quest_end_2003() --¿µ·ÕÇÑ ¹éÇÕ Ä«¿îÆ® ±¸Çϱâ local item_lily_count = find_item ( 1000088 ) if item_lily_count >= 1 then for i = 0, 10 do -- ¿µ·ÕÇÑ ¹éÇÕ ³²Àº ¾ÆÀÌÅÛ Á¦°Å delete_item( get_item_handle( 1000088 ), item_lily_count ) end cprint( "@90999849" ) -- <#6DD66D>¿µ·ÕÇÑ ¹éÇÕÀÌ »ç¶óÁ³½À´Ï´Ù. end end function mainquest_region_redfarm_level1() --local dice = math.random( 0, 3) -- ºÓÀº ³óÀå ¼öÁ¤ ¿öÇÁ°ÔÀÌÆ® ÁÂÃø --if dice == 0 then --¿µ·ÕÇÑ ¹éÇÕ Ä«¿îÆ® ±¸Çϱâ local item_lily_count = find_item ( 1000088 ) if item_lily_count >= 1 then add_npc( get_value( "x" ) + math.random( 10, 50), get_value( "y" ) + math.random( 10, 50), 52014, 1 + math.random( 2, 6) , 60000 ) cprint( "@90999863" ) -- <#6DD67D>³²ÂÊ¿¡¼­ ¿öÇÁ°ÔÀÌÆ®ÀÇ ¸¶·ÂÀÌ ´À²¸Áø´Ù. else cprint( "@90999876" ) -- <#6DD66D>¿µ·ÕÇÑ ¹éÇÕÀÌ ¿äÁ¤µéÀÇ °ü½ÉÀ» ¸ðÀ» ¼ö ÀÖ½À´Ï´Ù. end end function quest_start_2015() -- Áö¿ªÁøÀÔ Ä«¿îÆ® ÃʱâÈ­ --set_event_area_enter_count( À̺¥Æ®¿µ¿ªID, get_event_area_enter_count( À̺¥Æ®¿µ¿ªID ) - 1 ) set_event_area_enter_count( 60401, get_event_area_enter_count( 60401 ) - 1 ) set_event_area_enter_count( 60402, get_event_area_enter_count( 60402 ) - 1 ) set_event_area_enter_count( 60403, get_event_area_enter_count( 60403 ) - 1 ) set_event_area_enter_count( 60404, get_event_area_enter_count( 60404 ) - 1 ) set_event_area_enter_count( 60405, get_event_area_enter_count( 60405 ) - 1 ) end function mainquest_region_redfarm_level2() -- óÀ½À¸·Î ´Ù½Ã µ¹¾Æ¿Ô´Ù. --local dice = math.random( 0, 3) -- ºÓÀº ³óÀå ¼öÁ¤ ¿öÇÁ°ÔÀÌÆ® ÁÂÃø --if dice == 0 then --¿µ·ÕÇÑ ¹éÇÕ Ä«¿îÆ® ±¸Çϱâ local item_lily_count = find_item ( 1000088 ) if item_lily_count >= 1 then add_npc( get_value( "x" ) + math.random( 10, 50), get_value( "y" ) + math.random( 10, 50), 52014, 1 + math.random( 2, 6) , 60000 ) cprint( "@90999863" ) -- <#6DD67D>³²ÂÊ¿¡¼­ ¿öÇÁ°ÔÀÌÆ®ÀÇ ¸¶·ÂÀÌ ´À²¸Áø´Ù. else cprint( "@90999876" ) -- <#6DD66D>¿µ·ÕÇÑ ¹éÇÕÀÌ ¿äÁ¤µéÀÇ °ü½ÉÀ» ¸ðÀ» ¼ö ÀÖ½À´Ï´Ù. end end -- ÇíÅ丣 ¼Òȯ(È­ÇüÅÍ Áö¿ª) function mainquest_region_pyresite_level1() local dice = math.random( 0, 3) local dice2 = math.random( 0, 3) local quest_respawn02 = get_flag( "hectorspawn" ) if quest_respawn02 == 0 then -- ±¤½Åµµ ¼Òȯ if dice == 0 or dice == 1 then add_npc( get_value( "x" ) + math.random( 10, 50), get_value( "y" ) + math.random( 10, 50), 85006, 1 + math.random( 2, 3) , 60000 ) add_npc( get_value( "x" ) + math.random( 10, 50), get_value( "y" ) + math.random( 10, 50), 85007, 1 + math.random( 1, 4) , 60000 ) add_npc( get_value( "x" ) + math.random( 10, 50), get_value( "y" ) + math.random( 10, 50), 85006, 1 + math.random( 2, 3) , 60000 ) add_npc( get_value( "x" ) + math.random( 10, 50), get_value( "y" ) + math.random( 10, 50), 85007, 1 + math.random( 1, 4) , 60000 ) cprint( "@90999864" ) -- <#6DD66D>±¤½Åµµ°¡ ³ªÅ¸³µ´Ù. cprint( "@90999881" ) -- <#6DD67D>³ª¸¦ ãÀ¸·¯ ¿Ô³ª? ³ª ÇíÅ丣¸¦? set_flag( "hectorspawn", "1" ) elseif dice == 2 then add_npc( get_value( "x" ) + math.random( 10, 50), get_value( "y" ) + math.random( 10, 50), 86005, 1 , 120000 ) add_npc( get_value( "x" ) + math.random( 10, 50), get_value( "y" ) + math.random( 10, 50), 85006, 1 + math.random( 2, 3) , 60000 ) add_npc( get_value( "x" ) + math.random( 10, 50), get_value( "y" ) + math.random( 10, 50), 86006, 1 + math.random( 1, 4) , 60000 ) cprint( "@90999880" ) -- <#6DD66D>ÇíÅ丣ÀÇ µµÇð»¾î°¡ ³ªÅ¸³µ½À´Ï´Ù. ½Ã°£ÀÌ Áö³ª¸é »ç¶óÁý´Ï´Ù. cprint( "@90999882" ) -- <#6DD67D>ÇíÅ丣ÀÇ »ç³äÀÌ ´ã±ä µµÇð»¾îÀÔ´Ï´Ù. set_flag( "hectorspawn", "7" ) elseif dice == 3 then add_npc( get_value( "x" ) + math.random( 10, 50), get_value( "y" ) + math.random( 10, 50), 86006, 1 + math.random( 0, 3) , 60000 ) add_npc( get_value( "x" ) + math.random( 10, 50), get_value( "y" ) + math.random( 10, 50), 85006, 1 + math.random( 2, 3) , 60000 ) add_npc( get_value( "x" ) + math.random( 10, 50), get_value( "y" ) + math.random( 10, 50), 85007, 1 + math.random( 1, 4) , 60000 ) cprint( "@90999880" ) -- <#6DD66D>ÇíÅ丣ÀÇ µµÇð»¾î°¡ ³ªÅ¸³µ½À´Ï´Ù. ½Ã°£ÀÌ Áö³ª¸é »ç¶óÁý´Ï´Ù. set_flag( "hectorspawn", "2" ) end elseif quest_respawn02 == 1 then if dice2 == 0 then add_npc( get_value( "x" ) + math.random( 10, 50), get_value( "y" ) + math.random( 10, 50), 86005, 1 , 120000 ) add_npc( get_value( "x" ) + math.random( 10, 50), get_value( "y" ) + math.random( 10, 50), 85006, 1 + math.random( 2, 3) , 60000 ) add_npc( get_value( "x" ) + math.random( 10, 50), get_value( "y" ) + math.random( 10, 50), 86006, 1 + math.random( 1, 4) , 60000 ) cprint( "@90999880" ) -- <#6DD66D>ÇíÅ丣ÀÇ µµÇð»¾î°¡ ³ªÅ¸³µ½À´Ï´Ù. ½Ã°£ÀÌ Áö³ª¸é »ç¶óÁý´Ï´Ù. cprint( "@90999882" ) -- <#6DD67D>ÇíÅ丣ÀÇ »ç³äÀÌ ´ã±ä µµÇð»¾îÀÔ´Ï´Ù. set_flag( "hectorspawn", "7" ) elseif dice2 == 1 or dice2 == 2 or dice2 == 3 then add_npc( get_value( "x" ) + math.random( 10, 50), get_value( "y" ) + math.random( 10, 50), 86006, 1 + math.random( 0, 3) , 60000 ) add_npc( get_value( "x" ) + math.random( 10, 50), get_value( "y" ) + math.random( 10, 50), 85006, 1 + math.random( 2, 3) , 60000 ) add_npc( get_value( "x" ) + math.random( 10, 50), get_value( "y" ) + math.random( 10, 50), 85007, 1 + math.random( 1, 4) , 60000 ) cprint( "@90999880" ) -- <#6DD66D>ÇíÅ丣ÀÇ µµÇð»¾î°¡ ³ªÅ¸³µ½À´Ï´Ù. ½Ã°£ÀÌ Áö³ª¸é »ç¶óÁý´Ï´Ù. set_flag( "hectorspawn", "2" ) end elseif quest_respawn02 == 2 then add_npc( get_value( "x" ) + math.random( 10, 50), get_value( "y" ) + math.random( 10, 50), 86005, 1 , 120000 ) add_npc( get_value( "x" ) + math.random( 10, 50), get_value( "y" ) + math.random( 10, 50), 85006, 1 + math.random( 2, 3) , 60000 ) add_npc( get_value( "x" ) + math.random( 10, 50), get_value( "y" ) + math.random( 10, 50), 86006, 1 + math.random( 1, 4) , 60000 ) cprint( "@90999880" ) -- <#6DD66D>ÇíÅ丣ÀÇ µµÇð»¾î°¡ ³ªÅ¸³µ½À´Ï´Ù. ½Ã°£ÀÌ Áö³ª¸é »ç¶óÁý´Ï´Ù. cprint( "@90999882" ) -- <#6DD67D>ÇíÅ丣ÀÇ »ç³äÀÌ ´ã±ä µµÇð»¾îÀÔ´Ï´Ù. set_flag( "hectorspawn", "7" ) end end -- ÇíÅ丣 ¼Òȯ(È­ÇüÅÍ Áö¿ª) function mainquest_region_pyresite_level2() local dice = math.random( 0, 3) local dice2 = math.random( 0, 3) local quest_respawn02 = get_flag( "hectorspawn" ) if quest_respawn02 == 0 then -- ±¤½Åµµ ¼Òȯ if dice == 0 or dice == 1 then add_npc( get_value( "x" ) + math.random( 10, 50), get_value( "y" ) + math.random( 10, 50), 85006, 1 + math.random( 2, 3) , 60000 ) add_npc( get_value( "x" ) + math.random( 10, 50), get_value( "y" ) + math.random( 10, 50), 85007, 1 + math.random( 1, 4) , 60000 ) add_npc( get_value( "x" ) + math.random( 10, 50), get_value( "y" ) + math.random( 10, 50), 85006, 1 + math.random( 2, 3) , 60000 ) add_npc( get_value( "x" ) + math.random( 10, 50), get_value( "y" ) + math.random( 10, 50), 85007, 1 + math.random( 1, 4) , 60000 ) cprint( "@90999864" ) -- <#6DD66D>±¤½Åµµ°¡ ³ªÅ¸³µ´Ù. cprint( "@90999881" ) -- <#6DD67D>³ª¸¦ ãÀ¸·¯ ¿Ô³ª? ³ª ÇíÅ丣¸¦? set_flag( "hectorspawn", "1" ) elseif dice == 2 then add_npc( get_value( "x" ) + math.random( 10, 50), get_value( "y" ) + math.random( 10, 50), 86005, 1 , 120000 ) add_npc( get_value( "x" ) + math.random( 10, 50), get_value( "y" ) + math.random( 10, 50), 85006, 1 + math.random( 2, 3) , 60000 ) add_npc( get_value( "x" ) + math.random( 10, 50), get_value( "y" ) + math.random( 10, 50), 86006, 1 + math.random( 1, 4) , 60000 ) cprint( "@90999880" ) -- <#6DD66D>ÇíÅ丣ÀÇ µµÇð»¾î°¡ ³ªÅ¸³µ½À´Ï´Ù. ½Ã°£ÀÌ Áö³ª¸é »ç¶óÁý´Ï´Ù. cprint( "@90999882" ) -- <#6DD67D>ÇíÅ丣ÀÇ »ç³äÀÌ ´ã±ä µµÇð»¾îÀÔ´Ï´Ù. set_flag( "hectorspawn", "7" ) elseif dice == 3 then add_npc( get_value( "x" ) + math.random( 10, 50), get_value( "y" ) + math.random( 10, 50), 86006, 1 + math.random( 0, 3) , 60000 ) add_npc( get_value( "x" ) + math.random( 10, 50), get_value( "y" ) + math.random( 10, 50), 85006, 1 + math.random( 2, 3) , 60000 ) add_npc( get_value( "x" ) + math.random( 10, 50), get_value( "y" ) + math.random( 10, 50), 85007, 1 + math.random( 1, 4) , 60000 ) cprint( "@90999880" ) -- <#6DD66D>ÇíÅ丣ÀÇ µµÇð»¾î°¡ ³ªÅ¸³µ½À´Ï´Ù. ½Ã°£ÀÌ Áö³ª¸é »ç¶óÁý´Ï´Ù. set_flag( "hectorspawn", "2" ) end elseif quest_respawn02 == 1 then if dice2 == 0 then add_npc( get_value( "x" ) + math.random( 10, 50), get_value( "y" ) + math.random( 10, 50), 86005, 1 , 120000 ) add_npc( get_value( "x" ) + math.random( 10, 50), get_value( "y" ) + math.random( 10, 50), 85006, 1 + math.random( 2, 3) , 60000 ) add_npc( get_value( "x" ) + math.random( 10, 50), get_value( "y" ) + math.random( 10, 50), 86006, 1 + math.random( 1, 4) , 60000 ) cprint( "@90999880" ) -- <#6DD66D>ÇíÅ丣ÀÇ µµÇð»¾î°¡ ³ªÅ¸³µ½À´Ï´Ù. ½Ã°£ÀÌ Áö³ª¸é »ç¶óÁý´Ï´Ù. cprint( "@90999882" ) -- <#6DD67D>ÇíÅ丣ÀÇ »ç³äÀÌ ´ã±ä µµÇð»¾îÀÔ´Ï´Ù. set_flag( "hectorspawn", "7" ) elseif dice2 == 1 or dice2 == 2 or dice2 == 3 then add_npc( get_value( "x" ) + math.random( 10, 50), get_value( "y" ) + math.random( 10, 50), 86006, 1 + math.random( 0, 3) , 60000 ) add_npc( get_value( "x" ) + math.random( 10, 50), get_value( "y" ) + math.random( 10, 50), 85006, 1 + math.random( 2, 3) , 60000 ) add_npc( get_value( "x" ) + math.random( 10, 50), get_value( "y" ) + math.random( 10, 50), 85007, 1 + math.random( 1, 4) , 60000 ) cprint( "@90999880" ) -- <#6DD66D>ÇíÅ丣ÀÇ µµÇð»¾î°¡ ³ªÅ¸³µ½À´Ï´Ù. ½Ã°£ÀÌ Áö³ª¸é »ç¶óÁý´Ï´Ù. set_flag( "hectorspawn", "2" ) end elseif quest_respawn02 == 2 then add_npc( get_value( "x" ) + math.random( 10, 50), get_value( "y" ) + math.random( 10, 50), 86005, 1 , 120000 ) add_npc( get_value( "x" ) + math.random( 10, 50), get_value( "y" ) + math.random( 10, 50), 85006, 1 + math.random( 2, 3) , 60000 ) add_npc( get_value( "x" ) + math.random( 10, 50), get_value( "y" ) + math.random( 10, 50), 86006, 1 + math.random( 1, 4) , 60000 ) cprint( "@90999880" ) -- <#6DD66D>ÇíÅ丣ÀÇ µµÇð»¾î°¡ ³ªÅ¸³µ½À´Ï´Ù. ½Ã°£ÀÌ Áö³ª¸é »ç¶óÁý´Ï´Ù. cprint( "@90999882" ) -- <#6DD67D>ÇíÅ丣ÀÇ »ç³äÀÌ ´ã±ä µµÇð»¾îÀÔ´Ï´Ù. set_flag( "hectorspawn", "7" ) end end -- ¸¶³àÀÇ ÈçÀû(»çÀ̶ó±× ÆóÇã) function mainquest_region_siragruins_level1() --local dice = math.random( 0, 3) -- ±¤½Åµµ ¼Òȯ --if dice == 0 or dice == 1 or dice == 2 then add_npc( get_value( "x" ) + math.random( 5, 25), get_value( "y" ) + math.random( 5, 25), 75007, 1 + math.random( 2, 5) , 60000 ) add_npc( get_value( "x" ) + math.random( 5, 25), get_value( "y" ) + math.random( 5, 25), 77010, 1 + math.random( 1, 5) , 60000 ) cprint( "@90999875" ) -- <#6DD66D> ¸ó½ºÅͰ¡ ³ªÅ¸³µ´Ù. --end end function mainquest_item_lily() --add_npc( 126590 + math.random(0, 10), 102545 + math.random(0, 10), 1004, 1 + math.random(0, 5)) end -- Áö¼ÓÈ¿°ú ºÎ¿© => add_state( Áö¼ÓÈ¿°úID, ·¹º§, ½Ã°£ ) function mainquest_item_whitesword() add_state( 1003, 10, 30000 ) --( HPÀç»ý·ü Çâ»ó, 10·¹º§, 5ºÐ) add_state( 1001, 10, 300 ) --( MAX HP Áõ°¡, 10·¹º§, 5ºÐ) cprint( "@90999855" ) -- <#6DD66D>¼ø¹éÀÇ ¹Ù½ºÅ¸µå¿¡¼­ ¼º½º·¯¿î ±â¿îÀÌ ÆÛÁý´Ï´Ù. end --============================================================ --=============== ¸¶À»»ç¶÷ µ¥¹Ù ³² --============================================================ function NPC_mainquest_dem__init() cprint( "!¸¶À»»ç¶÷ µ¥¹Ù ³² °¡µ¿" ) set_npc_name( "@90999039" ) end function NPC_mainquest_dem_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90999040" ) dlg_text( "@90999041" ) -- ´ëÈ­ 1? dlg_menu( "@90999129", "lamiagirl_talkLink_1()" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ¸¶À» ÁֹΠµ¥¹Ù ¿© --============================================================ function NPC_mainquest_def__init() cprint( "!¸¶À» ÁֹΠµ¥¹Ù ¿© °¡µ¿" ) set_npc_name( "@90999039" ) end function NPC_mainquest_def_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90999040" ) dlg_text( "@90999041" ) -- ´ëÈ­ 1? dlg_menu( "@90999129", "lamiagirl_talkLink_1()" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ¸¶À» ÁֹΠ°¡ÀÌ¾Æ ³² --============================================================ function NPC_mainquest_gam__init() cprint( "!¸¶À» ÁֹΠ°¡ÀÌ¾Æ ³² °¡µ¿" ) set_npc_name( "@90999039" ) end function NPC_mainquest_gam_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90999040" ) dlg_text( "@90999041" ) -- ´ëÈ­ 1? dlg_menu( "@90999129", "lamiagirl_talkLink_1()" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ¸¶À» ÁֹΠ°¡ÀÌ¾Æ ¿© --============================================================ function NPC_mainquest_gaf__init() cprint( "!¸¶À» ÁֹΠ°¡ÀÌ¾Æ ¿© °¡µ¿" ) set_npc_name( "@90999039" ) end function NPC_mainquest_gaf_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90999040" ) dlg_text( "@90999041" ) -- ´ëÈ­ 1? dlg_menu( "@90999129", "lamiagirl_talkLink_1()" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ¸¶À» ÁֹΠ¾Æ¼ö¶ó ³² --============================================================ function NPC_mainquest_asm__init() cprint( "!¸¶À» ÁֹΠ¾Æ¼ö¶ó ³² °¡µ¿" ) set_npc_name( "@90999039" ) end function NPC_mainquest_asm_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90999040" ) dlg_text( "@90999041" ) -- ´ëÈ­ 1? dlg_menu( "@90999129", "lamiagirl_talkLink_1()" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ¸¶À» ÁֹΠ¾Æ¼ö¶ó ¿© --============================================================ function NPC_mainquest_asf__init() cprint( "!¸¶À» ÁֹΠ¾Æ¼ö¶ó ¿© °¡µ¿" ) set_npc_name( "@90999039" ) end function NPC_mainquest_asf_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90999040" ) dlg_text( "@90999041" ) -- ´ëÈ­ 1? dlg_menu( "@90999129", "lamiagirl_talkLink_1()" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ¸¶³à »ç³ÉÀÇ ¿µ¿õ ÇíÅ丣 --============================================================ function NPC_mainquest_hector_init() cprint( "!¸¶³à »ç³ÉÀÇ ¿µ¿õ ÇíÅ丣 °¡µ¿" ) set_npc_name( "@90999850" ) end function NPC_mainquest_hector_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90999851" ) dlg_text( "@90999852" ) --´ëÈ­ ÇíÅ丣ÀÇ Á¤Ã¼ dlg_menu( "@90999853", "hector_talkLink_1()" ) -- Äù½ºÆ® »óÅ üũ get_quest_progress(ID) -- ¹Ýȯ°ª -1 : ¾Æ¹«°Íµµ ¾Æ´Ô / 0 : ¼ö¶ô°¡ / 1 : ¼öÇàÁß / 2 : Á¾·á°¡´É / 255 : À̹ÌÁ¾·á local quest_progress3272 = get_quest_progress(3272) -- <(version:7.3)>[¸¶½ºÅÍ]¸¶½ºÅÍ ´øÀüÀ¸·Î local quest_progress3322 = get_quest_progress(3322) -- <(version:7.3)>[¸¶½ºÅÍ]»õ·Î¿î ±â¿î local quest_progress3335 = get_quest_progress(3335) -- <(version:7.3)>[¸¶½ºÅÍ]¸¶Áö¸· ½Ã·Ã2 -- Äù½ºÆ® Á¾·á½Ã ´ë»ç if quest_progress3272 == 255 then -- ¸¶½ºÅÍ ´øÀüÀ¸·Î À̵¿ dlg_menu( "@91002085", 'warp( 17818, 40213, gv("layer") )' ) end if quest_progress3335 == 255 then dlg_menu( "@90010002", " " ) dlg_show() elseif quest_progress3335 == 1 or quest_progress3335 == 2 then dlg_menu( "@91002474" , "card_choose()" ) --³Ñ±ä´Ù. dlg_menu( "@90010002", " " ) dlg_show() else end --¸¶½ºÅÍ Å¬·¡½ºÀ̸é TP Æ÷ÀÎÆ®¿¡ ´ëÇÑ ¼³¸í Ãß°¡ if get_value( "job_depth" ) == 3 then --TP Æ÷ÀÎÆ®¶õ? dlg_menu( "@91002550", "tp_point()") else end if get_value( "job_depth" ) == 2 and quest_progress3322 == 255 and get_value( "level" ) > 147 and get_value( "job_level" ) == 50 then --ÁÁ¾Æ~ ¸¶½ºÅÍ »çź¿¡°Ô º¸³»ÁÖ°Ú³× dlg_text( "@91002562" ) dlg_menu( "@91002561", "goto_master_satan()") elseif get_value( "job_depth" ) == 3 then dlg_menu( "@90010002", " " ) dlg_show() elseif quest_progress3322 == 255 then --¾ÆÁ÷À̾ß! ´õ ÀÚ°ÝÀ» °®Ãß¶ó°í! -- dlg_title( "@90999851" ) dlg_text( "@91002560") else end -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end function goto_master_satan() warp( 30651, 41454, gv("layer") ) end function hector_talkLink_1() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90999851" ) dlg_text( "@90999854" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010003","NPC_mainquest_hector_contact()" ) -- µ¹¾Æ°¡±â dlg_menu( "@90010002", " " ) dlg_show() end function tp_point() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90999851" ) dlg_text( "@91002551" ) --Ư¼º ½ºÅ³À̶õ? dlg_menu( "@91002554", "tp_skill()") -- ´ëÈ­Á¾·á dlg_menu( "@90010003","NPC_mainquest_hector_contact()" ) -- µ¹¾Æ°¡±â dlg_menu( "@90010002", " " ) dlg_show() end function tp_skill() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90999851" ) --TP Æ÷ÀÎÆ® ºÐ¹è´Â ¾î¼±¸ Àú¼±¸ dlg_text( "@91002553" ) --»óÀ§ Ư¼º ½ºÅ³À̶õ? dlg_menu( "@91002556", "upper_tp_skill()") -- ÇÏÀ§ Ư¼º ½ºÅ³À̶õ? dlg_menu( "@91002558", "lower_tp_skill()") -- ´ëÈ­Á¾·á dlg_menu( "@90010003","tp_point()" ) -- µ¹¾Æ°¡±â dlg_menu( "@90010002", " " ) dlg_show() end function upper_tp_skill() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90999851" ) -- »óÀ§ Ư¼º ½ºÅ³Àº ¾î¼±¸ Àú¼±¸ dlg_text( "@91002557" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010003","tp_skill()" ) -- µ¹¾Æ°¡±â dlg_menu( "@90010002", " " ) dlg_show() end function lower_tp_skill() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90999851" ) -- ÇÏÀ§ Ư¼º ½ºÅ³Àº ¾î¼±¸ Àú¼±¸ dlg_text( "@91002559" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010003","tp_skill()" ) -- µ¹¾Æ°¡±â dlg_menu( "@90010002", " " ) dlg_show() end function quest_start_3334() local quest_progress3335 = get_quest_progress(3335) -- <(version:7.3)>[¸¶½ºÅÍ]¸¶Áö¸· ½Ã·Ã2 if quest_progress3335 == 255 then dlg_text( "@91002472" ) dlg_menu( "@90010002", " " ) -- Á¾·á dlg_show() else dlg_menu( "@90010002", " " ) -- Á¾·á dlg_show() end end function quest_end_3334() local talentp = get_value( 'tp' ) talentp = talentp + 1 set_value( "tp", talentp ) end function quest_start_3335() local quest_progress3334 = get_quest_progress(3334) -- <(version:7.3)>[¸¶½ºÅÍ]¸¶Áö¸· ½Ã·Ã1 local quest_progress3335 = get_quest_progress(3335) -- <(version:7.3)>[¸¶½ºÅÍ]¸¶Áö¸· ½Ã·Ã2 if quest_progress3334 == 255 then dlg_text( "@91002472" ) dlg_menu( "@90010002", " " ) -- Á¾·á dlg_show() else dlg_menu( "@90010002", " " ) -- Á¾·á dlg_show() end end function quest_end_3335() local talentp = get_value( 'tp' ) talentp = talentp + 2 set_value( "tp", talentp ) dlg_text_without_quest_menu( "@91002477" ) dlg_menu( "@90010002", " " ) -- Á¾·á dlg_show() end function card_choose() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90999851" ) -- °¡Áö°í ÀÖ´Â ½ºÆä¼È ·¹¾î Ä«µå Àå¼ö¸¦ ¼¼°í, ¸Þ´º·Î º¸¿©ÁØ´Ù(Ä̺£·Î½º, Áö´Ï, ¹Ì½ºÆ½Áö´Ï, Å¥ºê) local checked_card_id = { 540061, 540063, 540036, 540076 } local existed_card_id = {} local existed_card_count = 0 local found_item_handle = {} local i, j for i = 1, 4 do found_item_handle = get_item_handle_list( checked_card_id[i] ) if found_item_handle ~= 0 then for j =1, table.getn( found_item_handle ) do existed_card_count = existed_card_count + 1 existed_card_id[existed_card_count] = checked_card_id[i] end else end end -- Ä«µå°¡ ¸îÀå ÀÖ±¸¸¸! ¾î¶²°É·Î ¹ÞÄ¡°Ú´Â°¡ if existed_card_count == 0 then --Å©¸®Ã³¸¦ º¸±ä ÇѰǰ¡?! dlg_text_without_quest_menu( "@91002475" ) else dlg_text_without_quest_menu( "@91002476" ) for i = 1, existed_card_count do dlg_menu( tostring( get_item_name_by_code( existed_card_id[i] ) ), "card_delete(" .. existed_card_id[i] .. ")" ) end end dlg_menu( "@90010003","NPC_mainquest_hector_contact()" ) -- µ¹¾Æ°¡±â dlg_show() -- º¸À̱â end function card_delete( item_code ) if is_erasable_item ( get_item_handle( item_code ) ) == 0 then --Á¤¸» ÀÚ³×°¡ Æí¼ºÇÑ Å©¸®Ã³¸¦ ¹ÞÄ¥ °ÍÀΰ¡?! ´Ù½Ã »ý°¢Çغ¸°Ô. dlg_text_without_quest_menu( "@91002481" ) dlg_menu( "@90010003","NPC_mainquest_hector_contact()" ) dlg_show() end local success = delete_item( get_item_handle( item_code ), 1 ) if( success == 1 ) then -- ¼º°ø -- Äù½ºÆ® ¿Ï·á »óÅ·Π¸¸µé¾îÁÜ set_quest_status( 3335, 1, 1 ) dlg_text_without_quest_menu( "@91002482" ) cprint( '@91002483' ) dlg_menu( "@90010002", " " ) dlg_show() else -- ½ÇÆÐ end end --============================================================ --=============== ºûÀÇ ´ë±³ÁÖ ·ç½Ã¾Ó --============================================================ function NPC_mainquest_rusian_init() cprint( "!ºûÀÇ ´ë±³ÁÖ ·ç½Ã¾Ó °¡µ¿" ) set_npc_name( "@90999765" ) end function NPC_mainquest_rusian_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90999766" ) dlg_text( "@90999767" ) -- ´ëÈ­ 1? --dlg_menu( "@90999129", "lamiagirl_talkLink_1()" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== »ç¸·Áö±â ¿¤·¹³ë --============================================================ function NPC_mainquest_eleno_init() cprint( "!»ç¸·Áö±â ¿¤·¹³ë" ) set_npc_name( "@90999720" ) end function NPC_mainquest_eleno_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90999721" ) dlg_text( "@90999722" ) -- ´ëÈ­ 1? --dlg_menu( "@90999129", "lamiagirl_talkLink_1()" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ±³À°°ü ¹Ý½ºÄ¡ --============================================================ function NPC_mainquest_vansch_init() cprint( "!±³À°°ü ¹Ý½ºÄ¡" ) set_npc_name( "@90999727" ) end function NPC_mainquest_vansch_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90999728" ) dlg_text( "@90999729" ) -- ´ëÈ­ 1? --dlg_menu( "@90999129", "lamiagirl_talkLink_1()" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ±³À°°ü ÇÏÀÎÁ©¿öÄ¿ --============================================================ function NPC_mainquest_hwalker_init() cprint( "!±³À°°ü ÇÏÀÎÁ© ¿öÄ¿" ) set_npc_name( "@90999734" ) end function NPC_mainquest_hwalker_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90999735" ) dlg_text( "@90999736" ) -- ´ëÈ­ 1? --dlg_menu( "@90999129", "lamiagirl_talkLink_1()" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ¿¤·ÎÈû ½Ã¾ÆÆä --============================================================ function NPC_mainquest_siape_init() cprint( "!¿¤·ÎÈû ½Ã¾ÆÆä" ) set_npc_name( "@90999758" ) end function NPC_mainquest_siape_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90999759" ) dlg_text( "@90999760" ) -- ´ëÈ­ 1? --dlg_menu( "@90999129", "lamiagirl_talkLink_1()" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ¼ÒÅÁ±º »ç·É°ü Æä³ÍÆ® --============================================================ function NPC_mainquest_pennent_init() cprint( "!¼ÒÅÁ±º »ç·É°ü Æä³ÍÆ®" ) set_npc_name( "@90999777" ) end function NPC_mainquest_pennent_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90999778" ) dlg_text( "@90999779" ) -- ´ëÈ­ 1? --dlg_menu( "@90999129", "lamiagirl_talkLink_1()" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ¼ÒÅÁ±º »ç·É°ü ¸®Ã³µå --============================================================ function NPC_mainquest_richard_init() cprint( "!¼ÒÅÁ±º »ç·É°ü ¸®Ã³µå" ) set_npc_name( "@90999785" ) end function NPC_mainquest_richard_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90999786" ) dlg_text( "@90999787" ) -- ´ëÈ­ 1? --dlg_menu( "@90999129", "lamiagirl_talkLink_1()" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end -- °£È£´ë¿ø ¾Æ°¡µ§ function NPC_lost_island_agaden_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title("@91000687") dlg_text( "@91000689" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end -- ¼³¿ø Ž»ç´ë µ¥¸¯ function NPC_lost_island_derick_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title("@91000690") dlg_text( "@91000692" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end -- ¸ó½ºÅÍ ¿¬±¸¿ø ½ÃÄ« function quest_start_3041() local count = find_item( 1000132) if count == 0 then insert_item( 1000130, 1 ) else end end -- ¸ó½ºÅÍ ¿¬±¸¿ø ½ÃÄ« function quest_end_3041() local count = find_item( 1000132) if count == 0 then delete_item( 1000130, 1 ) else end end -- °£È£´ë¿ø ¾Æ°¡µ§ function quest_start_3054() local count = find_item( 1000141) if count == 0 then insert_item( 1000141, 1 ) else end end -- °£È£´ë¿ø ¾Æ°¡µ§ function quest_end_3054() local count = find_item( 1000141) if count == 1 then delete_item( get_item_handle(1000141), count ) else end end -- °£È£´ë¿ø ¾Æ°¡µ§ function quest_end_3051() local count = find_item( 1000144) if count == 1 then delete_item( get_item_handle(1000144), count ) else end end -- ºÀÀÎ ÇØÃ¼(Ä«À̳٠Äù½ºÆ®) function quest_start_3069() local count = find_item( 1000152) if count == 0 then insert_item( 1000152, 1 ) else end end -- ¸ó½ºÅÍ ¿¬±¸¿ø ½ÃÄ« function quest_end_3069() local count = find_item( 1000152) if count == 1 then delete_item( get_item_handle(1000152), count ) else end end -- º´»ç ijġĭ function quest_start_3073() local count = find_item( 1000122) if count == 0 then insert_item( 1000122, 1 ) else end end -- º´»ç ijġĭ function quest_end_3073() local count = find_item( 1000122) if count == 1 then delete_item( get_item_handle(1000122), count ) else end end -- ¼³¿ø Ž»ç´ë ü»þ function NPC_lost_island_kodia_checha() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title("@91000702") dlg_text( "@91000703" ) dlg_menu( "@90010002", " " ) dlg_show() end -- <(version:7.2)> ½ÅºñÇÑ ±¤¼®1 function quest_start_3058() local count = find_item( 1000146 ) if count == 0 then insert_item( 1000146, 1 ) else end end -- <(version:7.2)> ½ÅºñÇÑ ±¤¼®1 function quest_end_3058() local count = find_item( 1000146) if count == 1 then delete_item( get_item_handle(1000146), 1 ) else end end -- <(version:7.2)> ½ÅºñÇÑ ±¤¼®2 function quest_start_3059() local count = find_item( 1000146) if count == 0 then insert_item( 1000146, 1 ) else end end -- <(version:7.2)> ½ÅºñÇÑ ±¤¼®2 function quest_end_3059() local count = find_item( 1000146) if count == 1 then delete_item( get_item_handle(1000146), 1 ) else end end --============================================================ --=============== Ž»ç´ëÀå ÄÉÀÎ --============================================================ function NPC_lost_island_kain_init() cprint( "!Ž»ç´ëÀå ÄÉÀÎ" ) set_npc_name( "@91000550" ) end function NPC_lost_island_kain_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@91000551" ) dlg_text( "@91000552" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== °£È£´ë¿ø ·ç¿¤¸® --============================================================ function NPC_lost_island_ruely_init() cprint( "!°£È£´ë¿ø ·ç¿¤¸®" ) set_npc_name( "@91000553" ) end function NPC_lost_island_ruely_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@91000554" ) dlg_text( "@91000555" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== Ž»ç´ë¿ø Ä¡´Ð --============================================================ function NPC_lost_island_chignik_init() cprint( "!Ž»ç´ë¿ø Ä¡´Ð" ) set_npc_name( "@91000559" ) end function NPC_lost_island_chignik_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@91000560" ) dlg_text( "@91000561" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== Ž»ç´ë¿ø ¸¶¸£Å×Áî --============================================================ function NPC_lost_island_maldez_init() cprint( "!Ž»ç´ë¿ø ¸¶¸£Å×Áî" ) set_npc_name( "@91000562" ) end function NPC_lost_island_maldez_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@91000563" ) dlg_text( "@91000564" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ¿ëÀÇ ½Å°ü ¿¡½ºÅÍ --============================================================ function NPC_dragonservicer_easter_init() cprint( "!¿ëÀÇ ½Å°ü ¿¡½ºÅÍ" ) set_npc_name( "@91001003" ) end function NPC_dragonservicer_easter_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@91001004" ) dlg_text( "@91001005" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ¾àÃÊ Ã¤Áý°¡ ¹ß·é --============================================================ function NPC_medicalherbcollector_balune_init() cprint( "!¾àÃÊ Ã¤Áý°¡ ¹ß·é" ) set_npc_name( "@91001006" ) end function NPC_medicalherbcollector_balune_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@91001007" ) dlg_text( "@91001008" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ¿©ÇàÀÚ ½ÇÇÇ´À --============================================================ function NPC_traveler_silpyne_init() cprint( "!¿©ÇàÀÚ ½ÇÇÇ´À" ) set_npc_name( "@91000994" ) end function NPC_traveler_silpyne_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@91000995" ) dlg_text( "@91000996" ) -- Äù½ºÆ® »óÅ üũ get_quest_progress(ID) -- ¹Ýȯ°ª -1 : ¾Æ¹«°Íµµ ¾Æ´Ô / 0 : ¼ö¶ô°¡ / 1 : ¼öÇàÁß / 2 : Á¾·á°¡´É / 255 : À̹ÌÁ¾·á local quest_progress3263 = get_quest_progress(3263) -- Äù½ºÆ® Á¾·á½Ã ´ë»ç if quest_progress3263 == 0 then local count = find_item( 1000114 ) if count == 0 then cprint("@91002083") insert_item( 1000114, 1 ) else end -- Äù½ºÆ® ¼öÇà Àü, elseif quest_progress3263 == 255 or quest_progress3263 == 0 or quest_progress3263 == -1 then dlg_title( "@91000995" ) dlg_text( "@91000996" ) end -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ¿©ÇàÀÚ ½ÇÇÇ´ÀÀÇ À¯´ÏÄÜ --============================================================ function NPC_traveler_silpyne_unicorn_init() cprint( "!À¯´ÏÄÜ" ) set_npc_name( "@91000997" ) end function NPC_traveler_silpyne_unicorn_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@91000998" ) dlg_text( "@91000999" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== °ñµåÇȽà ¹Ì¸®¿¤ --============================================================ function NPC_goldpixi_miriel_init() cprint( "!°ñµåÇȽà ¹Ì¸®¿¤" ) set_npc_name( "@91001000" ) end function NPC_goldpixi_miriel_contact() -- Äù½ºÆ® »óÅ üũ get_quest_progress(ID) -- ¹Ýȯ°ª -1 : ¾Æ¹«°Íµµ ¾Æ´Ô / 0 : ¼ö¶ô°¡ / 1 : ¼öÇàÁß / 2 : Á¾·á°¡´É / 255 : À̹ÌÁ¾·á local quest_progress3263 = get_quest_progress(3263) local quest_progress3264 = get_quest_progress(3264) local quest_progress3265 = get_quest_progress(3265) local count = find_item(1000114) -- Äù½ºÆ® Á¾·á½Ã ´ë»ç if quest_progress3265 == 255 and count == 1 then dlg_title( "@91001001" ) dlg_text( "@91001009" ) elseif quest_progress3264 == 255 and count == 1 then dlg_title( "@91001001" ) dlg_text( "@91000983" ) -- Äù½ºÆ® ¼öÇà Àü, ¼öÇà Áß ´ë»ç elseif quest_progress3263 == 255 and count == 1 then dlg_title( "@91001001" ) dlg_text( "@91000980" ) -- Äù½ºÆ® ¼öÇà Àü, ¼öÇà Áß ´ë»ç else dlg_title( "@91001001" ) dlg_text( "@91001002" ) end -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ½Ãü°¡ °¡Áø ÆíÁö Äù½ºÆ® --============================================================ -- <(version:7.2)> function quest_prop_lostlsland_exploerer() local count = find_item(1000105) if count == 0 then insert_item( 1000105, 1 ) else end end --============================================================ --=============== ±Íȯ Äù½ºÆ® --============================================================ function quest_start_3267() end function quest_end_3267() local count = find_item(1000114) if count == 1 then delete_item( get_item_handle(1000114), 1 ) cprint("@91002084") else end end --============================================================ --=============== ÀÒ¾î¹ö¸° ¼¶ Ä«À̳٠Äù½ºÆ® --============================================================ function quest_prop_add_npc( id ) cprint( "@91002015" ) local x = gv( "x" ) + math.random( 30, 50 ) local y = gv( "y" ) + math.random( 30, 50 ) add_npc( x, y, id, 1, 60000 ) end --============================================================ --=============== ÀÒ¾î¹ö¸° ¼¶ Ä«À̳٠Äù½ºÆ® ºÀÀÎÀÇ¿­¼è --============================================================ function quest_start_3065() warp( 201346, 167805, gv("layer") ) end function quest_start_3066() warp( 201409, 151671, gv("layer") ) end function quest_start_3067() warp( 201338, 135572, gv("layer") ) end function quest_start_3068() warp( 89082, 121414, gv("layer") ) end function prop_quest_LostIsland_WindyPaper() end --============================================================ --=============== NPC µ· Å©¸®½º ( 7.2´ÜǰÄù½ºÆ®) --============================================================ function NPC_qeest_single_doncris_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@91001012" ) dlg_text( "@91001014" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== NPC ´ëÀåÀåÀÌ Æ¼¿¡¸® ( 7.2´ÜǰÄù½ºÆ®) --============================================================ function NPC_qeest_single_thierry_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@91001015" ) if get_local_info() == 1 then dlg_text( "@90610217" ) dlg_menu( "@90100703", "open_market( 'Broken_Taming_Card' )" ) else dlg_text( "@91001017" ) end -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== NPC Á¾´Ü»ç¹«°ü Ä­ ( 7.2´ÜǰÄù½ºÆ®) --============================================================ function NPC_qeest_single_khan_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@91001018" ) dlg_text( "@91001020" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== NPC Áö ºê¸± ( 7.2´ÜǰÄù½ºÆ®) --============================================================ function NPC_qeest_single_gbril_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@91001021" ) dlg_text( "@91001023" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end -- <(version:7.2)> ÇØ°íÅ뺸 function quest_start_3323() local count = find_item( 1000156 ) if count == 0 then insert_item( 1000156, 1 ) else end end -- <(version:7.2)> ÇØ°íÅ뺸 function quest_end_3323() local count = find_item( 1000156) if count == 1 then delete_item( get_item_handle(1000156), 1 ) else end end -- <(version:7.2)> À§±âÀÇ ´ëÀåÀåÀÌ function quest_start_3325() local count = find_item( 1000157 ) if count == 0 then insert_item( 1000157, 1 ) else end end -- <(version:7.2)> À§±âÀÇ ´ëÀåÀåÀÌ function quest_end_3325() local count = find_item( 1000157) if count == 1 then delete_item( get_item_handle(1000157), 1 ) else end end -- <(version:7.2)> Áöºê¸±ÀÇ Ã¥ Á¶»ç1 function quest_start_3328() local count = find_item( 1000158 ) if count == 0 then insert_item( 1000158, 1 ) else end end -- <(version:7.2)> Áöºê¸±ÀÇ Ã¥ Á¶»ç2 function quest_end_3329() local count = find_item( 1000158) if count == 1 then delete_item( get_item_handle(1000158), 1 ) else end end -- <(version:7.2)> ¸¶¹ýÇØÁ¦ 2 function quest_start_3331() local count = find_item( 1000159 ) if count == 0 then insert_item( 1000159, 1 ) else end end -- <(version:7.2)> ¸¶¹ýÇØÁ¦ 2 function quest_end_3331() local count = find_item( 1000159) if count == 1 then delete_item( get_item_handle(1000159), 1 ) else end end -- <(version:7.2)> ºÎ¸Þ¶û function quest_start_3332() local count = find_item( 1000156 ) if count == 0 then insert_item( 1000156, 1 ) else end end -- <(version:7.2)> ºÎ¸Þ¶û function quest_end_3332() local count = find_item( 1000156) if count == 1 then delete_item( get_item_handle(1000156), 1 ) else end end --============================================================ --=============== NPC ¸¶½ºÅÍ »çź ¼Ò³à ( 7.3 ) --============================================================ function quest_start_3336() dlg_title( "@91001001" ) dlg_text( "@91002484" ) warp( 138645, 75174, gv("layer") ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ´ë·ú ¹«¿ª Á¶ÇÕ¿ø ( 8.1 ºÒÄ«´©½º ´øÀü ) --============================================================ -- ·Ðµµ : ÇÁ¶õÃ÷ function NPC_Vulcanus_Rondoh_init() cprint( "!ºÒÄ«´©½º ´øÀü NPC ÇÁ¶õÃ÷ °¡µ¿" ) set_npc_name( "@90604700" ) end function NPC_Vulcanus_Rondoh_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90604701" ) dlg_text( "@90604702" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end -- ¶óÅ©½Ã : ¾ËÆù¼Ò function NPC_Vulcanus_Deva_init() cprint( "!ºÒÄ«´©½º ´øÀü NPC ¾ËÆù¼Ò °¡µ¿" ) set_npc_name( "@90604783" ) end function NPC_Vulcanus_Deva_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90604784" ) dlg_text( "@90604702" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --īź : ÇǸ£ÄÉ function NPC_Vulcanus_Asura_init() cprint( "!ºÒÄ«´©½º ´øÀü NPC ÇǸ£ÄÉ °¡µ¿" ) set_npc_name( "@90604785" ) end function NPC_Vulcanus_Asura_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90604786" ) dlg_text( "@90604702" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --È£¶óÀÌÁð : ¿¡Àμ¼ function NPC_Vulcanus_Gaia_init() cprint( "!ºÒÄ«´©½º ´øÀü NPC ¿¡Àμ¼ °¡µ¿" ) set_npc_name( "@90604787" ) end function NPC_Vulcanus_Gaia_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90604788" ) dlg_text( "@90604702" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== <8.1>ºÒÄ«´©½º ´øÀü Äù½ºÆ® - ÀÏ¹Ý ¸÷ --============================================================ function Vulcanus_hunt_collect_quest() -- Äù½ºÆ® »óÅ üũ get_quest_progress(ID) -- ¹Ýȯ°ª -1 : ¾Æ¹«°Íµµ ¾Æ´Ô / 0 : ¼ö¶ô°¡ / 1 : ¼öÇàÁß / 2 : Á¾·á°¡´É / 100 : ½ÇÆÐ / 255 : À̹ÌÁ¾·á local quest_progress_3368 = get_quest_progress(3368) -- ´øÀüŽ»ç : °í´ëÀÎÀÇ À¯¹° 1°³ ¼öÁý local quest_progress_3369 = get_quest_progress(3369) -- °í´ëÀÎÀÇ À¯»ê : ºÒÄ«´©½ºÀÇ ÀÏÁö »ó,Áß,ÇÏ ¼öÁý local quest_progress_3370 = get_quest_progress(3370) -- ºÒÄ«´©½ºÀÇ ¿­¼è : ¿­¼è ¸öÅë,¸Ó¸®,º¸¼® local quest_progress_3373 = get_quest_progress(3373) -- ź»ýÀÇ ºñ¹Ð : ¸ó½ºÅÍÀÇ ¾Ë 20°³ ¼öÁý local quest_progress_3374 = get_quest_progress(3374) -- ź»ýÀÇ ºñ¹Ð-Àç·á¼öÁý : ¸ó½ºÅÍÀÇ ¾Ë 20°³ ¼öÁý local quest_progress_3375 = get_quest_progress(3375) -- ÀúÁÖ¹ÞÀº ³ª¹« : ³ª¹«²®Áú 20°³ ¼öÁý local quest_progress_3376 = get_quest_progress(3376) -- ÀúÁÖ¹ÞÀº ³ª¹«-Àç·á¼öÁý : ³ª¹«²®Áú 20°³ ¼öÁý local quest_progress_3377 = get_quest_progress(3377) -- °í´ëÀÎÀÇ ÈçÀû : °í´ë¼®ÆÇ 20°³ ¼öÁý local quest_progress_3378 = get_quest_progress(3378) -- °í´ëÀÎÀÇ ÈçÀû-ÀÚ·á¼öÁý : °í´ë¼®ÆÇ 20°³ ¼öÁý local shout = math.random(1, 10) if quest_progress_3368 == 1 then -- ´øÀüŽ»ç : °í´ëÀÎÀÇ À¯¹° 1°³ ȹµæ if shout >= 9 then local count = find_item ( 1000406 ) if count == 0 then drop_item( get_target_value('x'), get_target_value('y'), get_target_value('layer'), 1000406, 1 ) end end end if quest_progress_3369 == 1 then -- °í´ëÀÎÀÇ À¯»ê : ºÒÄ«´©½ºÀÇ ÀÏÁö »ó,Áß,ÇÏ if shout == 1 or shout == 2 then --ºÒÄ«´©½º ÀÏÁö »ó local count = find_item ( 1000407 ) if count == 0 then drop_item( get_target_value('x'), get_target_value('y'), get_target_value('layer'), 1000407, 1 ) end elseif shout == 3 or shout == 4 then --ºÒÄ«´©½º ÀÏÁö Áß local count = find_item ( 1000408 ) if count == 0 then drop_item( get_target_value('x'), get_target_value('y'), get_target_value('layer'), 1000408, 1 ) end elseif shout == 5 or shout == 6 then --ºÒÄ«´©½º ÀÏÁö ÇÏ local count = find_item ( 1000409 ) if count == 0 then drop_item( get_target_value('x'), get_target_value('y'), get_target_value('layer'), 1000409, 1 ) end end end if quest_progress_3370 == 1 then -- ºÒÄ«´©½ºÀÇ ¿­¼è : ¿­¼è ¸öÅë,¸Ó¸®,º¸¼® if shout == 1 or shout == 2 then --ºÒÄ«´©½º ¿­¼è ¸öÅë local count = find_item ( 1000418 ) if count == 0 then drop_item( get_target_value('x'), get_target_value('y'), get_target_value('layer'), 1000418, 1 ) end elseif shout == 3 or shout == 4 then --ºÒÄ«´©½º ¿­¼è ¸Ó¸® local count = find_item ( 1000419 ) if count == 0 then drop_item( get_target_value('x'), get_target_value('y'), get_target_value('layer'), 1000419, 1 ) end elseif shout == 5 or shout == 6 then --ºÒÄ«´©½º ¿­¼è º¸¼® local count = find_item ( 1000420 ) if count == 0 then drop_item( get_target_value('x'), get_target_value('y'), get_target_value('layer'), 1000420, 1 ) end end end if quest_progress_3373 == 1 or quest_progress_3374 == 1 then -- ź»ýÀÇ ºñ¹Ð : ¸ó½ºÅÍÀÇ ¾Ë 20°³ ¼öÁý (¹Ýº¹Äù Æ÷ÇÔ) if shout > 5 then local count = find_item ( 1000412 ) if count < 20 then drop_item( get_target_value('x'), get_target_value('y'), get_target_value('layer'), 1000412, 1 ) end end end if quest_progress_3375 == 1 or quest_progress_3376== 1 then -- ÀúÁÖ¹ÞÀº ³ª¹« : ³ª¹«²®Áú 20°³ ¼öÁý (¹Ýº¹Äù Æ÷ÇÔ) if shout > 5 then local count = find_item ( 1000413 ) if count < 20 then drop_item( get_target_value('x'), get_target_value('y'), get_target_value('layer'), 1000413, 1 ) end end end if quest_progress_3377 == 1 or quest_progress_3378 == 1 then -- °í´ëÀÎÀÇ ÈçÀû : °í´ë¼®ÆÇ 20°³ ¼öÁý (¹Ýº¹Äù Æ÷ÇÔ) if shout > 5 then local count = find_item ( 1000414 ) if count < 20 then drop_item( get_target_value('x'), get_target_value('y'), get_target_value('layer'), 1000414, 1 ) end end end end --============================================================ --============= <8.1>ºÒÄ«´©½º ´øÀü Äù½ºÆ® - º¸½º ¸÷ : ºÒÄ«´©½º --============================================================ function Vulcanus_boss_hunt_quest() -- Äù½ºÆ® »óÅ üũ get_quest_progress(ID) -- ¹Ýȯ°ª -1 : ¾Æ¹«°Íµµ ¾Æ´Ô / 0 : ¼ö¶ô°¡ / 1 : ¼öÇàÁß / 2 : Á¾·á°¡´É / 100 : ½ÇÆÐ / 255 : À̹ÌÁ¾·á local quest_progress_3371 = get_quest_progress(3371) -- Áø½ÇÀÇ »óÀÚ : ºÒÄ«´©½ºÀÇ ½ÉÀå 1°³ ¼öÁý local quest_progress_3379 = get_quest_progress(3379) -- »ý¸íÀÇ ¿øÃµ : ºûÀÇ Å©¸®½ºÅ», ¾îµÒÀÇ Å©¸®½ºÅ», Á¤·É¼® 1°³¾¿ ¼öÁý local quest_progress_3380 = get_quest_progress(3380) -- »ý¸íÀÇ ¿øÃµ-³¡¾ø´ÂºÎȰ : ºûÀÇ Å©¸®½ºÅ», ¾îµÒÀÇ Å©¸®½ºÅ», Á¤·É¼® 1°³¾¿ ¼öÁý local quest_progress_3384 = get_quest_progress(3384) -- [ÀÏÀÏ]»ý¸íÀÇ ¿øÃµ-³¡¾ø´ÂºÎȰ : ºûÀÇ Å©¸®½ºÅ», ¾îµÒÀÇ Å©¸®½ºÅ», Á¤·É¼® 1°³¾¿ ¼öÁý local shout = math.random(1, 10) --ºÒÄ«´©½º ŸÀÓ ·¹ÄÚµå local create_time = get_instance_dungeon_flag( 20000, get_value("layer"), 'date' ) -- on_create_vulcanus_instance( layer ) ÇÔ¼ö¿¡¼­ ¼¼ÆÃÇÑ ´øÀü ½ÃÀÛ ½Ã°£ ºÒ·¯¿È local leave_time = get_os_time() -- ´øÀü Á¾·á ½Ã°£ ºÒ·¯¿È local country_time = get_os_date("%H",0) local turnaround_time = (leave_time - create_time) -- ¼Ò¿ä½Ã°£ °è»ê local print_turnaround_time = turnaround_time +(24 -country_time) * 3600 local best_vul_record = get_global_variable( "best_vul_record" ) --ÇöÀç ¼­¹ö³» ÃÖ°í±â·Ï ºÒ·¯¿È local best_vul_record_name = get_global_variable("best_vul_record_name") --ÇöÀç ¼­¹ö³» ÃÖ°í±â·Ï º¸À¯ÀÚ ºÒ·¯¿È cprint(sconv("@690000084", "#@create_time@#", get_os_date("%c", create_time ))) -- ´øÀü ½ÃÀ۽ð£ Ãâ·Â cprint(sconv("@690000085", "#@leave_time@#", get_os_date("%c", leave_time ))) -- ´øÀü Á¾·á½Ã°£ Ãâ·Â --ÃÖ°í±â·ÏÀÌ °»½ÅµÉ °æ¿ì ±â·Ï°ú ±â·Ï º¸À¯ÀÚ ÀúÀå, ¾Ë¸² if best_vul_record == nil or best_vul_record == "" or best_vul_record > turnaround_time then set_global_variable( "best_vul_record", turnaround_time ) set_global_variable( "best_vul_record_name", get_value("name") ) cprint(sconv("@690000086", "#@turnaround_time@#", get_os_date("%X", print_turnaround_time ))) announce(sconv("@690000083", "#@user_name@#", get_value("name"),"#@vul_record@#",get_os_date("%X", print_turnaround_time ))) --ÃÖ°í±â·Ïº¸´Ù ÀúÁ¶ÇÑ ±â·ÏÀÏ °æ¿ì ´Ü¼ø ¾Ë¸² elseif best_vul_record < turnaround_time or best_vul_record == turnaround_time then cprint(sconv("@690000086", "#@turnaround_time@#", get_os_date("%X", print_turnaround_time))) --¼Ò¿ä½Ã°£ÀÌ 24½Ã°£ÀÌ ³Ñ¾î°¥ °æ¿ì ¾Ë¸² elseif turnaround_time > 24*60*60 then cprint("@690000087") end if quest_progress_3371 == 1 then -- Áø½ÇÀÇ »óÀÚ : ºÒÄ«´©½ºÀÇ ½ÉÀå 1°³ ȹµæ local count = find_item ( 1000411 ) if count == 0 then drop_item( get_target_value('x'), get_target_value('y'), get_target_value('layer'), 1000411, 1 ) cprint( "@90604916" ) -- <(version:7.3)><#6DD66D>±×·±°¡...... ¾ï°ÌÀÇ ¼¼¿ùÀÌ ...... Èê·¶±¸³ª. ½´¸¶ÁîÀÇ ¼Õ±æÀ» ÇÇÇϱâ À§ÇØ.... ¿ì¸®ÀÇ ÈçÀûÀ» ³²±â±â À§ÇØ ³ªÀÇ »ý¸íÀ» ¹ö¸° °ÍÀÌ ¼º°øÇÑ °ÍÀ̱¸³ª. cprint( "@90604917" ) -- <(version:7.3)><#6DD66D>³ªÀÇ ±â·ÏÀ» µÇ¤¾î ³ª°¡´Â ÀÌ¿©, Áø½ÇÀÇ »óÀÚ´Â ³ªÀÇ ½ÉÀå......ÀÌ´Ù. end end if quest_progress_3379 == 1 or quest_progress_3380 == 1 or quest_progress_3384 == 1 then -- »ý¸íÀÇ ¿øÃµ : ºûÀÇ Å©¸®½ºÅ», ¾îµÒÀÇ Å©¸®½ºÅ», Á¤·É¼® 1°³¾¿ ¼öÁý (¹Ýº¹Äù Æ÷ÇÔ) drop_item( get_target_value('x'), get_target_value('y'), get_target_value('layer'), 1000415, 1 ) drop_item( get_target_value('x'), get_target_value('y'), get_target_value('layer'), 1000416, 1 ) drop_item( get_target_value('x'), get_target_value('y'), get_target_value('layer'), 1000417, 1 ) end end -- <(version:8.1)>»õ·Î¿î °ÔÀÌÆ® Á¶»ç start function quest_start_3337() local count = find_item( 1000424 ) for i = 0, 10 do -- ³²Àº ¾ÆÀÌÅÛ ¾ø¾Ö±â delete_item( get_item_handle( 1000424 ), 1 ) end if count == 0 then insert_item( 1000424, 1 ) cprint( "@90604745" ) -- <(version:8.1)><#6DD66D>´ë·ú¹«¿ªÁ¶ÇÕ °ø°í¹®À» ¹Þ¾Ò½À´Ï´Ù. add_field_prop ( 126022, 180, 140398, 106190 ) else end end -- <(version:8.1)>»õ·Î¿î °ÔÀÌÆ® Á¶»ç end function quest_end_3337() local count = find_item( 1000424) if count == 1 then delete_item( get_item_handle(1000424), 1 ) else end end -- <(version:8.3)>»õ·Î¿î °ÔÀÌÆ® Á¶»ç drop function quest_drop_3337() local count = find_item( 1000424) if count == 1 then delete_item( get_item_handle(1000424), 1 ) else end end -- <(version:8.1)>»õ·Î¿î °ÔÀÌÆ® Á¶»ç --function enter_vulcanus() -- Äù½ºÆ® »óÅ üũ get_quest_progress(ID) -- ¹Ýȯ°ª -1 : ¾Æ¹«°Íµµ ¾Æ´Ô / 0 : ¼ö¶ô°¡ / 1 : ¼öÇàÁß / 2 : Á¾·á°¡´É / 100 : ½ÇÆÐ / 255 : À̹ÌÁ¾·á --local quest_progress_3367 = get_quest_progress(3367) --if quest_progress_3367 == 1 then --set_quest_status( 3367, 1, 1 ) --cprint( "@90604746" ) -- <(version:8.1)><#6DD66D>»õ·Î¿î °ÔÀÌÆ®¸¦ ¹ß°ßÇÏ¿´½À´Ï´Ù. --end --end -- <(version:8.1)>Áø½ÇÀÇ »óÀÚ start function quest_start_3338() local count = find_item( 1000423 ) for i = 0, 10 do -- ³²Àº ¾ÆÀÌÅÛ ¾ø¾Ö±â delete_item( get_item_handle( 1000423 ), 1 ) end if count == 0 then insert_item( 1000423, 1 ) cprint( "@90604748" ) -- <(version:8.1)><#6DD66D>º¹¿øµÈ ºÒÄ«´©½ºÀÇ ¸¶¹ý¿­¼è¸¦ ¹Þ¾Ò½À´Ï´Ù. else end end -- <(version:8.1)>Áø½ÇÀÇ »óÀÚ end function quest_end_3338() local count = find_item( 1000423) if count == 1 then delete_item( get_item_handle(1000423), 1 ) else end end -- <(version:8.3)>ź»ýÀÇ ºñ¹Ð - ½ÇÇè¿ë Àç·á ¼öÁý: Ŭ¸®¾î ¸µÅ© function quest_end_3374() insert_gold( 160*get_value( "level" )*12.5 ) --º¸»ó Exp/Jp ÀÏÀÏ Äù½ºÆ® º¸»óÀ¸·Î Áö±ÞµÉ¶§¸¸ °¡´ÉÇÑ ¼öÄ¡´Ù. ÀÏÀÏ Äù½ºÆ® º¸»ó¿¡¸¸ »ç¿ë add_exp_jp( (get_value( "level" )/2)*(get_value( "level" )/2)*(get_value( "level" )/2)*(get_value( "level" )/2), ((get_value( "level" )/2)*(get_value( "level" )/2)*(get_value( "level" )/2)*(get_value( "level" )/2))/5 ) cprint( '@1240' ) reset_finished_quest( 3374 ) end -- <(version:8.3)>ÀúÁÖ¹ÞÀº ³ª¹« - ½ÇÇè¿ë Àç·á ¼öÁý: Ŭ¸®¾î ¸µÅ© function quest_end_3376() insert_gold( 160*get_value( "level" )*12.5 ) --º¸»ó Exp/Jp ÀÏÀÏ Äù½ºÆ® º¸»óÀ¸·Î Áö±ÞµÉ¶§¸¸ °¡´ÉÇÑ ¼öÄ¡´Ù. ÀÏÀÏ Äù½ºÆ® º¸»ó¿¡¸¸ »ç¿ë add_exp_jp( (get_value( "level" )/2)*(get_value( "level" )/2)*(get_value( "level" )/2)*(get_value( "level" )/2), ((get_value( "level" )/2)*(get_value( "level" )/2)*(get_value( "level" )/2)*(get_value( "level" )/2))/5 ) cprint( '@1240' ) reset_finished_quest( 3376 ) end -- <(version:8.3)>°í´ëÀÎÀÇ ÈçÀû - ºÐ¼®¿ë ÀÚ·á ¼öÁý: Ŭ¸®¾î ¸µÅ© function quest_end_3378() insert_gold( 160*get_value( "level" )*12.5 ) --º¸»ó Exp/Jp ÀÏÀÏ Äù½ºÆ® º¸»óÀ¸·Î Áö±ÞµÉ¶§¸¸ °¡´ÉÇÑ ¼öÄ¡´Ù. ÀÏÀÏ Äù½ºÆ® º¸»ó¿¡¸¸ »ç¿ë add_exp_jp( (get_value( "level" )/2)*(get_value( "level" )/2)*(get_value( "level" )/2)*(get_value( "level" )/2), ((get_value( "level" )/2)*(get_value( "level" )/2)*(get_value( "level" )/2)*(get_value( "level" )/2))/5 ) cprint( '@1240' ) reset_finished_quest( 3378 ) end function quest_end_3384() --º¸»ó Exp/Jp ÀÏÀÏ Äù½ºÆ® º¸»óÀ¸·Î Áö±ÞµÉ¶§¸¸ °¡´ÉÇÑ ¼öÄ¡´Ù. ÀÏÀÏ Äù½ºÆ® º¸»ó¿¡¸¸ »ç¿ë add_exp_jp( (get_value( "level" )/2)*(get_value( "level" )/2)*(get_value( "level" )/2)*(get_value( "level" )/2), ((get_value( "level" )/2)*(get_value( "level" )/2)*(get_value( "level" )/2)*(get_value( "level" )/2))/5 ) cprint( '@1240' ) reset_finished_quest( 3384 ) end -- <(version:8.1)>À¯¹°»óÀÚ ( ¹Ýº¹Äù½ºÆ®¿ë ·£´ý º¸»ó ¾ÆÀÌÅÛ ) function Vulcanus_random_box() local level = get_value( "level" ) local item_code -- 2013010 µ¥¹ÙÀÇ Ãູ ¾Æ¹ÙŸ ±Í¼Ó local item_code2 -- 2013011 °ø°ÝÀÇ ·ç³ªÄ¨ 1½Ã°£ ¾Æ¹ÙŸ ±Í¼Ó local item_code3 -- -540027 ³ë¸» º£ÀÌÁ÷ Å©¸®Ã³ Ä«µå --local item_code4 local v_count local v_count2 local v_count3 --local v_count4 if level >= 30 and level < 40 then item_code = 2013010 -- ¿©±â¿¡ ·¹º§±¸°£º°·Î ÀûÁ¤ÇÑ º¸»ó ¾ÆÀÌÅÛÀ» ³Ö¾îÁÖ¼¼¿ä~ v_count = 1 item_code2 = 2013011 -- ¿©±â¿¡ ·¹º§±¸°£º°·Î ÀûÁ¤ÇÑ º¸»ó ¾ÆÀÌÅÛÀ» ³Ö¾îÁÖ¼¼¿ä~ v_count2 = 1 item_code3 = -541007 -- ¿©±â¿¡ ·¹º§±¸°£º°·Î ÀûÁ¤ÇÑ º¸»ó ¾ÆÀÌÅÛÀ» ³Ö¾îÁÖ¼¼¿ä~ v_count3 = 1 elseif level >= 40 and level < 60 then item_code = 2013010 -- ¿©±â¿¡ ·¹º§±¸°£º°·Î ÀûÁ¤ÇÑ º¸»ó ¾ÆÀÌÅÛÀ» ³Ö¾îÁÖ¼¼¿ä~ v_count = 1 item_code2 = 2013011 -- ¿©±â¿¡ ·¹º§±¸°£º°·Î ÀûÁ¤ÇÑ º¸»ó ¾ÆÀÌÅÛÀ» ³Ö¾îÁÖ¼¼¿ä~ v_count2 = 1 item_code3 = -541007 -- ¿©±â¿¡ ·¹º§±¸°£º°·Î ÀûÁ¤ÇÑ º¸»ó ¾ÆÀÌÅÛÀ» ³Ö¾îÁÖ¼¼¿ä~ v_count3 = 1 elseif level >= 60 and level < 80 then item_code = 2013010 -- ¿©±â¿¡ ·¹º§±¸°£º°·Î ÀûÁ¤ÇÑ º¸»ó ¾ÆÀÌÅÛÀ» ³Ö¾îÁÖ¼¼¿ä~ v_count = 1 item_code2 = 2013011 -- ¿©±â¿¡ ·¹º§±¸°£º°·Î ÀûÁ¤ÇÑ º¸»ó ¾ÆÀÌÅÛÀ» ³Ö¾îÁÖ¼¼¿ä~ v_count2 = 1 item_code3 = -540027 -- ¿©±â¿¡ ·¹º§±¸°£º°·Î ÀûÁ¤ÇÑ º¸»ó ¾ÆÀÌÅÛÀ» ³Ö¾îÁÖ¼¼¿ä~ v_count3 = 1 elseif level >= 80 and level < 100 then item_code = 2013010 -- ¿©±â¿¡ ·¹º§±¸°£º°·Î ÀûÁ¤ÇÑ º¸»ó ¾ÆÀÌÅÛÀ» ³Ö¾îÁÖ¼¼¿ä~ v_count = 1 item_code2 = 2013011 -- ¿©±â¿¡ ·¹º§±¸°£º°·Î ÀûÁ¤ÇÑ º¸»ó ¾ÆÀÌÅÛÀ» ³Ö¾îÁÖ¼¼¿ä~ v_count2 = 1 item_code3 = -540027 -- ¿©±â¿¡ ·¹º§±¸°£º°·Î ÀûÁ¤ÇÑ º¸»ó ¾ÆÀÌÅÛÀ» ³Ö¾îÁÖ¼¼¿ä~ v_count3 = 1 elseif level >= 100 and level < 120 then item_code = 2013010 -- ¿©±â¿¡ ·¹º§±¸°£º°·Î ÀûÁ¤ÇÑ º¸»ó ¾ÆÀÌÅÛÀ» ³Ö¾îÁÖ¼¼¿ä~ v_count = 1 item_code2 = 2013011 -- ¿©±â¿¡ ·¹º§±¸°£º°·Î ÀûÁ¤ÇÑ º¸»ó ¾ÆÀÌÅÛÀ» ³Ö¾îÁÖ¼¼¿ä~ v_count2 = 1 item_code3 = -540027 -- ¿©±â¿¡ ·¹º§±¸°£º°·Î ÀûÁ¤ÇÑ º¸»ó ¾ÆÀÌÅÛÀ» ³Ö¾îÁÖ¼¼¿ä~ v_count3 = 1 elseif level >= 120 and level < 140 then item_code = 2013010 -- ¿©±â¿¡ ·¹º§±¸°£º°·Î ÀûÁ¤ÇÑ º¸»ó ¾ÆÀÌÅÛÀ» ³Ö¾îÁÖ¼¼¿ä~ v_count = 1 item_code2 = 2013011 -- ¿©±â¿¡ ·¹º§±¸°£º°·Î ÀûÁ¤ÇÑ º¸»ó ¾ÆÀÌÅÛÀ» ³Ö¾îÁÖ¼¼¿ä~ v_count2 = 1 item_code3 = -540027 -- ¿©±â¿¡ ·¹º§±¸°£º°·Î ÀûÁ¤ÇÑ º¸»ó ¾ÆÀÌÅÛÀ» ³Ö¾îÁÖ¼¼¿ä~ v_count3 = 1 elseif level >= 140 and level < 160 then item_code = 2013010 -- ¿©±â¿¡ ·¹º§±¸°£º°·Î ÀûÁ¤ÇÑ º¸»ó ¾ÆÀÌÅÛÀ» ³Ö¾îÁÖ¼¼¿ä~ v_count = 1 item_code2 = 2013011 -- ¿©±â¿¡ ·¹º§±¸°£º°·Î ÀûÁ¤ÇÑ º¸»ó ¾ÆÀÌÅÛÀ» ³Ö¾îÁÖ¼¼¿ä~ v_count2 = 1 item_code3 = -540027 -- ¿©±â¿¡ ·¹º§±¸°£º°·Î ÀûÁ¤ÇÑ º¸»ó ¾ÆÀÌÅÛÀ» ³Ö¾îÁÖ¼¼¿ä~ v_count3 = 1 elseif level >= 160 then item_code = 2013010 -- ¿©±â¿¡ ·¹º§±¸°£º°·Î ÀûÁ¤ÇÑ º¸»ó ¾ÆÀÌÅÛÀ» ³Ö¾îÁÖ¼¼¿ä~ v_count = 1 item_code2 = 2013011 -- ¿©±â¿¡ ·¹º§±¸°£º°·Î ÀûÁ¤ÇÑ º¸»ó ¾ÆÀÌÅÛÀ» ³Ö¾îÁÖ¼¼¿ä~ v_count2 = 1 item_code3 = -540027 -- ¿©±â¿¡ ·¹º§±¸°£º°·Î ÀûÁ¤ÇÑ º¸»ó ¾ÆÀÌÅÛÀ» ³Ö¾îÁÖ¼¼¿ä~ v_count3 = 1 end insert_item( item_code, v_count ) local text = sconv( "@90604789", "#@item_name@#", "@" .. tostring( item_code + 10000000 ) ) cprint( text ) insert_item( item_code2, v_count2 ) local text = sconv( "@90604789", "#@item_name@#", "@" .. tostring( item_code2 + 10000000 ) ) cprint( text ) item_code3 = -541007 local item = pick_item_in_drop_group( item_code3 ) local item_name = get_item_name_id( item[1] ) insert_item( item[1], v_count3 ) local text = sconv( "@90604789", "#@item_name@#", "@" .. tostring( item_name ) ) --local text = sconv( "@90604789", "#@item_name@#", "@" .. tostring( 7224 ) ) cprint( text ) end -- ÇÁ¶ø ¸µÅ© ------------------------------------------------------------------------------------------ function quest_prop_Vulcanus_30179() --<(version:8.1)>»õ·Î¿î °ÔÀÌÆ® Á¶»ç --set_quest_status( 3367, 1, 1 ) cprint( "@90604913" ) --<(version:7.3)><#6DD66D>óÀ½ ¹ß°ßµÈ ºÒÄ«´©½º ÀÔ±¸·Î °ü·Ã Á¤º¸ Á¶»ç¿¡ Å« ¿µÇâÀ» ¹ÌÃÆ´Ù. Áö±ÝÀº ÀÔ±¸·Î¼­ÀÇ ÀÛµ¿Àº ÇÏÁö ¾Ê´Â´Ù. end --============================================================ --=============================================== --=============== TP Äù½ºÆ® --=============================================== --============================================================ -- ÇÁ¶ø ¸µÅ© ------------------------------------------------------------------------------------------ function quest_prop_summon_creature_30171() -- ¹Ýȯ°ª -1 : ¾Æ¹«°Íµµ ¾Æ´Ô / 0 : ¼ö¶ô°¡ / 1 : ¼öÇàÁß / 2 : Á¾·á°¡´É / 100 : ½ÇÆÐ / 255 : À̹ÌÁ¾·á local quest_progress3352 = get_quest_progress(3352) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #1-1 local quest_progress3353 = get_quest_progress(3353) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #1-2 local quest_progress3354 = get_quest_progress(3354) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #1-3 local quest_progress3355 = get_quest_progress(3355) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #1-4 local quest_progress3356 = get_quest_progress(3356) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #1-5 local state_level = get_state_level( 4554 ) --À§Çù¼öÁØ Áõ°¡ local monster_num if state_level == 1 then cprint( "@90604778" ) --<(version:7.3)><#6DD66D>ºÐ³ëÀÇ ±â¿îÀ¸·Î ÀÎÇÏ¿© ¸ó½ºÅ͸¦ ¼ÒȯÇÒ ¼ö ¾ø½À´Ï´Ù. else -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #1-1 if quest_progress3352 == 1 then monster_num = math.random( 1, 3 ) if monster_num == 1 then -- ÆÇÅ×¶ó ¼Òȯ add_npc( gv('x') + math.random( 10, 50), gv('y') + math.random( 10, 50), 110011, 1 , 55000 ) elseif monster_num == 2 then -- Å丣Åͽº ¼Òȯ add_npc( gv('x') + math.random( 10, 50), gv('y') + math.random( 10, 50), 110012, 1 , 55000 ) elseif monster_num == 3 then -- ÆúÆ®¸® ¼Òȯ add_npc( gv('x') + math.random( 10, 50), gv('y') + math.random( 10, 50), 110013, 1 , 55000 ) end add_state( 4554 , 1, 55000) -- À§Çù¼öÁØ Áõ°¡ cprint( "@90604777" ) --<(version:7.3)><#6DD66D>Å©¸®ÃÄ ¿ÕµéÀÇ ºÐ³ë·Î À§Çù ¼öÁØÀÌ ³ô¾Æ Áý´Ï´Ù. -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #1-2 elseif quest_progress3353 == 1 then monster_num = math.random( 1, 8 ) if monster_num == 1 then -- ¿ÀÅ© ¼Òȯ add_npc( gv('x') + math.random( 10, 50), gv('y') + math.random( 10, 50), 120004, 1 , 55000 ) elseif monster_num == 2 then -- ¿¹Æ¼ ¼Òȯ add_npc( gv('x') + math.random( 10, 50), gv('y') + math.random( 10, 50), 120005, 1 , 55000 ) elseif monster_num == 3 then -- ½ºÄÌ·¹Åæ ¼Òȯ add_npc( gv('x') + math.random( 10, 50), gv('y') + math.random( 10, 50), 120006, 1 , 55000 ) elseif monster_num == 4 then -- ·¹µåÇȽà ¼Òȯ add_npc( gv('x') + math.random( 10, 50), gv('y') + math.random( 10, 50), 120007, 1 , 55000 ) elseif monster_num == 5 then -- ºí·çÇȽà ¼Òȯ add_npc( gv('x') + math.random( 10, 50), gv('y') + math.random( 10, 50), 120008, 1 , 55000 ) elseif monster_num == 6 then -- ¼¼ÀÌ·» ¼Òȯ add_npc( gv('x') + math.random( 10, 50), gv('y') + math.random( 10, 50), 120009, 1 , 55000 ) elseif monster_num == 7 then -- ¿ïÇÁ ¼Òȯ add_npc( gv('x') + math.random( 10, 50), gv('y') + math.random( 10, 50), 120010, 1 , 55000 ) elseif monster_num == 8 then -- Å©¶óÄË ¼Òȯ add_npc( gv('x') + math.random( 10, 50), gv('y') + math.random( 10, 50), 120011, 1 , 55000 ) end add_state( 4554 , 1, 55000) -- À§Çù¼öÁØ Áõ°¡ cprint( "@90604777" ) --<(version:7.3)><#6DD66D>Å©¸®ÃÄ ¿ÕµéÀÇ ºÐ³ë·Î À§Çù ¼öÁØÀÌ ³ô¾Æ Áý´Ï´Ù. -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #1-3 elseif quest_progress3354 == 1 then monster_num = math.random( 1, 5 ) if monster_num == 1 then -- ȣũ¸Ç ¼Òȯ add_npc( gv('x') + math.random( 10, 50), gv('y') + math.random( 10, 50), 130011, 1 , 60000 ) elseif monster_num == 2 then -- »ø·¯¸Ç´õ ¼Òȯ add_npc( gv('x') + math.random( 10, 50), gv('y') + math.random( 10, 50), 130012, 1 , 60000 ) elseif monster_num == 3 then -- À©µå¼Û ¼Òȯ add_npc( gv('x') + math.random( 10, 50), gv('y') + math.random( 10, 50), 130013, 1 , 60000 ) elseif monster_num == 4 then -- À¯´ÏÄÜ ¼Òȯ add_npc( gv('x') + math.random( 10, 50), gv('y') + math.random( 10, 50), 130014, 1 , 60000 ) elseif monster_num == 5 then -- ´Ùũȥ ¼Òȯ add_npc( gv('x') + math.random( 10, 50), gv('y') + math.random( 10, 50), 130015, 1 , 60000 ) end add_state( 4554 , 1, 60000) -- À§Çù¼öÁØ Áõ°¡ cprint( "@90604777" ) --<(version:7.3)><#6DD66D>Å©¸®ÃÄ ¿ÕµéÀÇ ºÐ³ë·Î À§Çù ¼öÁØÀÌ ³ô¾Æ Áý´Ï´Ù. -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #1-4 elseif quest_progress3355 == 1 then monster_num = math.random( 1, 5 ) if monster_num == 1 then -- ÄËŸ¿ì·Î½º ¼Òȯ add_npc( gv('x') + math.random( 10, 50), gv('y') + math.random( 10, 50), 140008, 1 , 60000 ) elseif monster_num == 2 then -- ¾ÆÀ̹«½º ¼Òȯ add_npc( gv('x') + math.random( 10, 50), gv('y') + math.random( 10, 50), 140009, 1 , 60000 ) elseif monster_num == 3 then -- ŸÆÄ¸® ¼Òȯ add_npc( gv('x') + math.random( 10, 50), gv('y') + math.random( 10, 50), 140010, 1 , 60000 ) elseif monster_num == 4 then -- Ä«À̳٠¼Òȯ add_npc( gv('x') + math.random( 10, 50), gv('y') + math.random( 10, 50), 140011, 1 , 60000 ) elseif monster_num == 5 then -- ¿£Á© ¼Òȯ add_npc( gv('x') + math.random( 10, 50), gv('y') + math.random( 10, 50), 140012, 1 , 60000 ) end add_state( 4554 , 1, 60000) -- À§Çù¼öÁØ Áõ°¡ cprint( "@90604777" ) --<(version:7.3)><#6DD66D>Å©¸®ÃÄ ¿ÕµéÀÇ ºÐ³ë·Î À§Çù ¼öÁØÀÌ ³ô¾Æ Áý´Ï´Ù. -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #1-5 elseif quest_progress3356 == 1 then monster_num = math.random( 1, 4 ) if monster_num == 1 then -- Ä̺£·Î½º ¼Òȯ add_npc( gv('x') + math.random( 10, 50), gv('y') + math.random( 10, 50), 150021, 1 , 65000 ) elseif monster_num == 2 then -- Áö´Ï ¼Òȯ add_npc( gv('x') + math.random( 10, 50), gv('y') + math.random( 10, 50), 150022, 1 , 65000 ) elseif monster_num == 3 then -- ¹Ì½ºÆ½ Áö´Ï ¼Òȯ add_npc( gv('x') + math.random( 10, 50), gv('y') + math.random( 10, 50), 150023, 1 , 65000 ) elseif monster_num == 4 then -- Å¥ºê ¼Òȯ add_npc( gv('x') + math.random( 10, 50), gv('y') + math.random( 10, 50), 150025, 1 , 65000 ) end add_state( 4554 , 1, 65000) -- À§Çù¼öÁØ Áõ°¡ cprint( "@90604777" ) --<(version:7.3)><#6DD66D>Å©¸®ÃÄ ¿ÕµéÀÇ ºÐ³ë·Î À§Çù ¼öÁØÀÌ ³ô¾Æ Áý´Ï´Ù. else cprint( "@90604912" ) --<(version:7.3)>¼ÒȯÁøÀ» »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù. end end end function quest_prop_summon_creature_30172() local state_level = get_state_level( 4554 ) --À§Çù¼öÁØ Áõ°¡ -- ¹Ýȯ°ª -1 : ¾Æ¹«°Íµµ ¾Æ´Ô / 0 : ¼ö¶ô°¡ / 1 : ¼öÇàÁß / 2 : Á¾·á°¡´É / 100 : ½ÇÆÐ / 255 : À̹ÌÁ¾·á local quest_progress3357 = get_quest_progress(3357) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #2 local monster_id local selected = { 110011, 110012, 110013, 120004, 120005, 120006, 120007, 120008, 120009, 120010, 120011, 130011, 130012, 130013, 130014, 130015, 140008, 140009, 140010, 140011, 140012, 150021, 150022, 150023, 150025, 160012, 160013, 160014 } for i = 1, 2 do monster_id = math.random( i, 28 ) local temp = selected[ i ] selected[ i ] = selected[ monster_id ] selected[ monster_id ] = temp end if state_level == 1 then cprint( "@90604778" ) --<(version:7.3)><#6DD66D>ºÐ³ëÀÇ ±â¿îÀ¸·Î ÀÎÇÏ¿© ¸ó½ºÅ͸¦ ¼ÒȯÇÒ ¼ö ¾ø½À´Ï´Ù. else if quest_progress3357 == 1 then monster_id = selected[ 1 ] -- ¸ó½ºÅÍ ¼Òȯ 1 add_npc( gv('x') + math.random( 10, 50), gv('y') + math.random( 10, 50), monster_id, 1 , 100000 ) monster_id = selected[ 2 ] -- ¸ó½ºÅÍ ¼Òȯ 2 add_npc( gv('x') + math.random( 10, 50), gv('y') + math.random( 10, 50), monster_id, 1 , 100000 ) add_state( 4554 , 1, 100000) -- À§Çù¼öÁØ Áõ°¡ cprint( "@90604777" ) --<(version:7.3)><#6DD66D>Å©¸®ÃÄ ¿ÕµéÀÇ ºÐ³ë·Î À§Çù ¼öÁØÀÌ ³ô¾Æ Áý´Ï´Ù. else cprint( "@90604776" )--<(version:7.3)><#6DD66D>ÇØ´ç Äù½ºÆ®¸¦ ÁøÇà Áß¿¡¸¸ »ç¿ë °¡´É ÇÕ´Ï´Ù. end end end function quest_prop_summon_creature_30173() local state_level = get_state_level( 4554 ) --À§Çù¼öÁØ Áõ°¡ -- ¹Ýȯ°ª -1 : ¾Æ¹«°Íµµ ¾Æ´Ô / 0 : ¼ö¶ô°¡ / 1 : ¼öÇàÁß / 2 : Á¾·á°¡´É / 100 : ½ÇÆÐ / 255 : À̹ÌÁ¾·á local quest_progress3358 = get_quest_progress(3358) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #3 local monster_id local selected = { 110011, 110012, 110013, 120004, 120005, 120006, 120007, 120008, 120009, 120010, 120011, 130011, 130012, 130013, 130014, 130015, 140008, 140009, 140010, 140011, 140012, 150021, 150022, 150023, 150025, 160012, 160013, 160014 } for i = 1, 3 do monster_id = math.random( i, 28 ) local temp = selected[ i ] selected[ i ] = selected[ monster_id ] selected[ monster_id ] = temp end if state_level == 1 then cprint( "@90604778" ) --<(version:7.3)><#6DD66D>ºÐ³ëÀÇ ±â¿îÀ¸·Î ÀÎÇÏ¿© ¸ó½ºÅ͸¦ ¼ÒȯÇÒ ¼ö ¾ø½À´Ï´Ù. else if quest_progress3358 == 1 then monster_id = selected[ 1 ] -- ¸ó½ºÅÍ ¼Òȯ 1 add_npc( gv('x') + math.random( 10, 50), gv('y') + math.random( 10, 50), monster_id, 1 , 100000 ) monster_id = selected[ 2 ] -- ¸ó½ºÅÍ ¼Òȯ 2 add_npc( gv('x') + math.random( 10, 50), gv('y') + math.random( 10, 50), monster_id, 1 , 100000 ) monster_id = selected[ 3 ] -- ¸ó½ºÅÍ ¼Òȯ 3 add_npc( gv('x') + math.random( 10, 50), gv('y') + math.random( 10, 50), monster_id, 1 , 100000 ) add_state( 4554 , 1, 100000) -- À§Çù¼öÁØ Áõ°¡ cprint( "@90604777" ) --<(version:7.3)><#6DD66D>Å©¸®ÃÄ ¿ÕµéÀÇ ºÐ³ë·Î À§Çù ¼öÁØÀÌ ³ô¾Æ Áý´Ï´Ù. else cprint( "@90604776" )--<(version:7.3)><#6DD66D>ÇØ´ç Äù½ºÆ®¸¦ ÁøÇà Áß¿¡¸¸ »ç¿ë °¡´É ÇÕ´Ï´Ù. end end end function quest_prop_summon_creature_30174() local state_level = get_state_level( 4554 ) --À§Çù¼öÁØ Áõ°¡ -- ¹Ýȯ°ª -1 : ¾Æ¹«°Íµµ ¾Æ´Ô / 0 : ¼ö¶ô°¡ / 1 : ¼öÇàÁß / 2 : Á¾·á°¡´É / 100 : ½ÇÆÐ / 255 : À̹ÌÁ¾·á local quest_progress3359 = get_quest_progress(3359) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #5 local monster_id local selected = { 110011, 110012, 110013, 120004, 120005, 120006, 120007, 120008, 120009, 120010, 120011, 130011, 130012, 130013, 130014, 130015, 140008, 140009, 140010, 140011, 140012, 150021, 150022, 150023, 150025, 160012, 160013, 160014 } for i = 1, 5 do monster_id = math.random( i, 28 ) local temp = selected[ i ] selected[ i ] = selected[ monster_id ] selected[ monster_id ] = temp end if state_level == 1 then cprint( "@90604778" ) --<(version:7.3)><#6DD66D>ºÐ³ëÀÇ ±â¿îÀ¸·Î ÀÎÇÏ¿© ¸ó½ºÅ͸¦ ¼ÒȯÇÒ ¼ö ¾ø½À´Ï´Ù. else if quest_progress3359 == 1 then monster_id = selected[ 1 ] -- ¸ó½ºÅÍ ¼Òȯ 1 add_npc( gv('x') + math.random( 10, 50), gv('y') + math.random( 10, 50), monster_id, 1 , 150000 ) monster_id = selected[ 2 ] -- ¸ó½ºÅÍ ¼Òȯ 2 add_npc( gv('x') + math.random( 10, 50), gv('y') + math.random( 10, 50), monster_id, 1 , 150000 ) monster_id = selected[ 3 ] -- ¸ó½ºÅÍ ¼Òȯ 3 add_npc( gv('x') + math.random( 10, 50), gv('y') + math.random( 10, 50), monster_id, 1 , 150000 ) monster_id = selected[ 4 ] -- ¸ó½ºÅÍ ¼Òȯ 4 add_npc( gv('x') + math.random( 10, 50), gv('y') + math.random( 10, 50), monster_id, 1 , 150000 ) monster_id = selected[ 5 ] -- ¸ó½ºÅÍ ¼Òȯ 5 add_npc( gv('x') + math.random( 10, 50), gv('y') + math.random( 10, 50), monster_id, 1 , 150000 ) add_state( 4554 , 1, 150000) -- À§Çù¼öÁØ Áõ°¡ cprint( "@90604777" ) --<(version:7.3)><#6DD66D>Å©¸®ÃÄ ¿ÕµéÀÇ ºÐ³ë·Î À§Çù ¼öÁØÀÌ ³ô¾Æ Áý´Ï´Ù. else add_state(6006, 1, 500) -- ½ºÅÏ cprint( "@90604776" )--<(version:7.3)><#6DD66D>ÇØ´ç Äù½ºÆ®¸¦ ÁøÇà Áß¿¡¸¸ »ç¿ë °¡´É ÇÕ´Ï´Ù. end end end function quest_prop_summon_creature_30175() end function quest_prop_summon_creature_30176() end function quest_prop_summon_creature_30177() end function quest_prop_summon_creature_30178() end ------------------3350, <(version:7.3)>ŽÇèÀÇ ¿Õ------------------------------------------ function quest_prop_mana_stone(num) local tp_finding = get_quest_status( 3350 , 1 ) + num set_quest_status( 3350, 1, tp_finding ) end -- Äù½ºÆ® ¸µÅ© ------------------------------------------------------------------------------------------ function quest_end_3350() local talentp = get_value( 'tp' ) talentp = talentp + 1 set_value( "tp", talentp ) cprint( "@90604780" ) -- (version:7.3) TP point x1 has been awarded del_flag( "over_bluepoint_lakcity" ) del_flag( "over_bluepoint_horizon" ) del_flag( "over_bluepoint_katan" ) del_flag( "over_bluepoint_rondoh" ) del_flag( "over_redpoint_lakcity" ) del_flag( "over_redpoint_horizon" ) del_flag( "over_redpoint_katan" ) del_flag( "over_redpoint_rondoh" ) del_flag( "over_greenpoint_lakcity" ) del_flag( "over_greenpoint_horizon" ) del_flag( "over_greenpoint_katan" ) del_flag( "over_greenpoint_rondoh" ) end ------------------------------------------------------------------------------------------ function quest_end_3351() local talentp = get_value( 'tp' ) talentp = talentp + 1 set_value( "tp", talentp ) cprint( "@90604780" ) -- <(version:7.3)><#6DD66D>TP Æ÷ÀÎÆ®°¡ 1 Áö±Þ µÇ¾ú½À´Ï´Ù. end ------------------------------------------------------------------------------------------ function quest_end_3359() local talentp = get_value( 'tp' ) talentp = talentp + 1 set_value( "tp", talentp ) cprint( "@90604780" ) -- <(version:7.3)><#6DD66D>TP Æ÷ÀÎÆ®°¡ 1 Áö±Þ µÇ¾ú½À´Ï´Ù. end ------------------------------------------------------------------------------------------ function quest_start_3381() -- ´ë·úÀÇ °ú°Å ¿¤·ÎÈû ½Ã¾ÆÆä¿¡°Ô ¿öÇÁ warp( 127542 + math.random(0,10) , 121326 + math.random(0,10) ) end function quest_end_3381() end ------------------------------------------------------------------------------------------ function quest_start_3382() -- ´ë·úÀÇ °ú°Å »ç¸·Áö±â ¿¤·¹³ë¿¡°Ô ¿öÇÁ warp( 120752 + math.random(0,10) , 86799 + math.random(0,10) ) end function quest_end_3382() end ------------------------------------------------------------------------------------------ function quest_start_3383() -- ´ë·úÀÇ °ú°Å ¹«³àÁ¦À̳ª¿¡°Ô ¿öÇÁ warp( 120321 + math.random(0,10) , 72102 + math.random(0,10) ) end function quest_end_3383() end -- ¸ó½ºÅÍ ¸µÅ© ------------------------------------------------------------------------------------------ function tp_quest_creature_adventure_1_1() -- ¹Ýȯ°ª -1 : ¾Æ¹«°Íµµ ¾Æ´Ô / 0 : ¼ö¶ô°¡ / 1 : ¼öÇàÁß / 2 : Á¾·á°¡´É / 100 : ½ÇÆÐ / 255 : À̹ÌÁ¾·á local quest_progress3352 = get_quest_progress(3352) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #1-1 --local quest_progress3353 = get_quest_progress(3353) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #1-2 --local quest_progress3354 = get_quest_progress(3354) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #1-3 --local quest_progress3355 = get_quest_progress(3355) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #1-4 --local quest_progress3356 = get_quest_progress(3356) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #1-5 local quest_progress3357 = get_quest_progress(3357) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #2 local quest_progress3358 = get_quest_progress(3358) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #3 local quest_progress3359 = get_quest_progress(3359) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #5 if quest_progress3352 == 1 then local tp_creature_monster = get_quest_status( 3352 , 1 ) + 1 set_quest_status( 3352, 1, tp_creature_monster ) end if quest_progress3357 == 1 then local tp_creature_monster = get_quest_status( 3357 , 1 ) + 1 set_quest_status( 3357, 1, tp_creature_monster ) end if quest_progress3358 == 1 then local tp_creature_monster = get_quest_status( 3358 , 1 ) + 1 set_quest_status( 3358, 1, tp_creature_monster ) end if quest_progress3359 == 1 then local tp_creature_monster = get_quest_status( 3359 , 1 ) + 1 set_quest_status( 3359, 1, tp_creature_monster ) end end function tp_quest_creature_adventure_1_2() -- ¹Ýȯ°ª -1 : ¾Æ¹«°Íµµ ¾Æ´Ô / 0 : ¼ö¶ô°¡ / 1 : ¼öÇàÁß / 2 : Á¾·á°¡´É / 100 : ½ÇÆÐ / 255 : À̹ÌÁ¾·á --local quest_progress3352 = get_quest_progress(3352) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #1-1 local quest_progress3353 = get_quest_progress(3353) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #1-2 --local quest_progress3354 = get_quest_progress(3354) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #1-3 --local quest_progress3355 = get_quest_progress(3355) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #1-4 --local quest_progress3356 = get_quest_progress(3356) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #1-5 local quest_progress3357 = get_quest_progress(3357) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #2 local quest_progress3358 = get_quest_progress(3358) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #3 local quest_progress3359 = get_quest_progress(3359) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #5 if quest_progress3353 == 1 then local tp_creature_monster = get_quest_status( 3353 , 1 ) + 1 set_quest_status( 3353, 1, tp_creature_monster ) end if quest_progress3357 == 1 then local tp_creature_monster = get_quest_status( 3357 , 1 ) + 1 set_quest_status( 3357, 1, tp_creature_monster ) end if quest_progress3358 == 1 then local tp_creature_monster = get_quest_status( 3358 , 1 ) + 1 set_quest_status( 3358, 1, tp_creature_monster ) end if quest_progress3359 == 1 then local tp_creature_monster = get_quest_status( 3359 , 1 ) + 1 set_quest_status( 3359, 1, tp_creature_monster ) end end function tp_quest_creature_adventure_1_3() -- ¹Ýȯ°ª -1 : ¾Æ¹«°Íµµ ¾Æ´Ô / 0 : ¼ö¶ô°¡ / 1 : ¼öÇàÁß / 2 : Á¾·á°¡´É / 100 : ½ÇÆÐ / 255 : À̹ÌÁ¾·á --local quest_progress3352 = get_quest_progress(3352) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #1-1 --local quest_progress3353 = get_quest_progress(3353) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #1-2 local quest_progress3354 = get_quest_progress(3354) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #1-3 --local quest_progress3355 = get_quest_progress(3355) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #1-4 --local quest_progress3356 = get_quest_progress(3356) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #1-5 local quest_progress3357 = get_quest_progress(3357) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #2 local quest_progress3358 = get_quest_progress(3358) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #3 local quest_progress3359 = get_quest_progress(3359) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #5 if quest_progress3354 == 1 then local tp_creature_monster = get_quest_status( 3354 , 1 ) + 1 set_quest_status( 3354, 1, tp_creature_monster ) end if quest_progress3357 == 1 then local tp_creature_monster = get_quest_status( 3357 , 1 ) + 1 set_quest_status( 3357, 1, tp_creature_monster ) end if quest_progress3358 == 1 then local tp_creature_monster = get_quest_status( 3358 , 1 ) + 1 set_quest_status( 3358, 1, tp_creature_monster ) end if quest_progress3359 == 1 then local tp_creature_monster = get_quest_status( 3359 , 1 ) + 1 set_quest_status( 3359, 1, tp_creature_monster ) end end function tp_quest_creature_adventure_1_4() -- ¹Ýȯ°ª -1 : ¾Æ¹«°Íµµ ¾Æ´Ô / 0 : ¼ö¶ô°¡ / 1 : ¼öÇàÁß / 2 : Á¾·á°¡´É / 100 : ½ÇÆÐ / 255 : À̹ÌÁ¾·á --local quest_progress3352 = get_quest_progress(3352) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #1-1 --local quest_progress3353 = get_quest_progress(3353) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #1-2 --local quest_progress3354 = get_quest_progress(3354) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #1-3 local quest_progress3355 = get_quest_progress(3355) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #1-4 --local quest_progress3356 = get_quest_progress(3356) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #1-5 local quest_progress3357 = get_quest_progress(3357) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #2 local quest_progress3358 = get_quest_progress(3358) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #3 local quest_progress3359 = get_quest_progress(3359) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #5 if quest_progress3355 == 1 then local tp_creature_monster = get_quest_status( 3355 , 1 ) + 1 set_quest_status( 3355, 1, tp_creature_monster ) end if quest_progress3357 == 1 then local tp_creature_monster = get_quest_status( 3357 , 1 ) + 1 set_quest_status( 3357, 1, tp_creature_monster ) end if quest_progress3358 == 1 then local tp_creature_monster = get_quest_status( 3358 , 1 ) + 1 set_quest_status( 3358, 1, tp_creature_monster ) end if quest_progress3359 == 1 then local tp_creature_monster = get_quest_status( 3359 , 1 ) + 1 set_quest_status( 3359, 1, tp_creature_monster ) end end function tp_quest_creature_adventure_1_5() -- ¹Ýȯ°ª -1 : ¾Æ¹«°Íµµ ¾Æ´Ô / 0 : ¼ö¶ô°¡ / 1 : ¼öÇàÁß / 2 : Á¾·á°¡´É / 100 : ½ÇÆÐ / 255 : À̹ÌÁ¾·á --local quest_progress3352 = get_quest_progress(3352) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #1-1 --local quest_progress3353 = get_quest_progress(3353) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #1-2 --local quest_progress3354 = get_quest_progress(3354) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #1-3 --local quest_progress3355 = get_quest_progress(3355) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #1-4 local quest_progress3356 = get_quest_progress(3356) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #1-5 local quest_progress3357 = get_quest_progress(3357) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #2 local quest_progress3358 = get_quest_progress(3358) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #3 local quest_progress3359 = get_quest_progress(3359) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #5 if quest_progress3356 == 1 then local tp_creature_monster = get_quest_status( 3356 , 1 ) + 1 set_quest_status( 3356, 1, tp_creature_monster ) end if quest_progress3357 == 1 then local tp_creature_monster = get_quest_status( 3357 , 1 ) + 1 set_quest_status( 3357, 1, tp_creature_monster ) end if quest_progress3358 == 1 then local tp_creature_monster = get_quest_status( 3358 , 1 ) + 1 set_quest_status( 3358, 1, tp_creature_monster ) end if quest_progress3359 == 1 then local tp_creature_monster = get_quest_status( 3359 , 1 ) + 1 set_quest_status( 3359, 1, tp_creature_monster ) end end function tp_quest_creature_adventure_1_6() -- ¹Ýȯ°ª -1 : ¾Æ¹«°Íµµ ¾Æ´Ô / 0 : ¼ö¶ô°¡ / 1 : ¼öÇàÁß / 2 : Á¾·á°¡´É / 100 : ½ÇÆÐ / 255 : À̹ÌÁ¾·á --local quest_progress3352 = get_quest_progress(3352) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #1-1 --local quest_progress3353 = get_quest_progress(3353) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #1-2 --local quest_progress3354 = get_quest_progress(3354) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #1-3 --local quest_progress3355 = get_quest_progress(3355) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #1-4 --local quest_progress3356 = get_quest_progress(3356) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #1-5 local quest_progress3357 = get_quest_progress(3357) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #2 local quest_progress3358 = get_quest_progress(3358) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #3 local quest_progress3359 = get_quest_progress(3359) -- <(version:7.3)><(version:7.3)>Å©¸®ÃÄÀÇ ¿Õ #5 if quest_progress3357 == 1 then local tp_creature_monster = get_quest_status( 3357 , 1 ) + 1 set_quest_status( 3357, 1, tp_creature_monster ) end if quest_progress3358 == 1 then local tp_creature_monster = get_quest_status( 3358 , 1 ) + 1 set_quest_status( 3358, 1, tp_creature_monster ) end if quest_progress3359 == 1 then local tp_creature_monster = get_quest_status( 3359 , 1 ) + 1 set_quest_status( 3359, 1, tp_creature_monster ) end end --------------------------------------------------------- function quest_start_3600() end function quest_end_3600() end --------------------------------------------------------- -- <(version:7.4)>[Å¥ºê¸¯]·Î¹Ì¿À ±¸Ãâ function quest_start_3601() set_flag( "romeo_finding" , math.random( 0, 2 ) ) end function quest_end_3601() end --------------------------------------------------------- function quest_start_3602() end function quest_end_3602() end -- <(version:7.4)>[Å¥ºê¸¯]ÁÙ¸®¿§ ±¸Ãâ --------------------------------------------------------- function quest_start_3603() set_flag( "juliet_finding" , math.random( 0, 2 ) ) end function quest_end_3603() end --------------------------------------------------------- function quest_start_3604() end function quest_end_3604() end --------------------------------------------------------- function quest_start_3605() end function quest_end_3605() end --------------------------------------------------------- function quest_start_3606() end function quest_end_3606() end --------------------------------------------------------- function quest_start_3607() -- ´øÀü ³»¿¡¼­ Äù½ºÆ®¸¦ »õ·Î ½ÃÀÛÇϸé Äù½ºÆ® ÁøÇàÇϰí ÀÖ´Â À¯Àú Ä«¿îÆ® Áõ°¡ if get_instance_dungeon_id() == 30000 then local layer = gv( 'layer' ) set_instance_dungeon_flag( 30000, layer, 'QuestInProgressCount', get_instance_dungeon_flag( 30000, layer, 'QuestInProgressCount' ) + 1 ) end end function quest_end_3607() end function quest_drop_3607() -- ÁøÇà ÁßÀ̾ú´ø À¯Àú°¡ Æ÷±âÇÏ¸é ´øÀü ³»¿¡¼­ ÇØ´ç Äù½ºÆ®¸¦ ÁøÇàÇϰí ÀÖ´ø À¯Àú Ä«¿îÆ®¸¦ °¨¼Ò if get_instance_dungeon_id() == 30000 and get_quest_progress( 3607 ) == 1 then local layer = gv( 'layer' ) set_instance_dungeon_flag( 30000, layer, 'QuestInProgressCount', get_instance_dungeon_flag( 30000, layer, 'QuestInProgressCount' ) - 1 ) end end --------------------------------------------------------- -- function quest_start_3608() -- set_flag( "alram_count_01" , 0 ) -- set_flag( "alram_count_02" , 0 ) -- set_flag( "alram_count_03" , 0 ) -- set_flag( "alram_count_04" , 0 ) -- set_flag( "alram_count_05" , 0 ) -- set_flag( "alram_count_06" , 0 ) -- end -- function quest_end_3608() -- end --------------------------------------------------------- function quest_start_3609() -- ÇöÀç Àδø ³»ºÎ¿¡¼­ ÀÌ¹Ì º¸½º ¸ó½ºÅͰ¡ ¸®Á¨µÇ¾ú¾ú´Ù¸é Ãß°¡ÀûÀ¸·Î ¸®Á¨ÇÏÁö ¾Ê°Ô Â÷´Ü local layer = gv( 'layer' ) if get_instance_dungeon_id() == 30000 and get_instance_dungeon_flag( 30000, layer, 'AdditionalBossRespawned' ) == 0 then set_instance_dungeon_flag( 30000, layer, 'AdditionalBossRespawned', 1 ) add_npc( 99954 + math.random( 2, 50 ), 31539 + math.random( 2, 50 ), 20170002, 1, 30000 ) add_npc( 99954 + math.random( 2, 50 ), 31539 + math.random( 2, 50 ), 20180002, 1, 30000 ) add_npc( 99954 + math.random( 2, 50 ), 31539 + math.random( 2, 50 ), 20185002, 1, 30000 ) end end function quest_end_3609() -- Ãⱸ ÇÁ¶øÀÌ Áߺ¹Çؼ­ ¿©·¯ °³ ¸®Á¨µÇÁö ¾Êµµ·Ï üũ local layer = gv( 'layer' ) if get_instance_dungeon_id() == 30000 and get_instance_dungeon_flag( 30000, layer, 'ExitPropRespawned' ) == 0 then set_instance_dungeon_flag( 30000, layer, 'ExitPropRespawned', 1 ) add_field_prop(60102, 0, 99954, 31539, layer, 0 ) end --Ç÷¡±× »èÁ¦ -- del_flag( "alram_count_01" ) -- del_flag( "alram_count_02" ) -- del_flag( "alram_count_03" ) -- del_flag( "alram_count_04" ) -- del_flag( "alram_count_05" ) -- del_flag( "alram_count_06" ) del_flag( "juliet_finding" ) del_flag( "romeo_finding" ) end function npc_quest_cubric_mullog() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90604989" ) dlg_text( "@90604990" ) -- ´ëÈ­Á¾·á dlg_menu( "<#63FF10>Donjon Cubric", "warp_to_instance_dungeon(30000)" ) dlg_menu( "@90010002", " " ) dlg_show() end function npc_quest_cubric_livedy() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90604988" ) dlg_text( "@90604990" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end function npc_quest_cubric_Unidentified01() -- ¹Ýȯ°ª -1 : ¾Æ¹«°Íµµ ¾Æ´Ô / 0 : ¼ö¶ô°¡ / 1 : ¼öÇàÁß / 2 : Á¾·á°¡´É / 100 : ½ÇÆÐ / 255 : À̹ÌÁ¾·á local quest_progress3601 = get_quest_progress(3601) -- <(version:7.4)>[Å¥ºê¸¯]·Î¹Ì¿À ±¸Ãâ local quest_progress3608 = get_quest_progress(3608) -- <(version:7.4)>[Å¥ºê¸¯]Á¾½Ä local romeo = get_flag( "romeo_finding") -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90605012" ) dlg_text( "@90605013" ) if quest_progress3601 == 1 then if romeo == 0 then dlg_menu( "@90605022", 'romeo_question_real()' ) else dlg_menu( "@90605022", 'romeo_question_fake()' ) end end if quest_progress3608 == 1 then dlg_menu( "@90605057", 'alarm()' ) end -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end function romeo_question_real() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90605012" ) dlg_text( "@90605025" ) dlg_menu( "@90605026", 'romeo_question_real_talk1()' ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end function romeo_question_real_talk1() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90605012" ) dlg_text( "@90605027" ) dlg_menu( "@90605028", 'romeo_question_real_talk2()' ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end function romeo_question_real_talk2() -- <(version:7.4)>[Å¥ºê¸¯]·Î¹Ì¿À ±¸Ãâ set_quest_status( 3601, 1, 1 ) end function npc_quest_cubric_Unidentified02() -- ¹Ýȯ°ª -1 : ¾Æ¹«°Íµµ ¾Æ´Ô / 0 : ¼ö¶ô°¡ / 1 : ¼öÇàÁß / 2 : Á¾·á°¡´É / 100 : ½ÇÆÐ / 255 : À̹ÌÁ¾·á local quest_progress3601 = get_quest_progress(3601) -- <(version:7.4)>[Å¥ºê¸¯]·Î¹Ì¿À ±¸Ãâ local quest_progress3608 = get_quest_progress(3608) -- <(version:7.4)>[Å¥ºê¸¯]Á¾½Ä local romeo = get_flag( "romeo_finding") -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90605015" ) dlg_text( "@90605016" ) if quest_progress3601 == 1 then if romeo == 1 then dlg_menu( "@90605022", 'romeo_question_real()' ) else dlg_menu( "@90605022", 'romeo_question_fake()' ) end end if quest_progress3608 == 1 then dlg_menu( "@90605057", 'alarm()' ) end -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end function npc_quest_cubric_Unidentified03() -- ¹Ýȯ°ª -1 : ¾Æ¹«°Íµµ ¾Æ´Ô / 0 : ¼ö¶ô°¡ / 1 : ¼öÇàÁß / 2 : Á¾·á°¡´É / 100 : ½ÇÆÐ / 255 : À̹ÌÁ¾·á local quest_progress3601 = get_quest_progress(3601) -- <(version:7.4)>[Å¥ºê¸¯]·Î¹Ì¿À ±¸Ãâ local quest_progress3608 = get_quest_progress(3608) -- <(version:7.4)>[Å¥ºê¸¯]Á¾½Ä local romeo = get_flag( "romeo_finding") -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90605018" ) dlg_text( "@90605019" ) if quest_progress3601 == 1 then if romeo == 2 then dlg_menu( "@90605022", 'romeo_question_real()' ) else dlg_menu( "@90605022", 'romeo_question_fake()' ) end end if quest_progress3608 == 1 then dlg_menu( "@90605057", 'alarm()' ) end -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end function romeo_question_fake() local romeo_dice = math.random(0, 1) -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90605012" ) if romeo_dice == 0 then dlg_text( "@90605023" ) else dlg_text( "@90605024" ) end -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end function npc_quest_cubric_Unidentified04() -- ¹Ýȯ°ª -1 : ¾Æ¹«°Íµµ ¾Æ´Ô / 0 : ¼ö¶ô°¡ / 1 : ¼öÇàÁß / 2 : Á¾·á°¡´É / 100 : ½ÇÆÐ / 255 : À̹ÌÁ¾·á local quest_progress3603 = get_quest_progress(3603) -- <(version:7.4)>[Å¥ºê¸¯]ÁÙ¸®¿§ ±¸Ãâ local quest_progress3608 = get_quest_progress(3608) -- <(version:7.4)>[Å¥ºê¸¯]Á¾½Ä local juliet = get_flag( "juliet_finding") -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90605030" ) dlg_text( "@90605031" ) if quest_progress3603 == 1 then if juliet == 0 then dlg_menu( "@90605047", 'juliet_question_real()' ) else dlg_menu( "@90605047", 'juliet_question_fake()' ) end end if quest_progress3608 == 1 then dlg_menu( "@90605057", 'alarm()' ) end -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end function juliet_question_real() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90605012" ) dlg_text( "@90605050" ) dlg_menu( "@90605051", 'juliet_question_real_talk1()' ) dlg_menu( "@90010002", " " ) -- ´ëÈ­Á¾·á dlg_show() end function juliet_question_real_talk1() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90605012" ) dlg_text( "@90605052" ) dlg_menu( "@90605053", 'juliet_question_real_talk2()' ) dlg_menu( "@90010002", " " )-- ´ëÈ­Á¾·á dlg_show() end function juliet_question_real_talk2() -- <(version:7.4)>[Å¥ºê¸¯]ÁÙ¸®¿§ ±¸Ãâ set_quest_status( 3603, 1, 1 ) end function juliet_question_fake() local juliet_dice = math.random(0, 1) -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90605012" ) if juliet_dice == 0 then dlg_text( "@90605048" ) else dlg_text( "@90605049" ) end -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end function npc_quest_cubric_Unidentified05() -- ¹Ýȯ°ª -1 : ¾Æ¹«°Íµµ ¾Æ´Ô / 0 : ¼ö¶ô°¡ / 1 : ¼öÇàÁß / 2 : Á¾·á°¡´É / 100 : ½ÇÆÐ / 255 : À̹ÌÁ¾·á local quest_progress3603 = get_quest_progress(3603) -- <(version:7.4)>[Å¥ºê¸¯]ÁÙ¸®¿§ ±¸Ãâ local quest_progress3608 = get_quest_progress(3608) -- <(version:7.4)>[Å¥ºê¸¯]Á¾½Ä local juliet = get_flag( "juliet_finding") -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90605033" ) dlg_text( "@90605034" ) if quest_progress3603 == 1 then if juliet == 1 then dlg_menu( "@90605047", 'juliet_question_real()' ) else dlg_menu( "@90605047", 'juliet_question_fake()' ) end end if quest_progress3608 == 1 then dlg_menu( "@90605057", 'alarm()' ) end dlg_menu( "@90010002", " " ) -- ´ëÈ­Á¾·á dlg_show() end function npc_quest_cubric_Unidentified06() -- ¹Ýȯ°ª -1 : ¾Æ¹«°Íµµ ¾Æ´Ô / 0 : ¼ö¶ô°¡ / 1 : ¼öÇàÁß / 2 : Á¾·á°¡´É / 100 : ½ÇÆÐ / 255 : À̹ÌÁ¾·á local quest_progress3603 = get_quest_progress(3603) -- <(version:7.4)>[Å¥ºê¸¯]ÁÙ¸®¿§ ±¸Ãâ local quest_progress3608 = get_quest_progress(3608) -- <(version:7.4)>[Å¥ºê¸¯]Á¾½Ä local juliet = get_flag( "juliet_finding") -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90605036" ) dlg_text( "@90605037" ) if quest_progress3603 == 1 then if juliet == 2 then dlg_menu( "@90605047", 'juliet_question_real()' ) else dlg_menu( "@90605047", 'juliet_question_fake()' ) end end if quest_progress3608 == 1 then dlg_menu( "@90605057", 'alarm()' ) end dlg_menu( "@90010002", " " ) -- ´ëÈ­Á¾·á dlg_show() end function alarm() dlg_title( "@90605036" ) local dice = math.random( 0, 2 ) if dice == 0 then dlg_text( "@90605058" ) elseif dice == 1 then dlg_text( "@90605059" ) elseif dice == 2 then dlg_text( "@90605060" ) end set_quest_status( 3608, 1, 1 ) -- <(version:7.4)>[Å¥ºê¸¯]Á¾½Ä dlg_menu( "@90010002", " " ) -- ´ëÈ­Á¾·á dlg_show() end function npc_quest_cubric_into_livedy() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90605039" ) dlg_text( "@90605040" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end function npc_quest_cubric_romeo() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90605042" ) dlg_text( "@90605043" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end function npc_quest_cubric_juliet() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90605045" ) dlg_text( "@90605046" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== Àü·É»ç ¸ÞÈ£ --============================================================ function NPC_Quest_slaugter1_init() set_npc_name( "@90605392" ) end function NPC_Quest_slaugter1_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90605392" ) dlg_text( "@90605393" ) --dlg_menu( "@90605517", 'NPC_Quest_warp()' ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end function NPC_Quest_warp() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90605392" ) dlg_text( "@90605516" ) local quest_warp = get_value( "level" ) if quest_warp >= 80 then dlg_menu( "@90605512", 'NPC_Quest_warp_1()' ) end if quest_warp >= 100 then dlg_menu( "@90605513", 'NPC_Quest_warp_2()' ) end if quest_warp >= 120 then dlg_menu( "@90605514", 'NPC_Quest_warp_3()' ) end if quest_warp >= 150 then dlg_menu( "@90605515", 'NPC_Quest_warp_4()' ) end -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end function NPC_Quest_warp_1() warp( 116525 + math.random(0,50) , 89736 + math.random(0,50), gv("layer") ) end function NPC_Quest_warp_2() warp( 136287 + math.random(0,50) , 106956 + math.random(0,50), gv("layer") ) end function NPC_Quest_warp_3() warp( 122864 + math.random(0,50) , 121769 + math.random(0,50), gv("layer") ) end function NPC_Quest_warp_4() warp( 96598 + math.random(0,50) , 101299 + math.random(0,50), gv("layer") ) end --============================================================ --=============== °æºñ´ëÀå À̼¿¶ó --============================================================ function NPC_Quest_slaugter2_init() set_npc_name( "@90605400" ) end function NPC_Quest_slaugter2_contact() dlg_title( "@90605400" ) dlg_text( "@90605401" ) local state_code = get_local_info() local current_time = get_os_date( "%Y-%m-%d %H:%M:%S" ) if state_code == 4 or state_code == 8 or state_code == 128 or state_code == 16384 or state_code == 32768 or state_code == 65536 then if '2018-04-17 08:00:00' <= current_time and current_time <= '2018-05-15 08:00:00' then dlg_menu( "@90610623", "NPC_Event_2018_WZ_9_Anni()" ) -- Devildom Purge event end end dlg_menu( "@90010002", " " ) -- ´ëÈ­Á¾·á dlg_show() end --============================================================ --=============== ¸ó½ºÅÍ ¿¬±¸¿ø Å©·ç¾Æ --============================================================ function NPC_Quest_slaugter3_init() set_npc_name( "@90605406" ) end function NPC_Quest_slaugter3_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90605406" ) dlg_text( "@90605407" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ¸ó½ºÅÍ ¿¬±¸¿ø ´ÏÅ© --============================================================ function NPC_Quest_slaugter4_init() set_npc_name( "@90605408" ) end function NPC_Quest_slaugter4_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90605408" ) local quest_progress3618 = get_quest_progress(3618) -- <(version:8.1)>°øÆ÷ÀDZ«¹° if quest_progress3618 == 0 then dlg_text( "@90605411" ) -- Äù½ºÆ® ¼öÇà Àü, ¼öÇà Áß ´ë»ç else dlg_text( "@90605409" ) end -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== °í°íÇÐÀÚ ºí¶óºê --============================================================ function NPC_Quest_minotaur1_init() set_npc_name( "@90605415" ) end function NPC_Quest_minotaur1_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90605415" ) dlg_text( "@90605416" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ¼±¹ß´ëÀå ¹Ì¿¤ --============================================================ function NPC_Quest_bapho1_init() set_npc_name( "@90605426" ) end function NPC_Quest_bapho1_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90605426" ) dlg_text( "@90605430" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ¼±¹ß´ë¿ø ¶óÈ£¹« --============================================================ function NPC_Quest_bapho2_init() set_npc_name( "@90605427" ) end function NPC_Quest_bapho2_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90605427" ) dlg_text( "@90605431" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ¼±¹ß´ë¿ø È÷¶ó --============================================================ function NPC_Quest_bapho3_init() set_npc_name( "@90605428" ) end function NPC_Quest_bapho3_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90605428" ) dlg_text( "@90605432" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ¼±¹ß´ë¿ø Á¦¸®Å©·Î --============================================================ function NPC_Quest_bapho4_init() set_npc_name( "@90605429" ) end function NPC_Quest_bapho4_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90605429" ) dlg_text( "@90605433" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== °æ°èÇÏ´Â ¸¶³à´Ü¿ø --============================================================ function NPC_Quest_bapho5_init() set_npc_name( "@90605441" ) end function NPC_Quest_bapho5_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90605441" ) dlg_text( "@90605442" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ½£ÀÇ ÁÖÀÎ ¸¶È÷º£Èå --============================================================ function NPC_Quest_undine1_init() set_npc_name( "@90605451" ) end function NPC_Quest_undine1_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90605451" ) dlg_text( "@90605455" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ½£ÀÇ Á¤·É ·Î --============================================================ function NPC_Quest_undine2_init() set_npc_name( "@90605452" ) end function NPC_Quest_undine2_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90605452" ) dlg_text( "@90605456" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ½£ÀÇ Á¤·É È÷¸£ --============================================================ function NPC_Quest_undine3_init() set_npc_name( "@90605453" ) end function NPC_Quest_undine3_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90605453" ) dlg_text( "@90605456" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ½£ÀÇ Á¤·É ÇìÀ̸£ --============================================================ function NPC_Quest_undine4_init() set_npc_name( "@90605454" ) end function NPC_Quest_undine4_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90605454" ) dlg_text( "@90605456" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ÇöÀå°¨µ¶ Çì´õ --============================================================ function NPC_Quest_pick1_init() set_npc_name( "@90605460" ) end function NPC_Quest_pick1_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90605460" ) dlg_text( "@90605465" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ±â°è°øÇÐÀÚ ¼Ð --============================================================ function NPC_Quest_pick2_init() set_npc_name( "@90605461" ) end function NPC_Quest_pick2_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90605461" ) dlg_text( "@90605466" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ±â°è°øÇÐÀÚ µ¿¼ö --============================================================ function NPC_Quest_pick3_init() set_npc_name( "@90605462" ) end function NPC_Quest_pick3_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90605462" ) dlg_text( "@90605467" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ±â°è°øÇÐÀÚ ¸ÓÇdzª --============================================================ function NPC_Quest_pick4_init() set_npc_name( "@90605463" ) end function NPC_Quest_pick4_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90605463" ) dlg_text( "@90605468" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== ±â°è°øÇÐÀÚ ¿À´õÅ© --============================================================ function NPC_Quest_pick5_init() set_npc_name( "@90605464" ) end function NPC_Quest_pick5_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90605464" ) dlg_text( "@90605469" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --================================================================ ------------------------- Äù½ºÆ® ¸µÅ© ½ºÅ©¸³Æ®-------------------- --================================================================ -- °æºñ´ëÀå¿¡°Ô º¸°í : ¼ö¶ô -- ÄùÅÛ Àκ¥Å丮¿¡ ³Ö¾îÁÖ±â function quest_start_3615() --ÄùÅÛ Ä«¿îÆ® ±¸Çϱâ local item_slt3615_qitem_count = find_item ( 1000426 ) if item_slt3615_qitem_count >= 1 then for i = 0, 10 do -- ÄùÅÛ ³²Àº ¾ÆÀÌÅÛ ¾ø¾Ö±â delete_item( get_item_handle( 1000426 ), item_slt3615_qitem_count ) end else -- ÄùÅÛ ³Ö¾îÁÖ±â insert_item( 1000426, 1 ) cprint( "@90605479" ) -- ÄùÅÛ ¹Þ¾Æ…? end end -- °æºñ´ëÀå¿¡°Ô º¸°í : Ŭ¸®¾î -- ÄùÅÛ Àκ¥Å丮¿¡¼­ »èÁ¦ function quest_end_3615() --ÄùÅÛ Ä«¿îÆ® ±¸Çϱâ local item_slt3615_qitem_count = find_item ( 1000426 ) if item_slt3615_qitem_count >= 1 then for i = 0, 10 do -- ÄùÅÛ ³²Àº ¾ÆÀÌÅÛ ¾ø¾Ö±â delete_item( get_item_handle( 1000426 ), item_slt3615_qitem_count ) end cprint( "@90605480" ) -- ÄùÅÛ »¯¾ú±á end end ------------------------------------------------------------ --Äù½ºÆ® Æ÷±â ¾ÆÀÌÅÛ »èÁ¦ ------------------------------------------------------------ -- °æºñ´ëÀå¿¡°Ô º¸°í : Æ÷±â -- ÄùÅÛ Àκ¥Å丮¿¡¼­ »èÁ¦ function quest_drop_3615() --ÄùÅÛ Ä«¿îÆ® ±¸Çϱâ local item_slt3615_qitem_count = find_item ( 1000426 ) if item_slt3615_qitem_count >= 1 then for i = 0, 10 do -- ÄùÅÛ ³²Àº ¾ÆÀÌÅÛ ¾ø¾Ö±â delete_item( get_item_handle( 1000426 ), item_slt3615_qitem_count ) end end end -- ºñ¹Ð±âÁöÀΰ¡? : Æ÷±â -- ÄùÅÛ Àκ¥Å丮¿¡¼­ »èÁ¦ function quest_drop_3616() --ÄùÅÛ Ä«¿îÆ® ±¸Çϱâ local item_slt3616_qitem_count = find_item ( 1000427 ) if item_slt3616_qitem_count >= 1 then for i = 0, 10 do -- ÄùÅÛ ³²Àº ¾ÆÀÌÅÛ ¾ø¾Ö±â delete_item( get_item_handle( 1000427 ), item_slt3616_qitem_count ) end end end -- »ç¸·ÀÇ ¼ö´ÙÀïÀÌ : Æ÷±â -- ÄùÅÛ Àκ¥Å丮¿¡¼­ »èÁ¦ function quest_drop_3619() --ÄùÅÛ Ä«¿îÆ® ±¸Çϱâ local item_slt3619_qitem_count = find_item ( 1000428 ) if item_slt3619_qitem_count >= 1 then for i = 0, 10 do -- ÄùÅÛ ³²Àº ¾ÆÀÌÅÛ ¾ø¾Ö±â delete_item( get_item_handle( 1000428 ), item_slt3619_qitem_count ) end end end -- ¹«³ÊÁø ¹Ì±ÃŽ»ç : Æ÷±â -- ÄùÅÛ Àκ¥Å丮¿¡¼­ »èÁ¦ function quest_drop_3621() --ÄùÅÛ Ä«¿îÆ® ±¸Çϱâ local item_slt3621_qitem_count = find_item ( 1000429 ) if item_slt3621_qitem_count >= 1 then for i = 0, 10 do -- ÄùÅÛ ³²Àº ¾ÆÀÌÅÛ ¾ø¾Ö±â delete_item( get_item_handle( 1000429 ), item_slt3621_qitem_count ) end end end -- ¹°Ç°»óÀÚ È¸¼ö : Æ÷±â -- ÄùÅÛ Àκ¥Å丮¿¡¼­ »èÁ¦ function quest_drop_3623() --ÄùÅÛ Ä«¿îÆ® ±¸Çϱâ local item_slt3623_qitem_count = find_item ( 1000430 ) if item_slt3623_qitem_count >= 1 then for i = 0, 10 do -- ÄùÅÛ ³²Àº ¾ÆÀÌÅÛ ¾ø¾Ö±â delete_item( get_item_handle( 1000430 ), item_slt3623_qitem_count ) end end end -- ¾îµÒÀÇÈû°ú ½£ÀÇ ÁÖÀÎ : Æ÷±â -- ÄùÅÛ Àκ¥Å丮¿¡¼­ »èÁ¦ function quest_drop_3629() --ÄùÅÛ Ä«¿îÆ® ±¸Çϱâ local item_slt3629_qitem_count = find_item ( 1000431 ) if item_slt3629_qitem_count >= 1 then for i = 0, 10 do -- ÄùÅÛ ³²Àº ¾ÆÀÌÅÛ ¾ø¾Ö±â delete_item( get_item_handle( 1000431 ), item_slt3629_qitem_count ) end end end -- ¼öÁ¤È¸¼ö : Æ÷±â -- ÄùÅÛ Àκ¥Å丮¿¡¼­ »èÁ¦ function quest_drop_3630() --ÄùÅÛ Ä«¿îÆ® ±¸Çϱâ local item_slt3630_qitem_count = find_item ( 1000433 ) if item_slt3630_qitem_count >= 1 then for i = 0, 10 do -- ÄùÅÛ ³²Àº ¾ÆÀÌÅÛ ¾ø¾Ö±â delete_item( get_item_handle( 1000433 ), item_slt3630_qitem_count ) end end end -- ¼öÁ¤Çù°îÀÇ Á¶»ç : Æ÷±â -- ÄùÅÛ Àκ¥Å丮¿¡¼­ »èÁ¦ function quest_drop_3631() --ÄùÅÛ Ä«¿îÆ® ±¸Çϱâ local item_slt3631_qitem_count = find_item ( 1000432 ) if item_slt3631_qitem_count >= 1 then for i = 0, 10 do -- ÄùÅÛ ³²Àº ¾ÆÀÌÅÛ ¾ø¾Ö±â delete_item( get_item_handle( 1000432 ), item_slt3631_qitem_count ) end end end ----------------------------------------------------------------------------- --ÀÏÄù·Î APÁö±Þ - ½½·¡ÅÍ20//¹Ì³ëŸ¿ì¸£½º:30//¹ÙÆ÷¸ÞÆ®:40//¿îµð³×:50//ÇÈ :100ap Áö±Þ --1ÀÏ ÃÑ 240ap ȹµæ °¡´É -- ½½·¡ÅÍ ÀÏÄù¿Ï·á½Ã °ü·Ã Äù½ºÆ® Ç÷¡±× »èÁ¦ function quest_end_3618() --ÇØ´ç ¿¬Äù ÃʱâÈ­ local fbossap = get_value( 'ap' ) local questapbonus_a = 100 if gv( "premium" ) == 1 then questapbonus_a = 200 end local fbossap = fbossap + questapbonus_a set_value( "ap", fbossap ) cprint(sconv("@90605481","#@questapbonus_a@#", tostring(questapbonus_a) ) ) reset_finished_quest( 3613 ) --reset_finished_quest( 3614 ) reset_finished_quest( 3615 ) --reset_finished_quest( 3616 ) reset_finished_quest( 3617 ) reset_finished_quest( 3618 ) end -- ¹Ì³ëŸ¿ì¸£½º ÀÏÄù¿Ï·á½Ã °ü·Ã Äù½ºÆ® Ç÷¡±× »èÁ¦ function quest_end_3621() --ÇØ´ç ¿¬Äù ÃʱâÈ­ ------------------------------- local fbossap = get_value( 'ap' ) local questapbonus_a = 100 if gv( "premium" ) == 1 then questapbonus_a = 200 end local fbossap = fbossap + questapbonus_a set_value( "ap", fbossap ) cprint(sconv("@90605481","#@questapbonus_a@#", tostring(questapbonus_a) ) ) reset_finished_quest( 3619 ) reset_finished_quest( 3620 ) reset_finished_quest( 3621 ) end -- ¹ÙÆ÷¸ÞÆ® ÀÏÄù¿Ï·á½Ã °ü·Ã Äù½ºÆ® Ç÷¡±× »èÁ¦ function quest_end_3627() --ÇØ´ç ¿¬Äù ÃʱâÈ­ ------------------------------- local fbossap = get_value( 'ap' ) local questapbonus_a = 100 if gv( "premium" ) == 1 then questapbonus_a = 200 end local fbossap = fbossap + questapbonus_a set_value( "ap", fbossap ) cprint(sconv("@90605481","#@questapbonus_a@#", tostring(questapbonus_a) ) ) reset_finished_quest( 3622 ) --reset_finished_quest( 3623 ) --reset_finished_quest( 3624 ) --reset_finished_quest( 3625 ) reset_finished_quest( 3626 ) reset_finished_quest( 3627 ) end -- ¿î´ÙÀÎ ÀÏÄù¿Ï·á½Ã °ü·Ã Äù½ºÆ® Ç÷¡±× »èÁ¦ function quest_end_3629() --ÇØ´ç ¿¬Äù ÃʱâÈ­ ------------------------------- local fbossap = get_value( 'ap' ) local questapbonus_a = 100 if gv( "premium" ) == 1 then questapbonus_a = 200 end local fbossap = fbossap + questapbonus_a set_value( "ap", fbossap ) cprint(sconv("@90605481","#@questapbonus_a@#", tostring(questapbonus_a) ) ) reset_finished_quest( 3628 ) reset_finished_quest( 3629 ) end -- ÇÈ ÀÏÄù¿Ï·á½Ã °ü·Ã Äù½ºÆ® Ç÷¡±× »èÁ¦ function quest_end_3632() --ÇØ´ç ¿¬Äù ÃʱâÈ­ ------------------------------- local fbossap = get_value( 'ap' ) local questapbonus_a = 100 if gv( "premium" ) == 1 then questapbonus_a = 200 end local fbossap = fbossap + questapbonus_a set_value( "ap", fbossap ) cprint(sconv("@90605481","#@questapbonus_a@#", tostring(questapbonus_a) ) ) --reset_finished_quest( 3630 ) --reset_finished_quest( 3631 ) reset_finished_quest( 3632 ) end --4´ëÀδø ÀÏÀÏÄù½ºÆ® ¼ö¶ô/¿Ï·á ½ºÅ©¸³Æ® function quest_start_3644() end function quest_end_3644() reset_finished_quest( 3640 ) reset_finished_quest( 3644 ) end function quest_start_3645() end function quest_end_3645() reset_finished_quest( 3641 ) reset_finished_quest( 3645 ) end function quest_start_3646() end function quest_end_3646() reset_finished_quest( 3642 ) reset_finished_quest( 3646 ) end function quest_start_3647() end function quest_end_3647() reset_finished_quest( 3643 ) reset_finished_quest( 3647 ) end --4´ë Àδø ¹Ýº¹ Äù½ºÆ® ¼ö¶ô/¿Ï·á ½ºÅ©¸³Æ® function quest_start_3648() end function quest_end_3648() reset_finished_quest( 3648 ) end --8.3 ½Å±Ô ÀÏÀÏÄù½ºÆ® ¼ö¶ô/¿Ï·á ½ºÅ©¸³Æ® function quest_end_3712() reset_finished_quest( 3712 ) end function quest_end_3713() reset_finished_quest( 3713 ) end function quest_end_3714() reset_finished_quest( 3714 ) end function quest_end_3715() reset_finished_quest( 3715 ) end function quest_end_3716() reset_finished_quest( 3716 ) end function quest_end_3717() reset_finished_quest( 3717 ) end function quest_end_3718() reset_finished_quest( 3718 ) end function quest_end_3719() reset_finished_quest( 3719 ) end function quest_end_3720() reset_finished_quest( 3720 ) end function quest_end_3721() reset_finished_quest( 3721 ) end function quest_end_3722() reset_finished_quest( 3722 ) end function quest_end_3723() reset_finished_quest( 3723 ) end function quest_end_3724() reset_finished_quest( 3724 ) end function quest_end_3725() reset_finished_quest( 3725 ) end function quest_end_3726() reset_finished_quest( 3726 ) end function quest_end_3727() reset_finished_quest( 3727 ) end function quest_end_3728() reset_finished_quest( 3728 ) end function quest_end_3729() reset_finished_quest( 3729 ) end function quest_end_3730() reset_finished_quest( 3730 ) end function quest_end_3731() reset_finished_quest( 3731 ) end function quest_end_3732() reset_finished_quest( 3732 ) end function quest_end_3733() reset_finished_quest( 3733 ) end function quest_end_3734() reset_finished_quest( 3734 ) end function quest_end_3735() reset_finished_quest( 3735 ) end function quest_end_3736() reset_finished_quest( 3736 ) end --9.1 ½Å±Ô ÀÏÀÏÄù½ºÆ® ¼ö¶ô/¿Ï·á ½ºÅ©¸³Æ® function quest_end_4000() reset_finished_quest( 4000 ) end function quest_end_4001() reset_finished_quest( 4001 ) end function quest_end_4002() reset_finished_quest( 4002 ) end function quest_end_4003() reset_finished_quest( 4003 ) end function quest_end_4004() reset_finished_quest( 4004 ) end function quest_end_4005() reset_finished_quest( 4005 ) end function quest_end_4006() reset_finished_quest( 4006 ) end function quest_end_4007() reset_finished_quest( 4007 ) end function quest_end_4008() reset_finished_quest( 4008 ) end -- ¼±¹ß´ë¿ø ¼ÒÀ¯ function NPC_circus_soyu() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title("@90606169") dlg_text( "@90606170" ) dlg_menu( "@90010002", " " ) dlg_show() end function NPC_circus_maximus() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title("@90606171") dlg_text( "@90606172" ) dlg_menu( "@90010002", " " ) dlg_show() end function NPC_circus_tesker() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title("@90606173") dlg_text( "@90606174" ) dlg_menu( "@90010002", " " ) dlg_show() end function NPC_circus_teo() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title("@90606175") dlg_text( "@90606176" ) dlg_menu( "@90010002", " " ) dlg_show() end function NPC_circus_glasse() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title("@90606177") dlg_text( "@90606178" ) dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== È£¶óÀÌÁð »ß¿¡·Î --============================================================ function NPC_pierrot_Horizon_init() cprint( "!È£¶óÀÌÁð »ß¿¡·Î °¡µ¿" ) set_npc_name( "@90610036" ) end function NPC_pierrot_Horizon_contact() local state_code = get_local_info() local level = get_value( "level" ) -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90610037" ) dlg_text( "@90610038" ) if state_code == 256 and level >= 80 then dlg_menu( "@90610039","Exchange_lucky_gift_1()" ) else dlg_menu( "@90610039","Exchange_lucky_gift_1()" ) end if state_code == 16 then dlg_menu( "@90010062", "open_market( 'Locked_Treasure_Chest' )" ) end -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end function Exchange_lucky_gift_1() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90610037" ) dlg_text( "@90610040" ) dlg_menu( "@90610041","Exchange_lucky_gift_2(1)" ) dlg_menu( "@90610042","Exchange_lucky_gift_2(2)" ) dlg_menu( "@90610043","Exchange_lucky_gift_2(3)" ) dlg_menu( "@90610044","Exchange_lucky_gift_2(4)" ) dlg_menu( "@90610045","Exchange_lucky_gift_2(5)" ) dlg_menu( "@90610046","Exchange_lucky_gift_2(6)" ) dlg_menu( "@90610047","Exchange_lucky_gift_2(7)" ) dlg_menu( "@90610048","Exchange_lucky_gift_2(8)" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end function Exchange_lucky_gift_2(gift) -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90610037" ) if gift == 1 then dlg_text( "@90610049" ) local item_count_3 = find_item ( 1000460 ) if item_count_3 >= 1 then dlg_menu( "@90610057","Exchange_lucky_gift_process(1)" ) end elseif gift == 2 then dlg_text( "@90610050" ) local item_count_5 = find_item ( 1000462 ) if item_count_5 >= 1 then dlg_menu( "@90610058","Exchange_lucky_gift_process(2)" ) end elseif gift == 3 then dlg_text( "@90610051" ) local item_count_11 = find_item ( 1000468 ) if item_count_11 >= 1 then dlg_menu( "@90610059","Exchange_lucky_gift_process(3)" ) end elseif gift == 4 then dlg_text( "@90610052" ) local item_count_8 = find_item ( 1000465 ) local item_count_15 = find_item ( 1000472 ) if item_count_8 >= 1 and item_count_15 >= 1 then dlg_menu( "@90610060","Exchange_lucky_gift_process(4)" ) end elseif gift == 5 then dlg_text( "@90610053" ) local item_count_2 = find_item ( 1000459 ) local item_count_6 = find_item ( 1000463 ) local item_count_13 = find_item ( 1000470 ) if item_count_2 >= 1 and item_count_6 >= 1 and item_count_13 >= 1 then dlg_menu( "@90610061","Exchange_lucky_gift_process(5)" ) end elseif gift == 6 then dlg_text( "@90610054" ) local item_count_9 = find_item ( 1000466 ) local item_count_12 = find_item ( 1000469 ) local item_count_18 = find_item ( 1000475 ) if item_count_9 >= 1 and item_count_12 >= 1 and item_count_18 >= 1 then dlg_menu( "@90610062","Exchange_lucky_gift_process(6)" ) end elseif gift == 7 then dlg_text( "@90610055" ) local item_count_4 = find_item ( 1000461 ) local item_count_16 = find_item ( 1000473 ) local item_count_19 = find_item ( 1000476 ) if item_count_4 >= 1 and item_count_16 >= 1 and item_count_19 >= 1 then dlg_menu( "@90610063","Exchange_lucky_gift_process(7)" ) end elseif gift == 8 then dlg_text( "@90610056" ) local item_count_1 = find_item ( 1000458 ) local item_count_7 = find_item ( 1000464 ) local item_count_10 = find_item ( 1000467 ) local item_count_14 = find_item ( 1000471 ) local item_count_17 = find_item ( 1000474 ) local item_count_20 = find_item ( 1000477 ) if item_count_1 >= 1 and item_count_7 >= 1 and item_count_10 >= 1 and item_count_14 >= 1 and item_count_17 >= 1 and item_count_20 >= 1 then dlg_menu( "@90610064","Exchange_lucky_gift_process(8)" ) end end -- µ¹¾Æ°¡±â dlg_menu( "@90010003", "Exchange_lucky_gift_1()" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end function Exchange_lucky_gift_process(gift) if gift == 1 then --Á¶°Ç È®ÀÎÇØ¼­ ¾ÆÀÌÅÛ ´Ù µé°í ÀÖÀ¸¸é ±³È¯ÇØÁÖ°í Exchange_lucky_gift_success()·Î º¸³»ÁÖ±â. ¼±Åø޴º ´Ù½Ã local item_count_3 = find_item ( 1000460 ) if item_count_3 >= 1 then insert_item( 2013203, 1 ) delete_item( get_item_handle( 1000460 ), 1 ) Exchange_lucky_gift_success() return end elseif gift == 2 then local item_count_5 = find_item ( 1000462 ) if item_count_5 >= 1 then insert_item( 2013202, 1 ) delete_item( get_item_handle( 1000462 ), 1 ) Exchange_lucky_gift_success() return end elseif gift == 3 then local item_count_11 = find_item ( 1000468 ) if item_count_11 >= 1 then insert_item( 2013201, 1 ) delete_item( get_item_handle( 1000468 ), 1 ) Exchange_lucky_gift_success() return end elseif gift == 4 then local item_count_8 = find_item ( 1000465 ) local item_count_15 = find_item ( 1000472 ) if item_count_8 >= 1 and item_count_15 >= 1 then insert_item( 2013204, 3 ) delete_item( get_item_handle( 1000465 ), 1 ) delete_item( get_item_handle( 1000472 ), 1 ) Exchange_lucky_gift_success() return end elseif gift == 5 then local item_count_2 = find_item ( 1000459 ) local item_count_6 = find_item ( 1000463 ) local item_count_13 = find_item ( 1000470 ) if item_count_2 >= 1 and item_count_6 >= 1 and item_count_13 >= 1 then insert_item( 1001017, 1 ) delete_item( get_item_handle( 1000459 ), 1 ) delete_item( get_item_handle( 1000463 ), 1 ) delete_item( get_item_handle( 1000470 ), 1 ) Exchange_lucky_gift_success() return end elseif gift == 6 then local item_count_9 = find_item ( 1000466 ) local item_count_12 = find_item ( 1000469 ) local item_count_18 = find_item ( 1000475 ) if item_count_9 >= 1 and item_count_12 >= 1 and item_count_18 >= 1 then insert_item( 1000482, 2 ) delete_item( get_item_handle( 1000466 ), 1 ) delete_item( get_item_handle( 1000469 ), 1 ) delete_item( get_item_handle( 1000475 ), 1 ) Exchange_lucky_gift_success() return end elseif gift == 7 then local item_count_4 = find_item ( 1000461 ) local item_count_16 = find_item ( 1000473 ) local item_count_19 = find_item ( 1000476 ) if item_count_4 >= 1 and item_count_16 >= 1 and item_count_19 >= 1 then insert_item( 1000483, 2 ) delete_item( get_item_handle( 1000461 ), 1 ) delete_item( get_item_handle( 1000473 ), 1 ) delete_item( get_item_handle( 1000476 ), 1 ) Exchange_lucky_gift_success() return end elseif gift == 8 then local item_count_1 = find_item ( 1000458 ) local item_count_7 = find_item ( 1000464 ) local item_count_10 = find_item ( 1000467 ) local item_count_14 = find_item ( 1000471 ) local item_count_17 = find_item ( 1000474 ) local item_count_20 = find_item ( 1000477 ) if item_count_1 >= 1 and item_count_7 >= 1 and item_count_10 >= 1 and item_count_14 >= 1 and item_count_17 >= 1 and item_count_20 >= 1 then insert_item( 1000457, 1 ) delete_item( get_item_handle( 1000458 ), 1 ) delete_item( get_item_handle( 1000464 ), 1 ) delete_item( get_item_handle( 1000467 ), 1 ) delete_item( get_item_handle( 1000471 ), 1 ) delete_item( get_item_handle( 1000474 ), 1 ) delete_item( get_item_handle( 1000477 ), 1 ) Exchange_lucky_gift_success() return end end -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90610037" ) -- Á¶°Ç ¸Â´Â°Å ¾øÀ¸¸é Á¾ÀÌ µé°í ¿À¶ó°í ÇÏ°í ´Ý±â ¸Þ´º Ãâ·Â dlg_text( "@90610066" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end function Exchange_lucky_gift_success() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90610037" ) dlg_text( "@90610065" ) dlg_menu( "@90610041","Exchange_lucky_gift_2(1)" ) dlg_menu( "@90610042","Exchange_lucky_gift_2(2)" ) dlg_menu( "@90610043","Exchange_lucky_gift_2(3)" ) dlg_menu( "@90610044","Exchange_lucky_gift_2(4)" ) dlg_menu( "@90610045","Exchange_lucky_gift_2(5)" ) dlg_menu( "@90610046","Exchange_lucky_gift_2(6)" ) dlg_menu( "@90610047","Exchange_lucky_gift_2(7)" ) dlg_menu( "@90610048","Exchange_lucky_gift_2(8)" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== À¯Àûµµ½Ã ÇíÅ丣 --============================================================ function NPC_Hector_RuinCity_init() cprint( "!¹«»ç ÇíÅ丣 °¡µ¿" ) set_npc_name( "@90610120" ) end function NPC_Hector_RuinCity_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90610121" ) dlg_text( "@90610122" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== À¯Àûµµ½Ã ¸¶³àÀÇ ¾ÆÀÌ »þºñ --============================================================ function NPC_Xabi_RuinCity_init() cprint( "!¸¶³àÀÇ ¾ÆÀÌ »þºñ °¡µ¿" ) set_npc_name( "@90610123" ) end function NPC_Xabi_RuinCity_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90610124" ) dlg_text( "@90610125" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end --============================================================ --=============== »çÀ̶ó±× ÆóÇã ¼öÈ£±º NPC --============================================================ function NPC_Guard_Sirag_init() cprint( "!¼öÈ£±º NPC °¡µ¿" ) set_npc_name( "@90610126" ) end function NPC_Guard_Sirag_contact() -- ´ÙÀ̾ó·Î±× Ãâ·Â dlg_title( "@90610127" ) dlg_text( "@90610128" ) -- ´ëÈ­Á¾·á dlg_menu( "@90010002", " " ) dlg_show() end -- °ø¿ë Äù½ºÆ® Á¾·áÈÄ ¸®¼Â Å×½ºÆ® function common_quest_end(questID) reset_finished_quest( questID ) end --============================================================ --=============== 9.4 NPC --============================================================ -- Matrose Yarn (the warping to the ship one) function NPC_Guide_aboard_yarn_contact() dlg_title( "@90610255" ) local left_min = get_minute() % 30 if left_min <= 5 then dlg_text("@1174") -- The vessel sets sail shortly else dlg_text( sconv("@90610256", "#@min@#", 30 - left_min) ) -- Welcome!
The vessel sets sail in #@min@# minutes.
Do you want to embark? end dlg_menu( "@90610257", "shepard_boarding()" ) -- Embark dlg_menu( "TP DONJON", "warp( 174816 + math.random(0,10), 151777 + math.random(0,10) )" ) -- TP ile des dieux dlg_end() end function shepard_boarding() if find_item( 2016091 ) >= 1 then -- Shepard Boarding Pass message( "@90610259" ) -- Have a nice trip! warp(155347, 149512) else dlg_title( "@90610255" ) -- Guide Yarn dlg_text( "@90610258" ) -- You need a Shepard Boarding Pass dlg_end() end end -- À¯Àû Ž»ç´ë »ø¸®, ¹Ð¸® function NPC_Expedition_Sally_Milli_contact() --[[ if get_value( "x" ) >= 155211 and get_value( "x" ) <= 155483 and get_value( "y" ) >= 149451 and get_value( "y" ) <= 149574 then ]] local npc_id = get_npc_id() -- ´ÙÀ̾ó·Î±× Ãâ·Â if npc_id == 15040 then dlg_title( "@90610260" ) -- »ø¸® dlg_text( "@90610262" ) dlg_menu( "@90610263", "Luciad_protection_buff()" ) -- »ø¸® : ·ç½Ã¾Æµå º¸È£ elseif npc_id == 15042 then dlg_title( "@90610261" ) -- ¹Ð¸® dlg_text( "@90610262" ) dlg_menu( "@90610264", "Luciad_blessing_buff()" ) -- ¹Ð¸® : ·ç½Ã¾Æµå °¡È£ end dlg_menu( "@90010002", " " ) -- ´ëÈ­Á¾·á dlg_show() --[[ end ]] end function Luciad_protection_buff() dlg_title( "@90610260" ) -- À¯Àû Ž»ç´ë »ø¸® if find_item( 2016092 ) >= 1 then dlg_text( "@90610275" ) add_state(1067, 1,330000) -- 55ºÐ Äù½ºÆ® Ç÷¡±× üũ delete_item( get_item_handle( 2016092 ), 1 ) else dlg_text( "@90610274" ) -- ½ÅµéÀÇ ÈçÀû ÇÊ¿ä end dlg_menu( "@90010002", " " ) -- ´ëÈ­Á¾·á dlg_show() end function Luciad_blessing_buff() dlg_title( "@90610261" ) -- À¯Àû Ž»ç´ë ¹Ð¸® if find_item( 2016092 ) >= 1 then dlg_text( "@90610275" ) add_state(1068, 1,330000) -- 55ºÐ Äù½ºÆ® Ç÷¡±× üũ delete_item( get_item_handle( 2016092 ), 1 ) else dlg_text( "@90610274" ) -- ½ÅµéÀÇ ÈçÀû ÇÊ¿ä end dlg_menu( "@90010002", " " ) -- ´ëÈ­Á¾·á dlg_show() end -- ¼±Àå ¸ÅŬ¸® ¸¶À» function NPC_shepard_captain_Town_contact() dlg_title( "@90610265" ) if get_minute() <= 10 then dlg_text("@1175") -- °ð ¹è°¡ ÃâÇ×ÇÕ´Ï´Ù. else dlg_text( sconv( "@90610266" , "#@min@#", tostring(60-get_minute()) )) -- ÃâÇ× ~ºÐ ³²¾Ò½À´Ï´Ù. end dlg_end() end -- ¼±Àå ¸ÅŬ¸® ¼¶ function NPC_shepard_captain_Island_contact() dlg_title( "@90610265" ) dlg_text( "@90610267") -- ¸¹Àº ¼º°ú... dlg_menu( "@90010002", " " ) -- ´ëÈ­Á¾·á dlg_show() end -- ÇÏ±Þ ¼±¿ø function NPC_Junior_crew_contact() dlg_title( "@90610268" ) dlg_text( "@90610269") dlg_menu( "@90010002", " " ) -- ´ëÈ­Á¾·á dlg_show() end -- »ó±Þ ¼±¿ø function NPC_Senior_crew_contact() dlg_title( "@90610270" ) dlg_text( "@90610271") dlg_menu( "@90010002", " " ) -- ´ëÈ­Á¾·á dlg_show() end -- µî´ëÁö±â ³ëÆÃ°Ö function NPC_lighthouse_keeper_contact() dlg_title( "@90610272" ) dlg_text( "@90610273") dlg_menu( "@90010002", " " ) -- ´ëÈ­Á¾·á dlg_show() end -- ·ç½Ã¾Æµå ÇÐȸ ÆÄ°ß°ü ·ç½º function NPC_dispatched_Ruth_contact() local state_code = get_local_info() dlg_title( "@90610280" ) dlg_text( "@90610281") if state_code == 4 or state_code == 8 or state_code == 128 or state_code == 16384 or state_code == 32768 or state_code == 65536 then dlg_menu( "@90610488", "NPC_Event_2017_dispatched_Ruth_trade()" ) -- Trade 20 Sign of Forgotten Gods end dlg_menu( "@90010002", " " ) -- ´ëÈ­Á¾·á dlg_show() end function dlg_menu_exchange ( item , dlg ) local cnt1 = find_item( item ) -- Ãູ¹ÞÀº º¯È­ÀÇÈû (°Å·¡ºÒ°¡) if cnt1 > 0 then --dlg_menu( "<#AA99AA>|@" .. (10000000 + item) .. "| ( º¸À¯:" .. cnt1 .. " )", dlg ) dlg_menu( "@90610870\v#@item1@#\v@"..(10000000+item).."\v#@number1@#\v"..cnt1, dlg ) end end ------------------------------------------------------ function NPC_dailyquest_9_2_exchang() -- 9.4 ÁÖÈ­ ±³È¯¿ø ----------------------------------------------------- dlg_title( "@690000128" ) dlg_text( "@90610872" ) -- ¹«¾ùÀ» ¿øÇϽóª¿ä? dlg_menu( "@90610871", "Coin_Exchange()" ) -- ÁÖÈ­·Î ¾ÆÀÌÅÛ ±³È¯ dlg_menu( "@90610309", "NPC_9_4_OpenBox()" ) -- ½ºÅ³ Ä«µå ±³È¯ local state_code = get_local_info() --if state_code == 1 then dlg_menu( "@90610840", "NPC_9_4_Cube(0,0)" ) -- 7·©Å© Å¥ºê Á¦ÀÛ/±³È¯ --end if state_code == 1 or state_code == 256 or state_code == 8192 then dlg_menu_exchange( 705014, "NPC_9_5_Alteration(0,0)") dlg_menu_exchange( 705009, "NPC_9_5_Alteration(1,0)") end dlg_menu( "@90010003", "NPC_dailyquest_9_2_exchang()" ) --µ¹¾Æ°¡±â dlg_menu( "@90010002", " " ) --´ëÈ­ Á¾·á dlg_show() end function Coin_Exchange() dlg_title( "@690000128" ) dlg_text( "@90610082\v#@number@#\v"..find_item(1000535)) -- ÁÖÈ­¸¦ ´Ù¾çÇÑ ¾ÆÀÌÅÛÀ¸·Î ±³È¯ÇØ µå¸³´Ï´Ù. dlg_menu( "@90610284", "NPC_9_4_Coin_exchange_item(2016098,50)" ) -- ²Ù¹Ì±â °­È­ ½ºÅ©·Ñ : ·¹¾î dlg_menu( "@90610244", "NPC_9_4_Coin_exchange_item(3800270,30)" ) -- º£ÀÌÁ÷: ·Î¸¶°ËÅõ»ç ²Ù¹Ì±â ·£´ý»óÀÚ dlg_menu( "@90610245", "NPC_9_4_Coin_exchange_item(3800273,30)" ) -- º£ÀÌÁ÷: ´ÙÅ©¸ÞÀÌÁö ²Ù¹Ì±â ·£´ý»óÀÚ dlg_menu( "@90610246", "NPC_9_4_Coin_exchange_item(3800276,30)" ) -- º£ÀÌÁ÷: Àεð¾ð ²Ù¹Ì±â ·£´ý»óÀÚ dlg_menu( "@90610247", "NPC_9_4_Coin_exchange_item(1000484,20)" ) -- ¼ýÀÚ »óÀÚ dlg_menu( "@90610248", "NPC_9_4_Coin_exchange_item(2016090,10)" ) -- ¸ðµÎÀÇ Ãູ »óÀÚ dlg_menu( "@90610249", "NPC_9_4_Coin_exchange_item(2013705,10)" ) -- ÀÌ»óÇÑ Ä«µå »óÀÚ dlg_menu( "@90610250", "NPC_9_4_Coin_exchange_item(2013011,5)" ) -- °ø°ÝÀÇ ·ç³ªÄ¨ 1½Ã°£ dlg_menu( "@90010003", "NPC_dailyquest_9_2_exchang()" ) --µ¹¾Æ°¡±â dlg_menu( "@90010002", " " ) --´ëÈ­ Á¾·á dlg_show() end -- 700112 107700112 7·©Å© Å¥ºê-½ºÆ®¶óÀÌÅ© -- 700212 107700212 7·©Å© Å¥ºê-µðÆæ½º -- 700657 107700657 7·©Å© Ãູ¹ÞÀº Ä«º¡Å¬ÀÇ °­È­ ÁÖ»çÀ§ - ½ºÆ®¶óÀÌÅ© -- 700757 107700757 7·©Å© Ãູ¹ÞÀº Ä«º¡Å¬ÀÇ °­È­ ÁÖ»çÀ§ - µðÆæ½º -- 701001 10701001 Å¥ºê ½ºÆ®¶óÀÌÅ© Á¶°¢ -- 702001 10702001 Å¥ºê µðÆæ½º Á¶°¢ -- 701003 10701003 Ãູ¹ÞÀº Ä«º¡Å¬ÀÇ °­È­ ÁÖ»çÀ§ ½ºÆ®¶óÀÌÅ© Á¶°¢ -- 702003 107702001 Ãູ¹ÞÀº Ä«º¡Å¬ÀÇ °­È­ ÁÖ»çÀ§ µðÆæ½º Á¶°¢ function NPC_9_5_Alteration(type,sel) local psrc = { 705014, 705009 } local pitem = { 705031,705032,705033,705034,705035, 705036,705037,705038,705039,705040, 705041,705042,705043,705044,705045, 705016,705017,705018,705019,705020, 705021,705022,705023,705024,705025, 705026,705027,705028,705029,705030 } local item_src = psrc[type+1] dlg_title( "@690000128" ) if (sel==0) then dlg_text( "@90610865" ) -- ¾î¶² ¾ÆÀÌÅÛÀ¸·Î ±³È¯ÇϰڽÀ´Ï±î? for i = 1, 15 do dlg_menu( "@" .. 10000000 + pitem[type*15+i] , "NPC_9_5_Alteration(".. type .. "," .. i ..")" ) --µ¹¾Æ°¡±â end elseif sel >=1 and sel <=15 then dlg_text( "@90605296" ) -- ±³È¯ÀÌ ¼º°øÀûÀ¸·Î ÁøÇàµÇ¾ú½À´Ï´Ù. local item_idx = pitem[type*15+sel] delete_item( get_item_handle(item_src),1 ) insert_item(item_idx,1) message( "<#00ffff>|" .. sconv( "@253", "#@item_name@#", "@"..tostring(get_item_name_id( item_idx ))) ) end dlg_menu( "@90010003", "NPC_dailyquest_9_2_exchang()" ) --µ¹¾Æ°¡±â dlg_menu( "@90010002", " " ) --´ëÈ­ Á¾·á dlg_show() end function NPC_9_4_Cube(sel,cnt) dlg_title( "@690000128" ) local pcube = {700112,700212,700657,700757} local ppart = {701001,702001,701003,702003} local piron = {28,14,112,56} if sel == 0 then dlg_text( "@90610841" ) -- ¾î¶² ¾ÆÀÌÅÛÀ» ¸¸µå½Ã°Ú½À´Ï±î? dlg_menu( "@10" .. pcube[1],"NPC_9_4_Cube(1,0)" ) dlg_menu( "@10" .. pcube[2],"NPC_9_4_Cube(2,0)" ) dlg_menu( "@10" .. pcube[3],"NPC_9_4_Cube(3,0)" ) dlg_menu( "@10" .. pcube[4],"NPC_9_4_Cube(4,0)" ) dlg_menu( "@90610842","NPC_9_4_Cube(5,0)" ) -- ½ºÆ®¶óÀÌÅ© Å¥ºê 10°³¸¦ Ãູ¹ÞÀº Ä«º¡Å¬ Å¥ºê·Î dlg_menu( "@90610843","NPC_9_4_Cube(6,0)" ) -- µðÆæ½ºÅ¥ºê 10°³¸¦ Ãູ¹ÞÀº Ä«º¡Å¬ Å¥ºê·Î dlg_menu( "@90010003", "NPC_dailyquest_9_2_exchang()" ) --µ¹¾Æ°¡±â dlg_menu( "@90010002", " " ) -- ´ëÈ­Á¾·á dlg_show() return elseif sel == 5 or sel == 6 then local ncube = pcube[sel-4] -- 1,2 local nout = pcube[sel-2] -- 3,4 local cnt_cube = find_item( ncube) if cnt == 0 then cnt = math.floor(cnt_cube / 10) dlg_text("@90610867\v#@item1@#\v@".. 10000000+ncube.."\v#@number1@#\v"..cnt_cube.."\v#@item2@#\v@".. 10000000+nout.."\v#@number2@#\v"..cnt) if cnt >= 100 then dlg_menu("@90610294\v#@number@#\v100", "NPC_9_4_Cube("..sel..",100)" ) dlg_menu("@90610294\v#@number@#\v10", "NPC_9_4_Cube("..sel..",10)" ) elseif cnt >10 then dlg_menu( "@90610294\v#@number@#\v"..cnt,"NPC_9_4_Cube("..sel..",".. cnt ..")" ) dlg_menu("@90610294\v#@number@#\v10", "NPC_9_4_Cube("..sel..",10)" ) elseif cnt >0 then dlg_menu( "@90610294\v#@number@#\v"..cnt,"NPC_9_4_Cube("..sel..",".. cnt ..")" ) end dlg_menu( "@90010003", "NPC_dailyquest_9_2_exchang()" ) --µ¹¾Æ°¡±â dlg_menu( "@90010002", " " ) -- ´ëÈ­Á¾·á dlg_show() else if cnt_cube < cnt*10 then dlg_text( "@90610297" ) -- Àç·á°¡ ºÎÁ·ÇÕ´Ï´Ù dlg_menu( "@90010003", "NPC_dailyquest_9_2_exchang()" ) --µ¹¾Æ°¡±â dlg_menu( "@90010002", " " ) -- ´ëÈ­Á¾·á dlg_show() return end delete_item( get_item_handle( ncube ), cnt * 10 ) insert_item( nout, cnt) dlg_text( "@90610866" ) -- ±³È¯ÇÏ¿´½À´Ï´Ù. dlg_menu( "@90010003", "NPC_dailyquest_9_2_exchang()" ) --µ¹¾Æ°¡±â dlg_menu( "@90010002", " " ) -- ´ëÈ­Á¾·á dlg_show() end return end local niron = find_item( 1100103 ) local ciron = math.floor(niron/piron[sel]) local npart = find_item(ppart[sel]) -- Å¥ºê ½ºÆ®¶óÀÌÅ© Á¶°¢ 7+14 local cpart = math.floor(npart/14) if cnt == 0 then cnt = cpart if cpart > ciron then cnt = ciron end cnt = math.floor(cnt) --dlg_text( "¿¬¸¶µÈ °­Ã¶: "..niron.."°³ º¸À¯ (/"..piron[sel].."),
Å¥ºê Á¶°¢: " .. npart .. "°³ º¸À¯ (/14),
|@10" .. pcube[sel] .. "|ÃÖ´ë " .. cnt .. "°³ Á¦ÀÛ °¡´ÉÇÕ´Ï´Ù." ) dlg_text("@90610868\v#@number1@#\v"..niron.."\v#@piron@#\v"..piron[sel].."\v#@number2@#\v"..npart.."\v#@item1@#\v@".. 10000000+pcube[sel].."\v#@number3@#\v"..cnt ) if cnt >= 100 then dlg_menu( "@90610844\v#@number@#\v100", "NPC_9_4_Cube("..sel..",100)" ) dlg_menu( "@90610844\v#@number@#\v10", "NPC_9_4_Cube("..sel..",10)" ) elseif cnt > 10 then dlg_menu( "@90610844\v#@number@#\v"..cnt,"NPC_9_4_Cube("..sel..",".. cnt ..")" ) dlg_menu( "@90610844\v#@number@#\v10", "NPC_9_4_Cube("..sel..",10)" ) elseif cnt > 0 then dlg_menu( "@90610844\v#@number@#\v"..cnt,"NPC_9_4_Cube("..sel..",".. cnt ..")" ) end dlg_menu( "@90010003", "NPC_dailyquest_9_2_exchang()" ) --µ¹¾Æ°¡±â dlg_menu( "@90010002", " " ) -- ´ëÈ­Á¾·á dlg_show() elseif cnt > 0 and cnt <= 100 then if ciron < cnt or cpart < cnt then dlg_text( "@90610297" ) -- Àç·á°¡ ºÎÁ·ÇÕ´Ï´Ù dlg_menu( "@90010002", " " ) -- ´ëÈ­Á¾·á dlg_show() return end delete_item( get_item_handle( ppart[sel] ), cnt*14 ) delete_item( get_item_handle( 1100103 ), cnt*piron[sel] ) insert_item( pcube[sel], cnt) --dlg_text( "@10" .. pcube[sel] .. "|" .. cnt .. "|°³ Á¦ÀÛ ÇÏ¿´½À´Ï´Ù." ) dlg_text( "@90610869\v#@item1@#\v@".. 10000000+pcube[sel].."\v#@number1@#\v" .. cnt ) dlg_menu( "@90010003", "NPC_dailyquest_9_2_exchang()" ) --µ¹¾Æ°¡±â dlg_menu( "@90010002", " " ) -- ´ëÈ­Á¾·á dlg_show() end end function NPC_9_4_OpenBox() dlg_title( "@690000128" ) dlg_text( "@90610319" ) -- ¾î¶² ½ºÅ³Ä«µå »óÀÚ¸¦... dlg_menu( "@11100405", "NPC_9_4_OpenBox_go(1)" ) -- ±âº» Á÷¾÷»óÀÚ dlg_menu( "@11100406", "NPC_9_4_OpenBox_go(2)" ) -- ±âº» 1Â÷ Á÷¾÷»óÀÚ dlg_menu( "@11100407", "NPC_9_4_OpenBox_go(3)" ) -- ±âº» 2Â÷ Á÷¾÷»óÀÚ dlg_menu( "@11100408", "NPC_9_4_OpenBox_go(4)" ) -- ±âº» ¸¶½ºÅÍ »óÀÚ dlg_menu( "@90010003", "NPC_dailyquest_9_2_exchang()" ) --µ¹¾Æ°¡±â dlg_menu( "@90010002", " " ) -- ´ëÈ­Á¾·á dlg_show() end function NPC_9_4_OpenBox_go(num) dlg_title( "@690000128" ) local item_id = {1100405, 1100406, 1100407, 1100408} local drop_group = {-3000406, -3000407, -3000408, -3000409} local count = find_item( item_id[num] ) if count == 0 then dlg_text( "@90610321" ) -- »óÀÚ ºÎÁ· elseif count > 1 then dlg_text( "@90610320" ) -- È®ÀÎÇØ¶ó if count > 100 then count = 100 end delete_item (get_item_handle(item_id[num]), count) for i=1,count do local item = pick_item_in_drop_group( drop_group[num] ) insert_item( item[1], item[2] ) end end dlg_menu( "@90010003", "NPC_9_4_OpenBox()" ) --µ¹¾Æ°¡±â dlg_menu( "@90010002", " " ) -- ´ëÈ­Á¾·á dlg_show() end --ÁÖÈ­ °³¼ö º° ¾ÆÀÌÅÛ ±³È¯ function NPC_9_4_Coin_exchange_item( id, count ) -- ±³È¯¸Þ´º dlg_title( "@690000128" ) if id == 1 then -- µ¥¹Ù to ¸¶µå¸®°¥ ÁÖÈ­ local count = math.floor( find_item( 1000485 ) / 3 ) local del_count = math.floor( find_item( 1000485 ) / 3 ) * 3 if find_item( 1000485 ) >= 3 then -- ÀÏÄù µ¥¹ÙÀÇ ÁÖÈ­ dlg_text( "@90610254" ) -- ´ë»ç insert_item ( 1000535, count ) -- ¸¶µå¸®°¥ ÁÖÈ­ ³Ö¾îÁÜ delete_item( get_item_handle( 1000485 ), del_count ) -- ÁÖÈ­ »èÁ¦ else dlg_text( "@90610078" ) -- ÁÖÈ­°¡ ¾ø´Â °æ¿ì end else if find_item( 1000535 ) >= count then dlg_text( "@90606002" ) -- ´ë»ç insert_item ( id, 1 ) delete_item( get_item_handle( 1000535 ), count ) -- ÁÖÈ­ »èÁ¦ else dlg_text( "@90610078" ) -- ÁÖÈ­°¡ ¾ø´Â °æ¿ì end end dlg_menu( "@90010003", "NPC_dailyquest_9_2_exchang()" ) --óÀ½À¸·Î dlg_menu( "@90010002", " " ) --´ëÈ­ Á¾·á dlg_show() end function siege_start( ) end function siege_process(step) end