Рейтинг темы:
  • 0 Голос(ов) - 0 в среднем
  • 1
  • 2
  • 3
  • 4
  • 5
Ошибка в гс с бафером
#1
Народ, можете проверить баффера. Он не хочет работать, в гс пишет ошибку.

import sys
from com.l2jarchid.gameserver.model.actor.instance import L2PcInstance
from java.util import Iterator
from com.l2jarchid.gameserver.datatables import SkillTable
from com.l2jarchid import L2DatabaseFactory
from com.l2jarchid.gameserver.model.quest import State
from com.l2jarchid.gameserver.model.quest import QuestState
from com.l2jarchid.gameserver.model.quest.jython import QuestJython as JQuest

qn = "9999_NPCBuffer"

NPC=[67222]
ADENA_ID=57
QuestId = 9999
QuestName = "NPCBuffer"
QuestDesc = "custom"
InitialHtml = "1.htm"

print "importing custom: 9999: NPCBuffer"

class Quest (JQuest) :

def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr)


def onEvent(self,event,st):
htmltext = event
count=st.getQuestItemsCount(ADENA_ID)
if count < 1000 or st.getPlayer().getLevel() < 0 :
htmltext = "<html><head><body>You dont have enought Adena.</body></html>"
else:
st.takeItems(ADENA_ID,0)
st.getPlayer().setTarget(st.getPlayer())

#nob
if event == "70":
st.takeItems
SkillTable.getInstance().getInfo(1323,1).getEffects(st.getPlayer(),st.getPlayer())
return "1.htm"
st.setState(State.COMPLETED)


#MP-HP
if event == "6":
st.takeItems
st.getPlayer().setCurrentCp(st.getPlayer().getMaxCp())
st.getPlayer().setCurrentHp(st.getPlayer().getMaxHp())
st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())
return "1.htm"
st.setState(COMPLETED)

#Wind Walk
if event == "7":
st.takeItems
SkillTable.getInstance().getInfo(1204,2).getEffects(st.getPlayer(),st.getPlayer())
return "5.htm"
st.setState(State.COMPLETED)

#Shield
if event == "9":
st.takeItems
SkillTable.getInstance().getInfo(1040,3).getEffects(st.getPlayer(),st.getPlayer())
return "5.htm"
st.setState(State.COMPLETED)

#Might
if event == "10":
st.takeItems
SkillTable.getInstance().getInfo(1068,3).getEffects(st.getPlayer(),st.getPlayer())
return "5.htm"
st.setState(State.COMPLETED)

#Mental Shield
if event == "11":
st.takeItems
SkillTable.getInstance().getInfo(1035,4).getEffects(st.getPlayer(),st.getPlayer())
return "5.htm"
st.setState(State.COMPLETED)

#Blessed Body
if event == "12":
st.takeItems
SkillTable.getInstance().getInfo(1045,6).getEffects(st.getPlayer(),st.getPlayer())
return "5.htm"
st.setState(State.COMPLETED)

#Blessed Soul
if event == "13":
st.takeItems
SkillTable.getInstance().getInfo(1048,6).getEffects(st.getPlayer(),st.getPlayer())
return "5.htm"
st.setState(State.COMPLETED)
st.setState(COMPLETED)

#Magic Barrier
if event == "14":
st.takeItems
SkillTable.getInstance().getInfo(1036,2).getEffects(st.getPlayer(),st.getPlayer())
return "5.htm"
st.setState(State.COMPLETED)

#Resist Shock
if event == "15":
st.takeItems
SkillTable.getInstance().getInfo(1259,4).getEffects(st.getPlayer(),st.getPlayer())
return "10.htm"
st.setState(State.COMPLETED)

#Concentration
if event == "16":
st.takeItems
SkillTable.getInstance().getInfo(1078,6).getEffects(st.getPlayer(),st.getPlayer())
return "5.htm"
st.setState(State.COMPLETED)

#Berserker Spirit
if event == "17":
st.takeItems
SkillTable.getInstance().getInfo(1062,2).getEffects(st.getPlayer(),st.getPlayer())
return "5.htm"
st.setState(State.COMPLETED)

#Bless Shield
if event == "18":
st.takeItems
SkillTable.getInstance().getInfo(1243,6).getEffects(st.getPlayer(),st.getPlayer())
return "5.htm"
st.setState(State.COMPLETED)

#Vampiric Rage
if event == "19":
st.takeItems
SkillTable.getInstance().getInfo(1268,4).getEffects(st.getPlayer(),st.getPlayer())
return "5.htm"
st.setState(State.COMPLETED)

#Acumen
if event == "20":
st.takeItems
SkillTable.getInstance().getInfo(1085,3).getEffects(st.getPlayer(),st.getPlayer())
return "5.htm"
st.setState(State.COMPLETED)

#Empower
if event == "21":
st.takeItems
SkillTable.getInstance().getInfo(1059,3).getEffects(st.getPlayer(),st.getPlayer())
return "5.htm"
st.setState(State.COMPLETED)

#Haste
if event == "22":
st.takeItems
SkillTable.getInstance().getInfo(1086,2).getEffects(st.getPlayer(),st.getPlayer())
return "5.htm"
st.setState(State.COMPLETED)

#Guidance
if event == "23":
st.takeItems
SkillTable.getInstance().getInfo(1240,3).getEffects(st.getPlayer(),st.getPlayer())
return "5.htm"
st.setState(State.COMPLETED)

#Focus
if event == "24":
st.takeItems
SkillTable.getInstance().getInfo(1077,3).getEffects(st.getPlayer(),st.getPlayer())
return "5.htm"
st.setState(State.COMPLETED)

#Death Whisper
if event == "25":
st.takeItems
SkillTable.getInstance().getInfo(1242,3).getEffects(st.getPlayer(),st.getPlayer())
return "5.htm"
st.setState(State.COMPLETED)

#Dance of Aqua Guard
if event == "26":
st.takeItems
SkillTable.getInstance().getInfo(271,1).getEffects(st.getPlayer(),st.getPlayer())
return "2.htm"
st.setState(State.COMPLETED)


#Dance of Concentration
if event == "27":
st.takeItems
SkillTable.getInstance().getInfo(272,1).getEffects(st.getPlayer(),st.getPlayer())
return "2.htm"
st.setState(State.COMPLETED)

#Dance of Earth Guard
if event == "28":
st.takeItems
SkillTable.getInstance().getInfo(273,1).getEffects(st.getPlayer(),st.getPlayer())
return "2.htm"
st.setState(State.COMPLETED)

#Dance of Fire
if event == "29":
st.takeItems
SkillTable.getInstance().getInfo(274,1).getEffects(st.getPlayer(),st.getPlayer())
return "2.htm"
st.setState(State.COMPLETED)

#Dance of Fury
if event == "30":
st.takeItems
SkillTable.getInstance().getInfo(275,1).getEffects(st.getPlayer(),st.getPlayer())
return "2.htm"
st.setState(State.COMPLETED)

#Dance of Inspiration
if event == "31":
st.takeItems
SkillTable.getInstance().getInfo(276,1).getEffects(st.getPlayer(),st.getPlayer())
return "2.htm"
st.setState(State.COMPLETED)

#Dance of Light
if event == "32":
st.takeItems
SkillTable.getInstance().getInfo(277,1).getEffects(st.getPlayer(),st.getPlayer())
return "2.htm"
st.setState(State.COMPLETED)

#Dance of the Mystic
if event == "33":
st.takeItems
SkillTable.getInstance().getInfo(307,1).getEffects(st.getPlayer(),st.getPlayer())
return "2.htm"
st.setState(State.COMPLETED)

#Dance of Protection
if event == "34":
st.takeItems
SkillTable.getInstance().getInfo(309,1).getEffects(st.getPlayer(),st.getPlayer())
return "2.htm"
st.setState(State.COMPLETED)

#Siren's Dance
if event == "35":
st.takeItems
SkillTable.getInstance().getInfo(310,1).getEffects(st.getPlayer(),st.getPlayer())
return "2.htm"
st.setState(State.COMPLETED)

#Dance of the Vampire
if event == "36":
st.takeItems
SkillTable.getInstance().getInfo(311,1).getEffects(st.getPlayer(),st.getPlayer())
return "2.htm"
st.setState(State.COMPLETED)

#Dance of the Warrior
if event == "37":
st.takeItems
SkillTable.getInstance().getInfo(366,1).getEffects(st.getPlayer(),st.getPlayer())
return "2.htm"
st.setState(State.COMPLETED)

#Song of Champion
if event == "38":
st.takeItems
SkillTable.getInstance().getInfo(365,1).getEffects(st.getPlayer(),st.getPlayer())
return "2.htm"
st.setState(State.COMPLETED)

#Song of Earth
if event == "39":
st.takeItems
SkillTable.getInstance().getInfo(264,1).getEffects(st.getPlayer(),st.getPlayer())
return "3.htm"
st.setState(State.COMPLETED)

#Song of Flame Guard
if event == "40":
st.takeItems
SkillTable.getInstance().getInfo(265,1).getEffects(st.getPlayer(),st.getPlayer())
return "3.htm"
st.setState(State.COMPLETED)

#Song of Hunter
if event == "41":
st.takeItems
SkillTable.getInstance().getInfo(266,1).getEffects(st.getPlayer(),st.getPlayer())
return "3.htm"
st.setState(State.COMPLETED)

#Song of Invocation
if event == "42":
st.takeItems
SkillTable.getInstance().getInfo(267,1).getEffects(st.getPlayer(),st.getPlayer())
return "3.htm"
st.setState(State.COMPLETED)

#Song of Life
if event == "43":
st.takeItems
SkillTable.getInstance().getInfo(268,1).getEffects(st.getPlayer(),st.getPlayer())
return "3.htm"
st.setState(State.COMPLETED)

#Song of Meditation
if event == "44":
st.takeItems
SkillTable.getInstance().getInfo(269,1).getEffects(st.getPlayer(),st.getPlayer())
return "3.htm"
st.setState(State.COMPLETED)

#Song of Renewal
if event == "45":
st.takeItems
SkillTable.getInstance().getInfo(270,1).getEffects(st.getPlayer(),st.getPlayer())
return "3.htm"
st.setState(State.COMPLETED)

#Song of Storm Guard
if event == "46":
st.takeItems
SkillTable.getInstance().getInfo(304,1).getEffects(st.getPlayer(),st.getPlayer())
return "3.htm"
st.setState(State.COMPLETED)

#Song of Vengeance
if event == "47":
st.takeItems
SkillTable.getInstance().getInfo(305,1).getEffects(st.getPlayer(),st.getPlayer())
return "3.htm"
st.setState(State.COMPLETED)

#Song of Vitality
if event == "48":
st.takeItems
SkillTable.getInstance().getInfo(306,1).getEffects(st.getPlayer(),st.getPlayer())
return "3.htm"
st.setState(State.COMPLETED)

#Song of Warding
if event == "49":
st.takeItems
SkillTable.getInstance().getInfo(308,1).getEffects(st.getPlayer(),st.getPlayer())
return "3.htm"
st.setState(State.COMPLETED)
#Song of Water
if event == "50":
st.takeItems
SkillTable.getInstance().getInfo(363,1).getEffects(st.getPlayer(),st.getPlayer())
return "3.htm"
st.setState(State.COMPLETED)
#Song of Wind
if event == "51":
st.takeItems
SkillTable.getInstance().getInfo(364,1).getEffects(st.getPlayer(),st.getPlayer())
return "3.htm"
st.setState(State.COMPLETED)


