Originally Posted by mmno
may someone please answer those for me please
1) My dura item lose the dura while fighting monster so fast , i want them that not lose while fight only when player die the dura lose little by little ( when killing monster it lose fast and in PVP too )
i saw in some private server the dura never go down when killing monster at all , this what i want to make it )
2) How to give player skill in game command?
/run learn_skill(skill id ,"char_name")
3) How to make when some one log-in be level 20 and has 10000 JP ?
Code:
-- Lua ½؛إ©¸³ئ® ¾دب£ب*
function get_module_name()
return "on_first_login"
end
function on_first_login( name )
-- ؛»·، HP ¼¼ئأاد´ّ ہع¸® (ب¤½أ ¸ô¶َ¼* ±×³ة ³ہµز)
set_value( "hp" , get_value( "max_hp") )
set_value( "mp" , get_value( "max_mp") )
-- ء¾ء· أ¼إ©
local state_code = get_local_info()
local race = get_value( "race" )
local deva_x, deva_y, asura_x, asura_y, gaia_x, gaia_y, i
-- °¢ ¼ِ·أہعہا ¼¶ ½أہغ ءِء، ہ§ؤ،
deva_x = 164474
deva_y = 52932
asura_x = 168356
asura_y = 55399
gaia_x = 164335
gaia_y = 49510
local start_x, start_y, start_layer, start_channel_no
if state_code == 64 then
insert_item( 2000294, 1 )
end
-- µ¥¹ظ ½أہغءِء، أ¼إ©
if race == 4 then
--½أہغ ہ§ؤ، ¼³ء¤
start_x = deva_x
start_y = deva_y
-- ¾ئ¼ِ¶َ ½أہغءِء، أ¼إ©
elseif race == 5 then
--½أہغ ہ§ؤ، ¼³ء¤
start_x = asura_x
start_y = asura_y
-- ±×؟ـ(°،ہج¾ئ 3) ½أہغءِء، أ¼إ©
else
--½أہغ ہ§ؤ، ¼³ء¤
start_x = gaia_x
start_y = gaia_y
end
-- ¼ِ·أہعہا ¼¶(أ¤³خID 1000)؟،¼* °،ہه ہûہار أ¤³خہ» °ٌ¶َ ·¹ہج¾î¸¦ ¼¼ئأار´ظ.
start_channel_no = get_proper_channel_num( 1000 )
start_layer = get_layer_of_channel( 1000, start_channel_no )
insert_item(2010258,1)
set_flag("openStarsBox",1)
-- ±حب¯ءِ؟ھ ¼³ء¤
set_flag( "rx", start_x + math.random(0,60) - 30)
set_flag( "ry", start_y + math.random(0,60) - 30)
local text
text = sconv("@90010092", "#@number@#", tostring( start_channel_no ) ) -- ؛¯¼ِ¸¦ ½اء¦ °ھ(½؛ئ®¸µ)ہ¸·خ ؤ،ب¯ ½أإ²´ظ.
message( text ) -- ½أ½؛إغ ¸ق¼¼ءِ·خ اط´ç أ¤³خID أâ·آ.
------=========== ** ½أہغ¾ئہجإغ ¼³ء¤اطءض´آ ؛خ؛ذہ؛ ¼*¹ِ؟،¼* ±¸اِ ** ============------
-- ¾ئ¼ِ¶َ(5)¸é ´ُإ©(´ـ°ث), µ¥¹ظ¸é ½؛¸ô¸قہج½؛, °،ہج¾ئ´آ ¹ذ¸²µµ¸¦ ءط´ظ.
-- µًئْئ® ء÷¾÷ہ» ³ض¾îءط´ظ. (µ¥¹ظ:°،ہجµه, ¾ئ¼ِ¶َ:½؛إ×ئغ, ±×؟ـ:ئؤہجإح(°،ہج¾ئ) )
local race = get_value( "race" )
if race == 4 then
-- أت±âء÷¾÷ہ» °،ہجµه(200)·خ ¼³ء¤ار´ظ.
set_value( "job" , 200 )
elseif race == 5 then
set_value( "job" , 300 )
else
set_value( "job" , 100 )
end
-- ء÷¾÷ ¼³ء¤ بؤ ¼¼ئأµب ½؛إب؟، ¸آ´آ HP·خ ´ظ½أ أ¤؟ِءـ
set_value( "hp" , get_value( "max_hp") )
set_value( "mp" , get_value( "max_mp") )
-- ±¹°، ؤعµه ہذ¾î؟ہ±â
-- 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 state_code = get_local_info()
--if state_code = 32 then
if race == 4 then
if get_env("game.use_auto_trap") == 1 then
open_popup("game.caution_url", "game.newbiehelp_deva_url", 0,1)
else
open_popup("game.newbiehelp_deva_url", 0,1)
end
elseif race == 5 then
if get_env("game.use_auto_trap") == 1 then
open_popup("game.caution_url", "game.newbiehelp_asura_url", 0,1)
else
open_popup("game.newbiehelp_asura_url", 0,1)
end
else
if get_env("game.use_auto_trap") == 1 then
open_popup("game.caution_url", "game.newbiehelp_gaia_url", 0,1)
else
open_popup("game.newbiehelp_gaia_url", 0,1)
end
-- end
--else
--±âء¸ ´ë¸¸ ء¦°إ
--local state_code = get_local_info()
--if state_code ~= 32 then
-- --if race == 4 then
-- --if get_env("game.use_auto_trap") == 1 then
-- open_popup("game.caution_url", "game.newbiehelp_deva_url", 0,1)
-- else
-- open_popup("game.newbiehelp_deva_url", 0,1)
-- end
-- elseif race == 5 then
-- if get_env("game.use_auto_trap") == 1 then
-- open_popup("game.caution_url", "game.newbiehelp_asura_url", 0,1)
-- else
-- open_popup("game.newbiehelp_asura_url", 0,1)
-- end
-- else
-- if get_env("game.use_auto_trap") == 1 then
-- open_popup("game.caution_url", "game.newbiehelp_gaia_url", 0,1)
-- else
-- open_popup("game.newbiehelp_gaia_url", 0,1)
-- end
-- end
end
-- ½أہغءآا¥ ¼³ء¤ ؤ³¸¯إح »¼؛ہج ار¹ّ؟، ¸¹ہج ¹ك»اد¸é ¹®ء¦°، »°ـ¼* ¾ئ·،·خ ہجµ؟
set_value( "x" , start_x)
set_value( "y" , start_y)
set_value( "layer", start_layer )
[COLOR="Green"] set_value('lvl',20)
set_value('jp',10000)
1/ go to your server folder
2/ go to Script folder (/server folder/resource/script/
3/ open on_first_login.lua or this one d4b666e4533a0230159074c218fa2150.lua
4/ add these lines in the file that you opened
set_value('lvl',20)
set_value('jp',10000) in the end of the file like this
end
[/COLOR]
4) How to make when some one log-in there a notice say welcome " player name and its level "
5) How to give permission 1 command for warp ?
i know its in SQL but i want to know what shuold i write in there
in
SID, permission, command, parenter
is it " 1, 1, warp, 100 " ?
or i mistake with something ?
don't really remember how but i think that's right or not
6) How to make taming and soul taming 100% for permission 100 only ?
i don't know because i didn't used royal repack yet
7) I have item that has 4 socket but i only can put 2 socket in it ( this item )
60110050 611100550 621100550 1 4 220 3 1135 8 6 7 10 10 4 0 1 1 1 8 1 1 1 1 160 300 0 0 .00 20.00 13000 0 0 2000000 0 3 0 1157670403 2419200 2 .00 15 100.00 3.22 16 55.00 .90 0 .00 .00 0 .00 .00 0 .00 .00 0 .00 .00 0 .00 .00 0 .00 .00 0 15 13.05 15.42 18.38 23.72 16 10.67 13.05 15.42 19.57 0 0 0 0 0 0 1 1 1 1 1 1 0 dem_helmet_random1 dem_helmet_random1 dem_helmet_random1 def_helmet_random1 def_helmet_random1 def_helmet_random1 asm_helmet_random1 asm_helmet_random1 asm_helmet_random1 asf_helmet_random1 asf_helmet_random1 asf_helmet_random1 gam_helmet_random1 gam_helmet_random1 gam_helmet_random1 gaf_helmet_random1 gaf_helmet_random1 gaf_helmet_random1 0 drop_wear_helmet 0 icon_equip_armor_helmet_master_random1
8) how can i make server time same as my time zone only ?
9) how to send item to player with command only ? ( not for my self then trade it , it go to player inventory ) the item is Un-Trade-Able
#insert_item(ID, VALUE, ENCHANT, LVL, FLAG, "char_name") Use it in GameServer
/run insert_item(ID, VALUE, ENCHANT, LVL, FLAG, "char_name") Use it in game
10) how to make NPC buff all player in my party only ?
it will need some lua skills just enough to code it. i will try to do it
PS: no reply i will quote it and post it again until i get answer for them , donot say that i been spamming or anything i made a thread but you want me to post it here so here i post it.
|