- 0
This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and 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..
Question
b0rto
Hi all, I have a server with about 200 players online, when registering in Olympiads await the last second and click in the buff button and enter the buffer scheme fullbuff in Olympiads, is that this problem has been answered in some posts but I've tried everything and nothing works I'm sure it's because those posts are from previous versions to my server, I use l2j high five and it fetches buffer scheme by no retouched to high five, not much but trying and testing codes I get only atribute error here is my code in Python:
here the imports:
this line:
from com.l2jserver.gameserver.model.olympiad import Olympiad
and here the part of the code i modified:
def onFirstTalk (self,npc,player):
st = player.getQuestState(QUEST_LOADING_INFO)
isInOly = st.getPlayer().InOlympiadMode()
if not st : st = self.newQuestState(player)
if player.isGM():
if SCRIPT_RELOAD == True: return reloadPanel(st)
else: return rebuildMainHtml(st)
elif isInOly == True:
return showText(st,"info","You can't use the scheme buffer while you're registered for the Olympiad Games!","False","Return","main")
elif int(System.currentTimeMillis()/1000) > st.getInt("blockUntilTime"):
if ENABLE_VIP_BUFFER == False or player.getAccessLevel().getLevel() == VIP_ACCESS_LEVEL and ENABLE_VIP_BUFFER == True:
if BUFF_WITH_KARMA == False and player.getKarma() > 0 :
return showText(st,"Info","You have too much <font color=\"FF0000\">karma!</font><br>Come back,<br>when you don't have any karma!","False","Return","main")
elif st.player.getLevel() < MIN_LEVEL :
return showText(st,"Info","Your level is too low!<br>You have to be at least level <font color\"LEVEL\">"+str(MIN_LEVEL)+"</font>,<br>to use my services!","False","Return","main")
elif st.player.isInCombat() :
return showText(st,"Info","You can't buff while you are attacking!<br>Stop your fight and try again!","False","Return","main")
else: return rebuildMainHtml(st)
else: return showText(st,"Sorry","This buffer is only for VIP's!<br>Contact the administrator for more info!","False","Return","main")
else: return showText(st,"Sorry","You have to wait a while!<br>if you wish to use my services!","False","Return","main")
always get the same error atribute here the image:
http://imageshack.us/photo/my-images/705/failku.png/
i test this code and nothing..
atribute error: isRegistered
I would appreciate any help, and yes i used google translator, thanks in advance.
9 answers to this question
Recommended Posts