#Greater Might
if event == "52":
st.takeItems
SkillTable.getInstance().getInfo(349,1).getEffects(st.getPlayer(),st.getPlayer())
return "3.htm"
st.setState(State.COMPLETED)

#Greater Shield
if event == "53":
st.takeItems
SkillTable.getInstance().getInfo(1007,3).getEffects(st.getPlayer(),st.getPlayer())
return "7.htm"
st.setState(State.COMPLETED)

#Chant of Victory
if event == "54":
st.takeItems
SkillTable.getInstance().getInfo(1009,3).getEffects(st.getPlayer(),st.getPlayer())
return "7.htm"
st.setState(State.COMPLETED)

#Prophecy of Fire
if event == "55":
st.takeItems
SkillTable.getInstance().getInfo(1006,3).getEffects(st.getPlayer(),st.getPlayer())
return "7.htm"
st.setState(State.COMPLETED)

#Prophecy of Water
if event == "56":
st.takeItems
SkillTable.getInstance().getInfo(1002,3).getEffects(st.getPlayer(),st.getPlayer())
return "7.htm"
st.setState(State.COMPLETED)

#Prophecy of Wind
if event == "57":
st.takeItems
SkillTable.getInstance().getInfo(1229,18).getEffects(st.getPlayer(),st.getPlayer())
return "7.htm"
st.setState(State.COMPLETED)

#Prophecy of Wind
if event == "58":
st.takeItems
SkillTable.getInstance().getInfo(1251,2).getEffects(st.getPlayer(),st.getPlayer())
return "7.htm"
st.setState(State.COMPLETED)


#Chant of Magnus
if event == "59":
st.takeItems
SkillTable.getInstance().getInfo(1252,3).getEffects(st.getPlayer(),st.getPlayer())
return "7.htm"
st.setState(State.COMPLETED)


#Wild Magic
if event == "60":
st.takeItems
SkillTable.getInstance().getInfo(1253,3).getEffects(st.getPlayer(),st.getPlayer())
return "7.htm"
st.setState(State.COMPLETED)

#Blesing Of Queen
if event == "61":
st.takeItems
SkillTable.getInstance().getInfo(1284,3).getEffects(st.getPlayer(),st.getPlayer())
return "7.htm"
st.setState(State.COMPLETED)

#Gift Of Queen
if event == "62":
st.takeItems
SkillTable.getInstance().getInfo(1310,4).getEffects(st.getPlayer(),st.getPlayer())
return "7.htm"
st.setState(State.COMPLETED)

#Blessing Of Seraphim
if event == "98":
st.takeItems
SkillTable.getInstance().getInfo(1309,3).getEffects(st.getPlayer(),st.getPlayer())
return "7.htm"
st.setState(State.COMPLETED)

#Song of Storm Guard
if event == "65":
st.takeItems
SkillTable.getInstance().getInfo(1362,1).getEffects(st.getPlayer(),st.getPlayer())
return "7.htm"
st.setState(State.COMPLETED)

#Song of Vengeance
if event == "66":
st.takeItems
SkillTable.getInstance().getInfo(1363,1).getEffects(st.getPlayer(),st.getPlayer())
return "7.htm"
st.setState(State.COMPLETED)

#Song of Vitality
if event == "67":
st.takeItems
SkillTable.getInstance().getInfo(1413,1).getEffects(st.getPlayer(),st.getPlayer())
return "7.htm"
st.setState(State.COMPLETED)

#Song of Warding
if event == "68":
st.takeItems
SkillTable.getInstance().getInfo(1323,1).getEffects(st.getPlayer(),st.getPlayer())
return "1.htm"
st.setState(State.COMPLETED)
#Song of Water
if event == "71":
st.takeItems
SkillTable.getInstance().getInfo(1388,3).getEffects(st.getPlayer(),st.getPlayer())
return "8.htm"
st.setState(State.COMPLETED)
#Song of Wind
if event == "72":
st.takeItems
SkillTable.getInstance().getInfo(1389,3).getEffects(st.getPlayer(),st.getPlayer())
return "8.htm"
st.setState(State.COMPLETED)


#Greater Might
if event == "73":
st.takeItems
SkillTable.getInstance().getInfo(1303,2).getEffects(st.getPlayer(),st.getPlayer())
return "8.htm"
st.setState(State.COMPLETED)

#Greater Shield
if event == "74":
st.takeItems
SkillTable.getInstance().getInfo(1352,1).getEffects(st.getPlayer(),st.getPlayer())
return "10.htm"
st.setState(State.COMPLETED)

#Chant of Victory
if event == "75":
st.takeItems
SkillTable.getInstance().getInfo(1356,1).getEffects(st.getPlayer(),st.getPlayer())
return "8.htm"
st.setState(State.COMPLETED)

#Prophecy of Fire
if event == "76":
st.takeItems
SkillTable.getInstance().getInfo(1357,1).getEffects(st.getPlayer(),st.getPlayer())
return "8.htm"
st.setState(State.COMPLETED)

#Prophecy of Water
if event == "77":
st.takeItems
SkillTable.getInstance().getInfo(1355,1).getEffects(st.getPlayer(),st.getPlayer())
return "8.htm"
st.setState(State.COMPLETED)

#Prophecy of Wind
if event == "78":
st.takeItems
SkillTable.getInstance().getInfo(1191,3).getEffects(st.getPlayer(),st.getPlayer())
return "10.htm"
st.setState(State.COMPLETED)

#Prophecy of Wind
if event == "79":
st.takeItems
SkillTable.getInstance().getInfo(1033,3).getEffects(st.getPlayer(),st.getPlayer())
return "10.htm"
st.setState(State.COMPLETED)

if event == "80":
st.takeItems
SkillTable.getInstance().getInfo(1182,3).getEffects(st.getPlayer(),st.getPlayer())
return "10.htm"
st.setState(State.COMPLETED)

#Song of Vengeance
if event == "81":
st.takeItems
SkillTable.getInstance().getInfo(1189,3).getEffects(st.getPlayer(),st.getPlayer())
return "10.htm"
st.setState(State.COMPLETED)

#Song of Vitality
if event == "82":
st.takeItems
SkillTable.getInstance().getInfo(1392,3).getEffects(st.getPlayer(),st.getPlayer())
return "10.htm"
st.setState(State.COMPLETED)

#Song of Warding
if event == "83":
st.takeItems
SkillTable.getInstance().getInfo(1393,3).getEffects(st.getPlayer(),st.getPlayer())
return "10.htm"
st.setState(State.COMPLETED)
#Song of Water
if event == "84":
st.takeItems
SkillTable.getInstance().getInfo(1354,1).getEffects(st.getPlayer(),st.getPlayer())
return "10.htm"
st.setState(State.COMPLETED)
#Song of Wind
if event == "85":
st.takeItems
SkillTable.getInstance().getInfo(1353,1).getEffects(st.getPlayer(),st.getPlayer())
return "10.htm"
st.setState(State.COMPLETED)


#Greater Might
if event == "86":
st.takeItems
SkillTable.getInstance().getInfo(1032,3).getEffects(st.getPlayer(),st.getPlayer())
return "10.htm"
st.setState(State.COMPLETED)

#Greater Shield
if event == "87":
st.takeItems
SkillTable.getInstance().getInfo(1390,3).getEffects(st.getPlayer(),st.getPlayer())
return "7.htm"
st.setState(State.COMPLETED)

#Chant of Victory
if event == "88":
st.takeItems
SkillTable.getInstance().getInfo(1391,3).getEffects(st.getPlayer(),st.getPlayer())
return "7.htm"
st.setState(State.COMPLETED)

#Prophecy of Fire
if event == "89":
st.takeItems
SkillTable.getInstance().getInfo(4699,13).getEffects(st.getPlayer(),st.getPlayer())
return "9.htm"
st.setState(State.COMPLETED)

#Prophecy of Water
if event == "90":
st.takeItems
SkillTable.getInstance().getInfo(4700,13).getEffects(st.getPlayer(),st.getPlayer())
return "9.htm"
st.setState(State.COMPLETED)

#Prophecy of Wind
if event == "91":
st.takeItems
SkillTable.getInstance().getInfo(4702,13).getEffects(st.getPlayer(),st.getPlayer())
return "9.htm"
st.setState(State.COMPLETED)

#Prophecy of Wind
if event == "92":
st.takeItems
SkillTable.getInstance().getInfo(4703,13).getEffects(st.getPlayer(),st.getPlayer())
return "9.htm"
st.setState(State.COMPLETED)


#Prophecy of Fire
if event == "93":
st.takeItems
SkillTable.getInstance().getInfo(1304,3).getEffects(st.getPlayer(),st.getPlayer())
return "5.htm"
st.setState(State.COMPLETED)

#Prophecy of Water
if event == "94":
st.takeItems
SkillTable.getInstance().getInfo(1397,3).getEffects(st.getPlayer(),st.getPlayer())
return "5.htm"
st.setState(State.COMPLETED)

#Prophecy of Wind
if event == "95":
st.takeItems
SkillTable.getInstance().getInfo(1044,3).getEffects(st.getPlayer(),st.getPlayer())
return "5.htm"
st.setState(State.COMPLETED)

#Prophecy of Wind
if event == "96":
st.takeItems
SkillTable.getInstance().getInfo(1087,3).getEffects(st.getPlayer(),st.getPlayer())
return "5.htm"
st.setState(State.COMPLETED)

#Prophecy of Wind
if event == "64":
st.takeItems
SkillTable.getInstance().getInfo(1308,3).getEffects(st.getPlayer(),st.getPlayer())
return "7.htm"
st.setState(State.COMPLETED)


#Cancellation
if event == "99":
st.takeItems
SkillTable.getInstance().getInfo(1087,3).getEffects(st.getPlayer(),st.getPlayer())
st.getPlayer().stopAllEffects()
return "1.htm"
st.setState(State.COMPLETED)

#CPHEAL
if event == "69":
st.takeItems(ADENA_ID,1000)
st.getPlayer().restoreCP()
return "1.htm"
st.setState(COMPLETED)


if htmltext != event:
st.setState(COMPLETED)
st.exitQuest(1)
return htmltext


def onTalk (self,npc,player):
st = player.getQuestState(qn)
htmltext = "<html><head><body>I have nothing to say to you</body></html>"
st.setState(STARTED)
return InitialHtml

QUEST = Quest(QuestId,str(QuestId) + "_" + QuestName,QuestDesc)
CREATED=State('Start',QUEST)
STARTED=State('Started',QUEST)
COMPLETED=State('Completed',QUEST)

QUEST.setInitialState(CREATED)

for npcId in NPC:
QUEST.addStartNpc(npcId)
QUEST.addTalkId(npcId)



спасибо !
Ответ
#2
Это сам скрипт бафера, а де сама ошибка?
[Изображение: 1564177459.png]
Ответ
#3
в гс пишет что ошибка в __init__.py в папку с баффером.
Ответ
#4
так прям и пишет?
"Ошибка в __init__.py с бафером"
Если у вас ошибка, то будтье любезны, приведите полный лог
Ответ
#5
вот __init__.py.error
Error on: D:\ggg\eee\GameServer\gameserver\data\scripts\custom\99_NPCBuffer\__init__.py.error.log
Line: -1 - Column: -1

