Page 1 of 1

999_T1Tutorial Error - Freya how to fix it?

Posted: Fri Sep 14, 2012 2:41 am
by Silv3rMoon
If you want to receive support we need this info to help you properly. = I have no idia
» I have no idia
L2J Revision I have no idia:
L2JDP Revision [bI have no idia[/b]:

I have an error wich show sometime's... its in one of quests - 999_T1Tutorial .
Image


Here is line 237....

Code: Select all

   Ex = int(qs.get("Ex"))
Here is part of code.

Code: Select all

 def onKill(self,npc,player,isPet):   if Config.DISABLE_TUTORIAL :     return   st = player.getQuestState(qn)   if not st : return   qs = st.getPlayer().getQuestState(qnTutorial)   if not qs : return   Ex = int(qs.get("Ex"))   if qs != None :      if Ex in [0,1] :         st.playTutorialVoice("tutorial_voice_011")         st.showQuestionMark(3)         qs.set("Ex","2")      if Ex in [0,1,2] and st.getQuestItemsCount(6353) < 1 :         st.dropItem(npc,player,6353,1)         st.playSound("ItemSound.quest_tutorial")   return QUEST       = Quest(999,qn,"Kamael Tutorial")

What to do? Please help :D

Re: 999_T1Tutorial Error - Freya how to fix it?

Posted: Fri Sep 14, 2012 7:44 am
by jurchiks
pic doesn't load...
Edit: use qs.getInt("Ex") in that line.
This is an extremely outdated script, no wonder there's such stuff in there. This is probably not the only place where such code is used.

Re: 999_T1Tutorial Error - Freya how to fix it?

Posted: Fri Sep 14, 2012 7:52 am
by Silv3rMoon
I'm sorry dont get it :D

Re: 999_T1Tutorial Error - Freya how to fix it?

Posted: Fri Sep 14, 2012 9:21 am
by jurchiks
There, I bolded it specially for you.

Re: 999_T1Tutorial Error - Freya how to fix it?

Posted: Fri Sep 14, 2012 9:47 am
by Silv3rMoon
jurchiks wrote:There, I bolded it specially for you.
What? :D

Re: 999_T1Tutorial Error - Freya how to fix it?

Posted: Fri Sep 14, 2012 9:56 am
by djmouse
Are you a junky or what?
He meant change this string

Code: Select all

Ex = int(qs.get("Ex"))
to

Code: Select all

Ex = qs.getInt("Ex")
I think u better quit this fancy with server, it's not yours.

Re: 999_T1Tutorial Error - Freya how to fix it?

Posted: Fri Sep 14, 2012 10:30 am
by Silv3rMoon
Dude i dont read mind's.... if he can't explain it like you better dont try.
And btw thanks.

Re: 999_T1Tutorial Error - Freya how to fix it?

Posted: Fri Sep 14, 2012 11:10 am
by djmouse
Silv3rMoon wrote:Dude i dont read mind's....
Same for me, but it's obvious

Re: 999_T1Tutorial Error - Freya how to fix it?

Posted: Fri Sep 14, 2012 7:34 pm
by Silv3rMoon
This is not working anyway.... i get Error in init.... "Failed executing Script

Re: 999_T1Tutorial Error - Freya how to fix it?

Posted: Fri Sep 14, 2012 8:01 pm
by jurchiks
That's not the full error.

Re: 999_T1Tutorial Error - Freya how to fix it?

Posted: Fri Sep 14, 2012 10:24 pm
by Silv3rMoon

Code: Select all

Error on:alabala\game\data\scripts\quests\999_T1Tutorial\__init__.py.error.logLine: -1 - Column: -1 Traceback (innermost last):  (no code object) at line 0SyntaxError: ('invalid syntax', ('__init__.py', 237, 24, '   Ex = qs.getint("Ex"))'))

Re: 999_T1Tutorial Error - Freya how to fix it?

Posted: Sat Sep 15, 2012 7:44 am
by jurchiks
You couldn't even copy/paste it correctly...
it's "getInt", not "getint", and you only need one parenthesis there, not two.

Re: 999_T1Tutorial Error - Freya how to fix it?

Posted: Sun Sep 16, 2012 9:17 am
by Silv3rMoon
Sorry didn't tough that what "i""I" will change all code sorry, i'm newbie.