heres a remake of an exisitng login buff it gives lvl 15 hv buffs*all of them if memory servers me thats the correct lvl's and its for none gm's
-- 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()
if get_value( "permission" ) == 0 then
add_state(1051, 15, 8640000)
add_state(1052, 15, 8640000)
add_state(1053, 15, 8640000)
add_state(1054, 15, 8640000)
add_state(1055, 15, 8640000)
add_state(1056, 15, 8640000)
add_state(1057, 15, 8640000)
return
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
make this in to 92aaf4ae4ee42eb41693728da93f301a.lua then drag in to rappelz compress before u add it to resource>scripts server side and client side.
and to make it easier to grasp why for some of you its not working?
if get_value( "permission" ) == 0 then
would be changed to
if get_value( "permission" ) == 1 then
if u wanted it to only function for gms