Traceback (innermost last):
File "__init__.py", line 5, in ?
ImportError: cannot import name L2DatabaseFactory


Вот __init__.py самого бафера

import sys
from com.l2jfrozen.gameserver.model.actor.instance import L2PcInstance;
from java.util import Iterator;
from com.l2jfrozen.gameserver.datatables import SkillTable;
from com.l2jfrozen import L2DatabaseFactory
from com.l2jfrozen.gameserver.model.quest import State;
from com.l2jfrozen.gameserver.model.quest import QuestState;
from com.l2jfrozen.gameserver.model.quest.jython import QuestJython as JQuest;

qn = "99_NPCBuffer"

NPC=[99]
ADENA_ID=57
QuestId = 99
QuestName = "NPCBuffer"
QuestDesc = "custom"
InitialHtml = "1.htm"

print "importing custom: 99: NPCBuffer"

class Quest (JQuest) :

def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr)


def onEvent(self,event,st):
htmltext = event

#Acumen
if event == "1":
SkillTable.getInstance().getInfo(1085,3).getEffects(st.getPlayer(),st.getPlayer())

return "buffer.htm"
st.setState(COMPLETED)

#Advanced Block
if event == "2":
SkillTable.getInstance().getInfo(1304,3).getEffects(st.getPlayer(),st.getPlayer())

return "buffer.htm"
st.setState(COMPLETED)

#Agility
if event == "3":
SkillTable.getInstance().getInfo(1087,3).getEffects(st.getPlayer(),st.getPlayer())

return "buffer.htm"
st.setState(COMPLETED)

#Arcane Protection
if event == "4":
SkillTable.getInstance().getInfo(1354,1).getEffects(st.getPlayer(),st.getPlayer())

return "6.htm"
st.setState(COMPLETED)

#Berserker Spirit
if event == "5":
SkillTable.getInstance().getInfo(1062,2).getEffects(st.getPlayer(),st.getPlayer())

return "buffer.htm"
st.setState(COMPLETED)

#Bless Shield
if event == "6":
SkillTable.getInstance().getInfo(1243,6).getEffects(st.getPlayer(),st.getPlayer())

return "buffer.htm"
st.setState(COMPLETED)

#Blessed Body
if event == "7":
SkillTable.getInstance().getInfo(1045,6).getEffects(st.getPlayer(),st.getPlayer())

return "buffer.htm"
st.setState(COMPLETED)

#Blessed Soul
if event == "8":
SkillTable.getInstance().getInfo(1048,6).getEffects(st.getPlayer(),st.getPlayer())

return "buffer.htm"
st.setState(COMPLETED)

#Clarity
if event == "9":
SkillTable.getInstance().getInfo(1397,3).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"
st.setState(COMPLETED)

#Chant of Protection
if event == "10":
SkillTable.getInstance().getInfo(1461,1).getEffects(st.getPlayer(),st.getPlayer())

return "6.htm"
st.setState(COMPLETED)

#Chant of Victory
if event == "11":
SkillTable.getInstance().getInfo(1363,1).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"
st.setState(COMPLETED)

#Concentration
if event == "12":
SkillTable.getInstance().getInfo(1078,6).getEffects(st.getPlayer(),st.getPlayer())

return "buffer.htm"
st.setState(COMPLETED)

#Death whisper
if event == "13":
SkillTable.getInstance().getInfo(1242,3).getEffects(st.getPlayer(),st.getPlayer())

return "buffer.htm"
st.setState(COMPLETED)

#Divine Protection
if event == "14":
SkillTable.getInstance().getInfo(1353,1).getEffects(st.getPlayer(),st.getPlayer())

return "6.htm"
st.setState(COMPLETED)

#Elemental Protection
if event == "15":
SkillTable.getInstance().getInfo(1352,1).getEffects(st.getPlayer(),st.getPlayer())

return "6.htm"
st.setState(COMPLETED)

#Empower
if event == "16":
SkillTable.getInstance().getInfo(1059,3).getEffects(st.getPlayer(),st.getPlayer())

return "buffer.htm"
st.setState(COMPLETED)

#Focus
if event == "17":
SkillTable.getInstance().getInfo(1077,3).getEffects(st.getPlayer(),st.getPlayer())

return "buffer.htm"
st.setState(COMPLETED)

#Greater Might
if event == "18":
SkillTable.getInstance().getInfo(1388,3).getEffects(st.getPlayer(),st.getPlayer())

return "7.htm"
st.setState(COMPLETED)

#Greater Shield
if event == "19":
SkillTable.getInstance().getInfo(1389,3).getEffects(st.getPlayer(),st.getPlayer())

return "7.htm"
st.setState(COMPLETED)

#Guidance
if event == "20":
SkillTable.getInstance().getInfo(1240,3).getEffects(st.getPlayer(),st.getPlayer())

return "buffer.htm"
st.setState(COMPLETED)

#Haste
if event == "21":
SkillTable.getInstance().getInfo(1086,2).getEffects(st.getPlayer(),st.getPlayer())

return "buffer.htm"
st.setState(COMPLETED)

#Holy Resistance
if event == "22":
SkillTable.getInstance().getInfo(1392,3).getEffects(st.getPlayer(),st.getPlayer())

return "6.htm"
st.setState(COMPLETED)

#Holy Weapon
if event == "23":
SkillTable.getInstance().getInfo(1043,1).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"
st.setState(COMPLETED)

#Invigor
if event == "24":
SkillTable.getInstance().getInfo(1032,3).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"
st.setState(COMPLETED)

#Magic Barrier
if event == "25":
SkillTable.getInstance().getInfo(1036,2).getEffects(st.getPlayer(),st.getPlayer())

return "buffer.htm"
st.setState(COMPLETED)

#Magnus' Chant
if event == "26":
SkillTable.getInstance().getInfo(1413,1).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"
st.setState(COMPLETED)


#Mental Shield
if event == "28":
SkillTable.getInstance().getInfo(1035,4).getEffects(st.getPlayer(),st.getPlayer())

return "buffer.htm"
st.setState(COMPLETED)

#Might
if event == "29":
SkillTable.getInstance().getInfo(1068,3).getEffects(st.getPlayer(),st.getPlayer())

return "buffer.htm"
st.setState(COMPLETED)

#Prophecy of Fire
if event == "30":
SkillTable.getInstance().getInfo(1356,1).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"
st.setState(COMPLETED)

#Prophecy of Water
if event == "31":
SkillTable.getInstance().getInfo(1355,1).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"
st.setState(COMPLETED)

#Prophecy of Wind
if event == "32":
SkillTable.getInstance().getInfo(1357,1).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"
st.setState(COMPLETED)

#Regeneration
if event == "33":
SkillTable.getInstance().getInfo(1044,3).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"
st.setState(COMPLETED)

#Resist Aqua
if event == "34":
SkillTable.getInstance().getInfo(1182,3).getEffects(st.getPlayer(),st.getPlayer())

return "6.htm"
st.setState(COMPLETED)

#Resist Fire
if event == "35":
SkillTable.getInstance().getInfo(1191,3).getEffects(st.getPlayer(),st.getPlayer())

return "6.htm"
st.setState(COMPLETED)

#Resist Poison
if event == "36":
SkillTable.getInstance().getInfo(1033,3).getEffects(st.getPlayer(),st.getPlayer())

return "6.htm"
st.setState(COMPLETED)

#Resist Shock
if event == "37":
SkillTable.getInstance().getInfo(1259,4).getEffects(st.getPlayer(),st.getPlayer())

return "buffer.htm"
st.setState(COMPLETED)

#Resist Wind
if event == "38":
SkillTable.getInstance().getInfo(1189,3).getEffects(st.getPlayer(),st.getPlayer())

return "6.htm"
st.setState(COMPLETED)

#Shield
if event == "39":
SkillTable.getInstance().getInfo(1040,3).getEffects(st.getPlayer(),st.getPlayer())

return "buffer.htm"
st.setState(COMPLETED)

#Unholy Resistance
if event == "40":
SkillTable.getInstance().getInfo(1393,3).getEffects(st.getPlayer(),st.getPlayer())

return "6.htm"
st.setState(COMPLETED)

#Vampiric Rage
if event == "41":
SkillTable.getInstance().getInfo(1268,4).getEffects(st.getPlayer(),st.getPlayer())

return "buffer.htm"
st.setState(COMPLETED)

#Wild Magic
if event == "42":
SkillTable.getInstance().getInfo(1303,2).getEffects(st.getPlayer(),st.getPlayer())

return "buffer.htm"
st.setState(COMPLETED)



#Dance of Aqua Guard
if event == "44":
SkillTable.getInstance().getInfo(307,1).getEffects(st.getPlayer(),st.getPlayer())

return "3.htm"
st.setState(COMPLETED)

#Dance of Concentration
if event == "45":
SkillTable.getInstance().getInfo(276,1).getEffects(st.getPlayer(),st.getPlayer())

return "buffer.htm"
st.setState(COMPLETED)

#Dance of Earth Guard
if event == "46":
SkillTable.getInstance().getInfo(309,1).getEffects(st.getPlayer(),st.getPlayer())

return "3.htm"
st.setState(COMPLETED)

#Dance of Fire
if event == "47":
SkillTable.getInstance().getInfo(274,1).getEffects(st.getPlayer(),st.getPlayer())

return "buffer.htm"
st.setState(COMPLETED)

#Dance of Fury
if event == "48":
SkillTable.getInstance().getInfo(275,1).getEffects(st.getPlayer(),st.getPlayer())

return "buffer.htm"
st.setState(COMPLETED)

#Dance of Inspiration
if event == "49":
SkillTable.getInstance().getInfo(272,1).getEffects(st.getPlayer(),st.getPlayer())

return "buffer.htm"
st.setState(COMPLETED)

#Dance of Light
if event == "50":
SkillTable.getInstance().getInfo(277,1).getEffects(st.getPlayer(),st.getPlayer())

return "buffer.htm"
st.setState(COMPLETED)

#Dance of Protection
if event == "51":
SkillTable.getInstance().getInfo(311,1).getEffects(st.getPlayer(),st.getPlayer())

return "3.htm"
st.setState(COMPLETED)

#Dance of the Mystic
if event == "52":
SkillTable.getInstance().getInfo(273,1).getEffects(st.getPlayer(),st.getPlayer())

return "buffer.htm"
st.setState(COMPLETED)

#Dance of the Vampire
if event == "53":
SkillTable.getInstance().getInfo(310,1).getEffects(st.getPlayer(),st.getPlayer())

return "buffer.htm"
st.setState(COMPLETED)

#Dance of the Warrior
if event == "54":
SkillTable.getInstance().getInfo(271,1).getEffects(st.getPlayer(),st.getPlayer())

return "buffer.htm"
st.setState(COMPLETED)

#Siren's Dance
if event == "55":
SkillTable.getInstance().getInfo(365,1).getEffects(st.getPlayer(),st.getPlayer())

return "3.htm"
st.setState(COMPLETED)

#Song of Champion
if event == "56":
SkillTable.getInstance().getInfo(364,1).getEffects(st.getPlayer(),st.getPlayer())

return "4.htm"
st.setState(COMPLETED)

#Song of Earth
if event == "57":
SkillTable.getInstance().getInfo(264,1).getEffects(st.getPlayer(),st.getPlayer())

