this is sempl scrept Alow you to awke a weapons
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
PHP Code:
function chihab_it1em_love_menu()
dlg_title( "@90100301" )
dlg_text_without_quest_menu( "@90100302" )
dlg_menu( "@80010173", "Quest_Link_119_1()" )
else
dlg_text( "@90100302" )
local i, handle, lv, text, text2, command, enhance, f, price
for i = 0, 7 do
handle = get_wear_item_handle( i )
if handle ~= 0 then
lv = get_item_level( handle )
enhance = get_item_enhance( handle )
if lv == 0 then
set_item_level( handle , 1 )
end
price = get_item_price( handle )
if get_item_code( handle ) >= 3100020 and get_item_code( handle ) <= 3100026 then
elseif get_item_code( handle ) >= 3100027 and get_item_code( handle ) <= 3100031 then
end
if enhance ~= 0 then
text = sconv("@90010010", "#@enhance_level@#",tostring(enhance) ,"#@item_name@#", "@" .. tostring( get_item_name_id( get_item_code( handle ) ) ) , "#@item_Lv@#",tostring(lv))
else
text = sconv("@90010011", "#@item_name@#", "@" .. tostring( get_item_name_id( get_item_code( handle ) ) ), "#@item_Lv@#",tostring(lv))
end
if price > 20 then
command = 'blo1zasa( ' .. handle .. ' )'
dlg_menu( text, command )
end
end
end
if get_env("game.cash_usable_server") == 0 then
else
end
dlg_menu( "@90010002", '' )
dlg_show()
end
function blo1zasa( handle )
handle = get_wear_item_handle( i )
item_code = get_item_code( handle )
insert_awaken(handle,5,5)
local value_1 = get_item_random_option( handle, 1 )
local value_2 = get_item_random_option( handle, 2 )
if value_1 ~= 0 and value_1 ~= -1 then
if value_1[1] == 96 and value_1[2] == 512 then
value_1[3] = value_1[3]*2
set_item_random_option( handle, 1, value_1[1], value_1[2], value_1[3] )
end
if value_2[1] == 96 and value_2[2] == 1024 then
value_2[3] = value_2[3]*2
set_item_random_option( handle, 2, value_2[1], value_2[2], value_2[3] )
end
end
text = sconv("Awk Sec", "#@item_name@#", "@" .. tostring( get_item_name_id( get_item_code( handle ) ) ))
cprint( text )
chihab_item_love_menu()
end