Sydai 2 Posted March 20, 2015 Share Posted March 20, 2015 I can't compile this quest. When I write ./qc sistem_rang I get no error, but it doesn't makes hist folders in object. If I try to compile other quest, his folders in objects are made, but when I complie this quest there is no folder in object. The quest: quest sistem_rang begin state start begin when login begin if pc.getqf("rang_level") == 0 then send_letter("Rang - PVP 1") elseif pc.getqf("rang_level") == 1 then send_letter("Rang - PVP 2") elseif pc.getqf("rang_level") == 2 then send_letter("Rang - PVP 3") elseif pc.getqf("rang_level") == 3 then send_letter("Rang - PVP 4") elseif pc.getqf("rang_level") == 4 then send_letter("Rang - PVP 5") elseif pc.getqf("rang_level") == 5 then send_letter("Rang - PVP 6") elseif pc.getqf("rang_level") == 6 then send_letter("Rang - PVP Suprem") end end when info or button begin if pc.getqf("rang_level") == 0 then addimage(20, 12, "pvp_1.tga") say("[ENTER][ENTER][ENTER]") say(" ") say("Pentru a obþine rangul de PVP 1 va trebuii sã faci") say("rost de câteva obiecte pe care le poþi obþine cu u-") say("ºurinþã de la pietrele ºi monºtrii din Valea stân-") say("cilor sau din magazinul de obiecte.") say(" ") wait("") addimage(20, 12, "pvp_1.tga") say("[ENTER][ENTER][ENTER]") say(" ") say("Pentru trecerea la urmaoarul rang ai nevoie de") say_item_vnum(30502, 20) say("") local rang = select ("Am materialele", "Încã nu le am") if rang == 1 then if pc.count_item(30502) < 20 then addimage(20, 12, "pvp_1.tga") say("[ENTER][ENTER][ENTER]") say(" ") say("Se pare cã nu deþii materialele necesare urcãrii") say("rangului tãu. Te rog sã revii când le vei avea.") say("") send_letter("Rang - PVP 1") return end addimage(20, 12, "pvp_1.tga") say("[ENTER][ENTER][ENTER]") say(" ") say("Felicitari, ai reuºit sã îþi urci rangul la urmãto-") say("rul nivel. Drept rãsplatã vei primi 1500 HP perma-") say("nent, dar ºi rangul de PVP 1.") say("") notice_all("Jucãtorul "..pc.get_name().." a obþinut rangul de PVP 1!") pc.setqf("rang_level", 1) pc.remove_item(30502, 20) clear_letter("Rang - PVP 1") affect.add_collect(1, 1500, 60*60*24*365*60) pc.change_alignment(-11000) return elseif rang == 2 then addimage(20, 12, "pvp_1.tga") say("[ENTER][ENTER][ENTER]") say(" ") say("Ok, imediat ce faci rost de ele vei putea sã îþi") say("avansezi rangul pe server.") say("") send_letter("Rang - PVP 1") return end elseif pc.getqf("rang_level") == 1 then addimage(20, 12, "pvp_2.tga") say("[ENTER][ENTER][ENTER]") say(" ") say("Pentru a obþine rangul de PVP 2 va trebuii sã faci") say("rost de câteva obiecte pe care le poþi obþine cu u-") say("ºurinþã de la pietrele ºi monºtrii din Valea stân-") say("cilor sau din magazinul de obiecte.") say(" ") wait("") addimage(20, 12, "pvp_2.tga") say("[ENTER][ENTER][ENTER]") say(" ") say("Pentru trecerea la urmaoarul rang ai nevoie de") say_item_vnum(30505, 20) say("") local rang = select ("Am materialele", "Încã nu le am") if rang == 1 then if pc.count_item(30505) < 20 then addimage(20, 12, "pvp_2.tga") say("[ENTER][ENTER][ENTER]") say(" ") say("Se pare cã nu deþii materialele necesare urcãrii") say("rangului tãu. Te rog sã revii când le vei avea.") say("") send_letter("Rang - PVP 2") return end addimage(20, 12, "pvp_2.tga") say("[ENTER][ENTER][ENTER]") say(" ") say("Felicitari, ai reuºit sã îþi urci rangul la urmãto-") say("rul nivel. Drept rãsplatã vei primi 15% criticã") say("permanent, dar ºi rangul de PVP 2.") say("") notice_all("Jucãtorul "..pc.get_name().." a obþinut rangul de PVP 2!") pc.setqf("rang_level", 2) pc.remove_item(30505, 20) clear_letter("Rang - PVP 2") pc.change_alignment(4000) affect.add_collect(15, 15, 60*60*24*365*60) return elseif rang == 2 then addimage(20, 12, "pvp_2.tga") say("[ENTER][ENTER][ENTER]") say(" ") say("Ok, imediat ce faci rost de ele vei putea sã îþi") say("avansezi rangul pe server.") say("") send_letter("Rang - PVP 2") return end elseif pc.getqf("rang_level") == 2 then addimage(20, 12, "pvp_3.tga") say("[ENTER][ENTER][ENTER]") say(" ") say("Pentru a obþine rangul de PVP 3 va trebuii sã faci") say("rost de câteva obiecte pe care le poþi obþine cu u-") say("ºurinþã de la pietrele ºi monºtrii din Valea stân-") say("cilor sau din magazinul de obiecte.") say(" ") wait("") addimage(20, 12, "pvp_3.tga") say("[ENTER][ENTER][ENTER]") say(" ") say("Pentru trecerea la urmaoarul rang ai nevoie de") say_item_vnum(30508, 20) say("") local rang = select ("Am materialele", "Încã nu le am") if rang == 1 then if pc.count_item(30508) < 20 then addimage(20, 12, "pvp_3.tga") say("[ENTER][ENTER][ENTER]") say(" ") say("Se pare cã nu deþii materialele necesare urcãrii") say("rangului tãu. Te rog sã revii când le vei avea.") say("") send_letter("Rang - PVP 3") return end addimage(20, 12, "pvp_3.tga") say("[ENTER][ENTER][ENTER]") say(" ") say("Felicitari, ai reuºit sã îþi urci rangul la urmãto-") say("rul nivel. Drept rãsplatã vei primi 15% pãtrunzã-") say("toare permanent, dar ºi rangul de PVP 3.") say("") notice_all("Jucãtorul "..pc.get_name().." a obþinut rangul de PVP 3!") pc.setqf("rang_level", 3) pc.remove_item(30508, 20) pc.change_alignment(4000) clear_letter("Rang - PVP 3") affect.add_collect(16, 15, 60*60*24*365*60) return elseif rang == 2 then addimage(20, 12, "pvp_3.tga") say("[ENTER][ENTER][ENTER]") say(" ") say("Ok, imediat ce faci rost de ele vei putea sã îþi") say("avansezi rangul pe server.") say("") send_letter("Rang - PVP 3") return end elseif pc.getqf("rang_level") == 3 then addimage(20, 12, "pvp_4.tga") say("[ENTER][ENTER][ENTER]") say(" ") say("Pentru a obþine rangul de PVP 4 va trebuii sã faci") say("rost de câteva obiecte pe care le poþi obþine cu u-") say("ºurinþã de la pietrele ºi monºtrii din Valea stân-") say("cilor sau din magazinul de obiecte.") say(" ") wait("") addimage(20, 12, "pvp_4.tga") say("[ENTER][ENTER][ENTER]") say(" ") say("Pentru trecerea la urmaoarul rang ai nevoie de") say_item_vnum(30509, 20) say("") local rang = select ("Am materialele", "Încã nu le am") if rang == 1 then if pc.count_item(30509) < 20 then addimage(20, 12, "pvp_4.tga") say("[ENTER][ENTER][ENTER]") say(" ") say("Se pare cã nu deþii materialele necesare urcãrii") say("rangului tãu. Te rog sã revii când le vei avea.") say("") send_letter("Rang - PVP 4") return end addimage(20, 12, "pvp_4.tga") say("[ENTER][ENTER][ENTER]") say(" ") say("Felicitari, ai reuºit sã îþi urci rangul la urmãto-") say("rul nivel. Drept rãsplatã vei primi 10% tare împo-") say("triva semi-oamenilor, dar ºi rangul de PVP 4.") say("") notice_all("Jucãtorul "..pc.get_name().." a obþinut rangul de PVP 4!") pc.setqf("rang_level", 4) pc.remove_item(30509, 20) clear_letter("Rang - PVP 4") pc.change_alignment(5000) affect.add_collect(17, 10, 60*60*24*365*60) return elseif rang == 2 then addimage(20, 12, "pvp_4.tga") say("[ENTER][ENTER][ENTER]") say(" ") say("Ok, imediat ce faci rost de ele vei putea sã îþi") say("avansezi rangul pe server.") say("") send_letter("Rang - PVP 4") return end elseif pc.getqf("rang_level") == 4 then addimage(20, 12, "pvp_5.tga") say("[ENTER][ENTER][ENTER]") say(" ") say("Pentru a obþine rangul de PVP 5 va trebuii sã faci") say("rost de câteva obiecte pe care le poþi obþine cu u-") say("ºurinþã de la pietrele ºi monºtrii din Valea stân-") say("cilor sau din magazinul de obiecte.") say(" ") wait("") addimage(20, 12, "pvp_5.tga") say("[ENTER][ENTER][ENTER]") say(" ") say("Pentru trecerea la urmaoarul rang ai nevoie de") say_item_vnum(30512, 20) say("") local rang = select ("Am materialele", "Încã nu le am") if rang == 1 then if pc.count_item(30512) < 20 then addimage(20, 12, "pvp_5.tga") say("[ENTER][ENTER][ENTER]") say(" ") say("Se pare cã nu deþii materialele necesare urcãrii") say("rangului tãu. Te rog sã revii când le vei avea.") say("") send_letter("Rang - PVP 5") return end addimage(20, 12, "pvp_5.tga") say("[ENTER][ENTER][ENTER]") say(" ") say("Felicitari, ai reuºit sã îþi urci rangul la urmãto-") say("rul nivel. Drept rãsplatã vei primi 50 apãrare per-") say("manent, dar ºi rangul de PVP 5.") say("") notice_all("Jucãtorul "..pc.get_name().." a obþinut rangul de PVP 5!") pc.setqf("rang_level", 5) pc.remove_item(30512, 20) pc.change_alignment(3000) clear_letter("Rang - PVP 5") affect.add_collect(54, 50, 60*60*24*365*60) return elseif rang == 2 then addimage(20, 12, "pvp_5.tga") say("[ENTER][ENTER][ENTER]") say(" ") say("Ok, imediat ce faci rost de ele vei putea sã îþi") say("avansezi rangul pe server.") say("") send_letter("Rang - PVP 5") return end elseif pc.getqf("rang_level") == 5 then addimage(20, 12, "pvp_6.tga") say("[ENTER][ENTER][ENTER]") say(" ") say("Pentru a obþine rangul de PVP 6 va trebuii sã faci") say("rost de câteva obiecte pe care le poþi obþine cu u-") say("ºurinþã de la pietrele ºi monºtrii din Valea stân-") say("cilor sau din magazinul de obiecte.") say(" ") wait("") addimage(20, 12, "pvp_6.tga") say("[ENTER][ENTER][ENTER]") say(" ") say("Pentru trecerea la urmaoarul rang ai nevoie de") say_item_vnum(30515, 20) say("") local rang = select ("Am materialele", "Încã nu le am") if rang == 1 then if pc.count_item(30515) < 20 then addimage(20, 12, "pvp_6.tga") say("[ENTER][ENTER][ENTER]") say(" ") say("Se pare cã nu deþii materialele necesare urcãrii") say("rangului tãu. Te rog sã revii când le vei avea.") say("") send_letter("Rang - PVP 6") return end addimage(20, 12, "pvp_6.tga") say("[ENTER][ENTER][ENTER]") say(" ") say("Felicitari, ai reuºit sã îþi urci rangul la urmãto-") say("rul nivel. Drept rãsplatã vei primi 30 valoare atac") say("permanent, dar ºi rangul de PVP 6.") say("") notice_all("Jucãtorul "..pc.get_name().." a obþinut rangul de PVP 6!") pc.setqf("rang_level", 6) pc.remove_item(30515, 20) clear_letter("Rang - PVP 6") pc.change_alignment(4000) affect.add_collect(53, 30, 60*60*24*365*60) return elseif rang == 2 then addimage(20, 12, "pvp_6.tga") say("[ENTER][ENTER][ENTER]") say(" ") say("Ok, imediat ce faci rost de ele vei putea sã îþi") say("avansezi rangul pe server.") say("") send_letter("Rang - PVP 6") return end elseif pc.getqf("rang_level") == 6 then addimage(20, 12, "pvp_suprem.tga") say("[ENTER][ENTER][ENTER]") say(" ") say("Pentru a obþine rangul de PVP Suprem va trebuii sã ") say("faci rost de câteva obiecte pe care le poþi obþine") say("cu uºurinþã de la pietrele ºi monºtrii din Valea") say("stâncilor sau din magazinul de obiecte.") say(" ") wait("") addimage(20, 12, "pvp_suprem.tga") say("[ENTER][ENTER][ENTER]") say(" ") say("Pentru trecerea la urmaoarul rang ai nevoie de") say_item_vnum(30514, 30) say("") local rang = select ("Am materialele", "Încã nu le am") if rang == 1 then if pc.count_item(30514) < 30 then addimage(20, 12, "pvp_suprem.tga") say("[ENTER][ENTER][ENTER]") say(" ") say("Se pare cã nu deþii materialele necesare urcãrii") say("rangului tãu. Te rog sã revii când le vei avea.") say("") send_letter("Rang - PVP Suprem") return end addimage(20, 12, "pvp_suprem.tga") say("[ENTER][ENTER][ENTER]") say(" ") say("Felicitari, ai reuºit sã îþi urci rangul la urmãto-") say("rul nivel. Drept rãsplatã vei primi 5% apãrare îm-") say("potriva raselor, dar ºi rangul de PVP Suprem.") say("") notice_all("Jucãtorul "..pc.get_name().." a obþinut rangul de PVP 7!") pc.setqf("rang_level", 7) pc.remove_item(30514, 30) pc.change_alignment(4000) clear_letter("Rang - PVP Suprem") affect.add_collect(59, 5, 60*60*24*365*60) affect.add_collect(60, 5, 60*60*24*365*60) affect.add_collect(61, 5, 60*60*24*365*60) affect.add_collect(62, 5, 60*60*24*365*60) return elseif rang == 2 then addimage(20, 12, "pvp_suprem.tga") say("[ENTER][ENTER][ENTER]") say(" ") say("Ok, imediat ce faci rost de ele vei putea sã îþi") say("avansezi rangul pe server.") say("") send_letter("Rang - PVP Suprem") return end end end end end I try to change the qc file but I get the same problem. Could someone help me? Link to comment Share on other sites More sharing options...
Active Member ATAG 311 Posted March 20, 2015 Active Member Share Posted March 20, 2015 Ther's no error in the quest... link This is the hidden content, please Sign In or Sign Up 1 Link to comment Share on other sites More sharing options...
Sydai 2 Posted March 20, 2015 Author Share Posted March 20, 2015 Ther's no error in the quest... link This is the hidden content, please Sign In or Sign Up I know that there is no error, but why i can't compile him on my server? Link to comment Share on other sites More sharing options...
Dimmi 19 Posted March 20, 2015 Share Posted March 20, 2015 What kind of error do you get? Link to comment Share on other sites More sharing options...
Sydai 2 Posted March 20, 2015 Author Share Posted March 20, 2015 What kind of error do you get? I didn't get any error. The quest's folders in object are not made. Can you try to compile it o your server and give me the notarget/state? (compileaza-l cu tot cu diacriticele din quest) Link to comment Share on other sites More sharing options...
Premium MrLibya 557 Posted March 20, 2015 Premium Share Posted March 20, 2015 put here the error u get when u compile it If you're going to do something, then do it right. Link to comment Share on other sites More sharing options...
Sydai 2 Posted March 20, 2015 Author Share Posted March 20, 2015 put here the error u get when u compile it I don't get any error. Everithing is ok, but his object files are not created. Link to comment Share on other sites More sharing options...
newja 53 Posted March 20, 2015 Share Posted March 20, 2015 (edited) When you use "say" function or so, remember that you can't place special chars (e.g. ) at the end of line. It doesn't print the error but instead you get no object files. Edited August 19, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Sydai 2 Posted March 20, 2015 Author Share Posted March 20, 2015 (edited) When you use "say" function or so, remember that you can't place special chars (e.g. ) at the end of line. It doesn't print the error but instead you get no object files. Could you be more understandable? What do you want to mean? Edited August 19, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Solution newja 53 Posted March 20, 2015 Solution Share Posted March 20, 2015 say("test ã") Won't work. say("test ã ") Will work. Do you understand now? Link to comment Share on other sites More sharing options...
Sydai 2 Posted March 20, 2015 Author Share Posted March 20, 2015 say("test ã") Won't work. say("test ã ") Will work. Do you understand now? Yes. I compile it. Now, when i click the quest in the game client nothing happen's and I get this erron in syyser: SYSERR: Mar 20 18:55:29 :: GetQuestNameByIndex: cannot find quest name by index 0 SYSERR: Mar 20 18:55:29 :: OnInfo: QUEST no info event (quest ) Link to comment Share on other sites More sharing options...
newja 53 Posted March 20, 2015 Share Posted March 20, 2015 replace wait("") with wait() in your quest and recompile it again. Link to comment Share on other sites More sharing options...
Sydai 2 Posted March 20, 2015 Author Share Posted March 20, 2015 replace wait("") with wait() in your quest and recompile it again. Same shit. Link to comment Share on other sites More sharing options...
newja 53 Posted March 20, 2015 Share Posted March 20, 2015 (edited) Don't know how to help you, for me everything works. Have you tried restarting machine? Edited August 19, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Sydai 2 Posted March 20, 2015 Author Share Posted March 20, 2015 (edited) Don't know how to help you, for me everything works. Have you tried restarting machine? Yes, I made it other way. Thank you for your help. Edited August 19, 2022 by Metin2 Dev Core X - External 2 Internal 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