return "buffer.htm"
st.setState(COMPLETED)


#Song of Flame Guard
if event == "59":
SkillTable.getInstance().getInfo(306,1).getEffects(st.getPlayer(),st.getPlayer())

return "4.htm"
st.setState(COMPLETED)

#Song of Hunter
if event == "60":
SkillTable.getInstance().getInfo(269,1).getEffects(st.getPlayer(),st.getPlayer())

return "buffer.htm"
st.setState(COMPLETED)

#Song of Invocation
if event == "61":
SkillTable.getInstance().getInfo(270,1).getEffects(st.getPlayer(),st.getPlayer())

return "buffer.htm"
st.setState(COMPLETED)

#Song of Life
if event == "62":
SkillTable.getInstance().getInfo(265,1).getEffects(st.getPlayer(),st.getPlayer())

return "buffer.htm"
st.setState(COMPLETED)

#Song of Meditation
if event == "63":
SkillTable.getInstance().getInfo(363,1).getEffects(st.getPlayer(),st.getPlayer())

return "4.htm"
st.setState(COMPLETED)

#Song of Renewal
if event == "64":
SkillTable.getInstance().getInfo(349,1).getEffects(st.getPlayer(),st.getPlayer())

return "4.htm"
st.setState(COMPLETED)

#Song of Storm Guard
if event == "65":
SkillTable.getInstance().getInfo(308,1).getEffects(st.getPlayer(),st.getPlayer())

return "4.htm"
st.setState(COMPLETED)

#Song of Vengeance
if event == "66":
SkillTable.getInstance().getInfo(305,1).getEffects(st.getPlayer(),st.getPlayer())

return "4.htm"
st.setState(COMPLETED)

#Song of Vitality
if event == "67":
SkillTable.getInstance().getInfo(304,1).getEffects(st.getPlayer(),st.getPlayer())

return "buffer.htm"
st.setState(COMPLETED)

#Song of Warding
if event == "68":
SkillTable.getInstance().getInfo(267,1).getEffects(st.getPlayer(),st.getPlayer())

return "buffer.htm"
st.setState(COMPLETED)

#Song of Water
if event == "69":
SkillTable.getInstance().getInfo(266,1).getEffects(st.getPlayer(),st.getPlayer())

return "buffer.htm"
st.setState(COMPLETED)

#Song of Wind
if event == "70":
SkillTable.getInstance().getInfo(268,1).getEffects(st.getPlayer(),st.getPlayer())

return "buffer.htm"
st.setState(COMPLETED)

#Heal
if event == "71":
st.takeItems
st.getPlayer().setCurrentCp(st.getPlayer().getMaxCp())
st.getPlayer().setCurrentHp(st.getPlayer().getMaxHp())
st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())
return "buffer.htm"
st.setState(COMPLETED)

#Cancel Buffs
if event == "72":
st.getPlayer().stopAllEffects()

return "buffer.htm"
st.setState(COMPLETED)


#Wind Walk
if event == "73":
SkillTable.getInstance().getInfo(1204,2).getEffects(st.getPlayer(),st.getPlayer())

return "buffer.htm"
st.setState(COMPLETED)

#Malaria
if event == "74":
SkillTable.getInstance().getInfo(4554,4).getEffects(st.getPlayer(),st.getPlayer())

return "7.htm"
st.setState(COMPLETED)

#Flu
if event == "75":
SkillTable.getInstance().getInfo(4553,4).getEffects(st.getPlayer(),st.getPlayer())

return "7.htm"
st.setState(COMPLETED)

#Rheumatismo
if event == "76":
SkillTable.getInstance().getInfo(4551,4).getEffects(st.getPlayer(),st.getPlayer())

return "7.htm"
st.setState(COMPLETED)


#Nobles
if event == "77":
SkillTable.getInstance().getInfo(1323,1).getEffects(st.getPlayer(),st.getPlayer())

return "1.htm"
st.setState(COMPLETED)

#Blessing of Queen
if event == "78":
SkillTable.getInstance().getInfo(4699,13).getEffects(st.getPlayer(),st.getPlayer())

return "7.htm"
st.setState(COMPLETED)

#Blessing of Seraphim
if event == "79":
SkillTable.getInstance().getInfo(4702,13).getEffects(st.getPlayer(),st.getPlayer())

return "7.htm"
st.setState(COMPLETED)

#Gift of Seraphim
if event == "80":
SkillTable.getInstance().getInfo(4703,13).getEffects(st.getPlayer(),st.getPlayer())

return "7.htm"
st.setState(COMPLETED)

#Gift of Queen
if event == "81":
SkillTable.getInstance().getInfo(4700,13).getEffects(st.getPlayer(),st.getPlayer())

return "7.htm"
st.setState(COMPLETED)
#Chant of Victory
if event == "82":
SkillTable.getInstance().getInfo(1363,1).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"
st.setState(COMPLETED)
#Chant of Magnus
if event == "83":
SkillTable.getInstance().getInfo(1413,1).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"
st.setState(COMPLETED)
#Prophecy of Fire
if event == "84":
SkillTable.getInstance().getInfo(1356,1).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"
st.setState(COMPLETED)
#Prophecy of Wind
if event == "85":
SkillTable.getInstance().getInfo(1357,1).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"
st.setState(COMPLETED)
#Prochecy of Water
if event == "86":
SkillTable.getInstance().getInfo(1355,1).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"
st.setState(COMPLETED)
#Greater Might
if event == "87":
SkillTable.getInstance().getInfo(1388,3).getEffects(st.getPlayer(),st.getPlayer())

return "7.htm"
st.setState(COMPLETED)
#Greater Shield
if event == "88":
SkillTable.getInstance().getInfo(1389,3).getEffects(st.getPlayer(),st.getPlayer())

return "7.htm"
st.setState(COMPLETED)
#Chant of Spirit
if event == "89":
SkillTable.getInstance().getInfo(1362,1).getEffects(st.getPlayer(),st.getPlayer())

return "6.htm"
st.setState(COMPLETED)



if htmltext != event:
st.setState(COMPLETED)
st.exitQuest(1)
return htmltext


def onTalk (self,npc,player):
st = player.getQuestState(qn)
htmltext = "<html><head><body>I have nothing to say to you</body></html>"
st.setState(State.STARTED)
return InitialHtml

QUEST = Quest(QuestId,str(QuestId) + "_" + QuestName,QuestDesc)

for npcId in NPC:
QUEST.addStartNpc(npcId)
QUEST.addTalkId(npcId)


Ну и вот гс

Starting L2J-Frozen Core Game Server.
Official website : http://www.l2jfrozen.com
Enjoy by server core. Bee happy!
------------------------------

======================================================================-[ Team ]
>>>>> Developpers: Shyla, Beetle <<<<<

# ##### ##### ##### ##### ##### ##### ## #
# # # # # # # # # # # #
# ### #### ### # # # # # ### # # #
# # # ### # # # # # # #
##### ##### # # ## ##### ##### ##### # ##

