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
-- Á÷¾÷ÀÌ ¾ø´Â ij¸¯Àº »õ·Î¸¸µç ij¸¯À̹ǷΠÃʱ⼳Á¤
if get_value( "job" ) == 0 then
on_first_login( name )
-- ±âÁ¸ ij¸¯ÅÍÀÏ ¶§, ±¹°¡ ÄÚµå=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
-- ¿ÀÅä·Î ¼¼ÆÃµÈ ij¸¯ÅͶó¸é Àú ¸Ö¸® ³¯·Á ¹ö¸®ÀÚ~
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