Jump to content

Recommended Posts

Mmmhh I have 34083 game.

 

But it's not possible create an query in the quest ?

Because I go navicat, I go in my player. level : 105. I change 104 and ingame it's good ^^ I'am lvl 104.

It's not possible create quest for this ?

Thanks.

Link to comment
https://metin2.dev/topic/1582-quest-for-change-lvl-105-104/#findComment-11806
Share on other sites

  • Honorable Member

I didn't tested it, but i think it will work..

quest change_level begin
	state start begin
		when ITEM_ID.use begin
			if pc.get_level() == 105
				say("Do you really change your level?")
				local select=select ("Yes", "No")
					if 1==select
						say("Your level was changed")
						pc.set_level(104)
						return
					end
					if 2==select
						return
					end
			else
				return
			end
		end
	end
end
	

spacer.png

Link to comment
https://metin2.dev/topic/1582-quest-for-change-lvl-105-104/#findComment-11812
Share on other sites

  • 5 months later...

I didn't tested it, but i think it will work..

quest change_level begin
	state start begin
		when ITEM_ID.use begin
			if pc.get_level() == 105
				say("Do you really change your level?")
				local select=select ("Yes", "No")
					if 1==select
						say("Your level was changed")
						pc.set_level(104)
						return
					end
					if 2==select
						return
					end
			else
				return
			end
		end
	end
end
	

 

 

 

Your quest don't work with game 40k :s

Error :

 

if pc . get_level ( ) == 105

say ( "Do you really change your level?" )

local select = select ( "Yes" , "No" )

if 1 == select

say ( "Your level was changed" )

pc . set_level ( < span class = "searchlite" > 104 < / span > )

return

end

if 2 == select

return

end

else

return

end

syntax error : [string "start"]:2: `then' expected near `say'

Abort trap (core dumped)

 

 

 

Help me :)

Link to comment
https://metin2.dev/topic/1582-quest-for-change-lvl-105-104/#findComment-26077
Share on other sites

quest change_level begin
    state start begin
        when ITEM_ID.use begin
            if pc.get_level() == 105 then
                say("Do you really change your level?")
                local select=select ("Yes", "No")
                    if 1==select
                        say("Your level was changed")
                        pc.set_level(104)
                        return
                    end
                    if 2==select
                        return
                    end
            else
                return
            end
        end
    end
end
    

try it like this

Link to comment
https://metin2.dev/topic/1582-quest-for-change-lvl-105-104/#findComment-26082
Share on other sites

quest change_level begin
    state start begin
        when ITEM_ID.use begin
            if pc.get_level() == 105 then
                say("Do you really change your level?")
                local select=select ("Yes", "No")
                    if 1==select
                        say("Your level was changed")
                        pc.set_level(104)
                        return
                    end
                    if 2==select
                        return
                    end
            else
                return
            end
        end
    end
end
    

try it like this

 

 

Don't work :s

 

Error :

 

if pc . get_level ( ) == 105 then

say ( "Do you really change your level?" )

local select = select ( "Yes" , "No" )

if 1 == select

say ( "Your level was changed" )

pc . set_level ( 104 )

return

end

if 2 == select

return

end

else

return

end

syntax error : [string "start"]:5: `then' expected near `say'

Abort trap (core dumped)

 

 

Link to comment
https://metin2.dev/topic/1582-quest-for-change-lvl-105-104/#findComment-26106
Share on other sites

  • Premium

The "then" keywords were missed from the condition-lines.

if cond then

 local select=select ("Yes", "No")
                    if 1==select
                        say("Your level was changed")
                        pc.set_level(104)
                        return

correct:

 local select=select ("Yes", "No")
                    if 1==select then
                        say("Your level was changed")
                        pc.set_level(104)
                        return
Link to comment
https://metin2.dev/topic/1582-quest-for-change-lvl-105-104/#findComment-26107
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.