Copyright 2010-2011
Loaded 31 classes Damages configurations
==================================================================-[ Database ]
MLog clients using java 1.4+ standard logging.
Initializing c3p0-0.9.1.2 [built 21-May-2007 15:04:56; debug? true; trace: 10]
Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireInc
rement -> 5, acquireRetryAttempts -> 0, acquireRetryDelay -> 500, autoCommitOnCl
ose -> true, automaticTestTable -> connection_test_table, breakAfterAcquireFailu
re -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connec
tionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSou
rceName -> 2so26t8jwof4gp1gcy9pl|38bbd7, debugUnreturnedConnectionStackTraces ->
false, description -> null, driverClass -> com.mysql.jdbc.Driver, factoryClassL
ocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 2s
o26t8jwof4gp1gcy9pl|38bbd7, idleConnectionTestPeriod -> 3600, initialPoolSize ->
10, jdbcUrl -> jdbc:mysql://localhost/l2jdb, maxAdministrativeTaskTime -> 0, ma
xConnectionAge -> 0, maxIdleTime -> 0, maxIdleTimeExcessConnections -> 0, maxPoo
lSize -> 50, maxStatements -> 0, maxStatementsPerConnection -> 100, minPoolSize
-> 10, numHelperThreads -> 3, numThreadsAwaitingCheckoutDefaultUser -> 0, prefer
redTestQuery -> null, properties -> {user=******, password=******}, propertyCycl
e -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unr
eturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false ]
L2DatabaseFactory: loaded.
===================================================================-[ Threads ]
Cache[HTML]: Running lazy cache
Cache[Crest]: 0,000MB on 0 files loaded. (Forget Time: 300s , Capacity: 50)
Initializing Script Engine Manager
Script Engine: Mozilla Rhino 1.7 release 3 PRERELEASE - Language: ECMAScript - L
anguage Version: 1.8
Script Engine: jython 2.2.1 - Language: python - Language Version: 2.2.1
Script Engine: BeanShell Engine 1.1 - Language: BeanShell - Language Version: 2.
0b5
Script Engine: java 1.6 - Language: java - Language Version: 1.6
=====================================================================-[ World ]
L2World: Setting up World Regions
L2World: (87x128) World Region Grid set up.
Announcements: Loaded 2 Announcements.
GameServer: Loaded 0 Auto Announcements.
Updated characters online status.
Cleaned 0 elements from database.
IDFactory: 102912 id's available.
StaticObject: Loaded 30 StaticObject Templates.
Initializing DuelManager
====================================================================-[ Skills ]
Skills: loaded.
Skills Hero/Noble: loaded.
=====================================================================-[ Items ]
Extractable items data: Loaded 333 extractable items!
Summon items data: Loaded 12 summon items.
FishTable: Loaded 270 Fishes.
=======================================================================-[ Npc ]
Initializing Walkers Routes Table.
WalkerRoutesTable: Loaded 167 Npc Walker Routes.
================================================================-[ Characters ]
CharTemplateTable: Loaded 89 Character Templates.
HennaTable: Loaded 180 Templates.
===================================================================-[ Geodata ]
Geodata Engine: Disabled.
===================================================================-[ Economy ]
TradeController: Loaded 506 Buylists.
TradeController: Loaded 132 Limited Buylists.
TradeController: Loaded 0 Custom Buylists.
Multisell: loaded.
================================================================-[ Clan Halls ]
Initializing ClanHallManager
Loaded: 0 clan halls
Loaded: 44 free clan halls
Fortress of Resistanse: siege will start the 11.11.11 21:00
Devastated Castle: siege will start the 07.11.11 18:00
SiegeManager of Bandits Stronghold
Initializing AuctionManager
Loaded: 38 auction(s)
======================================================================-[ Zone ]
Loading zones...
Initializing ArenaManager
Initializing TownManager
Initializing OlympiadStadiaManager
Initializing CastleManager
Loaded: 9 castles
Initializing GrandBossManager
GrandBossManager: Loaded 15 Instances
Initializing FishingZoneManager
Initializing FortManager
Loaded: 21 fortress
GrandBossManager: Initialized 17 Grand Boss Zones
Done: loaded 565 zones.
=================================================================-[ Spawnlist ]
CustomNpcInstanceManager: loaded 0 NPC to PC polymorphs.
Siege of Dion: Sat Nov 12 20:00:00 EET 2011
Siege of Oren: Sun Nov 13 16:00:00 EET 2011
Siege of Gludio: Sat Nov 12 20:00:00 EET 2011
Siege of Giran: Sun Nov 13 16:00:00 EET 2011
Siege of Innadril: Sun Nov 13 16:00:00 EET 2011
Siege of Aden: Sat Nov 12 20:00:00 EET 2011
Siege of Goddard: Sun Nov 13 16:00:00 EET 2011
DayNightSpawnManager: Day/Night handler initialised
Siege of Rune: Sat Nov 12 20:00:00 EET 2011
Siege of Schuttgart: Sat Nov 12 20:00:00 EET 2011
SpawnTable: Data missing in NPC table for ID: {}. 40011
RaidBossSpawnManager: Loaded 181 Instances
RaidBossSpawnManager: Scheduled 0 Instances
DayNightSpawnManager: Deleted 0 night creatures
DayNightSpawnManager: Spawning 232 day creatures
==========================================================-[ Dimensional Rift ]
DimensionalRiftManager: Loaded 7 room types with 56 rooms.
DimensionalRiftManager: Loaded 462 dimensional rift spawns, 0 errors.
======================================================================-[ Misc ]
RecipeController: Loaded 871 Recipes.
Initializing AugmentationData.
AugmentationData: Loaded: 52 augmentation stats.
Initializing MercTicketManager
Loaded: 0 Mercenary Tickets
Initializing PetitionManager
Initializing CursedWeaponsManager
Loaded : 2 cursed weapon(s).
Initializing ItemsAutoDestroy.
=====================================================================-[ Manor ]
ManorManager: Loaded 256 seeds
Initializing CastleManorManager
===================================================================-[ Castles ]
Initializing SiegeManager
Initializing FortSiegeManager
CrownManager: initialized
======================================================================-[ Boat ]
Initializing BoatManager
=====================================================================-[ Doors ]
Searching clan halls doors:
DoorTable: Loaded 1001 Door Templates.
===========================================================-[ Four Sepulchers ]
GrandBossManager: Loaded 15 Instances
FourSepulchersManager: Beginning in Attack time
===============================================================-[ Seven Signs ]
SevenSigns: Currently in the Competition (Quest Event) period!
SevenSigns: The Seal of Avarice remains unclaimed.
SevenSigns: The Seal of Gnosis remains unclaimed.
SevenSigns: The Seal of Strife remains unclaimed.
SevenSigns: The competition, if the current trend continues, will end in a tie t
his week.
SevenSigns: Next period begins in 1 days, 17 hours and 50 mins.
AutoSpawnHandler: Could not restore spawn data: com.mysql.jdbc.exceptions.jdbc4.
MySQLSyntaxErrorException: Table 'l2jdb.random_spawn_loc' doesn't exist
AutoSpawnHandler: Could not restore chat data: com.mysql.jdbc.exceptions.jdbc4.M
ySQLSyntaxErrorException: Table 'l2jdb.auto_chat' doesn't exist
SevenSignsFestival: The first Festival of Darkness cycle begins in 2 minute(s).
===========================================================-[ Olympiad System ]
Olympiad System: Loading Olympiad System....
Olympiad System: Currently in Olympiad Period
Olympiad System: Period Ends....
Olympiad System: In 28 days, 11 hours and 50 mins.
Olympiad System: Next Weekly Change is in....
Olympiad System: 6 days, 22 hours and 23 mins.
Olympiad System: Loaded 0 Nobles
Olympiad System: Competition Period Starts in 0 days, 17 hours and 50 mins.
Olympiad System: Event starts/started : Sun Nov 06 18:00:11 EET 2011
Hero System: Loaded 0 Heroes.
Hero System: Loaded 0 all time Heroes.
=============================================================-[ Access Levels ]
GmListTable: initalized.
==================================================================-[ Handlers ]
ItemHandler: Loaded 2044 handlers.
SkillHandler: Loaded 76 handlers.
AdminCommandHandler: Loaded 487 handlers.
UserCommandHandler: Loaded 14 handlers.
VoicedCommandHandler: Loaded 9 handlers.
AutoChatHandler : Loaded 0 handlers in total.
AutoSpawnHandler : Loaded 1 handlers in total.
====================================================================-[ Quests ]
Initializing QuestManager
========================================================================-[ AI ]
AI load:
- Antharas_l2j
- Baium_l2j
- Core
- Queen Ant
- Van Halter
- Gordon
- Monastery_l2j
- Transform
- Fairy Trees
- Summon Minions
- Zombie Gatekeepers
- Ice Fairy Sirra
- Golkonda
- Hallate
- Kernon
- Varka/Ketra Ally
- Barakiel
- Orfen
- Zaken_l2j
- Frintezza_l2j
- Valakas_l2j
===================================================================-[ Scripts ]
start loading Individual AI
start loading Group template AI
Failed executing script: D:\ggg\eee\GameServer\gameserver\data\scripts\
custom\99_NPCBuffer\__init__.py. See __init__.py.error.log for details.
Nobless Trader (66666) Enabled...
Clan Manager (66667) Enabled...
Failed executing script: D:\ggg\eee\GameServer\gameserver\data\scripts\
custom\9999_NPCBuffer\__init__.py. See __init__.py.error.log for details.
Replaced: SagasSuperclass with a new version
Compiled Scripts Cache is disabled.
Loaded: 457 quests
[FeanorScriptEngine] Loading Packages ...
[FeanorScriptEngine] No Packages Loaded ...
===============================================================-[ Game Server ]
IdFactory: Free ObjectID's remaining: 1879005651
===============================================================-[ Custom Mods ]
Wedding Manager is Disabled
==================================================================-[ PowerPak ]
Buffer:
...Loaded 112 buff templates
...Enabled
Raid Info:
...Enabled
Self Char Repair:
...Enabled
==============================================================-[ EventManager ]
======================================================================-[ Info ]
Operating System: Windows 7 6.1 x86
Available CPUs: 1
Maximum Numbers of Connected Players: 2100
GameServer Started, free memory 31002 Mb of 31940 Mb
Used memory: 938 MB
====================================================================-[ Status ]
Server Loaded in 76 seconds
ServerStatus started!
=====================================================================-[ Login ]
Connecting to login on *** *** *** ***:9014
Registered on login as Server 1 : Extreme
AutoSpawnHandler: No location co-ords specified for spawn instance (Object ID =
*********).
Ответ
#6
Код:
from com.l2jfrozen                   import L2DatabaseFactory
Это же питон, он чувствителен к структуре.
Вам это ясно сказано:
Цитата:File "__init__.py", line 5, in ?
Должно так выглядеть:
Код:
import sys
from com.l2jfrozen.gameserver.model.actor.instance import L2PcInstance;
from java.util import Iterator;
from com.l2jfrozen.gameserver.datatables import SkillTable;
from com.l2jfrozen import L2DatabaseFactory
from com.l2jfrozen.gameserver.model.quest import State;
from com.l2jfrozen.gameserver.model.quest import QuestState;
from com.l2jfrozen.gameserver.model.quest.jython import QuestJython as JQuest;

qn = "99_NPCBuffer"

NPC=[99]
ADENA_ID=57
QuestId     = 99
QuestName   = "NPCBuffer"
QuestDesc   = "custom"
InitialHtml = "1.htm"

print "importing custom: 99: NPCBuffer"

