Register for your free account! | Forgot your password?

Go Back   elitepvpers > Metin2 > Metin2 Guides & Templates
You last visited: Today at 07:16

  • Please register to post and access all features, it's quick, easy and FREE!

 

[RELEASE]Training_grand_master_skill

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2010
Posts: 72
Received Thanks: 21
[RELEASE]Training_grand_master_skill

This is Soul stone quest making G1 to P with out any failings + giving 1000 hostile killer points (HKP)


Quote:
-----------------------
FinalStandMT2 [SA]Staffo

Scripted by [SA]Staffo
-----------------------



quest training_grandmaster_skill begin
state start begin
when 50513.use begin
say_title("Soulstone")

if pc.get_skill_group() == 0 then
say("You have no Skills right now "..pc.get_skill_group())
return
end

if get_time() < pc.getqf("next_time") then -- and not is_test_server() then
if pc.is_skill_book_no_delay() then
say("This allows you to")
say("perfecting a skill.")
say("")
wait()
say_title("Soulstone")
else
say("You have to wait.")
return
end
end

local result = training_grandmaster_skill.BuildGrandMasterSkillLi st(pc.get_job(), pc.get_skill_group())

local vnum_list = result[1]
local name_list = result[2]

if table.getn(vnum_list) == 0 then
say("Your skills already perfect Noob!")
return
end

say("Choose your skill.")
say("")

local menu_list = {}
table.foreach(name_list, function(i, name) table.insert(menu_list, name) end)
table.insert(menu_list, "Abort")

local s=select_table(menu_list)
if table.getn(menu_list) == s then
return
end

local skill_name=name_list[s]
local skill_vnum=vnum_list[s]
local skill_level = pc.get_skill_level(skill_vnum)
local cur_alignment = pc.get_real_alignment()
local need_alignment = 1000+500*(skill_level-30)

test_chat("Your Host killer Points:"..cur_alignment)
test_chat("Required Host killer Points:"..need_alignment)

local title=string.format("%s perfecting", skill_name, skill_level-30+1)

say_title(title)
say("When you read the Soulstone")
say("You'll loose Host killer Points!")
say("")

if cur_alignment<-19000+need_alignment then
say_reward("Not enough Host killer Points.")
return
end

if cur_alignment<0 then
say_reward(string.format("Required Host killer Points: %d -> %d", need_alignment, need_alignment*2))
say_reward("()")
need_alignment=need_alignment*2
elseif cur_alignment<need_alignment then
say_reward(string.format("Required Host killer Points:: %d", need_alignment))
say_reward("Not enough Host killer Points Noob")
else
say_reward(string.format("Required Host killer Points: %d", need_alignment))
end
say("")

local s=select("OK", "Abort")
if s==2 then
return
end


if cur_alignment>=0 and cur_alignment<need_alignment then
say_title(string.format("%s Tw", title))
say("It's time!")
say("To train,")
say("pleasy type: ")
say("The following to confirm that you")
say("Wish to read a soul stone.")
say_reward("FinalStandMt2")
say("")
say("")
local s=input()
if s!="FinalStandMt2" then
return
end
end

if get_time() < pc.getqf("next_time") then -- and not is_test_server() then
if pc.is_skill_book_no_delay() then
pc.remove_skill_book_no_delay()
else
say("Blah Blah Blah")
return
end
end

pc.setqf("next_time", get_time()+time_hour_to_sec(number(8, 12)))

if need_alignment>0 and pc.countitem(50513) > 0 then


if pc.set_skill_level(skill_vnum,40) then
pc.change_alignment(1000)


say_title(string.format("%s ", title))
if 40 == pc.get_skill_level(skill_vnum) then
say(string.format("%s is already Perfect", skill_name))
else
say(string.format("%s grown successfully", skill_name, skill_level-30+1+1))
end
say("")
say_reward("successfully!")
say_reward(string.format("Spent Host Killer Points: %d ", need_alignment))
say("")
else
say_title(string.format("%s ", title))
say("This has unfortunately not worked out.")
say("")
say_reward("Failed!")
say("")
pc.change_alignment(-number(need_alignment/3, need_alignment/2))
end
end

item.remove()
end
function BuildGrandMasterSkillList(job, group)
GRAND_MASTER_SKILL_LEVEL = 30
PERFECT_MASTER_SKILL_LEVEL = 40

local skill_list = special.active_skill_list[job+1][group]
local ret_vnum_list = {}
local ret_name_list = {}

-- test_chat(string.format("job=%d, group=%d", job, group))

table.foreach(skill_list,
function(i, skill_vnum)
local skill_level = pc.get_skill_level(skill_vnum)

-- test_chat(string.format("[%d]=%d", skill_vnum, skill_level))
if skill_level >= GRAND_MASTER_SKILL_LEVEL and skill_level < PERFECT_MASTER_SKILL_LEVEL then

table.insert(ret_vnum_list, skill_vnum)
local name=locale.GM_SKILL_NAME_DICT[skill_vnum]
if name == nil then name=skill_vnum end
table.insert(ret_name_list, name)
end
end)
return {ret_vnum_list, ret_name_list}


--return {ret_vnum_list, ret_name_list}

end
end
end


Enjoy and dont forget to Thank :P



training_grandmaster_skill.rar



staffo1994 is offline  
Thanks
3 Users
Reply

Tags
soul stone quest



« Previous Thread | Next Thread »



All times are GMT +2. The time now is 07:16.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.