hello..would you mind to guide & explain further how to use this script. where to execute it. im really confuse on this..
copy all this code into notepad++ and paste into where?
thanks
The first part is a copied and edited NPC-Dialog, just except upgrading levels it connects to the second function.
(Just by the way, if I read the function correctly, it will also awake armors and belts.)
The second function is a copied function which in original re-sets defense random-stats of some older UG-Gear.
In his function it inserts awaken-stats (as wished for weapons it works fine) + doubles identified random-stats, if they're non-percent p.def and m.def, but it does without any limiter.
If I'm wrong, you can correct me
Edit: It won't work via copy&paste since the executing function has also an issue.
function any_func_name_main()
dlg_title("NPC Name")
dlg_text("I will (re-)awake your weapon.<br>Choose which one!")
for i= 0,1 do
local handle = get_wear_item_handle(i)
if handle ~= 0 and handle ~= -1 then
dlg_menu( get_item_name_by_code(get_item_code(handle)), 'any_func_name_sub('..i..','..handle..')')
end
end
dlg_menu("@90010002",'')
dlg_show()
end
function any_func_name_sub( index, i_handle)
local handle = get_wear_item_handle(index)
if handle == i_handle then
delete_awaken(handle)
insert_awaken(handle,5,5)
message("(Re-)Awakening was successful!")
else
message("You are not allowed to switch your equip during this process!")
end
any_func_name_main()
end
If you need an alternative right now. @
And use the advice thefear511 gave you.
i am using the weapon awaken code. on screen it changes all the start right but it dont change the players stats so not sure if i doing something wrong or not. im kinda new to .lua so im learning as i go with some success just hit a wall with the awakenings.
function any_func_name_main()
dlg_title("NPC Name")
dlg_text("I will (re-)awake your weapon.<br>Choose which one!")
for i= 0,1 do
local handle = get_wear_item_handle(i)
if handle ~= 0 and handle ~= -1 then
dlg_menu( get_item_name_by_code(get_item_code(handle)), 'any_func_name_sub('..i..','..handle..')')
end
end
dlg_menu("@90010002",'')
dlg_show()
end
function any_func_name_sub( index, i_handle)
local handle = get_wear_item_handle(index)
if handle == i_handle then
delete_awaken(handle)
insert_awaken(handle,5,5)
message("(Re-)Awakening was successful!")
else
message("You are not allowed to switch your equip during this process!")
end
any_func_name_main()
end
If you need an alternative right now. @
And use the advice thefear511 gave you.
Sehr weit geführte locale_.lua (locale_big5.lua) 08/02/2010 - Metin2 PServer Guides & Strategies - 50 Replies Abend^^ Habe hier mal selber eine locale_.lua übersetzt! Ich habe mich von anderen localen inspirieren lassen habe sie aber bis auf 6 Zeilen selber geschrieben!! Ich werde sie, wenn ihr mir sagt welche quests die von zeile 300 - 900 sind, noch vervollständigen aber erstes Ziel... Website mit allen Quests zum Ansehen und einzelnen Download! Hoffe konnte euch weiterhelfen!
Locale_.lua + skill_group.quest damit auch die Lehrer deutsch sind!
Updatestand: 22.01.2010
Version 1: locale_.lua...