Jump to content

Recommended Posts

Hello, I'd like to remove the option shinsoo from this part of the quest

I think my problem is here "local ret = pc.change_empire(emp)" because i can't simply remove shinsoo from le local select emp

            
		when 71054.use begin
			say("Select new empire:[ENTER]")
            local emp = select("Shinsoo","Chunjo", "Jinno", "Exit")
            if emp == 4 then
                return
            end
            local ret = pc.change_empire(emp)
            if ret == 999 then
                pc.remove_item(item.get_vnum(), 1)
                say("you changed empire")
            elseif ret == 1 then
                say("You can't change empire")
            elseif ret == 2 then
                say("You can't change empire")
            elseif ret == 3 then
                say("You can't change empire")
            end            
        end

 

  • Metin2 Dev 1
Link to comment
https://metin2.dev/topic/21943-quest-change_empire-with-only-2-empire/
Share on other sites

  • Forum Moderator

Default:

  • Shinshoo - 1
  • Chunjo - 2
  • Jinno - 3
local sel = select("Chunjo", "Jinno", "Exit")
Chunjo = sel + 1 = 2
Jinno = sel + 1 = 3
Exit = 3 -- return

All what you need is to make the select value + 1.

This is the hidden content, please

  • Metin2 Dev 22
  • Good 4
  • Love 12

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.