Jump to content

Recommended Posts

  • Premium

Hallo

 

See This Quest :

-- Quest Creat By MrLibya
quest PRO begin
    state start begin
    
    function setting()
        return
        {


        ["wepon_warror"] = {189,704},
        ["wepon_ninje"] = {289,704},
        ["wepon_sure"] = {4039,704},
        ["wepon_shamen"] = {7199,704},
        ["armor_warror"] = {11209,704},
        ["armor_ninje"] = {11409,704},
        ["armor_sure"] = {11609,704},
        ["armor_shmen"] = {11819,704},

        }
    end

    
        when login begin
        if pc.getqf("PRO_User_P1") == 0 then
        pc.setqf("Plyer_Is_Normal", 1)
        else return end
    end
        -------------------------------- P1 ------------------------------------
        when login or levelup with pc.get_level() >= 120 and pc.getqf("Plyer_Is_Normal") == 1 begin
            say_title("PRO")
            say(" txt ")
            say(" txt ")
            say("txt ")
            say(" txt ")
            say(" txt ")
            say_reward(" txt ")
            say(" txt ")
            local prs = select("weapon", "armor")
            if prs == 1 then
            if pc.job == 0 then
            pc.give_item2(setting.wepon_warror, setting.wepon_warror[1], 1)
            elseif pc.job == 1 then
            pc.give_item2(setting.wepon_ninje, setting.wepon_ninje[1], 1)
            elseif pc.job == 2 then
            pc.give_item2(setting.wepon_sure, setting.wepon_sure[1], 1)
            elseif pc.job == 3 then
            pc.give_item2(setting.wepon_shamen, setting.wepon_shamen[1], 1)
            end
            else
            if pc.job == 0 then
            pc.give_item2(setting.armor_warror, setting.armor_warror[1], 1)
            elseif pc.job == 1 then
            pc.give_item2(setting.armor_ninje, setting.armor_ninje[1], 1)
            elseif pc.job == 2 then
            pc.give_item2(setting.armor_sure, setting.armor_sure[1], 1)
            elseif pc.job == 3 then
            pc.give_item2(setting.armor_shmen, setting.armor_shmen[1], 1)
                end
            end
            wait()
            say_title("PRO")
            say(" txt ")
            pc.setqf("PRO_User_P1", 1)
            pc.setqf("Plyer_Is_Normal", 0)
            notice_all(" txt "..pc.get_name().." txt ")
        end
    end
end
 

 

In This Line :

local prs = select("weapon", "armor")

 

if i chose weapon or armor he not give me any thing + close the windos !

without do this function :

            pc.setqf("PRO_User_P1", 1)
            pc.setqf("Plyer_Is_Normal", 0)
            notice_all(" txt "..pc.get_name().." txt ")

 

sry for my bed eng

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

Link to comment
https://metin2.dev/topic/3330-problem-in-quest/
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Try this:

-- Quest Creat By MrLibya
quest PRO begin
	state start begin
		function setting()
			local items = {
				--weapons,armors
				[0] = {{19,279},{11299}},
				[1] = {{19,279},{11299}},
				[2] = {{19,279},{11299}},
				[3] = {{19,279},{11299}},
			}
			return items
		end
 
	 
		when login begin
			if pc.getqf("PRO_User_P1") == 0 then
				pc.setqf("Plyer_Is_Normal", 1)
			end
		end
		-------------------------------- P1 ------------------------------------
		when login or levelup with pc.get_level() >= 120 and pc.getqf("Plyer_Is_Normal") == 1 begin
			say_title("PRO")
			local prs = select("weapon", "armor")
			local items = PRO.setting()
			for i = 1,table.getn(items[pc.job][prs]) do
				pc.give_item2(items[pc.job][prs][i],1)
			end
			wait()
			say_title("PRO")
			say(" txt ")
			pc.setqf("PRO_User_P1", 1)
			pc.setqf("Plyer_Is_Normal", 0)
			notice_all(" txt "..pc.get_name().." txt ")
		end
	end
end
  
Link to comment
https://metin2.dev/topic/3330-problem-in-quest/#findComment-21905
Share on other sites

  • Premium

 

Try this:

-- Quest Creat By MrLibya
quest PRO begin
	state start begin
		function setting()
			local items = {
				--weapons,armors
				[0] = {{19,279},{11299}},
				[1] = {{19,279},{11299}},
				[2] = {{19,279},{11299}},
				[3] = {{19,279},{11299}},
			}
			return items
		end
 
	 
		when login begin
			if pc.getqf("PRO_User_P1") == 0 then
				pc.setqf("Plyer_Is_Normal", 1)
			end
		end
		-------------------------------- P1 ------------------------------------
		when login or levelup with pc.get_level() >= 120 and pc.getqf("Plyer_Is_Normal") == 1 begin
			say_title("PRO")
			local prs = select("weapon", "armor")
			local items = PRO.setting()
			for i = 1,table.getn(items[pc.job][prs]) do
				pc.give_item2(items[pc.job][prs][i],1)
			end
			wait()
			say_title("PRO")
			say(" txt ")
			pc.setqf("PRO_User_P1", 1)
			pc.setqf("Plyer_Is_Normal", 0)
			notice_all(" txt "..pc.get_name().." txt ")
		end
	end
end
  

 

Not Work !

 

+

i Make Test Quest :

quest tester begin
    state start begin
            when login  begin
            say_title("Test")
            say(" Test ")
            wait()
            say_title("Test")
            say(" New Test ")
        end
    end
end

The Same Stop On wait()

I Work On 34k For Test Thing !

I Will Install 40k And Try

 

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

Link to comment
https://metin2.dev/topic/3330-problem-in-quest/#findComment-21912
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

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.