Jump to content

Input: no quest running for pc, cannot process input : 1


Recommended Posts

Hello,

I am trying to add new button for visible/unvisible costume for weapon..
It is working properly using quest function: pc.weaponcostume() in another quest.. But when I click on button, It says in syserr of channel:

Input: no quest running for pc, cannot process input : 1

There is my quest:

quest weaponcostume begin
	state start begin
		when login begin
			cmdchat("weaponcostume "..q.getcurrentquestindex())
		end
		when button or info begin
			if pc.getqf("weaponcostume") == 1 then
				chat("You chose visibility weaponcostume.")
				pc.weaponcostume(0)
				pc.setqf("weaponcostume", 2)
			elseif pc.getqf("weaponcostume") == 2 then
				chat("You chose visibility weapon.")
				pc.weaponcostume(1)
				pc.setqf("weaponcostume", 1)
			end
		end
	end
end

constInfo.py:

QUEST_INDEX_07 = 0
weaponcostume = 0
weaponcostume1 = 0

game.py:

			"weaponcostume"			: self.weaponcostume,
			"weaponcostume1"		: self.weaponcostume1,
			"weaponcostume"			: self.__weaponcostume_load,
[...]
	def __weaponcostume_load(self, value):
		constInfo.QUEST_INDEX_07 = int(value)
		
	def weaponcostume(self, qid):
		constInfo.weaponcostume = int(qid)
		
	def weaponcostume1(self, qid):
		constInfo.weaponcostume1 = int(qid)

uiinventory.py:

	self.weaponcostume			= self.GetChild("weaponcostume")
[...]
	self.weaponcostume.SetEvent(ui.__mem_func__(self.__weaponcostume))
[...]
	def __weaponcostume(self):
		import event
		constInfo.weaponcostume = 1
		event.QuestButtonClick(int(constInfo.QUEST_INDEX_07))
		net.SendQuestInputStringPacket(str(constInfo.weaponcostume))

Client syserr is clean.

Could you help me, please?
Thanks.

If I helped you, do not forget to press "Thanks" button! 

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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.