class Quest (JQuest) :

    def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr)


    def onEvent(self,event,st):
        htmltext = event

            #Acumen
        if event == "1":
            SkillTable.getInstance().getInfo(1085,3).getEffects(st.getPlayer(),st.getPlayer())
            
            return "buffer.htm"
            st.setState(COMPLETED)

        #Advanced Block
        if event == "2":
            SkillTable.getInstance().getInfo(1304,3).getEffects(st.getPlayer(),st.getPlayer())
        
            return "buffer.htm"
            st.setState(COMPLETED)

        #Agility
        if event == "3":
            SkillTable.getInstance().getInfo(1087,3).getEffects(st.getPlayer(),st.getPlayer())
            
            return "buffer.htm"
            st.setState(COMPLETED)

        #Arcane Protection
        if event == "4":
            SkillTable.getInstance().getInfo(1354,1).getEffects(st.getPlayer(),st.getPlayer())
        
            return "6.htm"
            st.setState(COMPLETED)

        #Berserker Spirit
        if event == "5":
            SkillTable.getInstance().getInfo(1062,2).getEffects(st.getPlayer(),st.getPlayer())
        
            return "buffer.htm"
            st.setState(COMPLETED)

        #Bless Shield
        if event == "6":
            SkillTable.getInstance().getInfo(1243,6).getEffects(st.getPlayer(),st.getPlayer())
            
            return "buffer.htm"
            st.setState(COMPLETED)

        #Blessed Body
        if event == "7":
            SkillTable.getInstance().getInfo(1045,6).getEffects(st.getPlayer(),st.getPlayer())
        
            return "buffer.htm"
            st.setState(COMPLETED)

        #Blessed Soul
        if event == "8":
            SkillTable.getInstance().getInfo(1048,6).getEffects(st.getPlayer(),st.getPlayer())
        
            return "buffer.htm"
            st.setState(COMPLETED)

        #Clarity
        if event == "9":
            SkillTable.getInstance().getInfo(1397,3).getEffects(st.getPlayer(),st.getPlayer())
        
            return "2.htm"
            st.setState(COMPLETED)

        #Chant of Protection
        if event == "10":
            SkillTable.getInstance().getInfo(1461,1).getEffects(st.getPlayer(),st.getPlayer())
            
            return "6.htm"
            st.setState(COMPLETED)

        #Chant of Victory
        if event == "11":
            SkillTable.getInstance().getInfo(1363,1).getEffects(st.getPlayer(),st.getPlayer())
            
            return "5.htm"
            st.setState(COMPLETED)

        #Concentration
        if event == "12":
            SkillTable.getInstance().getInfo(1078,6).getEffects(st.getPlayer(),st.getPlayer())
        
            return "buffer.htm"
            st.setState(COMPLETED)

        #Death whisper
        if event == "13":
            SkillTable.getInstance().getInfo(1242,3).getEffects(st.getPlayer(),st.getPlayer())
            
            return "buffer.htm"
            st.setState(COMPLETED)

        #Divine Protection
        if event == "14":
            SkillTable.getInstance().getInfo(1353,1).getEffects(st.getPlayer(),st.getPlayer())
        
            return "6.htm"
            st.setState(COMPLETED)

        #Elemental Protection
        if event == "15":
            SkillTable.getInstance().getInfo(1352,1).getEffects(st.getPlayer(),st.getPlayer())
        
            return "6.htm"
            st.setState(COMPLETED)

        #Empower
        if event == "16":
            SkillTable.getInstance().getInfo(1059,3).getEffects(st.getPlayer(),st.getPlayer())
            
            return "buffer.htm"
            st.setState(COMPLETED)

        #Focus
        if event == "17":
            SkillTable.getInstance().getInfo(1077,3).getEffects(st.getPlayer(),st.getPlayer())
            
            return "buffer.htm"
            st.setState(COMPLETED)

        #Greater Might
        if event == "18":
            SkillTable.getInstance().getInfo(1388,3).getEffects(st.getPlayer(),st.getPlayer())
            
            return "7.htm"
            st.setState(COMPLETED)

        #Greater Shield
        if event == "19":
            SkillTable.getInstance().getInfo(1389,3).getEffects(st.getPlayer(),st.getPlayer())
        
            return "7.htm"
            st.setState(COMPLETED)

        #Guidance
        if event == "20":
            SkillTable.getInstance().getInfo(1240,3).getEffects(st.getPlayer(),st.getPlayer())
            
            return "buffer.htm"
            st.setState(COMPLETED)

        #Haste
        if event == "21":
            SkillTable.getInstance().getInfo(1086,2).getEffects(st.getPlayer(),st.getPlayer())
        
            return "buffer.htm"
            st.setState(COMPLETED)

        #Holy Resistance
        if event == "22":    
            SkillTable.getInstance().getInfo(1392,3).getEffects(st.getPlayer(),st.getPlayer())
            
            return "6.htm"
            st.setState(COMPLETED)

        #Holy Weapon
        if event == "23":
            SkillTable.getInstance().getInfo(1043,1).getEffects(st.getPlayer(),st.getPlayer())
            
            return "2.htm"
            st.setState(COMPLETED)

        #Invigor
        if event == "24":
            SkillTable.getInstance().getInfo(1032,3).getEffects(st.getPlayer(),st.getPlayer())
            
            return "2.htm"
            st.setState(COMPLETED)

        #Magic Barrier
        if event == "25":
            SkillTable.getInstance().getInfo(1036,2).getEffects(st.getPlayer(),st.getPlayer())
        
            return "buffer.htm"
            st.setState(COMPLETED)

        #Magnus' Chant
        if event == "26":
            SkillTable.getInstance().getInfo(1413,1).getEffects(st.getPlayer(),st.getPlayer())
        
            return "5.htm"
            st.setState(COMPLETED)

        
        #Mental Shield
        if event == "28":
            SkillTable.getInstance().getInfo(1035,4).getEffects(st.getPlayer(),st.getPlayer())
        
            return "buffer.htm"
            st.setState(COMPLETED)

        #Might
        if event == "29":
            SkillTable.getInstance().getInfo(1068,3).getEffects(st.getPlayer(),st.getPlayer())
        
            return "buffer.htm"
            st.setState(COMPLETED)

        #Prophecy of Fire
        if event == "30":
            SkillTable.getInstance().getInfo(1356,1).getEffects(st.getPlayer(),st.getPlayer())
        
            return "5.htm"
            st.setState(COMPLETED)

        #Prophecy of Water
        if event == "31":
            SkillTable.getInstance().getInfo(1355,1).getEffects(st.getPlayer(),st.getPlayer())
        
            return "5.htm"
            st.setState(COMPLETED)

        #Prophecy of Wind
        if event == "32":
            SkillTable.getInstance().getInfo(1357,1).getEffects(st.getPlayer(),st.getPlayer())
        
            return "5.htm"
            st.setState(COMPLETED)

        #Regeneration
        if event == "33":
            SkillTable.getInstance().getInfo(1044,3).getEffects(st.getPlayer(),st.getPlayer())
            
            return "2.htm"
            st.setState(COMPLETED)

        #Resist Aqua
        if event == "34":
            SkillTable.getInstance().getInfo(1182,3).getEffects(st.getPlayer(),st.getPlayer())
            
            return "6.htm"
            st.setState(COMPLETED)

        #Resist Fire
        if event == "35":
            SkillTable.getInstance().getInfo(1191,3).getEffects(st.getPlayer(),st.getPlayer())
            
            return "6.htm"
            st.setState(COMPLETED)

        #Resist Poison
        if event == "36":
            SkillTable.getInstance().getInfo(1033,3).getEffects(st.getPlayer(),st.getPlayer())
        
            return "6.htm"
            st.setState(COMPLETED)

        #Resist Shock
        if event == "37":
            SkillTable.getInstance().getInfo(1259,4).getEffects(st.getPlayer(),st.getPlayer())
            
            return "buffer.htm"
            st.setState(COMPLETED)

        #Resist Wind
        if event == "38":
            SkillTable.getInstance().getInfo(1189,3).getEffects(st.getPlayer(),st.getPlayer())
        
            return "6.htm"
            st.setState(COMPLETED)

        #Shield
        if event == "39":
            SkillTable.getInstance().getInfo(1040,3).getEffects(st.getPlayer(),st.getPlayer())
            
            return "buffer.htm"
            st.setState(COMPLETED)

        #Unholy Resistance
        if event == "40":
            SkillTable.getInstance().getInfo(1393,3).getEffects(st.getPlayer(),st.getPlayer())
            
            return "6.htm"
            st.setState(COMPLETED)

        #Vampiric Rage
        if event == "41":
            SkillTable.getInstance().getInfo(1268,4).getEffects(st.getPlayer(),st.getPlayer())
            
            return "buffer.htm"
            st.setState(COMPLETED)

        #Wild Magic
        if event == "42":
            SkillTable.getInstance().getInfo(1303,2).getEffects(st.getPlayer(),st.getPlayer())
            
            return "buffer.htm"
            st.setState(COMPLETED)

        

        #Dance of Aqua Guard
        if event == "44":
            SkillTable.getInstance().getInfo(307,1).getEffects(st.getPlayer(),st.getPlayer())
            
            return "3.htm"
            st.setState(COMPLETED)

        #Dance of Concentration
        if event == "45":
            SkillTable.getInstance().getInfo(276,1).getEffects(st.getPlayer(),st.getPlayer())
            
            return "buffer.htm"
            st.setState(COMPLETED)

        #Dance of Earth Guard
        if event == "46":    
            SkillTable.getInstance().getInfo(309,1).getEffects(st.getPlayer(),st.getPlayer())
            
            return "3.htm"
            st.setState(COMPLETED)

        #Dance of Fire
        if event == "47":
            SkillTable.getInstance().getInfo(274,1).getEffects(st.getPlayer(),st.getPlayer())
            
            return "buffer.htm"
            st.setState(COMPLETED)

        #Dance of Fury
        if event == "48":
            SkillTable.getInstance().getInfo(275,1).getEffects(st.getPlayer(),st.getPlayer())
            
            return "buffer.htm"
            st.setState(COMPLETED)

        #Dance of Inspiration
        if event == "49":
            SkillTable.getInstance().getInfo(272,1).getEffects(st.getPlayer(),st.getPlayer())
        
            return "buffer.htm"
            st.setState(COMPLETED)

        #Dance of Light
        if event == "50":
            SkillTable.getInstance().getInfo(277,1).getEffects(st.getPlayer(),st.getPlayer())
            
            return "buffer.htm"
            st.setState(COMPLETED)

        #Dance of Protection
        if event == "51":
            SkillTable.getInstance().getInfo(311,1).getEffects(st.getPlayer(),st.getPlayer())
        
            return "3.htm"
            st.setState(COMPLETED)

        #Dance of the Mystic
        if event == "52":
            SkillTable.getInstance().getInfo(273,1).getEffects(st.getPlayer(),st.getPlayer())
            
            return "buffer.htm"
            st.setState(COMPLETED)

        #Dance of the Vampire
        if event == "53":
            SkillTable.getInstance().getInfo(310,1).getEffects(st.getPlayer(),st.getPlayer())
            
            return "buffer.htm"
            st.setState(COMPLETED)

        #Dance of the Warrior
        if event == "54":
            SkillTable.getInstance().getInfo(271,1).getEffects(st.getPlayer(),st.getPlayer())
            
            return "buffer.htm"
            st.setState(COMPLETED)

        #Siren's Dance
        if event == "55":
            SkillTable.getInstance().getInfo(365,1).getEffects(st.getPlayer(),st.getPlayer())
            
            return "3.htm"
            st.setState(COMPLETED)

        #Song of Champion
        if event == "56":
            SkillTable.getInstance().getInfo(364,1).getEffects(st.getPlayer(),st.getPlayer())
            
            return "4.htm"
            st.setState(COMPLETED)

        #Song of Earth
        if event == "57":
            SkillTable.getInstance().getInfo(264,1).getEffects(st.getPlayer(),st.getPlayer())
        
            return "buffer.htm"
            st.setState(COMPLETED)

        
        #Song of Flame Guard
        if event == "59":
            SkillTable.getInstance().getInfo(306,1).getEffects(st.getPlayer(),st.getPlayer())
            
            return "4.htm"
            st.setState(COMPLETED)

        #Song of Hunter
        if event == "60":
            SkillTable.getInstance().getInfo(269,1).getEffects(st.getPlayer(),st.getPlayer())
            
            return "buffer.htm"
            st.setState(COMPLETED)

        #Song of Invocation
        if event == "61":
            SkillTable.getInstance().getInfo(270,1).getEffects(st.getPlayer(),st.getPlayer())
            
            return "buffer.htm"
            st.setState(COMPLETED)

        #Song of Life
        if event == "62":
            SkillTable.getInstance().getInfo(265,1).getEffects(st.getPlayer(),st.getPlayer())
        
            return "buffer.htm"
            st.setState(COMPLETED)

        #Song of Meditation
        if event == "63":
            SkillTable.getInstance().getInfo(363,1).getEffects(st.getPlayer(),st.getPlayer())
            
            return "4.htm"
            st.setState(COMPLETED)

        #Song of Renewal
        if event == "64":
            SkillTable.getInstance().getInfo(349,1).getEffects(st.getPlayer(),st.getPlayer())
            
            return "4.htm"
            st.setState(COMPLETED)

        #Song of Storm Guard
        if event == "65":
            SkillTable.getInstance().getInfo(308,1).getEffects(st.getPlayer(),st.getPlayer())
            
            return "4.htm"
            st.setState(COMPLETED)

        #Song of Vengeance
        if event == "66":
            SkillTable.getInstance().getInfo(305,1).getEffects(st.getPlayer(),st.getPlayer())
            
            return "4.htm"
            st.setState(COMPLETED)

        #Song of Vitality
        if event == "67":
            SkillTable.getInstance().getInfo(304,1).getEffects(st.getPlayer(),st.getPlayer())
            
            return "buffer.htm"
            st.setState(COMPLETED)

        #Song of Warding
        if event == "68":
            SkillTable.getInstance().getInfo(267,1).getEffects(st.getPlayer(),st.getPlayer())
            
            return "buffer.htm"
            st.setState(COMPLETED)

        #Song of Water
        if event == "69":
            SkillTable.getInstance().getInfo(266,1).getEffects(st.getPlayer(),st.getPlayer())
            
            return "buffer.htm"
            st.setState(COMPLETED)

        #Song of Wind
        if event == "70":
            SkillTable.getInstance().getInfo(268,1).getEffects(st.getPlayer(),st.getPlayer())
        
            return "buffer.htm"
            st.setState(COMPLETED)

        #Heal
        if event == "71":
                st.takeItems
                st.getPlayer().setCurrentCp(st.getPlayer().getMaxCp())
                                st.getPlayer().setCurrentHp(st.getPlayer().getMaxHp())
                                st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())
                return "buffer.htm"                
                st.setState(COMPLETED)

        #Cancel Buffs
        if event == "72":
            st.getPlayer().stopAllEffects()
            
            return "buffer.htm"
            st.setState(COMPLETED)


        #Wind Walk
        if event == "73":
            SkillTable.getInstance().getInfo(1204,2).getEffects(st.getPlayer(),st.getPlayer())
            
            return "buffer.htm"
            st.setState(COMPLETED)

        #Malaria
        if event == "74":
            SkillTable.getInstance().getInfo(4554,4).getEffects(st.getPlayer(),st.getPlayer())
            
            return "7.htm"
            st.setState(COMPLETED)

        #Flu
        if event == "75":
            SkillTable.getInstance().getInfo(4553,4).getEffects(st.getPlayer(),st.getPlayer())
        
            return "7.htm"
            st.setState(COMPLETED)

        #Rheumatismo
        if event == "76":
            SkillTable.getInstance().getInfo(4551,4).getEffects(st.getPlayer(),st.getPlayer())
        
            return "7.htm"
            st.setState(COMPLETED)


        #Nobles
        if event == "77":
            SkillTable.getInstance().getInfo(1323,1).getEffects(st.getPlayer(),st.getPlayer())
            
            return "1.htm"
            st.setState(COMPLETED)

                #Blessing of Queen
        if event == "78":
            SkillTable.getInstance().getInfo(4699,13).getEffects(st.getPlayer(),st.getPlayer())
        
            return "7.htm"
            st.setState(COMPLETED)

                #Blessing of Seraphim
        if event == "79":
            SkillTable.getInstance().getInfo(4702,13).getEffects(st.getPlayer(),st.getPlayer())
        
            return "7.htm"
            st.setState(COMPLETED)

                #Gift of Seraphim
        if event == "80":
            SkillTable.getInstance().getInfo(4703,13).getEffects(st.getPlayer(),st.getPlayer())
        
            return "7.htm"
            st.setState(COMPLETED)

                #Gift of Queen
        if event == "81":
            SkillTable.getInstance().getInfo(4700,13).getEffects(st.getPlayer(),st.getPlayer())
        
            return "7.htm"
            st.setState(COMPLETED)
                #Chant of Victory
        if event == "82":
            SkillTable.getInstance().getInfo(1363,1).getEffects(st.getPlayer(),st.getPlayer())
            
            return "5.htm"
            st.setState(COMPLETED)
                #Chant of Magnus
        if event == "83":
            SkillTable.getInstance().getInfo(1413,1).getEffects(st.getPlayer(),st.getPlayer())
            
            return "5.htm"
            st.setState(COMPLETED)
                #Prophecy of Fire
        if event == "84":
            SkillTable.getInstance().getInfo(1356,1).getEffects(st.getPlayer(),st.getPlayer())
            
            return "5.htm"
            st.setState(COMPLETED)
                #Prophecy of Wind
        if event == "85":
            SkillTable.getInstance().getInfo(1357,1).getEffects(st.getPlayer(),st.getPlayer())
            
            return "5.htm"
            st.setState(COMPLETED)
                #Prochecy of Water
        if event == "86":
            SkillTable.getInstance().getInfo(1355,1).getEffects(st.getPlayer(),st.getPlayer())
            
            return "5.htm"
            st.setState(COMPLETED)
                #Greater Might
        if event == "87":
            SkillTable.getInstance().getInfo(1388,3).getEffects(st.getPlayer(),st.getPlayer())
            
            return "7.htm"
            st.setState(COMPLETED)
                #Greater Shield
        if event == "88":
            SkillTable.getInstance().getInfo(1389,3).getEffects(st.getPlayer(),st.getPlayer())
            
            return "7.htm"
            st.setState(COMPLETED)
                #Chant of Spirit
        if event == "89":
            SkillTable.getInstance().getInfo(1362,1).getEffects(st.getPlayer(),st.getPlayer())
            
            return "6.htm"
            st.setState(COMPLETED)



            if htmltext != event:
                st.setState(COMPLETED)
                st.exitQuest(1)
        return htmltext


    def onTalk (self,npc,player):
       st = player.getQuestState(qn)
       htmltext = "<html><head><body>I have nothing to say to you</body></html>"
       st.setState(State.STARTED)
       return InitialHtml

