Jump to content

Quest state problem


Recommended Posts

Hi. I have problem with this error in syserr

OnButton: QUEST There's suspended quest state, can't run new quest state (quest: wskaznikHpWroga pc:

Quest

quest wskaznikHpWroga begin
	state start begin
		when login begin
			cmdchat("super_quest "..q.getcurrentquestindex())
		end

		when info or button begin
			cmdchat("GetInputStart")
			local vid = input(cmdchat("get_input_value"))
			cmdchat("GetInputStop")
			local old_pc = pc.select(vid)
			local name = pc.get_name()
			local hp = pc.get_hp()
			local max_hp = pc.get_max_hp()
			pc.select(old_pc)
			cmdchat("pvp_zdruwko "..name.."|"..hp.."|"..max_hp)
		end
	end
end

 

Link to comment
Share on other sites

  • 2 months later...
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Hello,
 

On 2017. 04. 05. at 7:43 PM, avertuss said:

Hi. I have problem with this error in syserr


OnButton: QUEST There's suspended quest state, can't run new quest state (quest: wskaznikHpWroga pc:

Quest


quest wskaznikHpWroga begin
	state start begin
		when login begin
			cmdchat("super_quest "..q.getcurrentquestindex())
		end

		when info or button begin
			cmdchat("GetInputStart")
			local vid = input(cmdchat("get_input_value"))
			cmdchat("GetInputStop")
			local old_pc = pc.select(vid)
			local name = pc.get_name()
			local hp = pc.get_hp()
			local max_hp = pc.get_max_hp()
			pc.select(old_pc)
			cmdchat("pvp_zdruwko "..name.."|"..hp.."|"..max_hp)
		end
	end
end

 

Last 3x end press 2x enter ;)
Like this
 

Spoiler

Original:
 

Spoiler

        end
    end
end

Change to:
 

Spoiler

        end
    end
end

 

 

Original is this?
 

Spoiler

-- Quest Opponents HP and MP during pvp
-- Made by: Endymion_
-- Server: Ascarial.pl
quest wskaznikHpWroga begin
    state start begin
        when login begin
            cmdchat("super_quest "..q.getcurrentquestindex())
        end

        when info or button begin
            cmdchat("get_input_start")
            local vid = input(cmdchat("get_input_value"))
            cmdchat("get_input_end")
            local old_pc = pc.select(vid)
            local name = pc.get_name()
            local hp = pc.get_hp()
            local max_hp = pc.get_max_hp()
            local mp = pc.get_sp()
            local max_mp = pc.get_max_sp()
            pc.select(old_pc)
            cmdchat("pvp_zdruwko "..name.."|"..hp.."|"..max_hp.."|"..mp.."|"..max_mp)
        end
    end
end

 

787292068_Nvtelen.png.6faa7b0bbb3398fd29

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



  • Similar Content

  • Activity

    1. 0

      Exp bonus

    2. 7

      GR2/DDS encryption

    3. 0

      Anticheat system

    4. 0

      Hallo Mt2DEV PLS HELP

    5. 4

      Map

    6. 11

      Increase max Yang full

    7. 2

      LUA Questions

    8. 1

      Client stops working after C++20

    9. 14

      Metin2 Closed Beta Content (2003-2004)

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.