v0gue 0 Posted March 10, 2015 Share Posted March 10, 2015 quest firstport begin state start begin when login with pc.getqf("first") == 0 begin if pc.get_empire() == 1 then pc.warp(33493, 4994) pc.setqf("first", 1) if pc.get_emmpire() == 2 then pc.warp(33493, 4994) pc.setqf("first", 1) if pc.get_empire() == 3 then pc.warp(xxx, yyy) pc.setqf("first", 1) else end end end where is error? appear Killed after compile! Link to comment Share on other sites More sharing options...
newja 53 Posted March 10, 2015 Share Posted March 10, 2015 apear Killed after compile! lol wut. You need to end your if/else condition. Besides replace 2 last ifs with else if. And if you get compile error, delete last else line. 1 Link to comment Share on other sites More sharing options...
v0gue 0 Posted March 10, 2015 Author Share Posted March 10, 2015 I can correct it you? please? Link to comment Share on other sites More sharing options...
newja 53 Posted March 10, 2015 Share Posted March 10, 2015 quest firstport begin state start begin when login with pc.getqf("first") == 0 begin table = { [1] = {33493, 4994}, [2] = {xxxxx, xxxx}, [3] = {xxxxx, xxxx}, } index = table[pc.get_empire()] pc.warp(index[1], index[2]) pc.setqf("first", 1) end end end 1 Link to comment Share on other sites More sharing options...
v0gue 0 Posted March 10, 2015 Author Share Posted March 10, 2015 pc.warp(index[1] is index for already map1? Link to comment Share on other sites More sharing options...
newja 53 Posted March 10, 2015 Share Posted March 10, 2015 pc.warp(index[1] is index for already map1? [1] = {33493, 4994}, -- chunjo [2] = {xxxxx, xxxx}, -- shinsoo [3] = {xxxxx, xxxx}, -- jinno index[1] is red (coord X) index[2] is green (coord Z) 1 Link to comment Share on other sites More sharing options...
v0gue 0 Posted March 11, 2015 Author Share Posted March 11, 2015 lol...no warp.... please,complete quest with map index and coords. map index: 251 coords: 347446 502896 :@:@:@:@:@:@ Link to comment Share on other sites More sharing options...
v0gue 0 Posted March 11, 2015 Author Share Posted March 11, 2015 (edited) error after compile quest,2-3 min . https://metin2.download/picture/M6h8wiaO8hmL37TZdE2sVd0DjEE70drK/.png Edited August 30, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
newja 53 Posted March 11, 2015 Share Posted March 11, 2015 quest warp begin state start begin when login with pc.getqf("warp") != 1 begin pc.setqf("warp", 1) pc.warp(34744600, 50289600) end end end 1 Link to comment Share on other sites More sharing options...
v0gue 0 Posted March 11, 2015 Author Share Posted March 11, 2015 no warp...lol.... Link to comment Share on other sites More sharing options...
Premium MrLibya 557 Posted March 12, 2015 Premium Share Posted March 12, 2015 quest firstport begin state start begin when login with pc.getqf("first") == 0 begin if pc.get_empire() == 1 then pc.warp(33493, 4994) pc.setqf("first", 1) elseif pc.get_empire() == 2 then pc.warp(33493, 4994) pc.setqf("first", 1) elseif pc.get_empire() == 3 then pc.warp(33493, 4994) pc.setqf("first", 1) end end end end 1 1 If you're going to do something, then do it right. Link to comment Share on other sites More sharing options...
joshi 34 Posted March 12, 2020 Share Posted March 12, 2020 source file startposition.cpp Link to comment Share on other sites More sharing options...
Premium Syreldar 1890 Posted March 12, 2020 Premium Share Posted March 12, 2020 (edited) 11 minutes ago, joshi said: source file startposition.cpp Posted March 10, 2015 Edited March 12, 2020 by Syreldar "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...
Ruby 0 Posted February 8, 2023 Share Posted February 8, 2023 On 3/12/2015 at 9:43 AM, MrLibya said: quest firstport begin state start begin when login with pc.getqf("first") == 0 begin if pc.get_empire() == 1 then pc.warp(33493, 4994) pc.setqf("first", 1) elseif pc.get_empire() == 2 then pc.warp(33493, 4994) pc.setqf("first", 1) elseif pc.get_empire() == 3 then pc.warp(33493, 4994) pc.setqf("first", 1) end end end end Thank you, i have this imported in "starterset_quest" . Thank you very much! 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