Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function get_module_name()
- return "on_player_level_up"
- end
- function on_player_level_up()
- --local tx, ty, current_x, island_number
- local lv = get_value( "level" )
- if lv == 5 then
- -- °¢ 1¹ø ¼¶ÀÇ ÅÚ·¹Æ÷Æ® ÁÂÇ¥
- -- tx = 30315
- -- ty = 5480
- -- ÇöÀç±Íȯ À§Ä¡¸¦ °¡Á®¿È.
- current_x = get_flag( "rx" )
- -- ¸î ¹ø ° ¼¶ÀÎÁö È®ÀÎ.
- -- local i
- -- for i = 1, 6 do
- -- if current_x < ( 18816 * (i-1) + tx) and current_x + 3000 > ( (18816 * (i-1) + tx) - 10000) then
- -- island_number = i
- -- end
- -- end
- -- ±ÍȯÁö¿ªÀ» ÇöÀç Ãʺ¸ÀÚ¼¶ Ä·ÇÁÀ¸·Î ¼³Á¤
- set_flag( "rx", 172543 + math.random(0,100))
- set_flag( "ry", 51847 + math.random(0,100))
- end
- -- ±¹°¡ ÄÚµå Àоî¿À±â
- -- get_local_info()ÀÇ ¹Ýȯ°ªµé
- --LOCAL_INFO_KOREA = 1
- --LOCAL_INFO_HONGKONG = 2
- --LOCAL_INFO_AMERICA = 4
- --LOCAL_INFO_GERMANY = 8
- --LOCAL_INFO_JAPAN = 16
- --LOCAL_INFO_TAIWAN = 32
- --LOCAL_INFO_CHINA = 64
- --LOCAL_INFO_FRANCE = 128
- --LOCAL_INFO_RUSSIA = 256
- local state_code = get_local_info()
- -- 18·¹º§ ÀÌ»óÀ̳ª ¼ö·ÃÀÚÀÇ ¼¶ ³»¿¡ ÀÖ´Â °æ¿ì Á¾Á· ¸¶À»·Î ±Íȯ ÁöÁ¡ ¼³Á¤
- local current_x = gv("x")
- local current_y = gv("y")
- local race = get_value( "race" )
- -- ¹Ì±¹ÀÌ¸é ¹«Á¶°Ç ¾Èº¸³¿ (Àü ±¹°¡ Àû¿ë ¾ÈÇÔÀ¸·Î º¯°æ 08.07.29)
- if state_code == 511 then
- -- ¾Æ¹«Áþµµ ¾ÈÇØ¿ä
- elseif lv >= 18 then
- -- ¼ö·ÃÀÚÀÇ ¼¶¿¡ ÀÖ´ÂÁö ¿©ºÎ üũ
- if current_x >= 161280 and current_x <= 177408 then
- if current_y >= 48384 and current_y <= 64512 then
- -- ÇöÀç±Íȯ À§Ä¡¸¦ °¡Á®¿È.
- local return_x = get_flag( "rx" )
- local return_y = get_flag( "ry" )
- -- ¼ö·ÃÀÚÀÇ ¼¶ÀÌ ±ÍȯÀÎÁö üũ
- if return_x == 173183 and return_y == 52299 then
- -- ±ÍȯÁö¿ªÀ» ÇØ´ç Á¾Á· ¸¶À»·Î ¼³Á¤
- -- µ¥¹ÙÀÏ °æ¿ì
- if race == 4 then
- set_flag( "rx", 6625 + math.random(0,100))
- set_flag( "ry", 6980 + math.random(0,100))
- -- ¾Æ¼ö¶óÀÏ °æ¿ì
- elseif race == 5 then
- set_flag( "rx", 116799 + math.random(0,100))
- set_flag( "ry", 58205 + math.random(0,100))
- -- °¡À̾ÆÀÏ °æ¿ì
- else
- set_flag( "rx", 153513 + math.random(0,100))
- set_flag( "ry", 77203 + math.random(0,100))
- end -- if race == 4 then
- -- ¼ö·ÃÀÚÀÇ ¼¶¿¡ ÀÖ°í 18·¹º§ ÀÌ»óÀ̱⠶§¹®¿¡ ÇØ´ç Á¾Á· ¸¶À»·Î °Á¦ ±Íȯ ¼³Á¤ µÆ´Ù´Â ¸Þ½ÃÁö ³¯¸².
- message( "@235")
- end -- if return_x == 173183 and return_y == 52299
- end -- if current_y >= 48384 and current_y <= 64512 then
- end -- if current_x >= 161280 and current_x <= 177408 then
- end -- if lv >= 18 then
- -- ¿ÀÅä·Î ¼¼ÆÃµÈ Ä³¸¯ÅͶó¸é Àú ¸Ö¸® ³¯·Á ¹ö¸®ÀÚ~
- kick_auto_to_another_world()
- -- ¼ö·ÃÀÚ ¼¶¿¡ ÀÖ´Â ¿ÀÅäµéÀº º»Åä·Î ³¯·Á ¹ö¸®ÀÚ
- local current_x = gv("x")
- local current_y = gv("y")
- local race = get_value( "race" )
- if current_x >= 161280 and current_x <= 177408 then
- if current_y >= 48384 and current_y <= 64512 then
- local is_auto, quest_count
- quest_count, is_auto = anti_auto_quest_check()
- if is_auto then
- if race == 4 then
- RunTeleport_Auto_TO_City( 6625 , 6980 )
- elseif race == 5 then
- RunTeleport_Auto_TO_City( 116799 , 58205 )
- else
- RunTeleport_Auto_TO_City( 153506 , 77175 )
- end
- end -- if is_auto then
- end -- if current_y >= 48384 and current_y <= 64512 then
- end -- if current_x >= 161280 and current_x <= 177408 then
- save()
- -- ·¹º§¾÷ ´Þ¼º À̺¥Æ® ó¸®
- -- ±¹°¡ ÄÚµå Àоî¿À±â
- -- get_local_info()ÀÇ ¹Ýȯ°ªµé
- --LOCAL_INFO_KOREA = 1
- --LOCAL_INFO_HONGKONG = 2
- --LOCAL_INFO_AMERICA = 4
- --LOCAL_INFO_GERMAN = 8
- --LOCAL_INFO_JAPAN = 16
- --LOCAL_INFO_TAIWAN = 32
- --LOCAL_INFO_CHINA = 64
- --LOCAL_INFO_FRANCE = 128
- --LOCAL_INFO_RUSSIA = 256
- --LOCAL_INFO_MALAYSIA = 512
- --LOCAL_INFO_SINGAPORE = 1024
- --LOCAL_INFO_VIETNAM = 2048
- --LOCAL_INFO_THAILAND = 4096
- --LOCAL_INFO_MIDEAST = 8192
- --LOCAL_INFO_TURKEY = 16384
- Check_item1()
- Check_item2()
- Check_item3()
- Check_item4()
- Check_item5()
- Check_item6()
- Check_item7()
- Check_item8()
- Check_item9()
- Check_item10()
- Check_item11()
- Check_item12()
- local state_code = get_local_info()
- if state_code == 8 or state_code == 128 then
- local max_reached_level = gv( "max_reached_level" )
- local i
- for i = max_reached_level + 1 , lv do
- if i == 5 then
- insert_item( 3600289, 1 )
- elseif i == 10 then
- insert_item( 3600289, 1 )
- elseif i == 15 then
- insert_item( 3600289, 1 )
- elseif i == 20 then
- insert_item( 3600289, 1 )
- elseif i == 25 then
- insert_item( 3600289, 1 )
- elseif i == 30 then
- insert_item( 3600289, 1 )
- elseif i == 35 then
- insert_item( 3600289, 1 )
- elseif i == 40 then
- insert_item( 3600289, 1 )
- elseif i == 45 then
- insert_item( 3600289, 1 )
- elseif i == 50 then
- insert_item( 3600289, 1 )
- elseif i == 55 then
- insert_item( 3600289, 1 )
- elseif i == 60 then
- insert_item( 3600289, 1 )
- elseif i == 65 then
- insert_item( 3600289, 1 )
- elseif i == 70 then
- insert_item( 3600289, 1 )
- elseif i == 75 then
- insert_item( 3600289, 1 )
- elseif i == 80 then
- insert_item( 3600289, 1 )
- insert_item( 3600289, 1 )
- elseif i == 85 then
- insert_item( 3600289, 1 )
- insert_item( 3600289, 1 )
- elseif i == 90 then
- insert_item( 3600289, 1 )
- insert_item( 3600289, 1 )
- elseif i == 95 then
- insert_item( 3600289, 1 )
- insert_item( 3600289, 1 )
- elseif i == 100 then
- insert_item( 3600289, 1 )
- insert_item( 3600289, 1 )
- elseif i == 105 then
- insert_item( 3600289, 1 )
- insert_item( 3600289, 1 )
- elseif i == 110 then
- insert_item( 3600289, 1 )
- insert_item( 3600289, 1 )
- elseif i == 115 then
- insert_item( 3600289, 1 )
- insert_item( 3600289, 1 )
- elseif i == 120 then
- insert_item( 3600289, 1 )
- insert_item( 3600289, 1 )
- insert_item( 3600289, 1 )
- insert_item( 3600289, 1 )
- elseif i == 125 then
- insert_item( 3600289, 1 )
- insert_item( 3600289, 1 )
- insert_item( 3600289, 1 )
- insert_item( 3600289, 1 )
- elseif i == 130 then
- insert_item( 3600289, 1 )
- insert_item( 3600289, 1 )
- insert_item( 3600289, 1 )
- insert_item( 3600289, 1 )
- elseif i == 135 then
- insert_item( 3600289, 1 )
- insert_item( 3600289, 1 )
- insert_item( 3600289, 1 )
- insert_item( 3600289, 1 )
- elseif i == 140 then
- insert_item( 3600289, 1 )
- insert_item( 3600289, 1 )
- insert_item( 3600289, 1 )
- insert_item( 3600289, 1 )
- elseif i == 145 then
- insert_item( 3600289, 1 )
- insert_item( 3600289, 1 )
- insert_item( 3600289, 1 )
- insert_item( 3600289, 1 )
- elseif i == 150 then
- insert_item( 3600289, 1 )
- insert_item( 3600289, 1 )
- insert_item( 3600289, 1 )
- insert_item( 3600289, 1 )
- insert_item( 3600289, 1 )
- elseif i == 155 then
- insert_item( 3600289, 1 )
- insert_item( 3600289, 1 )
- insert_item( 3600289, 1 )
- insert_item( 3600289, 1 )
- insert_item( 3600289, 1 )
- elseif i == 160 then
- insert_item( 3600289, 1 )
- insert_item( 3600289, 1 )
- insert_item( 3600289, 1 )
- insert_item( 3600289, 1 )
- insert_item( 3600289, 1 )
- elseif i == 165 then
- insert_item( 3600289, 1 )
- insert_item( 3600289, 1 )
- insert_item( 3600289, 1 )
- insert_item( 3600289, 1 )
- insert_item( 3600289, 1 )
- elseif i == 170 then
- insert_item( 3600289, 1 )
- insert_item( 3600289, 1 )
- insert_item( 3600289, 1 )
- insert_item( 3600289, 1 )
- insert_item( 3600289, 1 )
- end
- end
- end
- -- ·¹º§¾÷ ½Ã °¡ÀÌµå ¸Þ½ÃÁö Ãâ·Â
- on_player_level_joblevel_guide()
- end
- function on_player_level_joblevel_guide()
- --ÀÛ¾÷Áß
- local lv = get_value( "level" )
- local job_lv = get_value( "job_level" )
- local job_dp = get_value( "job_depth" )
- if job_dp == 0 and lv >= 10 and job_lv >= 10 then
- cprint( "@1200" )
- --cprint( "@254" )
- cprint( "@1201" )
- elseif lv == 20 then
- cprint( "@1202" )
- cprint( "@1203" )
- elseif lv == 50 then
- cprint( "@1204" )
- cprint( "@1205" )
- elseif job_dp== 1 and lv >= 50 and job_lv >= 40 then
- cprint( "@1206" )
- cprint( "@1207" )
- cprint( "@1208" )
- elseif lv == 80 then
- cprint( "@1209" )
- cprint( "@1210" )
- elseif lv == 100 then
- cprint( "@1211" )
- cprint( "@1212" )
- end
- end
- --------------------SET BUFF 150-----------------------
- function Check_item1()
- local has_magic_item = find_item(302701)
- local lvl = get_value( "lv" )
- if has_magic_item >= 1 and lvl >= 150 and lvl <= 154 then
- add_state(307001,1,8640000)
- add_state(307002,1,8640000)
- end
- end
- ----------------------------------------------------
- function Check_item2()
- local has_magic_item = find_item(302709)
- local lvl = get_value( "lv" )
- if has_magic_item >= 1 and lvl >= 150 and lvl <= 154 then
- add_state(307001,1,8640000)
- add_state(307002,1,8640000)
- end
- end
- ----------------------------------------------------
- function Check_item3()
- local has_magic_item = find_item(302713)
- local lvl = get_value( "lv" )
- if has_magic_item >= 1 and lvl >= 150 and lvl <= 154 then
- add_state(307001,1,8640000)
- add_state(307002,1,8640000)
- end
- end
- ---------------------------------------------
- function Check_item4()
- local has_magic_item = find_item(302705)
- local lvl = get_value( "lv" )
- if has_magic_item >= 1 and lvl >= 150 and lvl <= 154 then
- add_state(307001,1,8640000)
- add_state(307002,1,8640000)
- end
- end
- -----------------------SET BUFF 155-------------------------
- function Check_item5()
- local has_magic_item = find_item(302717)
- local lvl = get_value( "lv" )
- if has_magic_item >= 1 and lvl >= 155 and lvl <= 159 then
- add_state(307001,1,8640000)
- add_state(307003,1,8640000)
- end
- end
- -------------------------------------------------
- function Check_item6()
- local has_magic_item = find_item(302725)
- local lvl = get_value( "lv" )
- if has_magic_item >= 1 and lvl >= 155 and lvl <= 159 then
- add_state(307001,1,8640000)
- add_state(307003,1,8640000)
- end
- end
- -----------------------------------------------------
- function Check_item7()
- local has_magic_item = find_item(302729)
- local lvl = get_value( "lv" )
- if has_magic_item >= 1 and lvl >= 155 and lvl <= 159 then
- add_state(307001,1,8640000)
- add_state(307003,1,8640000)
- end
- end
- -----------------------------------------------------
- function Check_item8()
- local has_magic_item = find_item(302721)
- local lvl = get_value( "lv" )
- if has_magic_item >= 1 and lvl >= 155 and lvl <= 159 then
- add_state(307001,1,8640000)
- add_state(307003,1,8640000)
- end
- end
- --------------------------SET BUFF 160-----------------------------
- function Check_item9()
- local has_magic_item = find_item(302733)
- local lvl = get_value( "lv" )
- if has_magic_item >= 1 and lvl >= 160 and lvl <= 300 then
- remove_state(307001)
- remove_state(307002)
- add_state(307004,1,8640000)
- remove_state(307001)
- remove_state(307003)
- add_state(307003,1,8640000)
- end
- end
- -------------------------------------------------------
- function Check_item10()
- local has_magic_item = find_item(302741)
- local lvl = get_value( "lv" )
- if has_magic_item >= 1 and lvl >= 160 and lvl <= 300 then
- remove_state(307001)
- remove_state(307002)
- add_state(307004,1,8640000)
- remove_state(307001)
- remove_state(307003)
- add_state(307003,1,8640000)
- end
- end
- ------------------------------------------------------------------
- function Check_item11()
- local has_magic_item = find_item(302745)
- local lvl = get_value( "lv" )
- if has_magic_item >= 1 and lvl >= 160 and lvl <= 300 then
- remove_state(307001)
- remove_state(307002)
- add_state(307004,1,8640000)
- remove_state(307001)
- remove_state(307003)
- add_state(307003,1,8640000)
- end
- end
- --------------------------------------------------------------------
- function Check_item12()
- local has_magic_item = find_item(302737)
- local lvl = get_value( "lv" )
- if has_magic_item >= 1 and lvl >= 160 and lvl <= 300 then
- remove_state(307001)
- remove_state(307002)
- add_state(307004,1,8640000)
- remove_state(307001)
- remove_state(307003)
- add_state(307003,1,8640000)
- end
- end
- -------------------------------END BUFFS-------------------------------
Add Comment
Please, Sign In to add comment