Jump to content

Quest change_empire with only 2 Empire


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

 

Link to comment
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 14
  • Good 3
  • Love 9
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.