-- Lua ½ºÅ©¸³Æ® ¾Ïȣȭ function get_module_name() return "NPC_CreateGuild" end --====================================================================== -- ±æµå»ç¹«°ü µ¥¹Ù --====================================================================== function NPC_CreateGuild_Deva_init() cprint( "!µ¥¹Ù ±æµå»ç¹«°ü °¡µ¿" ) set_npc_name( "@90101200" ) end function ResetTimer() dlg_title("[TODO: CHANGE LATER]") dlg_text("[TODO: CHANGE LATER] Yes I can allow you to join another guild in less than 7 days.. For you know.. A small fee? Lets not take that as a bride, alright?") dlg_menu("[TODO: CHANGE LATER] [ Pay the 15m bribe ]", "ResetTimer_do()") dlg_menu("[TODO: CHANGE LATER] A bribe? Forget it!", "") dlg_show() end function ResetTimer_do() local rups = gv("gold") if rups < 15000000 then cprint("[TODO: CHANGE LATER] You do not have enough Ruppees for that.") return end sv("gold", rups-15000000) set_guild_block_time(0) cprint("[TODO: CHANGE LATER] Your guild block time has been reset to 0.") end function NPC_CreateGuild_Deva_contact() dlg_title("@90101201") dlg_text("@90101202") dlg_menu("@90010061", "create_guild_Deva()") dlg_menu("@90010152", "guild_alliance()") dlg_menu("Guild timer reset", "ResetTimer()") dlg_menu( "@90010002", "" ) dlg_show() end function create_guild_Deva() dlg_title("@90101201") -- ±æµå °á¼º ÇÊ¿äÁ¶°Ç üũ (·¹º§°ú °¡ÀÔµÈ ±æµå¿¡ ´ëÇÑ Ã¼Å© ¸Þ½ÃÁö) ·¹º§ÀÌ ¸ðÀÚ¶ö¶§ 0, °¡ÀÔµÈ ±æµå°¡ ÀÖÀ» ¶§ 1, °¡´ÉÇÒ ¶§ 2 local guild_create_condition, temp_text -- ·¹º§ 20 ¹Ì¸¸ÀÏ ¶§ if get_value( "level" ) < 20 then guild_create_condition = 0 -- °¡ÀÔµÈ ±æµå°¡ ÀÖÀ» ¶§ elseif get_value( "guild_id" ) > 0 then guild_create_condition = 1 -- ±× ¿Ü(·¹º§ 20ÀÌ»óÀ̰í, °¡ÀÔµÈ ±æµåµµ ¾øÀ» ¶§) else guild_create_condition = 2 end -- ·¹º§ÀÌ ºÎÁ·ÇÏ¸é ·¹º§ ºÎÁ·ÇÏ´Ù´Â ´ë»ç if guild_create_condition == 0 then dlg_text("@90101203") -- °¡ÀԵǾî ÀÖ´Â ±æµå°¡ ÀÖÀ¸¸é °¡ÀÔµÈ ±æµå°¡ ÀÖ´Ù´Â ´ë»ç elseif guild_create_condition == 1 then dlg_text("@90101204") -- ±× ¿Ü(·¹º§ 20ÀÌ»óÀ̰í, °¡ÀÔµÈ ±æµåµµ ¾øÀ» ¶§)ÀÇ °æ¿ì¿¡´Â ¼Ò¸ðµÇ´Â ºñ¿ë¿¡ ´ëÇÑ ¾È³» ´ë»ç else dlg_text( "@90101205" ) end -- ±æµå °á¼º °¡´ÉÇÏ¸é ±æµå °á¼º ¹öư Ãâ·Â if guild_create_condition == 2 then dlg_menu("@90010061", "show_guild_create()") end dlg_menu( "@90010002", "" ) dlg_show() end --====================================================================== -- ±æµå»ç¹«°ü ¾Æ¼ö¶ó --====================================================================== function NPC_CreateGuild_Asura_init() cprint( "!¾Æ¼ö¶ó ±æµå»ç¹«°ü °¡µ¿" ) set_npc_name( "@90201200" ) end function NPC_CreateGuild_Asura_contact() dlg_title("@90201201") dlg_text("@90201202") dlg_menu("@90010061", "create_guild_Asura()") dlg_menu("@90010152", "guild_alliance()") dlg_menu("Guild timer reset", "ResetTimer()") dlg_menu( "@90010002", "" ) dlg_show() end function create_guild_Asura() dlg_title("@90201201") -- ±æµå °á¼º ÇÊ¿äÁ¶°Ç üũ (·¹º§°ú °¡ÀÔµÈ ±æµå¿¡ ´ëÇÑ Ã¼Å© ¸Þ½ÃÁö) ·¹º§ÀÌ ¸ðÀÚ¶ö¶§ 0, °¡ÀÔµÈ ±æµå°¡ ÀÖÀ» ¶§ 1, °¡´ÉÇÒ ¶§ 2 local guild_create_condition, temp_text -- ·¹º§ 20 ¹Ì¸¸ÀÏ ¶§ if get_value( "level" ) < 20 then guild_create_condition = 0 -- °¡ÀÔµÈ ±æµå°¡ ÀÖÀ» ¶§ elseif get_value( "guild_id" ) > 0 then guild_create_condition = 1 -- ±× ¿Ü(·¹º§ 20ÀÌ»óÀ̰í, °¡ÀÔµÈ ±æµåµµ ¾øÀ» ¶§) else guild_create_condition = 2 end -- ·¹º§ÀÌ ºÎÁ·ÇÏ¸é ·¹º§ ºÎÁ·ÇÏ´Ù´Â ´ë»ç if guild_create_condition == 0 then dlg_text("@90201203") -- °¡ÀԵǾî ÀÖ´Â ±æµå°¡ ÀÖÀ¸¸é °¡ÀÔµÈ ±æµå°¡ ÀÖ´Ù´Â ´ë»ç elseif guild_create_condition == 1 then dlg_text("@90201204") -- ±× ¿Ü(·¹º§ 20ÀÌ»óÀ̰í, °¡ÀÔµÈ ±æµåµµ ¾øÀ» ¶§)ÀÇ °æ¿ì¿¡´Â ¼Ò¸ðµÇ´Â ºñ¿ë¿¡ ´ëÇÑ ¾È³» ´ë»ç else dlg_text( "@90201205" ) end -- ±æµå °á¼º °¡´ÉÇÏ¸é ±æµå °á¼º ¹öư Ãâ·Â if guild_create_condition == 2 then dlg_menu("@90010061", "show_guild_create()") end dlg_menu( "@90010002", "" ) dlg_show() end --====================================================================== -- ±æµå»ç¹«°ü °¡ÀÌ¾Æ --====================================================================== function NPC_CreateGuild_Gaia_init() cprint( "!°¡ÀÌ¾Æ ±æµå»ç¹«°ü °¡µ¿" ) set_npc_name( "@90401200" ) end function NPC_CreateGuild_Gaia_contact() dlg_title("@90401201") dlg_text("@90401202") dlg_menu("@90010061", "create_guild_Gaia()") dlg_menu("@90010152", "guild_alliance()") dlg_menu("Guild timer reset", "ResetTimer()") dlg_menu( "@90010002", "" ) dlg_show() end function create_guild_Gaia() dlg_title("@90401201") -- ±æµå °á¼º ÇÊ¿äÁ¶°Ç üũ (·¹º§°ú °¡ÀÔµÈ ±æµå¿¡ ´ëÇÑ Ã¼Å© ¸Þ½ÃÁö) ·¹º§ÀÌ ¸ðÀÚ¶ö¶§ 0, °¡ÀÔµÈ ±æµå°¡ ÀÖÀ» ¶§ 1, °¡´ÉÇÒ ¶§ 2 local guild_create_condition, temp_text -- ·¹º§ 20 ¹Ì¸¸ÀÏ ¶§ if get_value( "level" ) < 20 then guild_create_condition = 0 -- °¡ÀÔµÈ ±æµå°¡ ÀÖÀ» ¶§ elseif get_value( "guild_id" ) > 0 then guild_create_condition = 1 -- ±× ¿Ü(·¹º§ 20ÀÌ»óÀ̰í, °¡ÀÔµÈ ±æµåµµ ¾øÀ» ¶§) else guild_create_condition = 2 end -- ·¹º§ÀÌ ºÎÁ·ÇÏ¸é ·¹º§ ºÎÁ·ÇÏ´Ù´Â ´ë»ç if guild_create_condition == 0 then dlg_text("@90401203") -- °¡ÀԵǾî ÀÖ´Â ±æµå°¡ ÀÖÀ¸¸é °¡ÀÔµÈ ±æµå°¡ ÀÖ´Ù´Â ´ë»ç elseif guild_create_condition == 1 then dlg_text("@90401204") -- ±× ¿Ü(·¹º§ 20ÀÌ»óÀ̰í, °¡ÀÔµÈ ±æµåµµ ¾øÀ» ¶§)ÀÇ °æ¿ì¿¡´Â ¼Ò¸ðµÇ´Â ºñ¿ë¿¡ ´ëÇÑ ¾È³» ´ë»ç else dlg_text( "@90401205" ) end -- ±æµå °á¼º °¡´ÉÇÏ¸é ±æµå °á¼º ¹öư Ãâ·Â if guild_create_condition == 2 then dlg_menu("@90010061", "show_guild_create()") end dlg_menu( "@90010002", "" ) dlg_show() end --====================================================================== -- ±æµå»ç¹«°ü ·Ðµµ --====================================================================== -- ±æµå »ç¹«°ü ·¹»þ function NPC_CreateGuild_Rondoh_contact() -- Äù½ºÆ® »óÅ üũ get_quest_progress(ID) -- ¹Ýȯ°ª -1 : ¾Æ¹«°Íµµ ¾Æ´Ô / 0 : ¼ö¶ô°¡ / 1 : ¼öÇàÁß / 2 : Á¾·á°¡´É / 255 : À̹ÌÁ¾·á local quest_progress1 = get_quest_progress( 2000 ) -- Áê½Ã ã¾Æ°¡±â local quest_progress100 = get_quest_progress( 2008 ) -- ±¤½Åµµ ¾Ï»ìÀÚ: ·Ðµµ -- ¸ÞÀÎ Äù½ºÆ® Àå¸é 0 ¿Ï·á, Àå¸é 1 Á¶°Ç ÃæÁ·(·¹º§ 70ÀÌ»ó) --if quest_progress100 == 255 and get_value("level") > 70 then dlg_title("@90601201") dlg_text("@90601202") dlg_menu("@90010061", "create_guild_Rondoh()") dlg_menu("@90010152", "guild_alliance()") if get_value("level") < 50 then dlg_menu("@90999670", "mainquest_limitlevel50()") elseif quest_progress1 == 255 and get_value("level") < 70 then dlg_menu("@90999842", "mainquest_limitlevel70()") elseif quest_progress1 == 0 and get_value("level") >= 50 then dlg_menu("@90999670", "mainquest_findjuicy()") end dlg_menu( "@90010002", "" ) dlg_show() end -- ¸ÞÀÎ Äù½ºÆ® ¹Ì ½ÃÀÛ, ¹Ì ÃæÁ·(·¹º§ 50 ÀÌÇÏ) function mainquest_limitlevel50() -- Äù½ºÆ® »óÅ üũ get_quest_progress(ID) -- ¹Ýȯ°ª -1 : ¾Æ¹«°Íµµ ¾Æ´Ô / 0 : ¼ö¶ô°¡ / 1 : ¼öÇàÁß / 2 : Á¾·á°¡´É / 255 : À̹ÌÁ¾·á local quest_progress1 = get_quest_progress( 2000 ) -- ¸ÞÀÎ Äù½ºÆ® Àå¸é 0 ¿Ï·á, Àå¸é 1 Á¶°Ç ¹Ì ÃæÁ·(·¹º§ 50 ÀÌÇÏ) --if quest_progress1 == -1 and get_value("level") < 50 then dlg_title("@90101201") dlg_text("@90999866") cprint( "@90999867" ) -- <#6DD66D>Lv50ÀÌ»óÀ¸·Î ¼ºÀåÇÑ ÈÄ¿¡ ´Ù½Ã µµÀüÇϼ¼¿ä. --end dlg_menu( "@90010002", "" ) dlg_show() end -- ¸ÞÀÎ Äù½ºÆ® Àå¸é 0 ¿Ï·á, Àå¸é 1 Á¶°Ç ¹Ì ÃæÁ·(·¹º§ 70 ÀÌÇÏ) function mainquest_limitlevel70() dlg_title("@90601201") dlg_text("@90999872") cprint( "@90999873" ) -- <#6DD66D>Lv70ÀÌ»óÀ¸·Î ¼ºÀåÇÑ ÈÄ¿¡ ´Ù½Ã µµÀüÇϼ¼¿ä. dlg_menu( "@90010002", "" ) dlg_show() end -- ´ç½Åµµ '¿¹·¹¸ð¸®'¸¦ ã°í ÀÖ³ª¿ä? ¸ðµÎ ´Ù ºÎÁú¾ø´Â ÁþÀÌ¿¡¿ä. ±×³É Çê ¼Ò¹®À̶ø´Ï´Ù. function mainquest_findjuicy() dlg_title("@90101201") dlg_text("@90999671") dlg_menu("@90999672", "mainquest_findjuicy_1()") dlg_menu("@90999674", "mainquest_findjuicy_2()") dlg_menu( "@90010002", "" ) dlg_show() end -- ¶Ç´Ù½Ã ¹°¾îº»´Ù. function mainquest_findjuicy_1() dlg_title("@90101201") if get_value( "level" ) < 50 then dlg_text("@90999866") cprint( "@90999867" ) -- <#6DD66D>Lv50ÀÌ»óÀ¸·Î ¼ºÀåÇÑ ÈÄ¿¡ ´Ù½Ã µµÀüÇϼ¼¿ä. dlg_menu( "@90010002", "" ) dlg_show() else dlg_text("@90999675") dlg_menu("@90999673", "mainquest_findjuicy_1_1()") dlg_menu( "@90010002", "" ) dlg_show() end end function mainquest_findjuicy_2() dlg_title("@90101201") dlg_text("@90999677") dlg_menu( "@90010002", "" ) dlg_show() end function mainquest_findjuicy_1_1() dlg_title("@90101201") dlg_text("@90999676") dlg_menu("@90999678", "mainquest_findjuicy_1_1_1()") dlg_menu( "@90010002", "" ) dlg_show() end function mainquest_findjuicy_1_1_1() show_quest_info_without_npc( 2000 ) end function create_guild_Rondoh() dlg_title("@90601201") -- ±æµå °á¼º ÇÊ¿äÁ¶°Ç üũ (·¹º§°ú °¡ÀÔµÈ ±æµå¿¡ ´ëÇÑ Ã¼Å© ¸Þ½ÃÁö) ·¹º§ÀÌ ¸ðÀÚ¶ö¶§ 0, °¡ÀÔµÈ ±æµå°¡ ÀÖÀ» ¶§ 1, °¡´ÉÇÒ ¶§ 2 local guild_create_condition, temp_text -- ·¹º§ 20 ¹Ì¸¸ÀÏ ¶§ if get_value( "level" ) < 20 then guild_create_condition = 0 -- °¡ÀÔµÈ ±æµå°¡ ÀÖÀ» ¶§ elseif get_value( "guild_id" ) > 0 then guild_create_condition = 1 -- ±× ¿Ü(·¹º§ 20ÀÌ»óÀ̰í, °¡ÀÔµÈ ±æµåµµ ¾øÀ» ¶§) else guild_create_condition = 2 end -- ·¹º§ÀÌ ºÎÁ·ÇÏ¸é ·¹º§ ºÎÁ·ÇÏ´Ù´Â ´ë»ç if guild_create_condition == 0 then dlg_text("@90601203") -- °¡ÀԵǾî ÀÖ´Â ±æµå°¡ ÀÖÀ¸¸é °¡ÀÔµÈ ±æµå°¡ ÀÖ´Ù´Â ´ë»ç elseif guild_create_condition == 1 then dlg_text("@90601204") -- ±× ¿Ü(·¹º§ 20ÀÌ»óÀ̰í, °¡ÀÔµÈ ±æµåµµ ¾øÀ» ¶§)ÀÇ °æ¿ì¿¡´Â ¼Ò¸ðµÇ´Â ºñ¿ë¿¡ ´ëÇÑ ¾È³» ´ë»ç else dlg_text( "@90601205" ) end -- ±æµå °á¼º °¡´ÉÇÏ¸é ±æµå °á¼º ¹öư Ãâ·Â if guild_create_condition == 2 then dlg_menu("@90010061", "show_guild_create()") end dlg_menu( "@90010002", "" ) dlg_show() end --====================================================================== -- ±æµå»ç¹«°ü µµ½Ã À¯Àû --====================================================================== function NPC_CreateGuild_Ancient_relic_init() cprint( "!µµ½ÃÀ¯Àû ±æµå»ç¹«°ü °¡µ¿" ) set_npc_name( "@90703700" ) end function NPC_CreateGuild_Ancient_relic_contact() dlg_title("@90703701") dlg_text("@90703702") dlg_menu("@90010061", "create_guild_Ancient_relic()") dlg_menu("@90010152", "guild_alliance()") dlg_menu( "@90010002", "" ) dlg_show() end function create_guild_Ancient_relic() dlg_title("@90703701") -- ±æµå °á¼º ÇÊ¿äÁ¶°Ç üũ (·¹º§°ú °¡ÀÔµÈ ±æµå¿¡ ´ëÇÑ Ã¼Å© ¸Þ½ÃÁö) ·¹º§ÀÌ ¸ðÀÚ¶ö¶§ 0, °¡ÀÔµÈ ±æµå°¡ ÀÖÀ» ¶§ 1, °¡´ÉÇÒ ¶§ 2 local guild_create_condition, temp_text -- ·¹º§ 20 ¹Ì¸¸ÀÏ ¶§ if get_value( "level" ) < 20 then guild_create_condition = 0 -- °¡ÀÔµÈ ±æµå°¡ ÀÖÀ» ¶§ elseif get_value( "guild_id" ) > 0 then guild_create_condition = 1 -- ±× ¿Ü(·¹º§ 20ÀÌ»óÀ̰í, °¡ÀÔµÈ ±æµåµµ ¾øÀ» ¶§) else guild_create_condition = 2 end -- ·¹º§ÀÌ ºÎÁ·ÇÏ¸é ·¹º§ ºÎÁ·ÇÏ´Ù´Â ´ë»ç if guild_create_condition == 0 then dlg_text("@90703703") -- °¡ÀԵǾî ÀÖ´Â ±æµå°¡ ÀÖÀ¸¸é °¡ÀÔµÈ ±æµå°¡ ÀÖ´Ù´Â ´ë»ç elseif guild_create_condition == 1 then dlg_text("@90703704") -- ±× ¿Ü(·¹º§ 20ÀÌ»óÀ̰í, °¡ÀÔµÈ ±æµåµµ ¾øÀ» ¶§)ÀÇ °æ¿ì¿¡´Â ¼Ò¸ðµÇ´Â ºñ¿ë¿¡ ´ëÇÑ ¾È³» ´ë»ç else dlg_text( "@90703705" ) end -- ±æµå °á¼º °¡´ÉÇÏ¸é ±æµå °á¼º ¹öư Ãâ·Â if guild_create_condition == 2 then dlg_menu("@90010061", "show_guild_create()") end dlg_menu( "@90010002", "" ) dlg_show() end --====================================================================== -- ¸ðµç Á¾Á· °øÅëÇÔ¼ö function on_create_guild( guild_name ) local temp_text -- Àӽà º¯¼ö ¼±¾ð°ú µ¿½Ã¿¡ NPC ID °¡Á®¿À±â local npc_id = get_npc_id() -- <À̸§ Ãâ·Â> °¢ NPC¿¡ µû¶ó ÀûÇÕÇÑ -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_title("@90401201") -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_title("@90101201") -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_title("@90201201") -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_title("@90601201") -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ÅÙ¸¸) elseif npc_id == 7037 then dlg_title("@90703701") end -- <´ë»ç Ãâ·Â> °¢ NPC¿¡ µû¶ó ÀûÇÕÇÑ -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then temp_text =sconv("@90401207", "#@createguild_name@#",guild_name) dlg_text(temp_text) -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then temp_text =sconv("@90101207", "#@createguild_name@#",guild_name) dlg_text(temp_text) -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then temp_text =sconv("@90201207", "#@createguild_name@#",guild_name) dlg_text(temp_text) -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then temp_text =sconv("@90601207", "#@createguild_name@#",guild_name) dlg_text(temp_text) -- ·Ðµµ ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ÅÙ¸¸) elseif npc_id == 7037 then temp_text =sconv("@90703707", "#@createguild_name@#",guild_name) dlg_text(temp_text) end -- ±æµå¸í º¯°æ dlg_menu("@90010063", "show_guild_create()") -- È®ÀÎ dlg_menu("@90010016", "create_guild_main( '" .. guild_name .. "' )") -- ´ëÈ­ Á¾·á dlg_menu( "@90010002", "" ) dlg_show() end function create_guild_main( guild_name ) local guild_creation_state, temp_text, cost local gold = get_value( "gold" ) local check_guild_name = check_valid_guild_name( guild_name ) --static const GUILD_CREATE_SUCCESS = 0; // ¼º°ø --static const GUILD_CREATE_ALREADY_IN_ANOTHER_GUILD = 1; // ÀÌ¹Ì ´Ù¸¥ ±æµå °¡ÀÔÁß --static const GUILD_CREATE_INVALID_GUILD_NAME = 2; // ±æµå À̸§ À߸øµÊ --static const GUILD_CREATE_ALREADY_EXIST_NAME = 3; // ÀÌ¹Ì ÀÖ´Â ±æµå À̸§ --static const GUILD_CREATE_INVALID_ARGUMENT = 4; // À߸øµÈ Àμö(±æµå À̸§À» Áý¾î³ÖÁö ¾Ê¾Ò´Ù´ø°¡. µîµî) --static const GUILD_CREATE_GUILD_BLOCK_TIME_LIMIT = 5; // ±æµå, ¿¬ÇÕ Å»Åð ÈÄ 7ÀÏ ÀÌÀü¿¡ ±æµå °á¼º ½Ã -- Àӽà º¯¼ö ¼±¾ð°ú µ¿½Ã¿¡ NPC ID °¡Á®¿À±â local npc_id = get_npc_id() -- ±æµå °á¼º ºñ¿ëÀº 100000 RP cost = 100000 --ÇöÀç ¼ÒÁö ±Ý¾×ÀÌ ±æµå °á¼ººñ¿ëº¸´Ù ÀûÀ» °æ¿ì. if gold < cost then -- <À̸§ Ãâ·Â> °¢ NPC¿¡ µû¶ó ÀûÇÕÇÑ -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_title("@90401201") -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_title("@90101201") -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_title("@90201201") -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_title("@90601201") -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ÅÙ¸¸) elseif npc_id == 7037 then dlg_title("@90703701") end -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_text( "@90401206" ) -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_text( "@90101206" ) -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_text( "@90201206" ) -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_text( "@90601206" ) -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 7037 then dlg_text( "@90703706" ) end dlg_menu( "@90010002", "" ) --¼ÒÁö±ÝÀÌ ÃæºÐÇÏ¸é ±æµå °á¼º. -- ±æµå ¸¸µé±â else guild_creation_state = create_guild(guild_name) -- ±æµå°¡ Á¦´ë·Î ¸¸µé¾î Á³´Ù¸é ¼ÒÁö±ÝÀ» °¨¼Ò ½ÃŲ´Ù. if guild_creation_state == 0 then set_value( "gold", gold - cost ) update_gold_chaos() temp_text = sconv("@90019002", "#@cost@#", tostring(cost) ) message(temp_text) -- À߸øµÈ ±æµå¸íÀ» »ç¿ëÇÑ °æ¿ì elseif guild_creation_state == 2 or guild_creation_state == 4 then -- <À̸§ Ãâ·Â> °¢ NPC¿¡ µû¶ó ÀûÇÕÇÑ -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_title("@90401201") -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_title("@90101201") -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_title("@90201201") -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_title("@90601201") -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ÅÙ¸¸) elseif npc_id == 7037 then dlg_title("@90703701") end -- <´ë»ç Ãâ·Â> °¢ NPC¿¡ µû¶ó ÀûÇÕÇÑ -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_text( "@90401228" ) -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_text( "@90101212" ) -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_text( "@90201219" ) -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_text( "@90601218" ) -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 7037 then dlg_text( "@90703718" ) end dlg_menu("@90010063", "show_guild_create()") dlg_menu( "@90010002", "" ) -- Áߺ¹µÇ´Â ±æµå¸íÀ» »ç¿ëÇÑ °æ¿ì elseif guild_creation_state == 3 then -- <À̸§ Ãâ·Â> °¢ NPC¿¡ µû¶ó ÀûÇÕÇÑ -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_title("@90401201") -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_title("@90101201") -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_title("@90201201") -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_title("@90601201") -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 7037 then dlg_title("@90703701") end -- <´ë»ç Ãâ·Â> °¢ NPC¿¡ µû¶ó ÀûÇÕÇÑ -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_text( "@90401211" ) -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_text( "@90101211" ) -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_text( "@90201211" ) -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_text( "@90601211" ) -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 7037 then dlg_text( "@90703708" ) end dlg_menu("@90010063", "show_guild_create()") dlg_menu( "@90010002", "" ) -- ±æµå ¹× ¿¬ÇÕ Å»Åð ¹× ÇØ»ê ÈÄ 7ÀÏ ÀÌÀü¿¡ ±æµå¸¦ °á¼ºÇÒ °æ¿ì elseif guild_creation_state == 5 then -- <À̸§ Ãâ·Â> °¢ NPC¿¡ µû¶ó ÀûÇÕÇÑ -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_title("@90401201") -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_title("@90101201") -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_title("@90201201") -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_title("@90601201") -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 7037 then dlg_title("@90703701") end -- <´ë»ç Ãâ·Â> °¢ NPC¿¡ µû¶ó ÀûÇÕÇÑ -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_text( "@90101230" ) -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_text( "@90101230" ) -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_text( "@90101230" ) -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_text( "@90101230" ) -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 7037 then dlg_text( "@90101230" ) end dlg_menu( "@90010002", "" ) end end dlg_show() end ALLIANCE_CREATE_SUCCESS = 0 -- ¼º°ø ALLIANCE_CREATE_ALREADY_IN_ANOTHER_ALLIANCE = 1 -- ÀÌ¹Ì ´Ù¸¥ ¿¬ÇÕ ¼Ò¼Ó ALLIANCE_CREATE_INVALID_ALLIANCE_NAME = 2 -- À߸øµÈ ¿¬ÇÕ À̸§ ALLIANCE_CREATE_ALREADY_EXIST_NAME = 3 -- ÀÌ¹Ì Á¸ÀçÇÏ´Â ¿¬ÇÕ À̸§ ALLIANCE_CREATE_INVALID_ARGUMENT = 4 -- À߸øµÈ ÀÎÀÚ ALLIANCE_CREATE_NOT_GUILD_LEADER = 5 -- ±æµåÀåÀÌ ¾Æ´Ô ALLIANCE_CREATE_HAS_RAID_STARTED = 6 -- ·¹ÀÌµå ½Åû ÇßÀ½ ALLIANCE_CREATE_ALLIANCE_BLOCK_TIME_LIMIT = 7 -- ¿¬ÇÕ ÇØ»ê, Å»Åð ÈÄ 7ÀÏ ÀÌÀü¿¡ ¿¬ÇÕ °á¼º ½Ãµµ ½Ã function guild_alliance() local guild_leader = is_guild_leader() local npc_id = get_npc_id() local alliance_leader = is_alliance_leader() if is_alliance_leader() == 1 then -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_title("@90401201") -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_title("@90101201") -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_title("@90201201") -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_title("@90601201") -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ÅÙ¸¸) elseif npc_id == 7037 then dlg_title("@90703701") end -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_text_without_quest_menu( "@90101214" ) -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_text_without_quest_menu( "@90101214" ) -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_text_without_quest_menu( "@90101214" ) -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_text_without_quest_menu( "@90101214" ) -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 7037 then dlg_text_without_quest_menu( "@90101214" ) end dlg_menu("@90010155", "question_guild_alliance()") dlg_menu("@90010232", "show_destroy_alliance()") dlg_menu("@90010154", "add_guild_alliance()") elseif is_alliance_leader() == 0 and guild_leader == 1 then -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_title("@90401201") -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_title("@90101201") -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_title("@90201201") -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_title("@90601201") -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ÅÙ¸¸) elseif npc_id == 7037 then dlg_title("@90703701") end -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_text_without_quest_menu( "@90101214" ) -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_text_without_quest_menu( "@90101214" ) -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_text_without_quest_menu( "@90101214" ) -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_text_without_quest_menu( "@90101214" ) -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 7037 then dlg_text_without_quest_menu( "@90101214" ) end dlg_menu("@90010155", "question_guild_alliance()") dlg_menu("@90010153", "show_alliance_create()") dlg_menu("@90010154", "add_guild_alliance()") elseif guild_leader == 0 then -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_title("@90401201") -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_title("@90101201") -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_title("@90201201") -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_title("@90601201") -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ÅÙ¸¸) elseif npc_id == 7037 then dlg_title("@90703701") end -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_text_without_quest_menu( "@90101225" ) -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_text_without_quest_menu( "@90101225" ) -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_text_without_quest_menu( "@90101225" ) -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_text_without_quest_menu( "@90101225" ) -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 7037 then dlg_text_without_quest_menu( "@90101225" ) end dlg_menu("@90010155", "question_guild_alliance()") end dlg_menu( "@90010002", "" ) dlg_show() end -- Áú¹®. ±æµå ¿¬ÇÕÀ̶õ? function question_guild_alliance() local npc_id = get_npc_id() -- <À̸§ Ãâ·Â> °¢ NPC¿¡ µû¶ó ÀûÇÕÇÑ -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_title("@90401201") -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_title("@90101201") -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_title("@90201201") -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_title("@90601201") -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ÅÙ¸¸) elseif npc_id == 7037 then dlg_title("@90703701") end -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_text_without_quest_menu( "@90101213" ) -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_text_without_quest_menu( "@90101213" ) -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_text_without_quest_menu( "@90101213" ) -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_text_without_quest_menu( "@90101213" ) -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 7037 then dlg_text_without_quest_menu( "@90101213" ) end --µ¹¾Æ°¡±â dlg_menu( "@90010003", 'guild_alliance()' ) dlg_menu( "@90010002", "" ) dlg_show() end function on_create_alliance( alliance_name ) local check_alliance_name = check_valid_alliance_name( alliance_name ) local npc_id = get_npc_id() if check_alliance_name == 2 or check_alliance_name == 4 then -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_title("@90401201") -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_title("@90101201") -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_title("@90201201") -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_title("@90601201") -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ÅÙ¸¸) elseif npc_id == 7037 then dlg_title("@90703701") end -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_text_without_quest_menu( "@90101219" ) -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_text_without_quest_menu( "@90101219" ) -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_text_without_quest_menu( "@90101219" ) -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_text_without_quest_menu( "@90101219" ) -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 7037 then dlg_text_without_quest_menu( "@90101219" ) end elseif check_alliance_name == 3 then -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_title("@90401201") -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_title("@90101201") -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_title("@90201201") -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_title("@90601201") -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ÅÙ¸¸) elseif npc_id == 7037 then dlg_title("@90703701") end -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_text_without_quest_menu( "@90101220" ) -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_text_without_quest_menu( "@90101220" ) -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_text_without_quest_menu( "@90101220" ) -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_text_without_quest_menu( "@90101220" ) -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 7037 then dlg_text_without_quest_menu( "@90101220" ) end elseif check_alliance_name == 0 then -- Àӽà º¯¼ö ¼±¾ð°ú µ¿½Ã¿¡ NPC ID °¡Á®¿À±â -- <À̸§ Ãâ·Â> °¢ NPC¿¡ µû¶ó ÀûÇÕÇÑ -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_title("@90401201") -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_title("@90101201") -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_title("@90201201") -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_title("@90601201") -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ÅÙ¸¸) elseif npc_id == 7037 then dlg_title("@90703701") end -- <´ë»ç Ãâ·Â> °¢ NPC¿¡ µû¶ó ÀûÇÕÇÑ -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then temp_text =sconv("@90101218", "#@createalliance_name@#",alliance_name) dlg_text_without_quest_menu(temp_text) -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then temp_text =sconv("@90101218", "#@createalliance_name@#",alliance_name) dlg_text_without_quest_menu(temp_text) -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then temp_text =sconv("@90101218", "#@createalliance_name@#",alliance_name) dlg_text_without_quest_menu(temp_text) -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then temp_text =sconv("@90101218", "#@createalliance_name@#",alliance_name) dlg_text_without_quest_menu(temp_text) -- ·Ðµµ ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ÅÙ¸¸) elseif npc_id == 7037 then temp_text =sconv("@90101218", "#@createalliance_name@#",alliance_name) dlg_text_without_quest_menu(temp_text) end dlg_menu("@90010016", "createalliance( '".. alliance_name .."' )") dlg_menu("@90010001", "guild_alliance()") end dlg_menu( "@90010002", "" ) dlg_show() end function createalliance( alliance_name ) local check_create_alliance = create_alliance( alliance_name ) local npc_id = get_npc_id() if check_create_alliance == 1 then -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_title("@90401201") -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_title("@90101201") -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_title("@90201201") -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_title("@90601201") -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ÅÙ¸¸) elseif npc_id == 7037 then dlg_title("@90703701") end -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_text_without_quest_menu( "@90101222" ) -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_text_without_quest_menu( "@90101222" ) -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_text_without_quest_menu( "@90101222" ) -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_text_without_quest_menu( "@90101222" ) -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 7037 then dlg_text_without_quest_menu( "@90101222" ) end elseif check_create_alliance == 2 or check_create_alliance == 4 then -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_title("@90401201") -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_title("@90101201") -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_title("@90201201") -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_title("@90601201") -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ÅÙ¸¸) elseif npc_id == 7037 then dlg_title("@90703701") end -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_text_without_quest_menu( "@90101219" ) -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_text_without_quest_menu( "@90101219" ) -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_text_without_quest_menu( "@90101219" ) -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_text_without_quest_menu( "@90101219" ) -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 7037 then dlg_text_without_quest_menu( "@90101219" ) end elseif check_create_alliance == 3 then -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_title("@90401201") -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_title("@90101201") -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_title("@90201201") -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_title("@90601201") -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ÅÙ¸¸) elseif npc_id == 7037 then dlg_title("@90703701") end -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_text_without_quest_menu( "@90101220" ) -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_text_without_quest_menu( "@90101220" ) -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_text_without_quest_menu( "@90101220" ) -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_text_without_quest_menu( "@90101220" ) -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 7037 then dlg_text_without_quest_menu( "@90101220" ) end elseif check_create_alliance == 5 then -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_title("@90401201") -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_title("@90101201") -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_title("@90201201") -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_title("@90601201") -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ÅÙ¸¸) elseif npc_id == 7037 then dlg_title("@90703701") end -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_text_without_quest_menu( "@90101223" ) -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_text_without_quest_menu( "@90101223" ) -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_text_without_quest_menu( "@90101223" ) -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_text_without_quest_menu( "@90101223" ) -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 7037 then dlg_text_without_quest_menu( "@90101223" ) end elseif check_create_alliance == 6 then -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_title("@90401201") -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_title("@90101201") -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_title("@90201201") -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_title("@90601201") -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ÅÙ¸¸) elseif npc_id == 7037 then dlg_title("@90703701") end -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_text_without_quest_menu( "@90101215" ) -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_text_without_quest_menu( "@90101215" ) -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_text_without_quest_menu( "@90101215" ) -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_text_without_quest_menu( "@90101215" ) -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 7037 then dlg_text_without_quest_menu( "@90101215" ) end elseif check_create_alliance == 7 then -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_title("@90401201") -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_title("@90101201") -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_title("@90201201") -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_title("@90601201") -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ÅÙ¸¸) elseif npc_id == 7037 then dlg_title("@90703701") end -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_text_without_quest_menu( "@90101229" ) -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_text_without_quest_menu( "@90101229" ) -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_text_without_quest_menu( "@90101229" ) -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_text_without_quest_menu( "@90101229" ) -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 7037 then dlg_text_without_quest_menu( "@90101229" ) end elseif check_create_alliance == 0 then -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_title("@90401201") -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_title("@90101201") -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_title("@90201201") -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_title("@90601201") -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ÅÙ¸¸) elseif npc_id == 7037 then dlg_title("@90703701") end -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then temp_text =sconv("@90101221", "#@createalliance_name@#",alliance_name) dlg_text_without_quest_menu(temp_text) -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then temp_text =sconv("@90101221", "#@createalliance_name@#",alliance_name) dlg_text_without_quest_menu(temp_text) -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then temp_text =sconv("@90101221", "#@createalliance_name@#",alliance_name) dlg_text_without_quest_menu(temp_text) -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then temp_text =sconv("@90101221", "#@createalliance_name@#",alliance_name) dlg_text_without_quest_menu(temp_text) -- ·Ðµµ ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ÅÙ¸¸) elseif npc_id == 7037 then temp_text =sconv("@90101221", "#@createalliance_name@#",alliance_name) dlg_text_without_quest_menu(temp_text) end end dlg_menu( "@90010003", "guild_alliance()" ) dlg_menu( "@90010002", "" ) dlg_show() end -- ±æµå Ãß°¡ function add_guild_alliance() local max_alliance_member = get_max_alliance_member_count() local alliance_leader = is_alliance_leader() local npc_id = get_npc_id() if alliance_leader == 1 then -- <À̸§ Ãâ·Â> °¢ NPC¿¡ µû¶ó ÀûÇÕÇÑ -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_title("@90401201") -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_title("@90101201") -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_title("@90201201") -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_title("@90601201") -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ÅÙ¸¸) elseif npc_id == 7037 then dlg_title("@90703701") end -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then temp_text =sconv( "@90101217" , "#@add_alliance@#", max_alliance_member) dlg_text_without_quest_menu(temp_text) -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then temp_text =sconv( "@90101217" , "#@add_alliance@#", max_alliance_member) dlg_text_without_quest_menu(temp_text) -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then temp_text =sconv( "@90101217" , "#@add_alliance@#", max_alliance_member) dlg_text_without_quest_menu(temp_text) -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then temp_text =sconv( "@90101217" , "#@add_alliance@#", max_alliance_member) dlg_text_without_quest_menu(temp_text) -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 7037 then temp_text =sconv( "@90101217" , "#@add_alliance@#", max_alliance_member) dlg_text_without_quest_menu(temp_text) end dlg_menu("@90010016", "pay_add_alliance()") dlg_menu("@90010001", "guild_alliance()") elseif alliance_leader == 0 then -- <À̸§ Ãâ·Â> °¢ NPC¿¡ µû¶ó ÀûÇÕÇÑ -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_title("@90401201") -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_title("@90101201") -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_title("@90201201") -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_title("@90601201") -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ÅÙ¸¸) elseif npc_id == 7037 then dlg_title("@90703701") end -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_text_without_quest_menu( "@90101226" ) -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_text_without_quest_menu( "@90101226" ) -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_text_without_quest_menu( "@90101226" ) -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_text_without_quest_menu( "@90101226" ) -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 7037 then dlg_text_without_quest_menu( "@90101226" ) end dlg_menu( "@90010003", "guild_alliance()" ) end dlg_menu( "@90010002", "" ) dlg_show() end function pay_add_alliance() local max_alliance_member = get_max_alliance_member_count() local gold = get_value( "gold" ) local cost = 1000000 local npc_id = get_npc_id() if max_alliance_member >= 5 then -- <À̸§ Ãâ·Â> °¢ NPC¿¡ µû¶ó ÀûÇÕÇÑ -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_title("@90401201") -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_title("@90101201") -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_title("@90201201") -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_title("@90601201") -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ÅÙ¸¸) elseif npc_id == 7037 then dlg_title("@90703701") end -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_text_without_quest_menu( "@90101227" ) -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_text_without_quest_menu( "@90101227" ) -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_text_without_quest_menu( "@90101227" ) -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_text_without_quest_menu( "@90101227" ) -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 7037 then dlg_text_without_quest_menu( "@90101227" ) end elseif max_alliance_member == 1 or max_alliance_member == 2 or max_alliance_member == 3 or max_alliance_member == 4 then if cost > gold then -- <À̸§ Ãâ·Â> °¢ NPC¿¡ µû¶ó ÀûÇÕÇÑ -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_title("@90401201") -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_title("@90101201") -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_title("@90201201") -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_title("@90601201") -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ÅÙ¸¸) elseif npc_id == 7037 then dlg_title("@90703701") end -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_text_without_quest_menu( "@90101224" ) -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_text_without_quest_menu( "@90101224" ) -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_text_without_quest_menu( "@90101224" ) -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_text_without_quest_menu( "@90101224" ) -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 7037 then dlg_text_without_quest_menu( "@90101224" ) end elseif cost <= gold then -- <À̸§ Ãâ·Â> °¢ NPC¿¡ µû¶ó ÀûÇÕÇÑ -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_title("@90401201") -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_title("@90101201") -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_title("@90201201") -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_title("@90601201") -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ÅÙ¸¸) elseif npc_id == 7037 then dlg_title("@90703701") end -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_text_without_quest_menu( "@90101228" ) -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_text_without_quest_menu( "@90101228" ) -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_text_without_quest_menu( "@90101228" ) -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_text_without_quest_menu( "@90101228" ) -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 7037 then dlg_text_without_quest_menu( "@90101228" ) end set_value( "gold", gold - cost ) update_gold_chaos() increase_max_alliance_member_count() end end dlg_menu( "@90010002", "" ) dlg_show() end function show_destroy_alliance() local guild_leader = is_guild_leader() local npc_id = get_npc_id() local alliance_leader = is_alliance_leader() -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_title("@90401201") -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_title("@90101201") -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_title("@90201201") -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_title("@90601201") -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ÅÙ¸¸) elseif npc_id == 7037 then dlg_title("@90703701") end -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_text_without_quest_menu( "@90010233" ) -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_text_without_quest_menu( "@90010233" ) -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_text_without_quest_menu( "@90010233" ) -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_text_without_quest_menu( "@90010233" ) -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 7037 then dlg_text_without_quest_menu( "@90010233" ) end dlg_menu("@90010016", "on_destroy_alliance()") dlg_menu("@90010001", "guild_alliance()") end function on_destroy_alliance() local state_code = destroy_alliance() local npc_id = get_npc_id() --ALLIANCE_DESTROY_SUCCESS = 0; // ¿¬ÇÕ ÇØ»êÀÌ ¼º°øÀûÀ¸·Î ÀÌ·ç¾î Á³½À´Ï´Ù. --ALLIANCE_DESTROY_NOT_IN_GUILD = 1; // ÇØ»êÀ» ½ÃµµÇÏ´Â À¯Àú´Â ¾î¶°ÇÑ ±æµå¿¡µµ ¼Ò¼ÓµÇ¾î ÀÖÁö ¾Ê½À´Ï´Ù. --ALLIANCE_DESTROY_NOT_IN_ALLIANCE = 2; // ÇØ»êÀ» ½ÃµµÇÏ´Â À¯ÀúÀÇ ±æµå´Â ¾î¶°ÇÑ ±æµå ¿¬ÇÕ¿¡µµ ¼Ò¼ÓµÇ¾î ÀÖÁö ¾Ê½À´Ï´Ù. --ALLIANCE_DESTROY_INVALID_ARGUMENT = 3; // ÇØ»ê ¸í·É¾î¿¡ ÆÄ¶ó¹ÌÅͰ¡ À߸ø ÁÖ¾îÁ³½À´Ï´Ù. ÆÄ¶ó¹ÌÅÍ´Â ¹Ýµå½Ã ¹®ÀÚ¿­Å¸ÀÔÀ¸·Î ¿¬ÇÕ À̸§À» ÀǹÌÇØ¾ß ÇÕ´Ï´Ù. --ALLIANCE_DESTROY_NOT_GUILD_LEADER = 4; // ÇØ»êÀ» ½ÃµµÇÏ´Â À¯Àú´Â ¼Ò¼Ó ±æµåÀÇ ±æµåÀåÀÌ ¾Æ´Õ´Ï´Ù. --ALLIANCE_DESTROY_NOT_ALLIANCE_LEADER = 5; // ÇØ»êÀ» ½ÃµµÇÏ´Â À¯Àú´Â ¼Ò¼Ó ±æµå ¿¬ÇÕÀÇ ¸¶½ºÅÍ ±æµå ¼Ò¼ÓÀÌ ¾Æ´Õ´Ï´Ù. --ALLIANCE_DESTROY_OTHER_MEMBER_GUILD_EXIST = 6; // ÇØ»êÀ» ½ÃµµÇÏ´Â ±æµå ¿¬ÇÕ¿¡ ¸¶½ºÅÍ ±æµå ÀÌ¿ÜÀÇ ¸â¹ö ±æµå°¡ Á¸ÀçÇÕ´Ï´Ù. --ALLIANCE_DESTROY_DUNGEON_OWNER = 7; // ÇØ»êÀ» ½ÃµµÇÏ´Â ±æµå ¿¬ÇÕÀÌ ´øÀüÀ» ¼ÒÀ¯ ÁßÀÔ´Ï´Ù. --ALLIANCE_DESTROY_DUNGEON_RAID_OR_SIEGE_REQUESTED = 8; // ÇØ»êÀ» ½ÃµµÇÏ´Â ±æµå ¿¬ÇÕÀÌ ´øÀü ½ÃÁî ¶Ç´Â ·¹ÀÌµå ½Åû »óÅÂ(Âü¿© Áß)ÀÔ´Ï´Ù. --ALLIANCE_DESTROY_UNKNOWN = 99; // À§¿¡ ³ª¿­µÈ ÀÌÀ¯ ¿Ü¿¡ ¾Ë ¼ö ¾ø´Â ÀÌÀ¯·Î ÀÎÇÏ¿© ÇØ»êÀÌ ½ÇÆÐÇÏ¿´½À´Ï´Ù. if state_code == 0 then -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_title("@90401201") -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_title("@90101201") -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_title("@90201201") -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_title("@90601201") -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ÅÙ¸¸) elseif npc_id == 7037 then dlg_title("@90703701") end -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_text_without_quest_menu( "@90010234" ) -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_text_without_quest_menu( "@90010234" ) -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_text_without_quest_menu( "@90010234" ) -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_text_without_quest_menu( "@90010234" ) -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 7037 then dlg_text_without_quest_menu( "@90010234" ) end dlg_menu( "@90010002", "" ) dlg_show() elseif state_code == 1 then -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_title("@90401201") -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_title("@90101201") -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_title("@90201201") -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_title("@90601201") -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ÅÙ¸¸) elseif npc_id == 7037 then dlg_title("@90703701") end -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_text_without_quest_menu( "@90010235" ) -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_text_without_quest_menu( "@90010235" ) -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_text_without_quest_menu( "@90010235" ) -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_text_without_quest_menu( "@90010235" ) -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 7037 then dlg_text_without_quest_menu( "@90010235" ) end dlg_menu( "@90010002", "" ) dlg_show() elseif state_code == 2 then -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_title("@90401201") -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_title("@90101201") -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_title("@90201201") -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_title("@90601201") -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ÅÙ¸¸) elseif npc_id == 7037 then dlg_title("@90703701") end -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_text_without_quest_menu( "@90010235" ) -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_text_without_quest_menu( "@90010235" ) -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_text_without_quest_menu( "@90010235" ) -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_text_without_quest_menu( "@90010235" ) -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 7037 then dlg_text_without_quest_menu( "@90010235" ) end dlg_menu( "@90010002", "" ) dlg_show() elseif state_code == 3 then -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_title("@90401201") -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_title("@90101201") -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_title("@90201201") -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_title("@90601201") -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ÅÙ¸¸) elseif npc_id == 7037 then dlg_title("@90703701") end -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_text_without_quest_menu( "@90010236" ) -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_text_without_quest_menu( "@90010236" ) -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_text_without_quest_menu( "@90010236" ) -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_text_without_quest_menu( "@90010236" ) -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 7037 then dlg_text_without_quest_menu( "@90010236" ) end dlg_menu( "@90010002", "" ) dlg_show() elseif state_code == 4 then -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_title("@90401201") -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_title("@90101201") -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_title("@90201201") -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_title("@90601201") -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ÅÙ¸¸) elseif npc_id == 7037 then dlg_title("@90703701") end -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_text_without_quest_menu( "@90010237" ) -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_text_without_quest_menu( "@90010237" ) -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_text_without_quest_menu( "@90010237" ) -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_text_without_quest_menu( "@90010237" ) -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 7037 then dlg_text_without_quest_menu( "@90010237" ) end dlg_menu( "@90010002", "" ) dlg_show() elseif state_code == 5 then -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_title("@90401201") -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_title("@90101201") -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_title("@90201201") -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_title("@90601201") -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ÅÙ¸¸) elseif npc_id == 7037 then dlg_title("@90703701") end -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_text_without_quest_menu( "@90010237" ) -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_text_without_quest_menu( "@90010237" ) -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_text_without_quest_menu( "@90010237" ) -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_text_without_quest_menu( "@90010237" ) -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 7037 then dlg_text_without_quest_menu( "@90010237" ) end dlg_menu( "@90010002", "" ) dlg_show() elseif state_code == 6 then -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_title("@90401201") -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_title("@90101201") -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_title("@90201201") -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_title("@90601201") -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ÅÙ¸¸) elseif npc_id == 7037 then dlg_title("@90703701") end -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_text_without_quest_menu( "@90010238" ) -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_text_without_quest_menu( "@90010238" ) -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_text_without_quest_menu( "@90010238" ) -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_text_without_quest_menu( "@90010238" ) -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 7037 then dlg_text_without_quest_menu( "@90010238" ) end dlg_menu( "@90010002", "" ) dlg_show() elseif state_code == 7 then -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_title("@90401201") -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_title("@90101201") -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_title("@90201201") -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_title("@90601201") -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ÅÙ¸¸) elseif npc_id == 7037 then dlg_title("@90703701") end -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_text_without_quest_menu( "@90010239" ) -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_text_without_quest_menu( "@90010239" ) -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_text_without_quest_menu( "@90010239" ) -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_text_without_quest_menu( "@90010239" ) -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 7037 then dlg_text_without_quest_menu( "@90010239" ) end dlg_menu( "@90010002", "" ) dlg_show() elseif state_code == 8 then -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_title("@90401201") -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_title("@90101201") -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_title("@90201201") -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_title("@90601201") -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ÅÙ¸¸) elseif npc_id == 7037 then dlg_title("@90703701") end -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_text_without_quest_menu( "@90010236" ) -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_text_without_quest_menu( "@90010236" ) -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_text_without_quest_menu( "@90010236" ) -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_text_without_quest_menu( "@90010236" ) -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 7037 then dlg_text_without_quest_menu( "@90010236" ) end dlg_menu( "@90010002", "" ) dlg_show() elseif state_code == 99 then -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_title("@90401201") -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_title("@90101201") -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_title("@90201201") -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_title("@90601201") -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ÅÙ¸¸) elseif npc_id == 7037 then dlg_title("@90703701") end -- °¡ÀÌ¾Æ ÀÏ ¶§ (4012 ±æµå »ç¹«°ü ¿Àº§¸®) if npc_id == 4012 then dlg_text_without_quest_menu( "@90010240" ) -- µ¥¹Ù ÀÏ ¶§ (1012 ±æµå »ç¹«°ü ¼¼½º) elseif npc_id == 1012 then dlg_text_without_quest_menu( "@90010240" ) -- ¾Æ¼ö¶ó ÀÏ ¶§ (2012 ±æµå »ç¹«°ü ·¹ºñ¾ÆÅº) elseif npc_id == 2012 then dlg_text_without_quest_menu( "@90010240" ) -- ·Ðµµ ÀÏ ¶§ (6012 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 6012 then dlg_text_without_quest_menu( "@90010240" ) -- µµ½Ã À¯Àû ÀÏ ¶§ (7037 ±æµå »ç¹«°ü ·¹»þ) elseif npc_id == 7037 then dlg_text_without_quest_menu( "@90010240" ) end end dlg_menu( "@90010002", "" ) dlg_show() end