Jump to content

correcion quest warp


Recommended Posts

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

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
  • Love 1
Link to comment
Share on other sites

  • Premium

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
  • Love 1
  • Love 1

If you're going to do something, then do it right.

Link to comment
Share on other sites

  • 5 years later...
  • Premium
11 minutes ago, joshi said:

source file startposition.cpp

 

Posted March 10, 2015

Edited 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

  • 2 years later...
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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.