Jump to content

Quest Error


Go to solution Solved by Denis,

Recommended Posts

  • 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

  • Solution
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

  • 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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • 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.