Jump to content

Recommended Posts

Hi bois,

i tried to create a new system.. i can open the new system ingame and can use the buttons. But when i use the buttons the quest doens't work. (yes i'm a python-newbie..)
 
 
screens:
 
ingame AlHie.png
 
uiinventory.py:
 
YlD3f.png
9g02c.png
P9GMg.png
 
 
 
 
game.py:
h59Lb.pngnOiTc.png

 

 

It would be nice if u guys would help me.

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Active Member

I think problem due from quest indexes, You write indexes to manually so I don't know this true or false but try with this

 

Your first get your true quest index with start statement

when login begin
	cmdchat("my_quest_index_this "..q.getcurrentquestindex())
end

Now save "my_quest_index_this" veriable in python

 

Search

def __ServerCommand_Build(self):

Add it under;

"my_quest_index_this"				: self.SaveMyQuestIndex,

Now add this function, for save quest id in veriable

def SaveMyQuestIndex(self, quest_id):
	constInfo.MyQuestIndex = int(quest_id)

Finally create quest id veriable in constinfo.py

MyQuestIndex = 0

And.. Call with this quest index

event.QuestButtonClick(constInfo.MyQuestIndex)
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.