Jump to content
metin2dev
Ekstasia2
  • 0
Sign in to follow this  
.Rise

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

Question

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.

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×