Ich hab gesucht, aber nix gefunden ausser die Meisterklasse übers GM Tool zu setzten.
1. Alle Vorquests abgeschlossen.
2. Alle 4 Wege abgeschlossen + Numa (siehe Items)
3. Level 152 und JPL 50 (2ter. Job) erreicht.
function get_module_name()
return "NPC_JobChange"
end
function NPC_JobChange_get_resetcount()
local reset_count = get_flag( 'reset_count' )
if reset_count == '' then
return 0
else
return reset_count
end
end
--================================================== ==========
--================================================== ==========
function NPC_JobChange_contact()
local npc_id = get_npc_id()
-- °،�ج¾ئ �د ¶§ (4004)
if npc_id == 4004 then
dlg_title( "@90400401" )
-- µ¥¹ظ �د ¶§ (1004)
elseif npc_id == 1004 then
dlg_title( "@90100401" )
-- ¾ئ¼�¶َ �د ¶§ (2004)
elseif npc_id == 2004 then
dlg_title( "@90200401" )
-- ·ذµµ �د ¶§ (6004)
elseif npc_id == 6004 then
dlg_title( "@90600401" )
-- µµ½أ �¯�û �د ¶§ (7032)
elseif npc_id == 7032 then
dlg_title( "@90703201" )
-- ½أإ©·çئ® �د ¶§ (7004)
elseif npc_id == 7004 then
dlg_title( "@90700401" )
end -- if ³،
-- °،�ج¾ئ �د ¶§ (4004)
if npc_id == 4004 then
dlg_text( "@90400403" )
-- µ¥¹ظ �د ¶§ (1004)
elseif npc_id == 1004 then
dlg_text( "@90100403" )
-- ¾ئ¼�¶َ �د ¶§ (2004)
elseif npc_id == 2004 then
dlg_text( "@90200403" )
-- ·ذµµ �د ¶§ (6004)
elseif npc_id == 6004 then
dlg_text( "@90600403" )
-- µµ½أ �¯�û �د ¶§ (7032)
elseif npc_id == 7032 then
dlg_text( "@90703203" )
-- ½أإ©·çئ® �د ¶§ (7004)
elseif npc_id == 7004 then
dlg_text( "@90700403" )
end -- if ³،
dlg_menu( "@90010060", "NPC_JobChange_change_job()" )
dlg_menu( "@90010252", "NPC_JobChange_change_race()" )
dlg_menu( "@90010002", " " )
dlg_show()
end
function NPC_JobChange_change_race()
local npc_id = get_npc_id()
-- °،�ج¾ئ �د ¶§ (4004)
if npc_id == 4004 then
dlg_title( "@90400401" )
-- µ¥¹ظ �د ¶§ (1004)
elseif npc_id == 1004 then
dlg_title( "@90100401" )
-- ¾ئ¼�¶َ �د ¶§ (2004)
elseif npc_id == 2004 then
dlg_title( "@90200401" )
-- ·ذµµ �د ¶§ (6004)
elseif npc_id == 6004 then
dlg_title( "@90600401" )
-- µµ½أ �¯�û �د ¶§ (7032)
elseif npc_id == 7032 then
dlg_title( "@90703201" )
-- ½أإ©·çئ® �د ¶§ (7004)
elseif npc_id == 7004 then
dlg_title( "@90700401" )
end -- if ³،
if has_item(601100284) >= 1 then
dlg_text( "@90010256" )
local race = get_value( "race" )
if race ~= 4 then
dlg_menu( "@90010253", "NPC_JobChange_set_race(4)" )
end
if race ~= 5 then
dlg_menu( "@90010254", "NPC_JobChange_set_race(5)" )
end
if race ~= 3 then
dlg_menu( "@90010255", "NPC_JobChange_set_race(3)" )
end
dlg_show()
else
dlg_text( "@90010257" )
dlg_menu( "@90010002", " " )
dlg_show()
end
end
function NPC_JobChange_set_race( changed_race )
local success = set_race( changed_race )
local npc_id = get_npc_id()
-- °،�ج¾ئ �د ¶§ (4004)
if npc_id == 4004 then
dlg_title( "@90400401" )
-- µ¥¹ظ �د ¶§ (1004)
elseif npc_id == 1004 then
dlg_title( "@90100401" )
-- ¾ئ¼�¶َ �د ¶§ (2004)
elseif npc_id == 2004 then
dlg_title( "@90200401" )
-- ·ذµµ �د ¶§ (6004)
elseif npc_id == 6004 then
dlg_title( "@90600401" )
-- µµ½أ �¯�û �د ¶§ (7032)
elseif npc_id == 7032 then
dlg_title( "@90703201" )
-- ½أإ©·çئ® �د ¶§ (7004)
elseif npc_id == 7004 then
dlg_title( "@90700401" )
end -- if ³،
if success == 1 then
delete_item( get_item_handle( 601100284 ), 1 )
dlg_text( "@90010258" )
dlg_menu( "@90010002", " " )
else
dlg_text( "@90010259" )
dlg_menu( "@90010002", " " )
end
dlg_show()
end
function NPC_JobChange_change_job()
-- �س½أ ؛¯¼� ¼±¾ً°ْ µ؟½أ؟، NPC ID °،ء®؟�±â
local npc_id = get_npc_id()
-- ±¹°، ؤعµه �ذ¾î؟�±â
-- get_local_info()�ا ¹�ب¯°ھµé
--LOCAL_INFO_KOREA = 1
--LOCAL_INFO_HONGKONG = 2
--LOCAL_INFO_AMERICA = 4
--LOCAL_INFO_EUROPE = 8
--LOCAL_INFO_JAPAN = 16
--LOCAL_INFO_TAIWAN = 32
--LOCAL_INFO_CHINA = 64
local state_code = get_local_info()
local reset_count = NPC_JobChange_get_resetcount()
--reset_count = 0
--================================================== ==============================
-- �üء÷ ؛ز°،´ةار °و؟ى °ٌ¶َ³»±â
--================================================== ==============================
--local reset_count
-- ±â؛»ء÷¾÷�د ¶§ Lv�ج³ھ JLv�ج 10 ¹ج¸¸�ج¸é �üء÷؛ز°،.
if get_value( "job_depth" ) == 0 then
if get_value( "level" ) < 10 or get_value( "job_level" ) < 10 then
-- °،�ج¾ئ �د ¶§ (4004)
if npc_id == 4004 then
dlg_title( "@90400401" )
-- µ¥¹ظ �د ¶§ (1004)
elseif npc_id == 1004 then
dlg_title( "@90100401" )
-- ¾ئ¼�¶َ �د ¶§ (2004)
elseif npc_id == 2004 then
dlg_title( "@90200401" )
-- ·ذµµ �د ¶§ (6004)
elseif npc_id == 6004 then
dlg_title( "@90600401" )
-- µµ½أ �¯�û �د ¶§ (7032)
elseif npc_id == 7032 then
dlg_title( "@90703201" )
-- ½أإ©·çئ® �د ¶§ (7004)
elseif npc_id == 7004 then
dlg_title( "@90700401" )
end -- if ³،
-- °،�ج¾ئ �د ¶§ (4004)
if npc_id == 4004 then
dlg_text( "@90400403" )
-- µ¥¹ظ �د ¶§ (1004)
elseif npc_id == 1004 then
dlg_text( "@90100403" )
-- ¾ئ¼�¶َ �د ¶§ (2004)
elseif npc_id == 2004 then
dlg_text( "@90200403" )
-- ·ذµµ �د ¶§ (6004)
elseif npc_id == 6004 then
dlg_text( "@90600403" )
-- µµ½أ �¯�û �د ¶§ (7032)
elseif npc_id == 7032 then
dlg_text( "@90703203" )
-- ½أإ©·çئ® �د ¶§ (7004)
elseif npc_id == 7004 then
dlg_text( "@90700403" )
end -- if ³،
dlg_menu( "@90010002", "" )
dlg_show()
return
end
-- 1آ÷ ء÷¾÷�د ¶§ Lv50 ¹ج¸¸ JLv�ج 40 ¹ج¸¸�ج¸é �üء÷؛ز°،.
elseif get_value( "job_depth" ) == 1 then
-- ءك±¹�؛ 2آ÷ ء÷¾÷ ¸·�½. 2007.9.4. ءك±¹ ئاب£ °ü·أ�¸·خ �س½أ اطء¦.
--if state_code == 2 then
-- ´� �ج»َ �üء÷�ج ؛ز°،´ةاد´ظ´آ ¸ÃÂ*ئ®
--dlg_text( "@90100411" )
--dlg_menu( "@90010002", "" )
--dlg_show()
--return
--end
-- �üء÷ ؛ز°،´ةار ء¶°ا�ج¸é ئ¨±è
if get_value( "level" ) < 50 or get_value( "job_level" ) < 40 then
-- °،�ج¾ئ �د ¶§ (4004)
if npc_id == 4004 then
dlg_title( "@90400401" )
-- µ¥¹ظ �د ¶§ (1004)
elseif npc_id == 1004 then
dlg_title( "@90100401" )
-- ¾ئ¼�¶َ �د ¶§ (2004)
elseif npc_id == 2004 then
dlg_title( "@90200401" )
-- ·ذµµ �د ¶§ (6004)
elseif npc_id == 6004 then
dlg_title( "@90600401" )
-- µµ½أ �¯�û �د ¶§ (7032)
elseif npc_id == 7032 then
dlg_title( "@90703201" )
-- ½أإ©·çئ® �د ¶§ (7004)
elseif npc_id == 7004 then
dlg_title( "@90700401" )
end -- if ³،
-- °،�ج¾ئ �د ¶§ (4004)
if npc_id == 4004 then
if is_able_to_jobchange() == true then
dlg_text( "@90400409" )
else
dlg_text( "@90400402" )
end
-- µ¥¹ظ �د ¶§ (1004)
elseif npc_id == 1004 then
if is_able_to_jobchange() == true then
dlg_text( "@90100409" )
else
dlg_text( "@90100402" )
end
-- ¾ئ¼�¶َ �د ¶§ (2004)
elseif npc_id == 2004 then
if is_able_to_jobchange() == true then
dlg_text( "@90200409" )
else
dlg_text( "@90200402" )
end
-- ·ذµµ �د ¶§ (6004)
elseif npc_id == 6004 then
if is_able_to_jobchange() == true then
dlg_text( "@90600409" )
else
dlg_text( "@90600402" )
end
-- µµ½أ �¯�û �د ¶§ (7032)
elseif npc_id == 7032 then
if is_able_to_jobchange() == true then
dlg_text( "@90703209" )
else
dlg_text( "@90703202" )
end
-- ½أإ©·çئ® �د ¶§ (7004)
elseif npc_id == 7004 then
if is_able_to_jobchange() == true then
dlg_text( "@90700409" )
else
dlg_text( "@90700402" )
end
end -- if ³،
dlg_menu( "@90010002", "" )
dlg_show()
return
-- �üء÷ °،´ةاز ¶§ إ×¼·�ج ¾ئ´د¸é ئ¨±è.
else
if is_able_to_jobchange() == false then
-- °،�ج¾ئ �د ¶§ (4004)
if npc_id == 4004 then
dlg_title( "@90400401" )
-- µ¥¹ظ �د ¶§ (1004)
elseif npc_id == 1004 then
dlg_title( "@90100401" )
-- ¾ئ¼�¶َ �د ¶§ (2004)
elseif npc_id == 2004 then
dlg_title( "@90200401" )
-- ·ذµµ �د ¶§ (6004)
elseif npc_id == 6004 then
dlg_title( "@90600401" )
-- µµ½أ �¯�û �د ¶§ (7032)
elseif npc_id == 7032 then
dlg_title( "@90703201" )
-- ½أإ©·çئ® �د ¶§ (7004)
elseif npc_id == 7004 then
dlg_title( "@90700401" )
end -- if ³،
-- °،�ج¾ئ �د ¶§ (4004)
if npc_id == 4004 then
dlg_text( "@90400402" )
-- µ¥¹ظ �د ¶§ (1004)
elseif npc_id == 1004 then
dlg_text( "@90100402" )
-- ¾ئ¼�¶َ �د ¶§ (2004)
elseif npc_id == 2004 then
dlg_text( "@90200402" )
-- ·ذµµ �د ¶§ (6004)
elseif npc_id == 6004 then
dlg_text( "@90600402" )
-- µµ½أ �¯�û �د ¶§ (7032)
elseif npc_id == 7032 then
dlg_text( "@90703202" )
-- ½أإ©·çئ® �د ¶§ (7004)
elseif npc_id == 7004 then
dlg_text( "@90700402" )
end -- if ³،
dlg_menu( "@90010002", "" )
dlg_show()
return
end
end
-- ؟©±â±îء� ؟�¸é 2آ÷ء÷¾÷�خ »َإآ. 3آ÷·خ�ا �üء÷�؛ ؛ز°،´ةاش
elseif get_value( "job_depth" ) == 3 then
-- °،�ج¾ئ �د ¶§ (4004)
if npc_id == 4004 then
dlg_title( "@90400401" )
-- µ¥¹ظ �د ¶§ (1004)
elseif npc_id == 1004 then
dlg_title( "@90100401" )
-- ¾ئ¼�¶َ �د ¶§ (2004)
elseif npc_id == 2004 then
dlg_title( "@90200401" )
-- ·ذµµ �د ¶§ (6004)
elseif npc_id == 6004 then
dlg_title( "@90600401" )
-- µµ½أ�¯�û �د ¶§ (7032)
elseif npc_id == 7032 then
dlg_title( "@90703201" )
-- ½أإ©·çئ® �د ¶§ (7004)
elseif npc_id == 7004 then
dlg_title( "@90700401" )
end -- if ³،
if reset_count == 0 then
dlg_text( "@90604793" )
elseif reset_count == 1 then
dlg_text( "@90604794" )
elseif reset_count == 2 then
dlg_text( "@90604795" )
elseif reset_count == 3 then
dlg_text( "@90604796" )
elseif reset_count == 4 then
dlg_text( "@90604797" )
elseif reset_count == 5 then
dlg_text( "@90604798" )
elseif reset_count == 6 then
dlg_text( "@90604799" )
elseif reset_count == 7 then
dlg_text( "@90604800" )
elseif reset_count == 8 then
dlg_text( "@90604801" )
elseif reset_count == 9 then
dlg_text( "@90604802" )
end
-- ¸¶½؛إØÂ* إ¬·،½؛ أت±âبÂÂ* ½؛إ³ °،´ة ¸ÃÂ*ئ®
-- ·çاا·خ أت±âبÂÂ*اد±â
dlg_menu( "@90604803", "gold_skill_reset_check(npc_id)")
-- JP·خ أت±âبÂÂ*اد±â
dlg_menu( "@90604804", "jp_skill_reset_check(npc_id)")
-- ¾ئ�جإغ إ×½؛ئ®؟ë
--dlg_menu( "Skill reset count Init", "Skill_reset_count_init()")
--dlg_menu( "Item skill reset", "item_skill_reset()")
dlg_menu( "@90010002", "" )
dlg_show()
return
else
-- °،�ج¾ئ �د ¶§ (4004)
if npc_id == 4004 then
dlg_title( "@90400401" )
-- µ¥¹ظ �د ¶§ (1004)
elseif npc_id == 1004 then
dlg_title( "@90100401" )
-- ¾ئ¼�¶َ �د ¶§ (2004)
elseif npc_id == 2004 then
dlg_title( "@90200401" )
-- ·ذµµ �د ¶§ (6004)
elseif npc_id == 6004 then
dlg_title( "@90600401" )
-- µµ½أ�¯�û �د ¶§ (7032)
elseif npc_id == 7032 then
dlg_title( "@90703201" )
-- ½أإ©·çئ® �د ¶§ (7004)
elseif npc_id == 7004 then
dlg_title( "@90700401" )
end -- if ³،
-- ´� �ج»َ �üء÷�ج ؛ز°،´ةاد´ظ´آ ¸ÃÂ*ئ®
-- dlg_text( "@90100411" )
-- ¸¶½؛إØÂ* إ¬·،½؛·خ �üء÷�» ؟ّار´ظ¸é ؟µ؟� اÙÅ*Ø¥Ùâ€*¸£¸¦ ¸¸³ھ¶َ´آ ¸ÃÂ*ئ®
dlg_text( "@91002563" )
local item_count = find_item(9999)
if get_value("lv") >= 148 and get_value("jlv") >= 50 then
dlg_menu( "التخصص الاØÂ*تراÙ�ÙÅ*", "tomaster()" )
dlg_menu( "@90010002", "" )
dlg_show()
return
else
dlg_menu( "@90010002", "" )
dlg_show()
return
end
end
-- ؟©±â±îء� ؟ش�¸¸é �üء÷ °،´ة
local race = get_value( "race" )
local job_name1, job1, job_name2, job2, job_name3, job3, number_job, current_job
-- °،�ج¾ئ �د ¶§ (4004)
if npc_id == 4004 then
dlg_title( "@90400401" )
-- µ¥¹ظ �د ¶§ (1004)
elseif npc_id == 1004 then
dlg_title( "@90100401" )
-- ¾ئ¼�¶َ �د ¶§ (2004)
elseif npc_id == 2004 then
dlg_title( "@90200401" )
-- ·ذµµ �د ¶§ (6004)
elseif npc_id == 6004 then
dlg_title( "@90600401" )
-- µµ½أ �¯�û �د ¶§ (7032)
elseif npc_id == 7032 then
dlg_title( "@90703201" )
-- ½أإ©·çئ® �د ¶§ (7004)
elseif npc_id == 7004 then
dlg_title( "@90700401" )
end -- if ³،
-- �üء÷ °،´ةار ء÷¾÷�ا °³¼�¸¦ أت±âبÂÂ*. ±â؛»�ج 3�ج´د ±×³ة 3�¸·خ...
number_job = 3
-- ا��ç ء÷¾÷ ID¸¦ ¹ق¾ئ ³�´آ´ظ.
current_job = get_value( "job" )
--================================================== ==============================
-- 1آ÷ �üء÷�د °و؟ى. (إ×Û�ج؛ÙÅ*؟،¼ÂÂ* ¸ّ�ذ¾î؟�¹ا·ؠ® �üء÷ء¤؛¸´آ ؟©±â¼ÂÂ* °ÙÅ*ؤ،�ع)
--================================================== ==============================
if get_value( "job_depth" ) == 0 then
dlg_text( "@90100404" )
-- �üء÷ °،´ةار ء÷¾÷�ا °³¼�¸¦ ¼³ء¤. 1آ÷ �üء÷�ج¹ا·خ ¸ًµخ 3 �ج´ظ.
number_job = 3
--================================================== ==========================
-- ¾ê°، µ¥¹ظ¸é ئؤÛ�جإØÂ* 201, إ¬·¹¸¯ 202, إ×�ج¸س 203
if race == 4 then
job_name1 = "@10201"
job1 = 201
job_name2 = "@10202"
job2 = 202
job_name3 = "@10203"
job3 = 203
--================================================== ==========================
-- ¾ئ¼�¶َ¸é ½؛ئ®¶َ�ج´� 301, ¸إء�¼ا 302, ¼ÂÂ*¸ً³ت 303
elseif race == 5 then
job_name1 = "@10301"
job1 = 301
job_name2 = "@10302"
job2 = 302
job_name3 = "@10303"
job3 = 303
--================================================== ==========================
-- °،�ج¾ئ¶َ¸é إ�»ç 101, ءض¼ْ�ع 102, ¾ك¼�»ç 103
else
job_name1 = "@10101"
job1 = 101
job_name2 = "@10102"
job2 = 102
job_name3 = "@10103"
job3 = 103
end
--================================================== ==============================
-- 2آ÷ �üء÷�د °و؟ى. (إ×Û�ج؛ÙÅ*؟،¼ÂÂ* ¸ّ�ذ¾î؟�¹ا·ؠ® �üء÷ء¤؛¸´آ ؟©±â¼ÂÂ* °ÙÅ*ؤ،�ع)
--================================================== ==============================
elseif get_value( "job_depth" ) == 1 then
dlg_text( "@90700410" )
--================================================== ==========================
-- µ¥¹ظ�د ¶§
if race == 4 then
-- ئؤÛ�جإØÂ* �üء÷ �üء÷
if current_job == 201 then
-- ³ھ�جئ® 210, ؟�¸®¾î 211
number_job = 2
job_name1 = "@10210"
job1 = 210
job_name2 = "@10211"
job2 = 211
-- إ¬·¹¸¯�ا �üء÷
elseif current_job == 202 then
-- ¸ق�جء� 212, اء¸®½؛ئ® 213
number_job = 2
job_name1 = "@10212"
job1 = 212
job_name2 = "@10213"
job2 = 213
-- إ×�ج¸س�ا �üء÷
elseif current_job == 203 then
-- ؛긮´�
number_job = 1
job_name1 = "@10214"
job1 = 214
-- �جµµ�ْµµ ¾ئ´د¸é ¾ئ¹«°ØÂ*µµ ¾ئ´د´ظ.
else
number_job = 0
end
--================================================== ==========================
-- ¾ئ¼�¶َ
elseif race == 5 then
-- ½؛ئ®¶َÛ�ج´Ù�Û�Ø § Û�üء÷
if current_job == 301 then
-- ¾î½ط½إ 310, ·¹�خ�ْ 311
number_job = 2
job_name1 = "@10310"
job1 = 310
job_name2 = "@10311"
job2 = 311
-- ´ظإ©¸إء�¼ا�ا �üء÷
elseif current_job == 302 then
-- ¼ز¼ÂÂ*·¯ 312, ´ظإ©¸إء�¼ا 313
number_job = 2
job_name1 = "@10312"
job1 = 312
job_name2 = "@10313"
job2 = 313
-- ¼ÂÂ*¸ً³ت �üء÷
elseif current_job == 303 then
--
number_job = 1
job_name1 = "@10314"
job1 = 314
-- (¹«½أ.)
else
number_job = 0
end
--================================================== ==========================
-- °،�ج¾ئ
else
-- إ�»ç�ا �üء÷ 101
if current_job == 101 then
-- �ü»ç 110, ±أ»ç 111
number_job = 2
job_name1 = "@10110"
job1 = 110
job_name2 = "@10111"
job2 = 111
-- ءض¼ْ»ç�ا �üء÷
elseif current_job == 102 then
-- ¸¶µµ»ç 112, ¸¶إ�»ç 113
number_job = 2
job_name1 = "@10112"
job1 = 112
job_name2 = "@10113"
job2 = 113
-- ¾ك¼�»ç�ا �üء÷
elseif current_job == 103 then
-- ¸¶¼�»ç 114
number_job = 1
job_name1 = "@10114"
job1 = 114
-- �جµµ�ْµµ ¾ئ´د¸é ¾ئ¹«°ØÂ*µµ ¾ئ´د´ظ.
else
number_job = 0
end
end
end
if number_job == 1 then
dlg_menu( job_name1 , "Run_JobChange_check_common( '" .. job_name1 .. "' , " .. job1 .. " )" )
elseif number_job == 2 then
dlg_menu( job_name1 , "Run_JobChange_check_common( '" .. job_name1 .. "' , " .. job1 .. " )" )
dlg_menu( job_name2 , "Run_JobChange_check_common( '" .. job_name2 .. "' , " .. job2 .. " )" )
elseif number_job == 3 then
dlg_menu( job_name1 , "Run_JobChange_check_common( '" .. job_name1 .. "' , " .. job1 .. " )" )
dlg_menu( job_name2 , "Run_JobChange_check_common( '" .. job_name2 .. "' , " .. job2 .. " )" )
dlg_menu( job_name3 , "Run_JobChange_check_common( '" .. job_name3 .. "' , " .. job3 .. " )" )
else
end
dlg_menu( "@90010001", '' )
dlg_show()
end
----------------------------------------------------------------------------------------------------------------------
function NPC_master_partdevil_contact()
-- �س½أ ؛¯¼� ¼±¾ً°ْ µ؟½أ؟، NPC ID °،ء®؟�±â
local npc_id = get_npc_id()
-- ±¹°، ؤعµه �ذ¾î؟�±â
-- get_local_info()�ا ¹�ب¯°ھµé
--LOCAL_INFO_KOREA = 1
--LOCAL_INFO_HONGKONG = 2
--LOCAL_INFO_AMERICA = 4
--LOCAL_INFO_EUROPE = 8
--LOCAL_INFO_JAPAN = 16
--LOCAL_INFO_TAIWAN = 32
--LOCAL_INFO_CHINA = 64
local state_code = get_local_info()
local quest_progress3322 = get_quest_progress(3322)
--================================================== ==============================
-- �üء÷ ؛ز°،´ةار °و؟ى °ٌ¶َ³»±â
--================================================== ==============================
-- ¸¶½؛إØÂ* إ¬·،½؛ �üء÷ °،´ة ؟©؛خ
if get_value( "job_depth" ) == 2 then
-- �üء÷ ؛ز°،´ةار ء¶°ا�ج¸é ئ¨±è
-- �üء÷ ء¶°ا ؛¯°و : 145 -> 148 2011³â 4؟ù 18�د ؟ى»َ؟ÙÅ*
if get_value( "level" ) < 147 or get_value( "job_level" ) < 49 then
-- ¸¶½؛إØÂ* »çإ؛¼ز³ÃÂ*
dlg_title( "@91002405" )
if is_able_to_jobchange() == true then
dlg_text( "@91002407" )
dlg_menu( "@90010003", "goto_hactor()" )
else
--ء�±��؛ ¸¶½؛إØÂ*إ¬·،½؛ ·خ�ا �üء÷�ج ؛ز°،´ةار »َإآ�ش´د´ظ.
dlg_text( "@91002406" )
dlg_menu( "@90010003", "goto_hactor()" )
end
dlg_menu( "@90010002", "" )
dlg_show()
return
-- �üء÷ °،´ةاز ¶§ إ×¼·�ج ¾ئ´د¸é ئ¨±è.
else
if is_able_to_jobchange() == false then
dlg_title( "@91002405" )
dlg_text( "@91002406" )
dlg_menu( "@90010002", "" )
dlg_show()
return
end
end
-- �ج¹ج 3آ÷ء÷¾÷�خ »َإآ. ´��ج»َ �üء÷�؛ ؛ز°،´ةاش
elseif get_value("job_depth") == 3 then
dlg_title( "@91002405" )
-- ´� �ج»َ �üء÷�ج ؛ز°،´ةاد´ظ´آ ¸ÃÂ*ئ®
dlg_text( "@91002408" )
--TP ئ÷�خئ®¶�?
dlg_menu( "@91002550", "tp_point_2()")
dlg_menu( "@90010003", 'goto_hactor()' )
dlg_menu( "@90010002", "" )
dlg_show()
return
-- 1آ÷ ء÷¾÷�ج ؟©±â¼ÂÂ* ¹¹اد´د? ´©±¸¶û ؟ش´د? �üء÷ اد°ÙÅ* ØŸØÂ*¶َ -_-
else
dlg_title( "@91002405" )
if get_value("job") == 200 then
job_name = "@1356"
elseif get_value("job") == 201 then
job_name = "@1357"
elseif get_value("job") == 202 then
job_name = "@1358"
elseif get_value("job") == 203 then
job_name = "@1359"
elseif get_value("job") == 100 then
job_name = "@1342"
elseif get_value("job") == 101 then
job_name = "@1343"
elseif get_value("job") == 102 then
job_name = "@1344"
elseif get_value("job") == 103 then
job_name = "@1345"
elseif get_value("job") == 300 then
job_name = "@1372"
elseif get_value("job") == 301 then
job_name = "@1373"
elseif get_value("job") == 302 then
job_name = "@1374"
elseif get_value("job") == 303 then
job_name = "@1375"
end
dlg_text_without_quest_menu(sconv("@91002426", "#@job_name@#",job_name))
dlg_menu( "@90010002", "" )
dlg_show()
return
end
-- ؟©±â±îء� ؟ش�¸¸é �üء÷ °،´ة
local race = get_value( "race" )
local job_name1, job1, job_name2, job2, job_name3, job3, number_job, current_job
dlg_title( "@91002405" )
-- �üء÷ °،´ةار ء÷¾÷�ا °³¼�¸¦ أت±âبÂÂ*. ±â؛»�ج 3�ج´د ±×³ة 3�¸·خ...
number_job = 3
-- ا��ç ء÷¾÷ ID¸¦ ¹ق¾ئ ³�´آ´ظ.
current_job = get_value( "job" )
--================================================== ==============================
-- ¸¶½؛إØÂ* إ¬·،½؛ �üء÷�د °و؟ى. (إ×Û�ج؛ÙÅ*؟،¼ÂÂ* ¸ّ�ذ¾î؟�¹ا·ؠ® �üء÷ء¤؛¸´آ ؟©±â¼ÂÂ* °ÙÅ*ؤ،�ع)
--================================================== ==============================
if get_value( "job_depth" ) == 2 then
-- ؤù½؛ئ® »َإآ أ¼إ© get_quest_progress(ID)
-- ¹�ب¯°ھ -1 : ¾ئ¹«°ØÂ*µµ ¾ئ´ش / 0 : ¼�¶ô°، / 1 : ¼Ù�اÃÂ*ءك / 2 : ء¾·ل°،´ة / 255 : �ج¹جء¾·ل
if quest_progress3322 == 255 or 0 then
dlg_text( "@91002409" ) --¸¶½؛إØÂ*إ¬·،½؛ �üء÷ ´ë»َ�ع ´ë»ç
--================================================== ==========================
-- µ¥¹ظ�د ¶§
if race == 4 then
-- ³ھ�جئ® �üء÷ �üء÷
if current_job == 210 then
-- °،ءî³ھ�جئ® 220
number_job = 1
job_name1 = "@10220"
job1 = 220
-- ؟�¸®¾î �üء÷ �üء÷
elseif current_job == 211 then
-- ب÷¾î·خ 221
number_job = 1
job_name1 = "@10221"
job1 = 221
-- ¸ق�جء��ا �üء÷
elseif current_job == 212 then
-- ¾ئإ©¸ق�جء� 222
number_job = 1
job_name1 = "@10222"
job1 = 222
-- اء¸®½؛ئ®�ا �üء÷
elseif current_job == 213 then
-- ¼¼�خئ® 223
number_job = 1
job_name1 = "@10223"
job1 = 223
-- ؛긮´��ا �üء÷
elseif current_job == 214 then
-- ¸¶؟،½؛ئ®·خ 224
number_job = 1
job_name1 = "@10224"
job1 = 224
-- �جµµ�ْµµ ¾ئ´د¸é ¾ئ¹«°ØÂ*µµ ¾ئ´د´ظ.
else
number_job = 0
end
--================================================== ==========================
-- ¾ئ¼�¶َ
elseif race == 5 then
-- ¾î½ط½إ�ا �üء÷
if current_job == 310 then
-- ½؛ئهإØÂ* 320
number_job = 1
job_name1 = "@10320"
job1 = 320
-- ·¹�خء®�ا �üء÷
elseif current_job == 311 then
-- ¼¨µµ؟ى½؛إÙâ€*ؤ؊¸ 321
number_job = 1
job_name1 = "@10321"
job1 = 321
-- ¼ز¼ÂÂ*·¯�ا �üء÷
elseif current_job == 312 then
-- µز¼¼�ج¾î 322
number_job = 1
job_name1 = "@10322"
job1 = 322
-- ´ظإ©¸إء�¼ا�ا �üء÷
elseif current_job == 313 then
-- ¼ز؟︮¹� 323
number_job = 1
job_name1 = "@10323"
job1 = 323
-- ¹èئ²¼ÂÂ*¸ً³ت �üء÷
elseif current_job == 314 then
-- ±و°،¸ق½¬ 324
number_job = 1
job_name1 = "@10324"
job1 = 324
-- (¹«½أ.)
else
number_job = 0
end
--================================================== ==========================
-- °،�ج¾ئ
else
-- �ü»ç�ا �üء÷
if current_job == 110 then
-- إ�½إ 120
number_job = 1
job_name1 = "@10120"
job1 = 120
-- ±أ»ç�ا �üء÷
elseif current_job == 111 then
-- ½إ±أ 121
number_job = 1
job_name1 = "@10121"
job1 = 121
-- ¸¶µµ»ç�ا �üء÷
elseif current_job == 112 then
-- ا��ع 122
number_job = 1
job_name1 = "@10122"
job1 = 122
-- ¸¶إ�»ç�ا �üء÷
elseif current_job == 113 then
-- ±Ù�°ÂÂ* 123
number_job = 1
job_name1 = "@10123"
job1 = 123
-- ¸¶¼�»ç�ا �üء÷
elseif current_job == 114 then
-- ³ھآû 124
number_job = 1
job_name1 = "@10124"
job1 = 124
-- �جµµ�ْµµ ¾ئ´د¸é ¾ئ¹«°ØÂ*µµ ¾ئ´د´ظ.
else
number_job = 0
end
end
else
-- ¸ًµç ½أ·أ�» Û�ج°ـ³»°ÙÅ* ؟©±â±îء� ؟آ 塯Â*�» Ø£ÃÂ*اداص´د´ظ.<(version :7.3)>
dlg_title( "@90300401" )
dlg_text( "@91002486" )
dlg_menu( "@90010003", 'goto_hactor()' )
dlg_menu( "@90010002", " " )
dlg_show()
return
end
else
end
if number_job == 1 then
dlg_menu( job_name1 , "Run_JobChange_check_common( '" .. job_name1 .. "' , " .. job1 .. " )" )
elseif number_job == 2 then
dlg_menu( job_name1 , "Run_JobChange_check_common( '" .. job_name1 .. "' , " .. job1 .. " )" )
dlg_menu( job_name2 , "Run_JobChange_check_common( '" .. job_name2 .. "' , " .. job2 .. " )" )
elseif number_job == 3 then
dlg_menu( job_name1 , "Run_JobChange_check_common( '" .. job_name1 .. "' , " .. job1 .. " )" )
dlg_menu( job_name2 , "Run_JobChange_check_common( '" .. job_name2 .. "' , " .. job2 .. " )" )
dlg_menu( job_name3 , "Run_JobChange_check_common( '" .. job_name3 .. "' , " .. job3 .. " )" )
else
end
dlg_menu( "@90010003", 'goto_hactor()' )
dlg_menu( "@90010001", '' )
dlg_show()
end
function goto_hactor()
warp( 138645, 75174, gv("layer") )
end
function tp_point()
-- ´ظ�ج¾َ·خ±× أâ·آ
dlg_title( "@90999851" )
dlg_text( "@91002551" )
--ئ¯¼؛ ½؛إ³�ج¶�?
dlg_menu( "@91002554", "tp_skill()")
-- ´ëبÂÂ*ء¾·ل
--dlg_menu( "@90010003","NPC_master_partdevil_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
-----------------------------------------------------------
-- »çإ؛¼ز³ÃÂ* TP ئ÷�خئ® ¼³¸ÙÅ*
function tp_point_2()
-- ´ظ�ج¾َ·خ±× أâ·آ
dlg_title( "@91002405" )
dlg_text( "@91002551" )
--ئ¯¼؛ ½؛إ³�ج¶�?
dlg_menu( "@91002554", "tp_skill_2()")
-- ´ëبÂÂ*ء¾·ل
dlg_menu( "@90010003","NPC_master_partdevil_contact()" ) -- µ¹¾ئ°،±â
dlg_menu( "@90010002", " " )
dlg_show()
end
function tp_skill_2()
-- ´ظ�ج¾َ·خ±× أâ·آ
dlg_title( "@91002405" )
--TP ئ÷�خئ® ؛ذ¹è´آ ¾îآ¼±¸ �ْآ¼±¸
dlg_text( "@91002553" )
--»َ�§ ئ¯¼؛ ½؛إ³�ج¶�?
dlg_menu( "@91002556", "upper_tp_skill_2()")
-- اد�§ ئ¯¼؛ ½؛إ³�ج¶�?
dlg_menu( "@91002558", "lower_tp_skill_2()")
-- ´ëبÂÂ*ء¾·ل
dlg_menu( "@90010003","tp_point_2()" ) -- µ¹¾ئ°،±â
dlg_menu( "@90010002", " " )
dlg_show()
end
function upper_tp_skill_2()
-- ´ظ�ج¾َ·خ±× أâ·آ
dlg_title( "@91002405" )
-- »َ�§ ئ¯¼؛ ½؛إ³�؛ ¾îآ¼±¸ �ْآ¼±¸
dlg_text( "@91002557" )
-- ´ëبÂÂ*ء¾·ل
dlg_menu( "@90010003","tp_skill_2()" ) -- µ¹¾ئ°،±â
dlg_menu( "@90010002", " " )
dlg_show()
end
function lower_tp_skill_2()
-- ´ظ�ج¾َ·خ±× أâ·آ
dlg_title( "@91002405" )
-- اد�§ ئ¯¼؛ ½؛إ³�؛ ¾îآ¼±¸ �ْآ¼±¸
dlg_text( "@91002559" )
-- ´ëبÂÂ*ء¾·ل
dlg_menu( "@90010003","tp_skill_2()" ) -- µ¹¾ئ°،±â
dlg_menu( "@90010002", " " )
dlg_show()
end
------------------------------------------------------------------------------------------------------------------------
function Run_JobChange_check_common( job_name , job_id )
-- �س½أ ؛¯¼� ¼±¾ً°ْ µ؟½أ؟، NPC ID °،ء®؟�±â
local npc_id = get_npc_id()
local jobid = job_id
-- إ¬¸¯ ½ا¼�اك�»ء�µ µ ¸ً¸£¹ا·خ ب®½اارء� ب®�خاطءـ.
-- °،�ج¾ئ �د ¶§ (4004)
if npc_id == 4004 then
dlg_title( "@90400401" )
-- µ¥¹ظ �د ¶§ (1004)
elseif npc_id == 1004 then
dlg_title( "@90100401" )
-- ¾ئ¼�¶َ �د ¶§ (2004)
elseif npc_id == 2004 then
dlg_title( "@90200401" )
-- ·ذµµ �د ¶§ (6004)
elseif npc_id == 6004 then
dlg_title( "@90600401" )
-- ½أإ©·çئ® �د ¶§ (7004)
elseif npc_id == 7004 then
dlg_title( "@90700401" )
-- ¸¶½؛إØÂ* »çإ؛¼ز³ÃÂ*
elseif npc_id == 11555 then
dlg_title( "@91002405" )
end -- if ³،
if jobid == 210 then
dlg_text_without_quest_menu("@90700411")
elseif jobid == 211 then
dlg_text_without_quest_menu("@90700412")
elseif jobid == 212 then
dlg_text_without_quest_menu("@90700413")
elseif jobid == 213 then
dlg_text_without_quest_menu("@90700414")
elseif jobid == 214 then
dlg_text_without_quest_menu("@90700415")
elseif jobid == 310 then
dlg_text_without_quest_menu("@90700416")
elseif jobid == 311 then
dlg_text_without_quest_menu("@90700417")
elseif jobid == 312 then
dlg_text_without_quest_menu("@90700418")
elseif jobid == 313 then
dlg_text_without_quest_menu("@90700419")
elseif jobid == 314 then
dlg_text_without_quest_menu("@90700420")
elseif jobid == 110 then
dlg_text_without_quest_menu("@90700421")
elseif jobid == 111 then
dlg_text_without_quest_menu("@90700422")
elseif jobid == 112 then
dlg_text_without_quest_menu("@90700423")
elseif jobid == 113 then
dlg_text_without_quest_menu("@90700424")
elseif jobid == 114 then
dlg_text_without_quest_menu("@90700425")
elseif jobid == 101 then
dlg_text_without_quest_menu("@90301919")
elseif jobid == 102 then
dlg_text_without_quest_menu("@90301920")
elseif jobid == 103 then
dlg_text_without_quest_menu("@90301921")
elseif jobid == 201 then
dlg_text_without_quest_menu("@90301913")
elseif jobid == 202 then
dlg_text_without_quest_menu("@90301914")
elseif jobid == 203 then
dlg_text_without_quest_menu("@90301915")
elseif jobid == 301 then
dlg_text_without_quest_menu("@90301916")
elseif jobid == 302 then
dlg_text_without_quest_menu("@90301917")
elseif jobid == 303 then
dlg_text_without_quest_menu("@90301918")
elseif jobid == 120 then --إ�½إ�ج¶�
dlg_text_without_quest_menu("@91002410")
elseif jobid == 121 then --½إ±أ�ج¶�
dlg_text_without_quest_menu("@91002411")
elseif jobid == 122 then --ا��ع¶�
dlg_text_without_quest_menu("@91002412")
elseif jobid == 123 then --±Ù�°ÂÂ*�ج¶�
dlg_text_without_quest_menu("@91002413")
elseif jobid == 124 then --³ھآû�ج¶�
dlg_text_without_quest_menu("@91002414")
elseif jobid == 220 then --°،ءî³ھ�جئ®¶�
dlg_text_without_quest_menu("@91002415")
elseif jobid == 221 then --ب÷¾î·خ¶�
dlg_text_without_quest_menu("@91002416")
elseif jobid == 222 then --Ã‚Â¾Ã˜Â¦Ã˜Â¥Ã‚Â©Ã‚Â¸Ã™â€šÃ›ï¿½Ã˜Â¬Ã˜Â¡Ã™ï¿½Ã‚Â¶Ã™ï ¿½
dlg_text_without_quest_menu("@91002417")
elseif jobid == 223 then --¼¼�خئ®¶�
dlg_text_without_quest_menu("@91002418")
elseif jobid == 224 then --¸¶؟،½؛ئ®·خ¶�
dlg_text_without_quest_menu("@91002419")
elseif jobid == 320 then --½؛ئهإØÂ*¶�
dlg_text_without_quest_menu("@91002420")
elseif jobid == 321 then --¼¨µµ؟ى½؛إÙâ€*ؤ؊¸Ã‚¶Ù�
dlg_text_without_quest_menu("@91002421")
elseif jobid == 322 then --µز¼¼�ج¾î¶�
dlg_text_without_quest_menu("@91002422")
elseif jobid == 323 then --¼ز؟︮¹�¶�
dlg_text_without_quest_menu("@91002423")
elseif jobid == 324 then --±و°،¸ق½¬¶�
dlg_text_without_quest_menu("@91002424")
end
dlg_menu( "@90010007", "Run_JobChange_common( '" .. job_name .. "' , " .. job_id ..' )' )
dlg_menu( "@90010001", '' )
dlg_show()
end
function Run_JobChange_common( job_name , job_id )
local current_job, current_jlv, job_depth
-- �س½أ ؛¯¼� ¼±¾ً°ْ µ؟½أ؟، NPC ID °،ء®؟�±â
local npc_id = get_npc_id()
-- ؟،اى¶َµً¾ك~~ Û�üء÷Û�ج؟Ùâ€*~
-- °،�ج¾ئ �د ¶§ (4004)
if npc_id == 4004 then
dlg_title( "@90400401" )
-- µ¥¹ظ �د ¶§ (1004)
elseif npc_id == 1004 then
dlg_title( "@90100401" )
-- ¾ئ¼�¶َ �د ¶§ (2004)
elseif npc_id == 2004 then
dlg_title( "@90200401" )
-- ·ذµµ �د ¶§ (6004)
elseif npc_id == 6004 then
dlg_title( "@90600401" )
-- µµ½أ �¯�û �د ¶§ (7032)
elseif npc_id == 7032 then
dlg_title( "@90703201" )
-- ½أإ©·çئ® �د ¶§ (7004)
elseif npc_id == 7004 then
dlg_title( "@90700401" )
-- ¸¶½؛إØÂ* »çإ؛¼ز³ÃÂ*
elseif npc_id == 11555 then
dlg_title( "@91002405" )
end -- if ³،
-- °،�ج¾ئ �د ¶§ (4004)
if npc_id == 4004 then
dlg_text_without_quest_menu(sconv("@90400406", "#@job_name@#",job_name))
--##³، Ø£ÃÂ*اداد³×!!<BR>Ø¡Ù� ±Ù� Û�ج¼ّ°£؛خإØÂ* �ع³ظ #@job_name@#(/�ج)¶َ´آ ء÷¾÷�» °،ء�°ش µا¾ْ¾î.<BR>؛¸´ظ ³ô�؛ °÷�» اâاط ء¤ءّادµµ·د اد°ش.'
-- µ¥¹ظ �د ¶§ (1004)
elseif npc_id == 1004 then
dlg_text_without_quest_menu(sconv("@90100406", "#@job_name@#",job_name))
--##³، Ø£ÃÂ*اداد³×!!<BR>Ø¡Ù� ±Ù� Û�ج¼ّ°£؛خإØÂ* �ع³ظ #@job_name@#(/�ج)¶َ´آ ء÷¾÷�» °،ء�°ش µا¾ْ¾î.<BR>؛¸´ظ ³ô�؛ °÷�» اâاط ء¤ءّادµµ·د اد°ش.'
-- ¾ئ¼�¶َ �د ¶§ (2004)
elseif npc_id == 2004 then
dlg_text_without_quest_menu(sconv("@90200406", "#@job_name@#",job_name))
--##³، Ø£ÃÂ*اداد³×!!<BR>Ø¡Ù� ±Ù� Û�ج¼ّ°£؛خإØÂ* �ع³ظ #@job_name@#(/�ج)¶َ´آ ء÷¾÷�» °،ء�°ش µا¾ْ¾î.<BR>؛¸´ظ ³ô�؛ °÷�» اâاط ء¤ءّادµµ·د اد°ش.'
-- ·ذµµ �د ¶§ (6004)
elseif npc_id == 6004 then
dlg_text_without_quest_menu(sconv("@90600406", "#@job_name@#",job_name))
--##³، Ø£ÃÂ*اداد³×!!<BR>Ø¡Ù� ±Ù� Û�ج¼ّ°£؛خإØÂ* �ع³ظ #@job_name@#(/�ج)¶َ´آ ء÷¾÷�» °،ء�°ش µا¾ْ¾î.<BR>؛¸´ظ ³ô�؛ °÷�» اâاط ء¤ءّادµµ·د اد°ش.'
-- µµ½أ �¯�û �د ¶§ (7032)
elseif npc_id == 7032 then
dlg_text_without_quest_menu(sconv("@90703206", "#@job_name@#",job_name))
--##³، Ø£ÃÂ*اداد³×!!<BR>Ø¡Ù� ±Ù� Û�ج¼ّ°£؛خإØÂ* �ع³ظ #@job_name@#(/�ج)¶َ´آ ء÷¾÷�» °،ء�°ش µا¾ْ¾î.<BR>؛¸´ظ ³ô�؛ °÷�» اâاط ء¤ءّادµµ·د اد°ش.'
-- ½أإ©·çئ® �د ¶§ (7004)
elseif npc_id == 7004 then
dlg_text_without_quest_menu(sconv("@90700406", "#@job_name@#",job_name))
--##³، Ø£ÃÂ*اداد³×!!<BR>Ø¡Ù� ±Ù� Û�ج¼ّ°£؛خإØÂ* �ع³ظ #@job_name@#(/�ج)¶َ´آ ء÷¾÷�» °،ء�°ش µا¾ْ¾î.<BR>؛¸´ظ ³ô�؛ °÷�» اâاط ء¤ءّادµµ·د اد°ش.'
-- ¸¶½؛إØÂ* »çإ؛¼ز³ÃÂ*
elseif npc_id == 11555 then
dlg_text_without_quest_menu(sconv("@91002425", "#@job_name@#",job_name))
local master_up = sconv("@246", "#@user_name@#", get_value("name"),"#@job_name@#",job_name)
announce( master_up )
if gv("tp") == 0 then
sv("tp",3)
end
--##³، Ø£ÃÂ*اداد³×!!<BR>Ø¡Ù� ±Ù� Û�ج¼ّ°£؛خإØÂ* �ع³ظ #@job_name@#(/�ج)¶َ´آ ء÷¾÷�» °،ء�°ش µا¾ْ¾î.<BR>؛¸´ظ ³ô�؛ °÷�» اâاط ء¤ءّادµµ·د اد°ش.'
end -- if ³،
dlg_menu( "@90010002", '' )
dlg_show()
-- �üء÷ �ü ء÷¾÷°ْ �â·¹؛§�» �ْ�هار´ظ.
current_job = get_value( "job" )
current_jlv = get_value( "job_level" )
job_depth = get_value( "job_depth" )
if job_depth == 0 then
set_value( "job_0", current_job )
set_value( "jlv_0", current_jlv )
elseif job_depth == 1 then
set_value( "job_1", current_job )
set_value( "jlv_1", current_jlv )
elseif job_depth == 2 then
set_value( "job_2", current_job )
set_value( "jlv_2", current_jlv )
--¸¶½؛إØÂ*إ¬·،½؛ �üء÷ �ü ء÷¾÷°ْ �â·¹؛§ Û�Ù’Û�Ù‡
elseif job_depth == 3 then
set_value( "job_3", current_job )
set_value( "jlv_3", current_jlv )
local master_up = sconv("@246", "#@user_name@#", get_value("name"),"#@job_name@#",job_name)
end
job_depth = job_depth + 1
-- �üء÷ ½أإ°±â.
set_value( "job" , job_id )
set_value( "job_level" , 1 )
set_value( "job_depth" , job_depth )
--##½أ�غ
message( sconv("@90010017", "#@job_name@#",job_name) )
--³، #@job_name@# (/�¸)·خ �üء÷اك½�´د´ظ
end
--================================================== ===
-- أت؛¸�ع¼¶ ¼¶ ؟ë
--================================================== ===
function NPC_JobChange_Beginner_contact()
--================================================== ==============================
-- �üء÷ ؛ز°،´ةار °و؟ى °ٌ¶َ³»±â
--================================================== ==============================
-- ±â؛»ء÷¾÷�د ¶§ Lv�ج³ھ JLv�ج 10 ¹ج¸¸�ج¸é �üء÷؛ز°،.
if get_value( "job_depth" ) == 0 then
if get_value( "level" ) < 10 or get_value( "job_level" ) < 10 then
dlg_title( "@90300401" )
dlg_text( "@90300403" )
dlg_menu( "@90010002", "" )
dlg_show()
return
end
-- 1آ÷ ء÷¾÷�د ¶§ Lv50 ¹ج¸¸ JLv�ج 40 ¹ج¸¸�ج¸é �üء÷؛ز°،. (اطء¦) 2آ÷ ء÷¾÷ �üء÷ ¸ًµخ ¸·±â.
elseif get_value( "job_depth" ) == 1 then
if get_value( "level" ) < 50 or get_value( "job_level" ) < 40 then
dlg_title( "@90300401" )
-- dlg_text( "@90300409" )
dlg_text( "@90300402" ) --> �س½أ : 2آ÷�üء÷ ؛ز°،´ةاد´ظ´آ ¾ب³»¸ق¼¼ء�
dlg_menu( "@90010002", "" )
dlg_show()
return
else
dlg_title( "@90300401" )
dlg_text( "@90300402" ) --> �س½أ : 2آ÷�üء÷ ؛ز°،´ةاد´ظ´آ ¾ب³»¸ق¼¼ء�
dlg_menu( "@90010002", "" )
dlg_show()
return
end
-- ؟©±â±îء� ؟�¸é 2آ÷ء÷¾÷�خ »َإآ. 3آ÷·خ�ا �üء÷�؛ ؛ز°،´ةاش.
else
dlg_title( "@90300401" )
dlg_text( "@90300402" ) --> ء�±��؛ 3آ÷�üء÷ ¾بµب´ظ´آ ´ë»ç
dlg_menu( "@90010002", "" )
dlg_show()
return
end
-- ؟©±â±îء� ؟ش�¸¸é �üء÷ °،´ة
local race = get_value( "race" )
local job_name1, job1, job_name2, job2, job_name3, job3, number_job, current_job
dlg_title( "@90300401" )
-- �üء÷ °،´ةار ء÷¾÷�ا °³¼�¸¦ أت±âبÂÂ*. ±â؛»�ج 3�ج´د ±×³ة 3�¸·خ...
number_job = 3
-- ا��ç ء÷¾÷ ID¸¦ ¹ق¾ئ ³�´آ´ظ.
current_job = get_value( "job" )
--================================================== ==============================
-- 1آ÷ �üء÷�د °و؟ى. (إ×Û�ج؛ÙÅ*؟،¼ÂÂ* ¸ّ�ذ¾î؟�¹ا·ؠ® �üء÷ء¤؛¸´آ ؟©±â¼ÂÂ* °ÙÅ*ؤ،�ع)
--================================================== ==============================
if get_value( "job_depth" ) == 0 then
dlg_text( "@90300404" )
-- �üء÷ °،´ةار ء÷¾÷�ا °³¼�¸¦ ¼³ء¤. 1آ÷ �üء÷�ج¹ا·خ ¸ًµخ 3 �ج´ظ.
number_job = 3
--================================================== ==========================
-- ¾ê°، µ¥¹ظ¸é µً¹ظ�خ¼ضء® 201 ¶ا´آ إ¬·¹¸¯ 203, ؛긮´� 204°، µة ¼� �ض´ظ.
if race == 4 then
job_name1 = "@10201"
job1 = 201
job_name2 = "@10202"
job2 = 202
job_name3 = "@10203"
job3 = 203
--================================================== ==========================
-- ¾ئ¼�¶َ¸é ½؛ئ®¶َ�ج´�301³ Ú¾ ´ظإ©¸إء�¼ا303, ¼ز¼ÂÂ*·¯304°، µة ¼� �ض´ظ.
elseif race == 5 then
job_name1 = "@10301"
job1 = 301
job_name2 = "@10302"
job2 = 302
job_name3 = "@10303"
job3 = 303
--================================================== ==========================
-- µ¥¹ظµµ ¾ئ¼�¶َµµ ¾ئ´د¸é °،�ج¾ئ°عء�. إ�»ç 101, ءض¼ْ»ç 103, ¸¶¼�»ç 104 °، µة ¼� �ض´ظ.
else
job_name1 = "@10101"
job1 = 101
job_name2 = "@10102"
job2 = 102
job_name3 = "@10103"
job3 = 103
end
end
if number_job == 1 then
dlg_menu( job_name1 , "Run_JobChange_Beginner_check( '" .. job_name1 .. "' , " .. job1 .. " )" )
elseif number_job == 2 then
dlg_menu( job_name1 , "Run_JobChange_Beginner_check( '" .. job_name1 .. "' , " .. job1 .. " )" )
dlg_menu( job_name2 , "Run_JobChange_Beginner_check( '" .. job_name2 .. "' , " .. job2 .. " )" )
elseif number_job == 3 then
dlg_menu( job_name1 , "Run_JobChange_Beginner_check( '" .. job_name1 .. "' , " .. job1 .. " )" )
dlg_menu( job_name2 , "Run_JobChange_Beginner_check( '" .. job_name2 .. "' , " .. job2 .. " )" )
dlg_menu( job_name3 , "Run_JobChange_Beginner_check( '" .. job_name3 .. "' , " .. job3 .. " )" )
else
end
dlg_menu( "@90010001", '' )
dlg_show()
end
function Run_JobChange_Beginner_check( job_name , job_id )
-- إ¬¸¯ ½ا¼�اك�»ء�µ µ ¸ً¸£¹ا·خ ب®½اارء� ب®�خاطءـ.
cprint( job_name )
dlg_title( "@90300401" )
--##½أ�غ
--dlg_text( job_name .. "@90300405" )
dlg_text_without_quest_menu(sconv("@90300405", "#@job_name@#",job_name))
--##³، #@job_name@# (/�¸)·خ�ا �üء÷�ج¶َ...<BR>ءءà ›ï¿½Ã˜â€º ء÷¾÷�» °ٌ¶ْ±؛.<BR>ب®½اؠ§Ã˜Â±Ã‚°ØŒ?
dlg_menu( "@90010007", "Run_JobChange_Beginner( '" .. job_name .. "' , " .. job_id ..' )' )
dlg_menu( "@90010001", '' )
dlg_show()
end
function Run_JobChange_Beginner( job_name , job_id )
local current_job, current_jlv
-- ؟،اى¶َµً¾ك~~ Û�üء÷Û�ج؟Ùâ€*~
dlg_title( "@90300401" )
--##½أ�غ
dlg_text_without_quest_menu(sconv("@90300406", "#@job_name@#", job_name))
--##³، Ø£ÃÂ*اداد³×!!<BR>Ø¡Ù� ±Ù� Û�ج¼ّ°£؛خإØÂ* �ع³ظ #@job_name@#(/�ج)¶َ´آ ء÷¾÷�» °،ء�°ش µا¾ْ¾î.<BR>؛¸´ظ ³ô�؛ °÷�» اâاط ء¤ءّادµµ·د اد°ش.'
dlg_menu( "@90010002", '' )
dlg_show()
-- �üء÷ �ü ء÷¾÷°ْ �â·¹؛§�» �ْ�هار´ظ.
current_job = get_value( "job" )
current_jlv = get_value( "job_level" )
if get_value( "job_depth" ) == 0 then
set_value( "job_0", current_job )
set_value( "jlv_0", current_jlv )
elseif get_value( "job_depth" ) == 1 then
set_value( "job_1", current_job )
set_value( "jlv_1", current_jlv )
elseif get_value( "job_depth" ) == 2 then
set_value( "job_2", current_job )
set_value( "jlv_2", current_jlv )
end
-- �üء÷ ½أإ°±â.
set_value( "job" , job_id )
set_value( "job_level" , 1 )
set_value( "job_depth" , 1 )
--##½أ�غ
message( sconv("@90010017", "#@job_name@#",job_name) )
--##³، #@job_name@# (/�¸)·خ �üء÷اك½�´د´ظ .
end
------------------------------------------------------------------------------------------------------------------------
------------------------- ¼�·أ�ع�ا ¼¶ �â ¼ÂÂ*ئ÷إØÂ*´آ ئ©إÙâ€*¸®¾َ؟، �ض½�´د´ظ. �ج°ا »ç؟ëادء� ¾ت½�´د´ظ. -------------------------
------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------
--¸¶½؛إØÂ* إ¬·،½؛ ½؛إ³ أت±âبÂÂ* ½؛إ©¸³ئ® ¸ق�خ
--·çاا·خ أت±âبÂÂ* اد±â
function gold_skill_reset_check( npc_id )
local reset_gold = { 10000, 2500000, 5000000, 10000000, 25000000, 50000000, 100000000, 500000000, 1000000000, 2000000000 }
local reset_count = NPC_JobChange_get_resetcount()
local cost_gold = reset_gold[ reset_count + 1 ]
local gold = get_value( 'gold' )
local npc_id = get_npc_id()
-- °،�ج¾ئ �د ¶§ (4004)
if npc_id == 4004 then
dlg_title( "@90400401" )
-- µ¥¹ظ �د ¶§ (1004)
elseif npc_id == 1004 then
dlg_title( "@90100401" )
-- ¾ئ¼�¶َ �د ¶§ (2004)
elseif npc_id == 2004 then
dlg_title( "@90200401" )
-- ·ذµµ �د ¶§ (6004)
elseif npc_id == 6004 then
dlg_title( "@90600401" )
-- µµ½أ�¯�û �د ¶§ (7032)
elseif npc_id == 7032 then
dlg_title( "@90703201" )
-- ½أإ©·çئ® �د ¶§ (7004)
elseif npc_id == 7004 then
dlg_title( "@90700401" )
end -- if ³،
if gold >= cost_gold then
set_value( 'gold', gold - cost_gold )
reset_skill( 3 )
if reset_count < 9 then
set_flag( 'reset_count', reset_count + 1 )
dlg_text( "@90604805" )
dlg_menu( "@90010002", "" )
dlg_show()
return
else
set_flag( 'reset_count', 9 )
dlg_text( "@90604805" )
dlg_menu( "@90010002", "" )
dlg_show()
return
end
else
dlg_text( "@90604806" )
dlg_menu( "@90010002", "" )
dlg_show()
return
end
end
--JP·خ أت±âبÂÂ* اد±â
function jp_skill_reset_check( npc_id )
local reset_jp = { 2000, 500000, 1000000, 2000000, 5000000, 10000000, 20000000, 100000000, 200000000, 400000000 }
local reset_count = NPC_JobChange_get_resetcount()
local cost_jp = reset_jp[ reset_count + 1 ]
local jp = get_value( 'jp' )
local npc_id = get_npc_id()
-- °،�ج¾ئ �د ¶§ (4004)
if npc_id == 4004 then
dlg_title( "@90400401" )
-- µ¥¹ظ �د ¶§ (1004)
elseif npc_id == 1004 then
dlg_title( "@90100401" )
-- ¾ئ¼�¶َ �د ¶§ (2004)
elseif npc_id == 2004 then
dlg_title( "@90200401" )
-- ·ذµµ �د ¶§ (6004)
elseif npc_id == 6004 then
dlg_title( "@90600401" )
-- µµ½أ�¯�û �د ¶§ (7032)
elseif npc_id == 7032 then
dlg_title( "@90703201" )
-- ½أإ©·çئ® �د ¶§ (7004)
elseif npc_id == 7004 then
dlg_title( "@90700401" )
end -- if ³،
if jp >= cost_jp then
set_value( 'jp', jp - cost_jp )
reset_skill( 3 )
if reset_count < 9 then
set_flag( 'reset_count', reset_count + 1 )
dlg_text( "@90604805" )
dlg_menu( "@90010002", "" )
dlg_show()
return
else
set_flag( 'reset_count', 9 )
dlg_text( "@90604805" )
dlg_menu( "@90010002", "" )
dlg_show()
return
end
else
dlg_text( "@90604806" )
dlg_menu( "@90010002", "" )
dlg_show()
return
end
end
--¸¶½؛إØÂ* إ¬·،½؛ ½؛إ³ أت±âبÂÂ* ؤ«؟îإØÂ* ء�°، ¾ّ�ج ½ااÃÂ*
function item_skill_reset()
reset_skill( 3 )
cprint("@90604808")
return
end
--¸¶½؛إØÂ* إ¬·،½؛ أت±âبÂÂ* ؤ«؟îإØÂ* أت±âبÂÂ* اد±â
function Skill_reset_count_init()
local reset_count = NPC_JobChange_get_resetcount()
set_flag( 'reset_count', 0 )
cprint("@90604807")
return
end
function tomaster()
warp(30654,39431,gv("layer"))
end
function get_taming_id(taming_id)
local test_table = {}
local adf
if taming_id == 7507 then
test_table = {6301,6304,6307,7507,7510,7513}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6311 then
test_table = {6311,6314,6317,7516,7519,7522}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6321 then
test_table = {6321,6324,6327,7525,7528,7531}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7534 then
test_table = {6331,6334,6337,7534,7537,7540}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6341 then
test_table = {6341,6344,6347,7543,7546,7549}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6351 then
test_table = {6351,6354,6357}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6361 then
test_table = {6361,6364,6367,7552,7555,7558,8163,8166,8169}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6377 then
test_table = {6371,6374,6377,8154,8157,8160}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6381 then
test_table = {6381,6384,6387}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7217 then
test_table = {7217,7221}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7224 then
test_table = {7224,7227}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7211 then
test_table = {7211,7214}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7191 then
test_table = {7191,7194}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7204 then
test_table = {7204,7207}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7201 then
test_table = {7197,7201}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7164 then
test_table = {7164,7167}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7161 then
test_table = {7161}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 8235 then
test_table = {6811,6814,6817,7822,7825,7828,8235,8238,8241}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7831 then
test_table = {6821,6824,6827,7831,7834,7837}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6831 then
test_table = {6831,6834,6837}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6841 then
test_table = {6841,6844,6847,7840,7843,7846}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7849 then
test_table = {6851,6854,6857,7849,7852,7855}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 8325 then
test_table = {7101,7104,7107,8325,8328,8331}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7061 then
test_table = {7061,7064,8011,8014}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 8017 then
test_table = {7067,7071,8017,8020}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 8023 then
test_table = {7074,7077,8023,8026,8313,8316}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7993 then
test_table = {7041,7044,7993,7996}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7047 then
test_table = {7047,7051,7999,8002,8307,8310}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 8005 then
test_table = {7054,7057,8005,8008}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7975 then
test_table = {7021,7024,7975,7978}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7027 then
test_table = {7027,7031,7981,7984}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7034 then
test_table = {7034,7037,7987,7990}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 8032 then
test_table = {7081,7084,8029,8032}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7087 then
test_table = {7087,7091,8035,8038,8319,8322}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7094 then
test_table = {7094,7097,8041,8044}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7131 then
test_table = {7131,7134,7137}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6241 then
test_table = {6241,6244,6247,7453,7456,7459}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6251 then
test_table = {6251,6254,6257,7462,7465,7468}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7471 then
test_table = {6261,6264,6267,7471,7474,7477}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6271 then
test_table = {6271,6274,6277,7480,7483,7486}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7489 then
test_table = {6281,6284,6287,7489,7492,7495}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6291 then
test_table = {6291,6294,6297,7498,7501,7504}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7561 then
test_table = {6391,6394,6397,7561,7564,7567}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6401 then
test_table = {6401,6404,6407,7570,7573,7576}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6411 then
test_table = {6411,6414,6417}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6421 then
test_table = {6421,6424,6427,7579,7582,7585}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 8358 then
test_table = {7121,7124,7127,8352,8355,8358}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6701 then
test_table = {6701,6704,6707}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7171 then
test_table = {7171,7174,7177,8053,8056,8059}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7237 then
test_table = {7231,7234,7237}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7241 then
test_table = {7241,7244,7247}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7251 then
test_table = {7251,7254,7257}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6951 then
test_table = {6951,6954,6957,7912,7915,7918}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 8277 then
test_table = {6961,6964,6967,7921,7924,7927,8271,8274,8277}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6751 then
test_table = {6751,6754,6757,7795,7798,7801}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6761 then
test_table = {6761,6764,6767,7804,7807,7810}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7813 then
test_table = {6771,6774,6777,7813,7816,7819,8226,8229,8232}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6781 then
test_table = {6781,6784,6787}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6791 then
test_table = {6791,6794,6797}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6801 then
test_table = {6801,6804,6807}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6977 then
test_table = {6971,6974,6977,7930,7933,7936,8280,8283,8286}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6924 then
test_table = {6921,6924,6927,7894,7897,7900}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7759 then
test_table = {6671,6674,6677,7759,7762,7765}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7768 then
test_table = {6681,6684,6687,7768,7771,7774}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7951 then
test_table = {6991,6994,6997,7948,7951,7954}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7001 then
test_table = {7001,7004,7007,7957,7960,7963,8298,8301,8304}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7966 then
test_table = {7011,7014,7017,7966,7969,7972}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6931 then
test_table = {6931,6934,6937,7903,7906,7909,8262,8265,8268}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6461 then
test_table = {6461,6464,6467,7615,7618,7621}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7624 then
test_table = {6471,6474,6477,7624,7627,7630}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6481 then
test_table = {6481,6484,6487,7633,7636,7639}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7642 then
test_table = {6491,6494,6497,7642,7645,7648}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6501 then
test_table = {6501,6504,6507,7651,7654,7657}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 8289 then
test_table = {6981,6984,6987,7939,7942,7945,8289,8292,8295}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6711 then
test_table = {6711,6714,6717}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7660 then
test_table = {6511,6514,6517,7660,7663,7666,8181,8184,8187}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 8190 then
test_table = {6521,6524,6527,7669,7672,7675,8190,8193,8196}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7678 then
test_table = {6531,6534,6537,7678,7681,7684,8199,8202,8205}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7693 then
test_table = {6541,6544,6547,7687,7690,7693}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6551 then
test_table = {6551,6554,6557}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6561 then
test_table = {6561,6564,6567}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7864 then
test_table = {6861,6864,6867,7858,7861,7864}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6871 then
test_table = {6871,6874,6877,7867,7870,7873}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6881 then
test_table = {6881,6884,6887}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6891 then
test_table = {6891,6894,6897}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6901 then
test_table = {6901,6904,6907,7876,7879,7882,8244,8247,8250}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 8253 then
test_table = {6911,6914,6917,7885,7888,7891,8253,8256,8259}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6691 then
test_table = {6691,6694,6697}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6941 then
test_table = {6941,6944,6947}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7378 then
test_table = {6101,6104,6107,7372,7375,7378}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6111 then
test_table = {6111,6114,6117,7381,7384,7387,8118,8121,8124}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6121 then
test_table = {6121,6124,6127}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6131 then
test_table = {6131,6134,6137,7390,7393,7396}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6141 then
test_table = {6141,6144,6147}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6151 then
test_table = {6151,6154,6157,7399,7402,7405}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7408 then
test_table = {6161,6164,6167,7408,7411,7414}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6171 then
test_table = {6171,6174,6177}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 8385 then
test_table = {8379,8382,8385}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6181 then
test_table = {6181,6184,6187,7417,7420,7423,8127,8130,8133}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 8139 then
test_table = {6191,6194,6197,7426,7429,7432,8136,8139,8142}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7435 then
test_table = {6201,6204,6207,7435,7438,7441}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6211 then
test_table = {6211,6214,6217,8334,8337,8340}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6221 then
test_table = {6221,6224,6227}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 8145 then
test_table = {6231,6234,6237,7444,7447,7450,8145,8148,8151}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 8217 then
test_table = {6661,6664,6667,7750,7753,7756,8217,8220,8223}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6021 then
test_table = {6021,6024,6027,7318,7321,7324,8109,8112,8115}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7786 then
test_table = {6731,6734,6737,7786,7789,7792}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6741 then
test_table = {6741,6744,6747}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7111 then
test_table = {7111,7114,7117}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6011 then
test_table = {6011,6014,6017,7309,7312,7315}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6721 then
test_table = {6721,6724,6727,7777,7780,7783}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7702 then
test_table = {6571,6574,6577,7696,7699,7702,8208,8211,8214}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6581 then
test_table = {6581,6584,6587,7705,7708,7711}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6591 then
test_table = {6591,6594,6597}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6601 then
test_table = {6601,6604,6607,7714,7717,7720}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6617 then
test_table = {6611,6614,6617,7723,7726,7729}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7735 then
test_table = {6621,6624,6627,7732,7735,7738,8343,8346,8349}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7744 then
test_table = {6631,6634,6637,7741,7744,7747}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6641 then
test_table = {6641,6644,6647}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6651 then
test_table = {6651,6654,6657}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6001 then
test_table = {6001,6004,6007,7300,7303,7306,8100,8103,8106}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7261 then
test_table = {7261}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7267 then
test_table = {7267}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7274 then
test_table = {7274}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7281 then
test_table = {7281}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7264 then
test_table = {7264}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7271 then
test_table = {7271}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7277 then
test_table = {7277}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7284 then
test_table = {7284}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7181 then
test_table = {7181,7184,7187}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6031 then
test_table = {6031,6034,6037,7327,7330,7333}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7336 then
test_table = {6041,6044,6047,7336,7339,7342}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6051 then
test_table = {6051,6054,6057,7345,7348,7351}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6061 then
test_table = {6061,6064,6067}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6071 then
test_table = {6071,6074,6077,7354,7357,7360}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7363 then
test_table = {6081,6084,6087,7363,7366,7369}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6091 then
test_table = {6091,6094,6097}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7591 then
test_table = {6431,6434,6437,7588,7591,7594}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6441 then
test_table = {6441,6444,6447,7597,7600,7603}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 6451 then
test_table = {6451,6454,6457,7606,7609,7612,8172,8175,8178}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 8047 then
test_table = {7147,7151,8047,8050,8367,8370}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 7144 then
test_table = {7141,7144,8361,8364}
adf = test_table[math.random(table.getn(test_table))]
elseif taming_id == 8373 then
test_table = {7154,7157,8373,8376}
adf = test_table[math.random(table.getn(test_table))]
end
return adf
end
function new_taming_system(taming_id,mysterious_support)
-- BY ROYAL \ STRANGE2010
local need_card = find_item(540201)
if need_card > 0 then
local taming_percentage = math.random(100)
local whsp = get_value("name")
local state_lv = get_state_level(48400)
local h_state_lv = state_lv / 2
local tame_id = get_taming_id(taming_id)
local item_id = tame_id + 540000
if h_state_lv < 1 then
whisper(whsp,"لم تقم بتÙ�عÙÅ*Ù„ مهارة الصÙÅ*د .")
elseif h_state_lv > 0 then
local tm_after = h_state_lv + 9
if taming_percentage >= 0 then
whisper(whsp,"لقد Ùâ€*جØÂ* صÙÅ*د الوØÂ*Ø´ .")
insert_item(item_id, 1, 0, 1, -2147483648)
else
whisper(whsp,"لقد �شل صÙÅ*د الوØÂ*Ø´ .")
end
delete_item(get_item_handle(540201),1)
remove_state(48400, get_state_level(48400))
end
else
whisper(whsp,"Ø£Ùâ€*ت لا تمتلك بطاقة الصÙÅ*د .")
end
if mysterious_support == 8 then
mysterious_effect()
end
end
----------------------------------------