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:
import sys
from java.lang import System
from java.util import Iterator
from com.l2jserver import Config
from com.l2jserver.gameserver.model.quest import State
from com.l2jserver.gameserver.model.quest import QuestState
from com.l2jserver.gameserver.model.quest.jython import QuestJython as JQuest
from com.l2jserver.gameserver.instancemanager import QuestManager
from com.l2jserver import L2DatabaseFactory
from com.l2jserver.gameserver.datatables import SkillTable
from com.l2jserver.gameserver.datatables import ItemTable
from com.l2jserver.gameserver.model.actor.instance import L2PcInstance
from com.l2jserver.gameserver.model.actor.instance import L2PetInstance
from com.l2jserver.gameserver.model.actor.instance import L2SummonInstance
from com.l2jserver.gameserver.network.serverpackets import SetSummonRemainTime
from com.l2jserver.gameserver.network.serverpackets import SetupGauge
from com.l2jserver.gameserver.model.olympiad import Olympiad
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")
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:
elif OlympiadManager.getInstance().isRegistered(player):
return showText(st,"info","You can't use the scheme buffer while you're registered for the Olympiad Games!","False","Return","main")
atribute error: isRegistered
I would appreciate any help, and yes i used google translator, thanks in advance.
DISCORD :
utchiha_market
telegram :
https://t.me/utchiha_market
SELLIX STORE :
https://utchihamkt.mysellix.io/
Join our server for more products :
https://discord.gg/hood-services
https://campsite.bio/utchihaamkt
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