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

Python stuff


poh

Question

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.

Link to comment
  • Answers 3
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

3 answers to this question

Recommended Posts

  • 0

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

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


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.