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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Syntax error on tokens, delete these tokens
----------
1 problem (1 error)Syntax error on tokens, delete these tokens
Failed executing script: C:\Documents and Settings\╨Р╨┤╨╝╨╕╨╜╨╕╤Б╤В╤А╨░╤В╨╛╤А\╨а
╨░╨▒╨╛╤З╨╕╨╣ ╤Б╤В╨╛╨╗\L2J_DataPack\gameserver\data\scripts\transformations\Grizz
lyBear.java. See GrizzlyBear.java.error.log for details.
Failed executing script: C:\Documents and Settings\╨Р╨┤╨╝╨╕╨╜╨╕╤Б╤В╤А╨░╤В╨╛╤А\╨а
╨░╨▒╨╛╤З╨╕╨╣ ╤Б╤В╨╛╨╗\L2J_DataPack\gameserver\data\scripts\quests\639_GuardiansO
fTheHolyGrail\__init__.py. See __init__.py.error.log for details.
Даже конфиги не редачил, просто поставил... и вот уже косяцюра
- Код:
compilation failed
oooops
Решаеться просто заменой этого файла с любой ревы
- Код:
package transformations;
import net.sf.l2j.gameserver.datatables.SkillTable;
import net.sf.l2j.gameserver.instancemanager.TransformationManager;
import net.sf.l2j.gameserver.model.L2Transformation;
public class GrizzlyBear extends L2Transformation
{
public GrizzlyBear()
{
// id, colRadius, colHeight
super(320, 21, 40);
}
public void onTransform()
{
if (getPlayer().getTransformationId() != 320 || getPlayer().isCursedWeaponEquipped())
return;
transformedSkills();
}
public void transformedSkills()
{
// Decrease Bow/Crossbow Attack Speed
getPlayer().addSkill(SkillTable.getInstance().getInfo(5491, 1), false);
// Transfrom Dispel
getPlayer().addSkill(SkillTable.getInstance().getInfo(619, 1), false);
getPlayer().setTransformAllowedSkills(new int[]{5491,619});
}
public void onUntransform()
{
removeSkills();
}
public void removeSkills()
{
// Decrease Bow/Crossbow Attack Speed
getPlayer().removeSkill(SkillTable.getInstance().getInfo(5491, 1), false);
// Transfrom Dispel
getPlayer().removeSkill(SkillTable.getInstance().getInfo(619, 1), false);
getPlayer().setTransformAllowedSkills(new int[]{});
}
public static void main(String[] args)
{
TransformationManager.getInstance().registerTransformation(new GrizzlyBear());
}
}
Так же решаеться ошибка чтения data\scripts\quests\639_GuardiansOfTheHolyGrail\__init__.py
Заменой самого инита
- Спойлер:
- Код:
#Guardians of the Holy Grail made by Bloodshed
import sys
from net.sf.l2j import Config
from net.sf.l2j.gameserver.model.quest import State
from net.sf.l2j.gameserver.model.quest import QuestState
from net.sf.l2j.gameserver.model.quest.jython import QuestJython as JQuest
qn = "639_GuardiansOfTheHolyGrail"
#NPCS
DOMINIC = 31350
GREMORY = 32008
GRAIL = 32028
#MONSTERS
MONSTERS = range(22122,22136)
#ITEMS
WATER_BOTTLE = 8070
HOLY_WATER_BOTTLE = 8071
SCRIPTURES = 8069
class Quest (JQuest) :
def __init__(self,id,name,descr):
JQuest.__init__(self,id,name,descr)
self.questItemIds = [WATER_BOTTLE,HOLY_WATER_BOTTLE,SCRIPTURES]
def onAdvEvent (self,event,npc, player) :
htmltext = event
st = player.getQuestState(qn)
if not st : return
if event == "31350-03.htm" :
st.set("cond","1")
st.setState(State.STARTED)
st.playSound("ItemSound.quest_accept")
elif event == "31350-07.htm" :
st.playSound("ItemSound.quest_finish")
st.exitQuest(1)
elif event == "31350-08.htm" :
QI = st.getQuestItemsCount(SCRIPTURES)
st.takeItems(SCRIPTURES,-1)
st.giveItems(57,1625*QI)
elif event == "32008-05.htm" :
st.set("cond","2")
st.playSound("ItemSound.quest_middle")
st.giveItems(WATER_BOTTLE,1)
elif event == "32028-02.htm" :
st.set("cond","3")
st.playSound("ItemSound.quest_middle")
st.takeItems(WATER_BOTTLE,-1)
st.giveItems(HOLY_WATER_BOTTLE,1)
elif event == "32008-07.htm" :
st.set("cond","4")
st.playSound("ItemSound.quest_middle")
st.takeItems(HOLY_WATER_BOTTLE,-1)
elif event == "32008-08a.htm" :
st.takeItems(SCRIPTURES,4000)
st.giveItems(959,2)
elif event == "32008-08b.htm" :
st.takeItems(SCRIPTURES,400)
st.giveItems(960,2)
return htmltext
def onTalk (self, npc, player) :
htmltext = "<html><body>You are either not on a quest that involves this NPC, or you don't meet this NPC's minimum quest requirements.</body></html>"
st = player.getQuestState(qn)
if not st : return htmltext
npcId = npc.getNpcId()
cond = st.getInt("cond")
id = st.getState()
if npcId == DOMINIC :
if player.getLevel() >= 73 :
if id == State.CREATED :
htmltext = "31350-01.htm"
elif id == State.STARTED and st.getQuestItemsCount(SCRIPTURES) >= 1 :
htmltext = "31350-04.htm"
else :
htmltext = "31350-05.htm"
else :
htmltext = "31350-00.htm"
st.exitQuest(1)
elif npcId == GREMORY :
if cond == 1 :
htmltext = "32008-01.htm"
elif cond == 2 :
htmltext = "32008-05b.htm"
elif cond == 3 :
htmltext = "32008-06.htm"
elif cond == 4 and st.getQuestItemsCount(SCRIPTURES) < 400 :
htmltext = "32008-08d.htm"
elif cond == 4 and st.getQuestItemsCount(SCRIPTURES) >= 4000 :
htmltext = "32008-08c.htm"
elif cond == 4 and st.getQuestItemsCount(SCRIPTURES) >= 400 and st.getQuestItemsCount(SCRIPTURES) < 4000 :
htmltext = "32008-08.htm"
elif npcId == GRAIL :
if cond == 2 :
htmltext = "32028-01.htm"
return htmltext
def onKill(self, npc, player, isPet) :
partyMember = self.getRandomPartyMemberState(player, State.STARTED)
if not partyMember: return
st = partyMember.getQuestState(qn)
if not st : return
chance = 90
drop = st.getRandom(100)
qty,chance = divmod(chance*Config.RATE_DROP_QUEST,100)
if drop < chance : qty += 1
qty = int(qty)
if qty :
st.giveItems(SCRIPTURES,qty)
st.playSound("ItemSound.quest_itemget")
return
QUEST = Quest(639,qn,"Guardians of the Holy Grail")
QUEST.addStartNpc(DOMINIC)
QUEST.addTalkId(DOMINIC)
QUEST.addTalkId(GREMORY)
QUEST.addTalkId(GRAIL)
for i in MONSTERS :
QUEST.addKillId(i)