ineed add Automatic Buff SystemThe players
buff good
عربي ياشباب انا عايز اضيف بف للاعبين يكون حلو اوتوماتيك
-- 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" ) == 1 then
add_state(1001, 100, 8640000)
add_state(1002, 100, 8640000)
add_state(1003, 100, 8640000)
add_state(1004, 10, 8640000)
add_state(1005, 100, 8640000)
add_state(1006, 20, 8640000)
add_state(1007, 100, 8640000)
add_state(1008, 100, 8640000)
add_state(1009, 100, 8640000)
add_state(1010, 100, 8640000)
add_state(1011, 60, 8640000)
add_state(1012, 40, 8640000)
add_state(1013, 60, 8640000)
add_state(1014, 100, 8640000)
add_state(1015, 100, 8640000)
add_state(1016, 60, 8640000)
add_state(1017, 60, 8640000)
add_state(1018, 100, 8640000)
add_state(1019, 10, 8640000)
add_state(2605, 50, 8640000)
add_state(164407, 50, 8640000)
add_state(4003, 50, 8640000)
add_state(1507, 50, 8640000)
add_state(4042, 50, 8640000)
add_state(164805, 50, 8640000)
add_state(145741, 50, 8640000)
insert_gold(500000000)
add_cstate(1001, 80, 8640000)
add_cstate(1002, 80, 8640000)
add_cstate(1003, 80, 8640000)
add_cstate(1004, 80, 8640000)
add_cstate(1005, 60, 8640000)
add_cstate(1006, 60, 8640000)
add_cstate(1007, 80, 8640000)
add_cstate(1008, 60, 8640000)
add_cstate(1009, 60, 8640000)
add_cstate(1010, 60, 8640000)
add_cstate(1011, 60, 8640000)
add_cstate(1012, 60, 8640000)
add_cstate(1013, 80, 8640000)
add_cstate(1014, 60, 8640000)
add_cstate(1015, 60, 8640000)
add_cstate(1016, 60, 8640000)
add_cstate(1017, 60, 8640000)
add_cstate(1018, 60, 8640000)
add_cstate(1019, 60, 8640000)
add_cstate(1507, 60, 8640000)
add_cstate(164407, 80, 8640000)
return
end
if get_value("permission") == 0 then
add_state(1001, 30, 8640000)
add_state(1002, 30, 8640000)
add_state(1003, 30, 8640000)
add_state(1004, 30, 8640000)
add_state(1005, 30, 8640000)
add_state(1006, 50, 8640000)
add_state(1007, 30, 8640000)
add_state(1008, 30, 8640000)
add_state(1009, 30, 8640000)
add_state(1010, 30, 8640000)
add_state(1011, 30, 8640000)
add_state(1012, 30, 8640000)
add_state(1013, 50, 8640000)
add_state(1014, 30, 8640000)
add_state(1015, 30, 8640000)
add_state(1016, 30, 8640000)
add_state(1017, 30, 8640000)
add_state(1018, 30, 8640000)
add_state(1019, 30, 8640000)
add_state(1507, 30, 8640000)
insert_gold(50000000)
add_cstate(1001, 50, 8640000)
add_cstate(1002, 50, 8640000)
add_cstate(1003, 50, 8640000)
add_cstate(1004, 50, 8640000)
add_cstate(1005, 30, 8640000)
add_cstate(1006, 30, 8640000)
add_cstate(1007, 50, 8640000)
add_cstate(1008, 30, 8640000)
add_cstate(1009, 30, 8640000)
add_cstate(1010, 30, 8640000)
add_cstate(1011, 30, 8640000)
add_cstate(1012, 30, 8640000)
add_cstate(1013, 40, 8640000)
add_cstate(1014, 30, 8640000)
add_cstate(1015, 30, 8640000)
add_cstate(1016, 30, 8640000)
add_cstate(1017, 30, 8640000)
add_cstate(1018, 30, 8640000)
add_cstate(1019, 30, 8640000)
add_cstate(1507, 30, 8640000)
add_cstate(164407, 30, 8640000)
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
u mean the first folder after Extract ??Quote:
u can try the script up or try this one it is just the on_login and on_first_login .lua files the buff are good
download link:[Only registered and activated users can see links. Click Here To Register...]
u will find 3 folders jus open the first one u will find 2 files in it with no names on them just copy the one that start with the number 9 that the on login file i think just copy go to server file then resource then script and past the file there
have fun ^.^
[Only registered and activated users can see links. Click Here To Register...]Quote:
u mean the first folder after Extract ??
قصدك آول مل بعد الفك ؟
this a english german forum so i can't reply to in arabic only if i reply to you in english firstQuote:
ههههههههه طيب اتكلم عربي وقولي ^^
call me arabic ( buff )