-------------------------------
-- SERVERFILE BY Randy --
-- Platforma : r40k --
-- Skype: alexhacman --
-------------------------------
quest skill_group begin
state start begin
when login or levelup with pc.get_level() >= 5 and pc.get_skill_group() == 0 begin
set_state("run")
end
end
state run begin
when login with pc.get_skill_group() != 0 begin
set_state("start")
end
when letter with pc.get_skill_group() == 0 begin
send_letter("The education")
local job = pc.get_job()
if job == 0 then
local v = pc_find_skill_teacher_vid(1)
if 0 != v then
target.vid("teacher1", v, mob_name(20300))
end
local v = pc_find_skill_teacher_vid(2)
if 0 != v then
target.vid("teacher2", v, mob_name(20301))
end
elseif job == 1 then
local v = pc_find_skill_teacher_vid(1)
if 0 != v then
target.vid("teacher3", v, mob_name(20302))
end
local v = pc_find_skill_teacher_vid(2)
if 0 != v then
target.vid("teacher4", v, mob_name(20303))
end
elseif job == 2 then
local v = pc_find_skill_teacher_vid(1)
if 0 != v then
target.vid("teacher5", v, mob_name(20304))
end
local v = pc_find_skill_teacher_vid(2)
if 0 != v then
target.vid("teacher6", v, mob_name(20305))
end
elseif job == 3 then
local v = pc_find_skill_teacher_vid(1)
if 0 != v then
target.vid("teacher7", v, mob_name(20306))
end
local v = pc_find_skill_teacher_vid(2)
if 0 != v then
target.vid("teacher8", v, mob_name(20307))
end
elseif job == 4 then
local v = pc_find_skill_teacher_vid(1)
if 0 != v then
target.vid("teacher9", v, mob_name(20402))
end
end
end
when leave begin
target.delete("teacher1")
target.delete("teacher2")
target.delete("teacher3")
target.delete("teacher4")
target.delete("teacher5")
target.delete("teacher6")
target.delete("teacher7")
target.delete("teacher8")
target.delete("teacher9")
end
when button or info begin
desc = {
"If you admire a warrior because of his[ENTER]fast and deadly attacks, I recommend the[ENTER]Arahan teacher.[ENTER][ENTER]If you prefer a hard and enduring tanker[ENTER]who can resist the most furious attacks,[ENTER]talk to the Partisan teacher.[ENTER][ENTER]We wait you near the village square![ENTER]",
"If you want to call yourself an outstanding[ENTER]archer, the Archery training.[ENTER][ENTER]If you are ready to carry out different secret[ENTER]missions as a Ninja under the protection of[ENTER]the darkness, then Stealth Combat would be[ENTER]something for you.[ENTER][ENTER]We wait you near the village square![ENTER]",
"Would you like to become a true palladin and rider,[ENTER]that can perform superhuman activity?[ENTER]Then I recommend you the Magic Weaponry teacher.[ENTER][ENTER]However, if you want to be feared as a wizard and[ENTER]inflict pain with your curses, then I recommend[ENTER]the Black Magic teacher.[ENTER][ENTER]We wait you near the village square![ENTER]",
"If you would like to be a mage that controls the[ENTER]use of powerful offensive spells, then go to the[ENTER]teacher of the Dragon Force.[ENTER][ENTER]However, if you want to mitigate the pains and[ENTER]sorrows of others, then I recommend the path[ENTER]of the Light Force.[ENTER][ENTER]We wait you near the village square![ENTER]",
"If you admire Lycans for their unbridled power[ENTER]and heightened instincts they make,[ENTER][ENTER]I recommend the Instinct teacher.[ENTER]"
}
say_title("-- The education --")
say("")
say(desc[pc.get_job()+1])
say("")
end
function chat_end()
if not pc.is_clear_skill_group() then
local point = pc.get_level() - 1
say("")
say("Because of your decision to take a lesson you get")
say(""..point.." skill points. You can use them of any")
say("your combat skills.")
say("")
end
clear_letter()
end
function join(job, group, title, text)
local pc_job = pc.get_job()
if pc_job != job then
say(title)
say("")
say("Wrong discipline!")
if pc_job == 0 then
say("A Warrior can choose between the Arahan")
say("or Partisan paths.")
say("")
elseif pc_job == 1 then
say("An Assassin can choose between the Stealth")
say("or Archery paths.")
say("")
elseif pc_job == 2 then
say("A Sura can choose between the Weaponry")
say("or Black Magic paths")
say("")
elseif pc_job == 3 then
say("A Shaman can choose between the Dragon Force")
say("and Light paths.")
say("")
elseif pc_job == 4 then
say("A Lycans can choose the Instinct.")
end
else
say_title(title)
say("")
say(text)
say("")
local s = select("Learn!", "I have to think.")
if s == 1 then
if pc.get_skill_group() == 0 and pc.get_job() == job then
set_state("start")
pc.set_skill_group(group)
pc.clear_skill()
char_log(0, "CLEAR_SKILL", "Clear skill by teacher.")
return true
end
end
end
return false
end
when teacher1.target.click or skill_group1_1.chat."The education" or skill_group2_1.chat."The education" or skill_group3_1.chat."The education" begin
target.delete("teacher1")
if skill_group_with_wolfjob.join(0, 1, "Arahan training", "The arahan path teaches lightning fast fencing[ENTER]techniques and powerful slashes with either[ENTER]swords or spears.[ENTER]individuale con tecniche base.") then
say_title("-- "..mob_name(20300).." --")
skill_group_with_wolfjob.chat_end()
end
end
when teacher2.target.click or skill_group1_2.chat."The education" or skill_group2_2.chat."The education" or skill_group3_2.chat."The education" begin
target.delete("teacher2")
if skill_group_with_wolfjob.join(0, 2, "Partisan training", "The partisan path is for attacking the enemy[ENTER]with strong Chi-Attacks and defending[ENTER]yourself from his attacks.") then
say_title("-- "..mob_name(20301).." --")
skill_group_with_wolfjob.chat_end()
end
end
when teacher3.target.click or skill_group1_3.chat."The education" or skill_group2_3.chat."The education" or skill_group3_3.chat."The education" begin
target.delete("teacher3")
if skill_group_with_wolfjob.join(1, 1, "Stealth combat training", "In the stealth combat the Assassin learn how[ENTER]to blow the enemy in a fast and deadly way,[ENTER]at the enemies weakest spots.") then
say_title("-- "..mob_name(20302).." --")
skill_group_with_wolfjob.chat_end()
end
end
when teacher4.target.click or skill_group1_4.chat."The education" or skill_group2_4.chat."The education" or skill_group3_4.chat."The education" begin
target.delete("teacher4")
if skill_group_with_wolfjob.join(1, 2, "Distance combat training", "In the distance combat teaching the Assassin[ENTER]learn to handle their arch, to fight the[ENTER]enemies with precision and from the distance.") then
say_title("-- "..mob_name(20303).." --")
skill_group_with_wolfjob.chat_end()
end
end
when teacher5.target.click or skill_group1_5.chat."The education" or skill_group2_5.chat."The education" or skill_group3_5.chat."The education" begin
target.delete("teacher5")
if skill_group_with_wolfjob.join(2, 1, "Magic weapon training", "In the magic weapon teaching you practices the[ENTER]art of the powerful blow against weakened[ENTER]enemies, whereby cursed blades are used.") then
say_title("-- "..mob_name(20304).." --")
skill_group_with_wolfjob.chat_end()
end
end
when teacher6.target.click or skill_group1_6.chat."The education" or skill_group2_6.chat."The education" or skill_group3_6.chat."The education" begin
target.delete("teacher6")
if skill_group_with_wolfjob.join(2, 2, "Black magic training", "In the black magic Teaching you learn the, art[ENTER]of curses which is weaken your enemies from a[ENTER]distance.") then
say_title("-- "..mob_name(20305).." --")
skill_group_with_wolfjob.chat_end()
end
end
when teacher7.target.click or skill_group1_7.chat."The education" or skill_group2_7.chat."The education" or skill_group3_7.chat."The education" begin
target.delete("teacher7")
if skill_group_with_wolfjob.join(3, 1, "Dragon force training", "The teaching of the dragon force uses strong[ENTER]fire attacks from the Dragon God and is using[ENTER]a strengthening magic which can give the[ENTER]group the protection of the Dragon God.") then
say_title("-- "..mob_name(20306).." --")
skill_group_with_wolfjob.chat_end()
end
end
when teacher8.target.click or skill_group1_8.chat."The education" or skill_group2_8.chat."The education" or skill_group3_8.chat."The education" begin
target.delete("teacher8")
if skill_group_with_wolfjob.join(3, 2, "Healing training", "In the teaching of Healing you learn to[ENTER]anesthetize the enemies with a current[ENTER]blow. You also learn to heal groups[ENTER]members and give them strength.") then
say_title("-- "..mob_name(20307).." --")
skill_group_with_wolfjob.chat_end()
end
end
when teacher9.target.click or skill_group1_9.chat."The education" or skill_group2_9.chat."The education" or skill_group3_9.chat."The education" begin
target.delete("teacher9")
if skill_group_with_wolfjob.join(4, 1, "Instinct training", "In the teaching of Instinct you learn to[ENTER]make exceptional close combat fighters.") then
say_title("-- "..mob_name(20401).." --")
skill_group_with_wolfjob.chat_end()
end
end
end
end
-- >