QUEST       = Quest(QuestId,str(QuestId) + "_" + QuestName,QuestDesc)

for npcId in NPC:
QUEST.addStartNpc(npcId)
QUEST.addTalkId(npcId)
Попробуйте, если будет ошибка - лог сюда.
[Изображение: dxqV.gif]
Ответ
#7
Закинул как вы написали, ошибка та же
Error on: D:\ggg\eee\GameServer\gameserver\data\scripts\custom\99_NPCBuffer\__init__.py.error.log
Line: -1 - Column: -1

Traceback (innermost last):
File "__init__.py", line 5, in ?
ImportError: cannot import name L2DatabaseFactory


Добавлено через 16 минут
у меня стоит 2 разных баффера, один не баффает, а другой квест пишет.. И у обоих в логе эта ошибка :

Error on: D:\ggg\eee\GameServer\gameserver\data\scripts\custom\99_NPCBuffer\__init__.py.error.log
Line: -1 - Column: -1

Traceback (innermost last):
File "__init__.py", line 5, in ?
ImportError: cannot import name L2DatabaseFactory


Может это влияет или нет, но ГС пишет что у меня нет таблицы characters_custom_data :


Error: could not restore char custom data info: com.mysql.jdbc.exceptions.jdbc4.
MySQLSyntaxErrorException: Table 'l2jdb.characters_custom_data' doesn't exist



А добавить я её не могу из-за того что навикат пишет ошибку связанную с Innodb, что он её не может прочесть :

