[Help] Python question L2J 

Status
Not open for further replies.
Newbie Spellweaver
Joined
Sep 24, 2006
Messages
89
Reaction score
0
Ok, here's the "low down" on my python question. I'm making a quest right now, and doing very well actually! Part of one of the events I have is a line to check your race, for example:
Code:
if Race in [Race.dwarf, Race.darkelf, Race.orc, Race.human]:
          st.setState(COMPLETED)
          st.exitQuest(1)     
          return "7503-11.htm"
Then the next part is to check your level, for example:
Code:
if Level <= 78 
          htmltext = "7503-05.htm"
Now I need a part that checks whether or not your on your subclass , what should I have for the code?
Then I need a line to check whether or not you have done this quest before, what should I have for that?

Well that's about my question, thanks for bearing with me, I'm still novice :P
 
Now I need a part that checks whether or not your on your subclass , what should I have for the code?

Here's a check if player is in sub-class:
Code:
if st.player.isSubClassActive() :

Then I need a line to check whether or not you have done this quest before, what should I have for that?

And here's a check if player isn't done this quest before:

Code:
       if st.getState() == COMPLETED :
         htmltext = "<html><head><body>This quest have already been completed.</body></html>"

And make sure to set state COMPLETED at the finish of the quest =)
Hope it helps :)
 
Upvote 0
Status
Not open for further replies.
Back