Jump to content
  • 0

Quest Error


iRETEMAG

Question

  • Premium

 I get segmentation fault (Core dumped)

quest mapapvp begin
    state start begin
        when login with pc.get_map_index() == 70 begin
            say("Welcome to PVP Map")
            say("You need to kill 3 players.")
            say("When you kill 3 players you get the reward.")
            set_state("mapapvp1")
            pc.setqf("conta_kills",1)
        end
    end
    state mapapvp1 begin
        when kill with npc.is_pc() begin
			if pc.getqf("conta_kills") == 3 then
			pc.change_money(250000)
			warp_to_village()
        else
            pc.setqf("conta_kills", pc.getqf("conta_kills")+1)
		end
    end
end
end
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0
quest mapapvp begin
    state start begin
        when login with pc.get_map_index() == 70 begin
            say("Welcome to PVP Map")
            say("You need to kill 3 players.")
            say("When you kill 3 players you get the reward.")
            pc.setqf("conta_kills",1)
        end
        when kill with npc.is_pc() and pc.get_map_index() == 70 begin
            if pc.getqf("conta_kills") == 3 then
                pc.change_money(250000)
                warp_to_village()
            else
                pc.setqf("conta_kills", pc.getqf("conta_kills")+1)
            end
        end        
    end
end

There's no point to create a new quest state..

  • Love 2
Link to comment
Share on other sites

  • 0
  • Premium

quest mapapvp begin
    state start begin
        when login with pc.get_map_index() == 70 begin
            say("Welcome to PVP Map")
            say("You need to kill 3 players.")
            say("When you kill 3 players you get the reward.")
            pc.setqf("conta_kills",1)
        end
        when kill with npc.is_pc() and pc.get_map_index() == 70 begin
            if pc.getqf("conta_kills") == 3 then
                pc.change_money(250000)
                warp_to_village()
            else
                pc.setqf("conta_kills", pc.getqf("conta_kills")+1)
        end        
    end
end

There's no point to create a new quest state..

 

 

 

Thank you.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

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.