Jump to content
×
×
  • Create New...
  • 0

Quest state problem


avertuss

Question

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

  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

2 answers to this question

Recommended Posts

  • 0

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

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.


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.