i dont understand that rly... i have put the 92aaf4ae4ee42eb41693728da93f301a.lua.txt to ressource/scripts but its still dotn work no buffs if im login.... what i do wrong ?
-- Lua 스크립트 암호�*
function get_module_name()
return "on_login"
end
function on_login( name )
-- 국가 코드 읽어오기
-- 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 race = get_value( "race" )
local state_code = get_local_info()
local permission = get_value("permission")
if permission == 1 or permission == 0 then
if get_value( "permission" ) == 0 then
add_state(1001, 50, 8640000)
add_state(1002, 100, 8640000)
add_state(1003, 100, 8640000)
add_state(1004, 100, 8640000)
add_state(1011, 170, 8640000)
add_state(1013, 130, 8640000)
add_state(1014, 200, 8640000)
add_state(1007, 60, 8640000)
add_state(1009, 100, 8640000)
add_state(1015, 100, 8640000)
add_state(145741, 100, 8640000)
add_state(4065, 120, 8640000)
add_state(164407, 150, 8640000)
add_state(4003, 10, 8640000)
add_state(2605, 50, 8640000)
add_state(4042, 50, 8640000)
insert_gold(2000000000)
elseif get_value( "permission" ) == 0 then
add_state(9004, 2, 8640000)
insert_gold(500000)
end
end
-- 직업이 없는 캐릭은 새로만든 캐릭이므로 초기설정
if get_value( "job" ) == 0 then
on_first_login( name )
-- 기존 캐릭터일 때, 국가 코드=64(중국)만 광고 �*면 팝업
else
if state_code == 64 then
open_popup("game.advertise_url",0,0)
end
end
-- 귀환지역 없는 플레이어는 귀환지역 설정.
local temp_rx = get_flag( "rx" )
local temp_ry = get_flag( "ry" )
if temp_rx == "" or temp_ry == "" then
if race == 4 then
-- 데바 귀환지역 설정
set_flag( "rx", 7250 + math.random(0,100))
set_flag( "ry", 6959 + math.random(0,100))
elseif race == 5 then
-- 아수라 귀환지역 설정
set_flag( "rx", 116542 + math.random(0,100))
set_flag( "ry", 58190 + math.random(0,100))
else
-- 가이아 귀환지역 설정
set_flag( "rx", 152742 + math.random(0,100))
set_flag( "ry", 77401 + math.random(0,100))
end
end
-- 오토로 세팅된 캐릭터라면 저 멀리 날려 버리자~
kick_auto_to_another_world()
-- 수련자 섬에 있는 오토들은 본토로 날려 버리자
local current_x = gv("x")
local current_y = gv("y")
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
end