Active Member ReFresh 2330 Posted November 28, 2017 Active Member Share Posted November 28, 2017 Hey guys, I want to do a quest which can reset skill group without relog trough quest. Thanks for answers! Sincerely, ReFresh I'll be always helpful! Link to comment Share on other sites More sharing options...
Active Member ReFresh 2330 Posted February 23, 2018 Author Active Member Share Posted February 23, 2018 ref I'll be always helpful! Link to comment Share on other sites More sharing options...
Premium WeedHex 635 Posted February 24, 2018 Premium Share Posted February 24, 2018 It's not possibile to do easly. Link to comment Share on other sites More sharing options...
Premium Syreldar 1870 Posted February 24, 2018 Premium Share Posted February 24, 2018 1 hour ago, WeedHex said: It's not possibile to do easly. In reality, it is. "Nothing's free in this life. Ignorant people have an obligation to make up for their ignorance by paying those who help them. Either you got the brains or cash, if you lack both you're useless." Syreldar Link to comment Share on other sites More sharing options...
Premium WeedHex 635 Posted February 24, 2018 Premium Share Posted February 24, 2018 Do it for us. Link to comment Share on other sites More sharing options...
Braxy 617 Posted February 24, 2018 Share Posted February 24, 2018 quest skill_reset begin state start begin when 71002.use begin if pc.get_level() < 30 or pc.get_level() > 120 then say_title(item_name(71002)) say("") say("This item can be used in between level 30 and 120.") return end if pc.get_skill_group() == 0 then say_title(item_name(71002)) say("") say("You have no skill group.") return end say_title(item_name(71002)) say("") say("This scroll will instantly reset") say("your skill group, every skill you have") say("mastered will be losed in the process.") say("") say_reward("Notice: You won't lose any character points.") say("") say("Do you really want to do this?") if (select("Yes", "No") == 1) then pc.clear_skill() pc.set_skill_group(0) horse.set_level(horse_level) char_log(0, "RESET_SKILL", "RESET_SKILL_BY_71002") pc.remove_item(71002); set_quest_state("skill_group","run") end end end Whatever, shit code 1 As long as I'll be a threat for you , i will always be your target :3 Link to comment Share on other sites More sharing options...
Active Member ReFresh 2330 Posted February 24, 2018 Author Active Member Share Posted February 24, 2018 @Braxy Thanks man, but there is still a little problem. Relog is still needed because when I reset skills, skill points aren't reset to 0 and when I take new skills again another than I had before and I put points into them again, nothing happens. I still need to do relog or teleport for get skill points to skills. I'll be always helpful! Link to comment Share on other sites More sharing options...
Braxy 617 Posted February 24, 2018 Share Posted February 24, 2018 That's a game bug bro, if you choose the new skill group and the points aren't shown in the gui its a game bug, there is nothing to do with the quest. As long as I'll be a threat for you , i will always be your target :3 Link to comment Share on other sites More sharing options...
Active Member ReFresh 2330 Posted February 24, 2018 Author Active Member Share Posted February 24, 2018 @Braxy I think you don't understand me. I'm gonna do a video with the problem. I'll be always helpful! Link to comment Share on other sites More sharing options...
Active Member ReFresh 2330 Posted February 24, 2018 Author Active Member Share Posted February 24, 2018 @Braxy Here you can see the problem: Spoiler https://youtu.be/P3_MpfmH9dk I'll be always helpful! Link to comment Share on other sites More sharing options...
Tasho 243 Posted February 24, 2018 Share Posted February 24, 2018 6 hours ago, Braxy said: Whatever, shit code Spoiler quest skill_reset begin state start begin when 71002.use begin if pc.get_level() < 30 or pc.get_level() > 120 then say_title(item_name(71002)) say("") say("This item can be used in between level 30 and 120.") return end if pc.get_skill_group() == 0 then say_title(item_name(71002)) say("") say("You have no skill group.") return end say_title(item_name(71002)) say("") say("This scroll will instantly reset") say("your skill group, every skill you have") say("mastered will be losed in the process.") say("") say_reward("Notice: You won't lose any character points.") say("") say("Do you really want to do this?") if (select("Yes", "No") == 1) then pc.clear_skill() pc.set_skill_group(0) horse.set_level(horse_level) char_log(0, "RESET_SKILL", "RESET_SKILL_BY_71002") pc.remove_item(71002); set_quest_state("skill_group","run") end end end I'm not a quester but these are really basic shits which you have to know before write something, you have 'quests which you sell' on that forum, that's very bad. You called x3 times say_title(item_name). You use say("") for make a new row empty, already exist '[ENTER]'. You use item vnum 71002, instead of use item.get_vnum(). For questions like Yes, No already exist 'locale.yes, locale.no'. Why you guys start to put ";" at the end of function or returns? Did you know for what is that or just put it and want to look different than another ones? 'Semi-colons in Lua are generally only required when writing multiple statements on a line, stop use it if don't know how is working, you should learn a bit from Lua documentation before write any code and stop do things which others do. Have fun. Link to comment Share on other sites More sharing options...
Active Member ReFresh 2330 Posted February 24, 2018 Author Active Member Share Posted February 24, 2018 And what's the difference between what he wrote and between this? Spoiler You called x3 times say_title(item_name). You use say("") for make a new row empty, already exist '[ENTER]'. You use item vnum 71002, instead of use item.get_vnum(). For questions like Yes, No already exist 'locale.yes, locale.no'. @Tasho 1 I'll be always helpful! Link to comment Share on other sites More sharing options...
Premium Syreldar 1870 Posted February 25, 2018 Premium Share Posted February 25, 2018 He is talking about good coding practices. No difference in the end. "Nothing's free in this life. Ignorant people have an obligation to make up for their ignorance by paying those who help them. Either you got the brains or cash, if you lack both you're useless." Syreldar Link to comment Share on other sites More sharing options...
Braxy 617 Posted February 25, 2018 Share Posted February 25, 2018 19 hours ago, Tasho said: I'm not a quester but these are really basic shits which you have to know before write something, you have 'quests which you sell' on that forum, that's very bad. You called x3 times say_title(item_name). You use say("") for make a new row empty, already exist '[ENTER]'. You use item vnum 71002, instead of use item.get_vnum(). For questions like Yes, No already exist 'locale.yes, locale.no'. Why you guys start to put ";" at the end of function or returns? Did you know for what is that or just put it and want to look different than another ones? 'Semi-colons in Lua are generally only required when writing multiple statements on a line, stop use it if don't know how is working, you should learn a bit from Lua documentation before write any code and stop do things which others do. Have fun. Am i the only one who read the "Whatever, shit code" phrase? Dude the thing isn't written by me... I just gave him what he asked. And for god sake why the hell are we talking about code when you don't even bother to help him with your "properly written code"? 19 hours ago, ReFresh said: @Braxy Here you can see the problem: Reveal hidden contents https://youtu.be/P3_MpfmH9dk As i said this is a game bug, doesn't have anything to do with the quest file. As long as I'll be a threat for you , i will always be your target :3 Link to comment Share on other sites More sharing options...
Premium WeedHex 635 Posted February 26, 2018 Premium Share Posted February 26, 2018 Tasho are you speaking about what you do and think? KKKK You write a lot of bullshits quest skill_reset begin state start begin function __tasho__() if pc.count_item(71002)>0 then pc.remove_item(71002,1) set_quest_state("skill_group","run") pc.clear_skill() pc.set_skill_group(0) char_log(0, "RESET_SKILL", "RESET_SKILL_BY_71002") end end when 71002.use begin say_title(item_name(71002)) say() if pc.get_level() < 30 or pc.get_level() > 120 then say("This item can be used between level 30 and 120.") return end if pc.get_skill_group() == 0 then say("You have no skill group.") return end say("This scroll will instantly reset") say("your skill group, every skill you have") say("mastered will be losed in the process.") say() say_reward("Notice: You won't lose any character points.") say() say("Do you really want to do this?") local tasho=select("Yes", "No") if tasho == 1 then if pc.get_skill_group() != 0 then skill_reset.__tasho__() end else setskin(NOWINDOW) return end end end end Link to comment Share on other sites More sharing options...
Verflucht 9 Posted May 25, 2020 Share Posted May 25, 2020 (edited) On 2/25/2018 at 12:45 AM, ReFresh said: @Braxy Here you can see the problem: Reveal hidden contents https://youtu.be/P3_MpfmH9dk Did you ever fix this issue ? Edited May 25, 2020 by Erebus Link to comment Share on other sites More sharing options...
Active Member ReFresh 2330 Posted May 25, 2020 Author Active Member Share Posted May 25, 2020 @Erebus Never. I'll be always helpful! Link to comment Share on other sites More sharing options...
ondry 333 Posted December 16, 2020 Share Posted December 16, 2020 @ReFresh @SteelskinVayne 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