bumxd 16 Posted May 1, 2015 Share Posted May 1, 2015 hi,can anybody help.. when i create new char lycan on 6lvl i have 1 punkt status skill (+) but need 6x no 1x.. can anyody help pls.. questlib me: https://mega.co.nz/#!MYByWYLY!z-ZnQCaaiFDUdmByA5IC6JSlwKAw_aj8BDZ9sw8xHoM Link to comment Share on other sites More sharing options...
Premium Cataclismo 86 Posted May 1, 2015 Premium Share Posted May 1, 2015 You get skills from a NPC? If yes, check your quests for that NPC. Link to comment Share on other sites More sharing options...
bumxd 16 Posted May 1, 2015 Author Share Posted May 1, 2015 You get skills from a NPC? If yes, check your quests for that NPC. no NPC.. i have function in questlib.lua when lvlup 6 you have on lycan automaticly skill.. but no 5x(cuz 6lvl) but give 1x punkte from 6lvl.. 7lvl 2x 8lvl 3x.. but need so: 6lvl 5punkte 7lvl 6x.. Link to comment Share on other sites More sharing options...
bumxd 16 Posted May 1, 2015 Author Share Posted May 1, 2015 maybe it problem in source game? can anybody how to fix? Link to comment Share on other sites More sharing options...
Premium Speachless 759 Posted May 1, 2015 Premium Share Posted May 1, 2015 I found on my server a lycan skill quest : quest skill_group_with_wolfjob 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("Antrenamentul") 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 = { "Dacă admiri Războnicii pentru atacurile[ENTER]lor rapide şi repetative, îţi recomanda Lupta[ENTER]de Corp. Dacă vrei să învingi grupuri mari de[ENTER][ENTER]monştrii dintr-un singur atac îţi recomand[ENTER]Lupta Mentală.[ENTER][ENTER]Te aşteptăm in Piaţa Centrală.[ENTER]", "Dacă vrei să fi cunoscut ca un arcaş remarcabil,[ENTER]poţi învaţa Lupta cu Arcul. Dacă eşti pregătit să[ENTER][ENTER]ai parte de misterioasele secrete ale[ENTER]întunericului, atunci pentru ninja cea mai bună[ENTER]alegere este Lupta cu Sabia.[ENTER][ENTER]Te aşteptăm in Piaţa Centrală.[ENTER]", "Doreşti să fi un adevărat maestru al săbiilor[ENTER]magice sau un războinic diabolic? Atunci iti[ENTER]recomand învăţătura armelor Magice. Dar dacă [ENTER][ENTER]doreşti să fi temut la fel ca un vrăjitor al[ENTER] întunericului alege învăţătura Magiei Negre.[ENTER][ENTER]Te aşteptăm in Piaţa Centrală.[ENTER]", "Dacă doreşti să devii un Şaman ce stăpâneşte magia[ENTER]şi binecunvântarea alege Puterea Dragonului. Dacă [ENTER]doreşti să vindeci rănile celor ce suferă atunci[ENTER][ENTER]îţi recomand Vindecarea.[ENTER][ENTER]Te aşteptăm in Piaţa Centrală.[ENTER]", "Daca admiri puterile lycanilor[ENTER]si instictul care il detin acestia,[ENTER][ENTER]Eu recomand instictul.[ENTER]" } say_title("-- Educatia --") 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("Odata cu luarea deciziei pentru o aventura,") say("dobandesti 4 puncte de deprindere. Le poti") say("folosi la dobandirea deprinderii pe care o alegi..") 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("Disciplina gresita!") if pc_job == 0 then say("Imi pare rau, doar razboinicii") say("pot invata asta.") say("") elseif pc_job == 1 then say("Imi pare rau, doar asasinii pot") say("invata asta.") say("") elseif pc_job == 2 then say("Imi pare rau, doar sura pot") say("invata asta.") say("") elseif pc_job == 3 then say("Imi pare rau, doar samanii pot") say("invata asta.") say("") elseif pc_job == 4 then say("Un lycan poate alege instinctul.") end else say_title(title) say("") say(text) say("") local s = select("Invata!", "Nu vrea acum.") 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."Educatie" or skill_group2_9.chat."Educatie" or skill_group3_9.chat."Educatie" begin target.delete("teacher9") if skill_group_with_wolfjob.join(4, 1, "Antreneaza instinct", "Daca vei invata Instinctul[ENTER]poti inchide orice batalie cu bine.") then say_title("-- "..mob_name(20401).." --") skill_group_with_wolfjob.chat_end() end end end end Just try it ! Link to comment Share on other sites More sharing options...
bumxd 16 Posted May 2, 2015 Author Share Posted May 2, 2015 I found on my server a lycan skill quest : quest skill_group_with_wolfjob 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("Antrenamentul") 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 = { "Dacă admiri Războnicii pentru atacurile[ENTER]lor rapide şi repetative, îţi recomanda Lupta[ENTER]de Corp. Dacă vrei să învingi grupuri mari de[ENTER][ENTER]monştrii dintr-un singur atac îţi recomand[ENTER]Lupta Mentală.[ENTER][ENTER]Te aşteptăm in Piaţa Centrală.[ENTER]", "Dacă vrei să fi cunoscut ca un arcaş remarcabil,[ENTER]poţi învaţa Lupta cu Arcul. Dacă eşti pregătit să[ENTER][ENTER]ai parte de misterioasele secrete ale[ENTER]întunericului, atunci pentru ninja cea mai bună[ENTER]alegere este Lupta cu Sabia.[ENTER][ENTER]Te aşteptăm in Piaţa Centrală.[ENTER]", "Doreşti să fi un adevărat maestru al săbiilor[ENTER]magice sau un războinic diabolic? Atunci iti[ENTER]recomand învăţătura armelor Magice. Dar dacă [ENTER][ENTER]doreşti să fi temut la fel ca un vrăjitor al[ENTER] întunericului alege învăţătura Magiei Negre.[ENTER][ENTER]Te aşteptăm in Piaţa Centrală.[ENTER]", "Dacă doreşti să devii un Şaman ce stăpâneşte magia[ENTER]şi binecunvântarea alege Puterea Dragonului. Dacă [ENTER]doreşti să vindeci rănile celor ce suferă atunci[ENTER][ENTER]îţi recomand Vindecarea.[ENTER][ENTER]Te aşteptăm in Piaţa Centrală.[ENTER]", "Daca admiri puterile lycanilor[ENTER]si instictul care il detin acestia,[ENTER][ENTER]Eu recomand instictul.[ENTER]" } say_title("-- Educatia --") 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("Odata cu luarea deciziei pentru o aventura,") say("dobandesti 4 puncte de deprindere. Le poti") say("folosi la dobandirea deprinderii pe care o alegi..") 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("Disciplina gresita!") if pc_job == 0 then say("Imi pare rau, doar razboinicii") say("pot invata asta.") say("") elseif pc_job == 1 then say("Imi pare rau, doar asasinii pot") say("invata asta.") say("") elseif pc_job == 2 then say("Imi pare rau, doar sura pot") say("invata asta.") say("") elseif pc_job == 3 then say("Imi pare rau, doar samanii pot") say("invata asta.") say("") elseif pc_job == 4 then say("Un lycan poate alege instinctul.") end else say_title(title) say("") say(text) say("") local s = select("Invata!", "Nu vrea acum.") 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."Educatie" or skill_group2_9.chat."Educatie" or skill_group3_9.chat."Educatie" begin target.delete("teacher9") if skill_group_with_wolfjob.join(4, 1, "Antreneaza instinct", "Daca vei invata Instinctul[ENTER]poti inchide orice batalie cu bine.") then say_title("-- "..mob_name(20401).." --") skill_group_with_wolfjob.chat_end() end end end end Just try it ! but on me server lycan skill give automaticly on 6lvl.. how to del it? what automaticly don`t give skills on lycan i think it in source.. Link to comment Share on other sites More sharing options...
Premium Speachless 759 Posted May 2, 2015 Premium Share Posted May 2, 2015 You have to find the quest which give the skills at level 6. Link to comment Share on other sites More sharing options...
bumxd 16 Posted May 2, 2015 Author Share Posted May 2, 2015 You have to find the quest which give the skills at level 6. i no have this quest.. i find on all quests don`t have it.. it or source game or in questlib.. Link to comment Share on other sites More sharing options...
Premium Speachless 759 Posted May 2, 2015 Premium Share Posted May 2, 2015 You have to find the quest which give the skills at level 6. i no have this quest.. i find on all quests don`t have it.. it or source game or in questlib.. Did you check the game/share/example/quest/object/notearget files ? I didn't found anything in questlib. Link to comment Share on other sites More sharing options...
bumxd 16 Posted May 2, 2015 Author Share Posted May 2, 2015 You have to find the quest which give the skills at level 6. i no have this quest.. i find on all quests don`t have it.. it or source game or in questlib.. Did you check the game/share/example/quest/object/notearget files ? I didn't found anything in questlib. i check it.. don`t see nothing from it.. problem in source i think,but which file in source give status skills? Link to comment Share on other sites More sharing options...
Pisti95 134 Posted March 28, 2020 Share Posted March 28, 2020 char.cpp #ifdef ENABLE_WOLFMAN_CHARACTER if (GetJob() == JOB_WOLFMAN) { if ((5 <= val) && (GetSkillGroup()!=1)) { ClearSkill(); // set skill group SetSkillGroup(1); // set skill points SetRealPoint(POINT_SKILL, GetLevel()-1); SetPoint(POINT_SKILL, GetRealPoint(POINT_SKILL)); PointChange(POINT_SKILL, 0); // update points (not required) // ComputePoints(); // PointsPacket(); } } #endif Automatic skill group for wolfman, if it's level 5. It should be comment out. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now