[Err] 1289 - The 'InnoDB' feature is disabled; you need MySQL built with 'InnoDB' to have it working
[Err] CREATE TABLE `characters_custom_data` (
`obj_Id` decimal(11,0) NOT NULL default '0',
`char_name` varchar(35) NOT NULL default '',
`hero` decimal(1,0) NOT NULL default '0',
`noble` decimal(1,0) NOT NULL default '0',
`donator` decimal(1,0) NOT NULL default '0',
`hero_end_date` BIGINT NOT NULL default '0',
PRIMARY KEY (`obj_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
[Msg] Finished - Unsuccessfully


Ну и может быть это то-же влияет, таблицу Buff_templates я закидывал не через Mysql, а через MyISAM.. На всякий случай, вот код MySQL :

# MySQL Server Instance Configuration File
# ----------------------------------------------------------------------
# Generated by the MySQL Server Instance Configuration Wizard
#
#
# Installation Instructions
# ----------------------------------------------------------------------
#
# On Linux you can copy this file to /etc/my.cnf to set global options,
# mysql-data-dir/my.cnf to set server-specific options
# (@localstatedir@ for this installation) or to
# ~/.my.cnf to set user-specific options.
#
# On Windows you should keep this file in the installation directory
# of your server (e.g. C:\Program Files\MySQL\MySQL Server X.Y). To
# make sure the server reads the config file use the startup option
# "--defaults-file".
#
# To run run the server from the command line, execute this in a
# command line shell, e.g.
# mysqld --defaults-file="C:\Program Files\MySQL\MySQL Server X.Y\my.ini"
#
# To install the server as a Windows service manually, execute this in a
# command line shell, e.g.
# mysqld --install MySQLXY --defaults-file="C:\Program Files\MySQL\MySQL Server X.Y\my.ini"
#
# And then execute this in a command line shell to start the server, e.g.
# net start MySQLXY
#
#
# Guildlines for editing this file
# ----------------------------------------------------------------------
#
# In this file, you can use all long options that the program supports.
# If you want to know the options a program supports, start the program
# with the "--help" option.
#
# More detailed information about the individual options can also be
# found in the manual.
#
#
# CLIENT SECTION
# ----------------------------------------------------------------------
#
# The following options will be read by MySQL client applications.
# Note that only client applications shipped by MySQL are guaranteed
# to read this section. If you want your own MySQL client program to
# honor these values, you need to specify it as an option during the
# MySQL client library initialization.
#
[client]

port=3306

[mysql]

default-character-set = utf8

# SERVER SECTION
# ----------------------------------------------------------------------
#
# The following options will be read by the MySQL Server. Make sure that
# you have installed the server correctly (see above) so it reads this
# file.
#
[mysqld]

# The TCP/IP Port the MySQL Server will listen on
port=3306

#Path to installation directory. All paths are usually resolved relative to this.
basedir="C:\AppServ/MySQL"

#Path to the database root
datadir="C:\AppServ/MySQL/data/"

# The default character set that will be used when a new schema or table is
# created and no character set is defined
default-character-set = utf8
character-set-server = utf8
collation-server = utf8_general_ci
init_connect = 'SET collation_connection = utf8_general_ci'
init_connect = 'SET NAMES utf8'

# The default storage engine that will be used when create new tables when
#default-storage-engine=INNODB

# Set the SQL mode to strict
# sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
sql-mode="NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"

# The maximum amount of concurrent sessions the MySQL server will
# allow. One of these connections will be reserved for a user with
# SUPER privileges to allow the administrator to login even if the
# connection limit has been reached.
max_connections=900

#
# For compatibility to other PHP MySQL function that still use old mysql connect.
#
#old_passwords = 1

# Query cache is used to cache SELECT results and later return them
# without actual executing the same query once again. Having the query
# cache enabled may result in significant speed improvements, if your
# have a lot of identical queries and rarely changing tables. See the
# "Qcache_lowmem_prunes" status variable to check if the current value
# is high enough for your load.
# Note: In case your tables change very often or if your queries are
# textually different every time, the query cache may result in a
# slowdown instead of a performance improvement.
query_cache_size=0

# The number of open tables for all threads. Increasing this value
# increases the number of file descriptors that mysqld requires.
# Therefore you have to make sure to set the amount of open files
# allowed to at least 4096 in the variable "open-files-limit" in
# section [mysqld_safe]
table_cache=256

# Maximum size for internal (in-memory) temporary tables. If a table
# grows larger than this value, it is automatically converted to disk
# based table This limitation is for a single table. There can be many
# of them.
tmp_table_size=9M


# How many threads we should keep in a cache for reuse. When a client
# disconnects, the client's threads are put in the cache if there aren't
# more than thread_cache_size threads from before. This greatly reduces
# the amount of thread creations needed if you have a lot of new
# connections. (Normally this doesn't give a notable performance
# improvement if you have a good thread implementation.)
thread_cache_size=8

#*** MyISAM Specific options

# The maximum size of the temporary file MySQL is allowed to use while
# recreating the index (during REPAIR, ALTER TABLE or LOAD DATA INFILE.
# If the file-size would be bigger than this, the index will be created
# through the key cache (which is slower).
myisam_max_sort_file_size=100G

# If the temporary file used for fast index creation would be bigger
# than using the key cache by the amount specified here, then prefer the
# key cache method. This is mainly used to force long character keys in
# large tables to use the slower key cache method to create the index.
myisam_max_extra_sort_file_size=100G

# If the temporary file used for fast index creation would be bigger
# than using the key cache by the amount specified here, then prefer the
# key cache method. This is mainly used to force long character keys in
# large tables to use the slower key cache method to create the index.
myisam_sort_buffer_size=17M

# Size of the Key Buffer, used to cache index blocks for MyISAM tables.
# Do not set it larger than 30% of your available memory, as some memory
# is also required by the OS to cache rows. Even if you're not using
# MyISAM tables, you should still set it to 8-64M as it will also be
# used for internal temporary disk tables.
key_buffer_size=10M

# Size of the buffer used for doing full table scans of MyISAM tables.
# Allocated per thread, if a full scan is needed.
read_buffer_size=64K
read_rnd_buffer_size=256K

# This buffer is allocated when MySQL needs to rebuild the index in
# REPAIR, OPTIMZE, ALTER table statements as well as in LOAD DATA INFILE
# into an empty table. It is allocated per thread so be careful with
# large settings.
sort_buffer_size=256K

log-slow-queries=mysql-slow.log
log-error=mysql.err

#*** INNODB Specific options ***


# Use this option if you have a MySQL server with InnoDB support enabled
# but you do not plan to use it. This will save memory and disk space
# and speed up some things.


# Additional memory pool that is used by InnoDB to store metadata
# information. If InnoDB requires more memory for this purpose it will
# start to allocate it from the OS. As this is fast enough on most
# recent operating systems, you normally do not need to change this
# value. SHOW INNODB STATUS will display the current amount used.
innodb_additional_mem_pool_size=8M

# If set to 1, InnoDB will flush (fsync) the transaction logs to the
# disk at each commit, which offers full ACID behavior. If you are
# willing to compromise this safety, and you are running small
# transactions, you may set this to 0 or 2 to reduce disk I/O to the
# logs. Value 0 means that the log is only written to the log file and
# the log file flushed to disk approximately once per second. Value 2
# means the log is written to the log file at each commit, but the log
# file is only flushed to disk approximately once per second.
innodb_flush_log_at_trx_commit=2

# The size of the buffer InnoDB uses for buffering log data. As soon as
# it is full, InnoDB will have to flush it to disk. As it is flushed
# once per second anyway, it does not make sense to have it very large
# (even with long transactions).
innodb_log_buffer_size=16M

# InnoDB, unlike MyISAM, uses a buffer pool to cache both indexes and
# row data. The bigger you set this the less disk I/O is needed to
# access data in tables. On a dedicated database server you may set this
# parameter up to 80% of the machine physical memory size. Do not set it
# too large, though, because competition of the physical memory may
# cause paging in the operating system. Note that on 32bit systems you
# might be limited to 2-3.5G of user level memory per process, so do not
# set it too high.
innodb_buffer_pool_size=256M

# Size of each log file in a log group. You should set the combined size
# of log files to about 25%-100% of your buffer pool size to avoid
# unneeded buffer pool flush activity on log file overwrite. However,
# note that a larger logfile size will increase the time needed for the
# recovery process.
innodb_log_file_size=128M

# Number of threads allowed inside the InnoDB kernel. The optimal value
# depends highly on the application, hardware as well as the OS
# scheduler properties. A too high value may lead to thread thrashing.
innodb_thread_concurrency=50
Ответ
#8
если пишет квест, знач у тебя у того бафера нет html файлов! Закинь куда нада, и будет те счастье!
Ответ
#9
если бы.. html > default > 99

вот код html

<html>
<title>created by MiddleMan </title>
<body>

<table width=300>
<tr><td><font color="ff9900">Buffs:</font></td>
<td><font color="ff9900">Dances:</font></td>
<td><font color="ff9900">VIP Buffs:</font></td>
</tr>

<tr>
<td><a action="bypass -h Quest 99_NPCBuffer 73">Wind Walk</a></td>
<td><a action="bypass -h Quest 99_NPCBuffer 48"><font color="7D053F">Fury</font></a></td>
<td><a action="bypass -h Quest 99_NPCBuffer 19"><font color="9172EC">Greater Shield</font></a></td>
</tr>
<tr>
<td><a action="bypass -h Quest 99_NPCBuffer 39">Shield</a></td>
<td><a action="bypass -h Quest 99_NPCBuffer 47"><font color="7D053F">Fire</font></a></td>
<td><a action="bypass -h Quest 99_NPCBuffer 18"><font color="9172EC">Greater Might</font></a></td>
</tr>
<tr>
<td><a action="bypass -h Quest 99_NPCBuffer 6">Bless Shield</a></td>
<td><a action="bypass -h Quest 99_NPCBuffer 54"><font color="7D053F">Warrior</font></a></td>
<td><a action="bypass -h Quest 99_NPCBuffer 32"><font color="9172EC">Prophecy of Wind</font></a></td>
</tr>

<tr>
<td><a action="bypass -h Quest 99_NPCBuffer 29">Might</a></td>
<td><a action="bypass -h Quest 99_NPCBuffer 49"><font color="7D053F">Inspiration</font></a></td>
<td><a action="bypass -h Quest 99_NPCBuffer 31"><font color="9172EC">Prophecy of Water</font></a></td>
</tr>
<tr>
<td><a action="bypass -h Quest 99_NPCBuffer 25">Magic Barrier</a></td>
<td><a action="bypass -h Quest 99_NPCBuffer 53"><font color="7D053F">Vampire</font></a></td>
<td><a action="bypass -h Quest 99_NPCBuffer 30"><font color="9172EC">Prophecy of Fire</font></a></td>
</tr>
<tr>
<td><a action="bypass -h Quest 99_NPCBuffer 37">Resist Shock</a></td>
<td><a action="bypass -h Quest 99_NPCBuffer 52"><font color="7D053F">Mystic</font></a></td>
<td><a action="bypass -h Quest 99_NPCBuffer 11"><font color="9172EC">Chant of Victory</font></a></td>
</tr>

<tr>
<td><a action="bypass -h Quest 99_NPCBuffer 28">Mental Shield</a></td>
<td><a action="bypass -h Quest 99_NPCBuffer 45"><font color="7D053F">Concentration</font></a></td>
<td><a action="bypass -h Quest 99_NPCBuffer 26"><font color="9172EC">Chant of Magnus</font></a></td>
</tr>
<tr>
<td><a action="bypass -h Quest 99_NPCBuffer 7">Blessed Body</a></td>
<td><a action="bypass -h Quest 99_NPCBuffer 50"><font color="7D053F">Light</font></a></td>
<td><a action="bypass -h Quest 99_NPCBuffer 89"><font color="9172EC">Chant of Spirit</font></a></td>
<td></td>
</tr>

<tr>
<td><a action="bypass -h Quest 99_NPCBuffer 8">Blessed Soul</a></td>
<td><a action="bypass -h Quest 99_NPCBuffer 55"><font color="7D053F">Siren's Dance</font></a></td>
</tr>
<tr>
<td><a action="bypass -h Quest 99_NPCBuffer 5">Berserker Spirit</a></td>
<td><font color="ff9900">Songs:</font></td>
<td><font color="ff9900">VIP Buffs II:</font></td>
</tr>


<tr>
<td><a action="bypass -h Quest 99_NPCBuffer 20">Guidance</a></td>
<td><a action="bypass -h Quest 99_NPCBuffer 57"><font color="307D7E">Earth</font></a></td>
<td><a action="bypass -h Quest 99_NPCBuffer 80"><font color="9E7BFF">Gift of Seraphim</font></a></td>
</tr>

<tr>
<td><a action="bypass -h Quest 99_NPCBuffer 13">Death Whisper</a></td>
<td><a action="bypass -h Quest 99_NPCBuffer 68"><font color="307D7E">Warding</font></a></td>
<td><a action="bypass -h Quest 99_NPCBuffer 78"><font color="9E7BFF">Blessing of Queen</font></a></td>
</tr>
<tr>
<td><a action="bypass -h Quest 99_NPCBuffer 17">Focus</a></td>
<td><a action="bypass -h Quest 99_NPCBuffer 67"><font color="307D7E">Vitality</font></a></td>
<td><a action="bypass -h Quest 99_NPCBuffer 81"><font color="9E7BFF">Gift of Queen</font></a></td>
</tr>

<tr>
<td><a action="bypass -h Quest 99_NPCBuffer 41">Vampiric Rage</a></td>
<td><a action="bypass -h Quest 99_NPCBuffer 60"><font color="307D7E">Hunter</font></a></td>
<td><a action="bypass -h Quest 99_NPCBuffer 79"><font color="9E7BFF">Blessing of Seraphim</font></a></td>
</tr>
<tr>
<td><a action="bypass -h Quest 99_NPCBuffer 3">Agility</a></td>
<td><a action="bypass -h Quest 99_NPCBuffer 70"><font color="307D7E">Wind</font></a></td>
<td></td>
</tr>

<tr>
<td><a action="bypass -h Quest 99_NPCBuffer 1">Acumen</a></td>
<td><a action="bypass -h Quest 99_NPCBuffer 69"><font color="307D7E">Water</font></a></td>
<td><font color="ff9900">Special Buffs</font></td>
</tr>
<tr>
<td><a action="bypass -h Quest 99_NPCBuffer 16">Empower</a></td>
<td><a action="bypass -h Quest 99_NPCBuffer 64"><font color="307D7E">Renewal</font></a></td>
<td><a action="bypass -h Quest 99_NPCBuffer 75"><font color="8D38C9">Flu level 4</font></a></td>
</tr>

<tr>
<td><a action="bypass -h Quest 99_NPCBuffer 42">Wild Magic</a></td>
<td><a action="bypass -h Quest 99_NPCBuffer 56"><font color="307D7E">Champion</font></a></td>
<td><a action="bypass -h Quest 99_NPCBuffer 74"><font color="8D38C9">Malaria level 4</font></a></td>
</tr>
<tr>
<td><a action="bypass -h Quest 99_NPCBuffer 12">Concentration</a></td>

</tr>
<tr>
<td><a action="bypass -h Quest 99_NPCBuffer 2">Advanced Block</a></td>
<td></td>
<td><a action="bypass -h Quest 99_NPCBuffer 71"><font color="ffffff">Restore</font></a><font color="ffffff"> </font>
<a action="bypass -h Quest 99_NPCBuffer 72"><font color="ffffff">Cancel</font></a></td>
</tr>

</table>
</body>
</html>


В навикат добавлен sql файл :

INSERT INTO `npc` VALUES ('99', '20013', 'buffer', '1', 'ADM', '1', 'Monster2.queen_of_cat', '9.00', '20.00', '76', 'female', 'L2Npc', '40', '339', '147', '3.95', '1.21', '40', '43', '30', '21', '20', '10', '0', '0', '27', '77', '11', '56', '278', '0', '333', '0', '0', '0', '44', '121', 'elemental1_clan', '300', '0', '0', 'LAST_HIT');


Хелп =)!
Ответ
#10
зайди в скайп xBelial1, что нибудь придумаем!
Ответ


Возможно похожие темы ...
Тема Автор Ответы Просмотры Последний пост
  Ошибка с RegisterGameServer EvulCry 0 2,585 03-24-2013, 09:37 AM
Последний пост: EvulCry
  Очередная проблема с бафером ! kira1990 1 2,515 11-09-2011, 01:15 PM
Последний пост: Deron
  Ошибка login servers и game server iluzi0n 7 3,412 09-15-2011, 02:49 PM
Последний пост: iluzi0n
  ошибка явы pelligroso 2 4,136 09-07-2011, 11:13 PM
Последний пост: Ro_0TT
  RegisterServer.bat Ошибка drayver 1 3,894 04-07-2011, 02:12 PM
Последний пост: TieLay
  ошибка при запуске гейм сервера ellseworth 3 3,448 12-13-2010, 07:03 PM
Последний пост: ellseworth
  l2phoenix ANATOM ОШИБКА Bananiche 6 3,223 06-22-2010, 06:58 PM
Последний пост: Travesil
  Проблема с бафером TheToXaH 1 2,383 01-30-2010, 10:18 PM
Последний пост: FlowWK

Перейти к форуму:


Пользователи, просматривающие эту тему: 1 Гость(ей)