Mam taki maly problem jak zapisze sie na event i event sie nie rozpocznie (aborting due lack of participation) npc znika
Ale jak zgine gdzies to mnie przenosi w miejsce eventu z czerwona obramowka jak na event ale nie ma nic i zostaje tylko restart.
znalazlem na maxcheaters niby fix
First of all for all you need this event for Epilogue server here is the Imports part:
import sys
from com.l2jserver.gameserver.model.quest import State
from com.l2jserver.gameserver.model.quest import QuestState
from com.l2jserver.gameserver.datatables import DoorTable
from com.l2jserver.gameserver.datatables import SkillTable
from com.l2jserver.gameserver.model import L2Skill
from com.l2jserver.gameserver.model.quest.jython import QuestJython as JQuest
from com.l2jserver.gameserver import Announcements
from com.l2jserver import L2DatabaseFactory
from com.l2jserver.gameserver.ai import CtrlIntention
from com.l2jserver.util import Rnd
from java.lang import System
from com.l2jserver.gameserver.model import L2World
Secontly i need to add somthing to code because this code like it is, is a little bit bugged.
if (len(TEAM1)+len(TEAM2))< 2*YCH_MIN:
npc.deleteMe()
closed=1
res_timer = 0 //I add this one
Announcements.getInstance().announceToAll("Event "+str(NAME)+" was canceled due lack of participation.")
else:
closed=1
res_timer = 1 //And this one too
Announcements.getInstance().announceToAll("Event "+str(NAME)+" has started!")
First of all i need to say that im not familiar with Python so i dunno if this is the absolute solution but
at least like that is less bugged when the event canceled due lack of participation.
Otherwise without those two adds, when the event canseled and you got killed, you will be Revived
into the event place
Also i need to say that with this event all Admins they have to make a PVP Zone inside the event place !
Otherwise karma is working like a charm !
Thats all folks !
ale tez nie dziala wyskakuje blad
Traceback (innermost last):
(no code object) at line 0
SyntaxError: ('invalid syntax', ('__init__.py', 139, 17, '\t\tres_timer=0 //I add this one'))