Перейти к содержанию
Авторизация  
Lexicon

Помогите Со Скриптом

Рекомендуемые сообщения

Сборка - l2jLovely

Хочу вот поставить бафер , все поставил , но только со скриптом что то не то ( __init__.py ) .

 

===========================================-[ Events/Script/CoreScript/Engine ]

[iNFO 13:38:34]: Script Engine Manager: loaded 48 script(s) form corequests.jar

[ERROR 13:38:35]: Error loading script chedir

javax.script.ScriptException: Traceback (innermost last):

File "__init__.py", line 5, in ?

ImportError: no module named database

 

at com.l2jserver.script.jython.JythonScriptEngine.evalCode(JythonScriptE

ngine.java:405)

at com.l2jserver.script.jython.JythonScriptEngine.eval(JythonScriptEngin

e.java:219)

at com.l2jserver.script.jython.JythonScriptEngine.eval(JythonScriptEngin

e.java:224)

at ru.catssoftware.gameserver.scripting.L2ScriptEngineManager.executeScr

ipt(L2ScriptEngineManager.java:421)

at ru.catssoftware.gameserver.scripting.L2ScriptEngineManager.executeScr

ipt(L2ScriptEngineManager.java:327)

at ru.catssoftware.gameserver.scripting.L2ScriptEngineManager.loadScript

s(L2ScriptEngineManager.java:233)

at ru.catssoftware.gameserver.scripting.L2ScriptEngineManager.loadScript

s(L2ScriptEngineManager.java:245)

at ru.catssoftware.gameserver.scripting.L2ScriptEngineManager.loadScript

s(L2ScriptEngineManager.java:245)

at ru.catssoftware.gameserver.scripting.L2ScriptEngineManager.loadScript

s(L2ScriptEngineManager.java:245)

at ru.catssoftware.gameserver.scripting.L2ScriptEngineManager.loadScript

s(L2ScriptEngineManager.java:252)

at ru.catssoftware.gameserver.L2GameServer.(L2GameServer.java:338)

 

at ru.catssoftware.gameserver.util.BootManager.(BootManager.java:4

6)

at ru.catssoftware.gameserver.util.BootManager.main(BootManager.java:17)

 

Caused by: Traceback (innermost last):

File "__init__.py", line 5, in ?

ImportError: no module named database

 

at org.python.core.Py.ImportError(Unknown Source)

at org.python.core.imp.import_logic(Unknown Source)

at org.python.core.imp.import_name(Unknown Source)

at org.python.core.imp.importName(Unknown Source)

at org.python.core.ImportFunction.load(Unknown Source)

at org.python.core.ImportFunction.__call__(Unknown Source)

at org.python.core.PyObject.__call__(Unknown Source)

at org.python.core.__builtin__.__import__(Unknown Source)

at org.python.core.imp.importFromAs(Unknown Source)

at org.python.core.imp.importFrom(Unknown Source)

at org.python.pycode._pyx1.f$0(__init__.py:5)

at org.python.pycode._pyx1.call_function(__init__.py)

at org.python.core.PyTableCode.call(Unknown Source)

at org.python.core.PyCode.call(Unknown Source)

at org.python.core.Py.runCode(Unknown Source)

at com.l2jserver.script.jython.JythonScriptEngine.evalCode(JythonScriptE

ngine.java:400)

... 12 more

 

 

import sys

from ru.catssoftware.gameserver.model.actor.instance import L2PcInstance

from java.util import Iterator

from ru.catssoftware.gameserver.datatables import SkillTable

from ru.catssoftware.util.database import L2DatabaseFactory

from ru.catssoftware.gameserver.model.quest import State

from ru.catssoftware.gameserver.model.quest import QuestState

from ru.catssoftware.gameserver.model.quest.jython import QuestJython as JQuest

 

qn = "20701_NPCBuffer"

 

NPC=[20701]

ADENA_ID=57

QuestId = 20701

QuestName = "NPCBuffer"

QuestDesc = "custom"

InitialHtml = "1.htm"

 

print "============> Buffer Free: LOADED"

 

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 < 0 or st.getPlayer().getLevel() < 1 :

htmltext = "<html><head><body>Voce nao tem Adena,<br> Ou esta com level muito baixo. Tem que ter level 40 ou mais.</body></html>"

else:

st.takeItems(ADENA_ID,0)

st.getPlayer().setTarget(st.getPlayer())

 

if event == "2":

st.takeItems(ADENA_ID,0)

st.getPlayer().stopAllEffects()

SkillTable.getInstance().getInfo(4344,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4346,4).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4349,2).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1389,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4345,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4347,6).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4348,6).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4348,6).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4352,2).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4354,4).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1087,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4360,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4358,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4357,2).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4359,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1032,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4342,2).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1397,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(264,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(266,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(267,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(268,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(269,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(304,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(271,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(274,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(275,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(310,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1363,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1323,1).getEffects(st.getPlayer(),st.getPlayer())

return "1.htm"

st.setState(COMPLETED)

 

if event == "3":

st.takeItems(ADENA_ID,0)

st.getPlayer().stopAllEffects()

SkillTable.getInstance().getInfo(4344,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4346,4).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4349,2).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4353,6).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1389,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4347,6).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4348,6).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4355,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4356,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4352,2).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1303,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1087,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1397,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1044,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4351,6).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(264,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(266,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(268,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(267,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(269,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(304,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(273,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(276,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(365,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1413,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1323,1).getEffects(st.getPlayer(),st.getPlayer())

return "1.htm"

st.setState(COMPLETED)

 

if event == "4":

st.takeItems(ADENA_ID,0)

st.getPlayer().stopAllEffects()

SkillTable.getInstance().getInfo(4344,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4346,4).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4349,2).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1389,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4345,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4347,6).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4348,6).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4352,2).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4354,4).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1087,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4360,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4358,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4357,2).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4359,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1032,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4342,2).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1397,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(264,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(266,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(267,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(268,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(269,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(304,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(271,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(274,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(275,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(310,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1363,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1323,1).getEffects(st.getPlayer(),st.getPlayer())

return "1.htm"

st.setState(COMPLETED)

 

if event == "5":

st.takeItems(ADENA_ID,0)

st.getPlayer().stopAllEffects()

SkillTable.getInstance().getInfo(4344,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4346,4).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4349,2).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4345,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1388,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4347,6).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4348,6).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4352,2).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1087,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4360,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4358,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4357,2).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4359,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1032,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4342,2).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1397,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(264,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(266,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(267,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(268,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(269,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(304,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(271,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(274,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(275,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1363,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1323,1).getEffects(st.getPlayer(),st.getPlayer())

return "1.htm"

st.setState(COMPLETED)

 

if event == "6":

st.takeItems(ADENA_ID,0)

return "1.htm"

st.setState(COMPLETED)

 

#Wind Walk

if event == "7":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4342,2).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Decrease Weight

if event == "8":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4343,3).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Shield

if event == "9":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4344,3).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Might

if event == "10":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4345,3).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Mental Shield

if event == "11":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4346,4).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Bless the Body

if event == "12":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4347,6).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Bless the Soul

if event == "13":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4348,6).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Magic Barrier

if event == "14":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4349,2).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Resist Shock

if event == "15":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4350,4).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Concentration

if event == "16":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4351,6).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Berserker Spirit

if event == "17":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4352,2).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Bless Shield

if event == "18":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4353,6).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Vampiric Rage

if event == "19":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4354,4).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Acumen

if event == "20":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4355,3).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Empower

if event == "21":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4356,3).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Haste

if event == "22":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4357,2).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Guidance

if event == "23":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4358,3).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Focus

if event == "24":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4359,3).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Death Whisper

if event == "25":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4360,3).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

if event == "26":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(271,1).getEffects(st.getPlayer(),st.getPlayer())

return "4.htm"

 

if event == "27":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(272,1).getEffects(st.getPlayer(),st.getPlayer())

return "4.htm"

 

if event == "28":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(273,1).getEffects(st.getPlayer(),st.getPlayer())

return "4.htm"

 

if event == "29":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(274,1).getEffects(st.getPlayer(),st.getPlayer())

return "4.htm"

 

if event == "30":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(275,1).getEffects(st.getPlayer(),st.getPlayer())

return "4.htm"

 

if event == "31":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(276,1).getEffects(st.getPlayer(),st.getPlayer())

return "4.htm"

 

if event == "32":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(277,1).getEffects(st.getPlayer(),st.getPlayer())

return "4.htm"

 

if event == "33":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(307,1).getEffects(st.getPlayer(),st.getPlayer())

return "4.htm"

 

if event == "34":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(309,1).getEffects(st.getPlayer(),st.getPlayer())

return "4.htm"

 

if event == "35":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(310,1).getEffects(st.getPlayer(),st.getPlayer())

return "4.htm"

 

if event == "36":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(311,1).getEffects(st.getPlayer(),st.getPlayer())

return "4.htm"

 

if event == "37":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(366,1).getEffects(st.getPlayer(),st.getPlayer())

return "4.htm"

 

if event == "38":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(365,1).getEffects(st.getPlayer(),st.getPlayer())

return "4.htm"

 

if event == "39":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(264,1).getEffects(st.getPlayer(),st.getPlayer())

return "3.htm"

 

if event == "40":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(265,1).getEffects(st.getPlayer(),st.getPlayer())

return "3.htm"

 

if event == "41":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(266,1).getEffects(st.getPlayer(),st.getPlayer())

return "3.htm"

 

if event == "42":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(267,1).getEffects(st.getPlayer(),st.getPlayer())

return "3.htm"

 

if event == "43":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(268,1).getEffects(st.getPlayer(),st.getPlayer())

return "3.htm"

 

if event == "44":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(269,1).getEffects(st.getPlayer(),st.getPlayer())

return "3.htm"

 

if event == "45":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(270,1).getEffects(st.getPlayer(),st.getPlayer())

return "3.htm"

 

if event == "46":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(304,1).getEffects(st.getPlayer(),st.getPlayer())

return "3.htm"

 

if event == "47":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(305,1).getEffects(st.getPlayer(),st.getPlayer())

return "3.htm"

 

if event == "48":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(306,1).getEffects(st.getPlayer(),st.getPlayer())

return "3.htm"

 

if event == "49":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(308,1).getEffects(st.getPlayer(),st.getPlayer())

return "3.htm"

 

if event == "50":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(363,1).getEffects(st.getPlayer(),st.getPlayer())

return "3.htm"

 

if event == "51":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(364,1).getEffects(st.getPlayer(),st.getPlayer())

return "3.htm"

 

if event == "52":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(349,1).getEffects(st.getPlayer(),st.getPlayer())

return "3.htm"

st.setState(COMPLETED)

 

 

#Chant of Battle

if event == "53":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1007,3).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"

st.setState(COMPLETED)

 

#Chant of Shielding

if event == "54":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1009,3).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"

st.setState(COMPLETED)

 

#Chant of Fire

if event == "55":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1006,3).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"

st.setState(COMPLETED)

 

#Chant of Flame

if event == "56":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1002,3).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"

st.setState(COMPLETED)

 

#Chant of life

if event == "57":

st.takeItems(ADENA_ID,0)

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1229,18),False,False)

return "5.htm"

st.setState(COMPLETED)

 

#Chant of Fury

if event == "58":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1251,2).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"

st.setState(COMPLETED)

 

#Chant of Evasion

if event == "59":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1252,3).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"

st.setState(COMPLETED)

 

#Chant of Rage

if event == "60":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1253,3).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"

st.setState(COMPLETED)

 

#Chant of Revenge

if event == "61":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1284,3).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"

st.setState(COMPLETED)

 

#Chant of Vampire

if event == "62":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1310,4).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"

st.setState(COMPLETED)

 

#Chant of Eagle

if event == "63":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1309,3).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"

st.setState(COMPLETED)

 

#Chant of Predator

if event == "64":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1308,3).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"

st.setState(COMPLETED)

 

#Greater Might

if event == "71":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1388,3).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Noblesse Blessing

if event == "70":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1323,1).getEffects(st.getPlayer(),st.getPlayer())

return "1.htm"

st.setState(COMPLETED)

 

#Invigor

if event == "72":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1032,3).getEffects(st.getPlayer(),st.getPlayer())

return "7.htm"

st.setState(COMPLETED)

 

#Elemental Protection

if event == "73":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1352,1).getEffects(st.getPlayer(),st.getPlayer())

return "7.htm"

st.setState(COMPLETED)

 

#Divine Protection

if event == "74":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1353,1).getEffects(st.getPlayer(),st.getPlayer())

return "7.htm"

st.setState(COMPLETED)

 

#Arcane Protection

if event == "75":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1354,1).getEffects(st.getPlayer(),st.getPlayer())

return "7.htm"

st.setState(COMPLETED)

 

#Regeneration

if event == "76":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1044,3).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Agility

if event == "77":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1087,3).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Clarity

if event == "78":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1397,3).getEffects(st.getPlayer(),st.getPlayer())

return "7.htm"

st.setState(COMPLETED)

 

#Advanced Block

if event == "79":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1304,3).getEffects(st.getPlayer(),st.getPlayer())

return "7.htm"

st.setState(COMPLETED)

 

#Kiss of Eva

if event == "80":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1073,1).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Greater Shield

if event == "81":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1389,3).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Wild Magic

if event == "82":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1303,1).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Body of Avatar

if event == "83":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1311,6).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Resist Aqua

if event == "84":

st.takeItems(ADENA_ID,0)

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1182,3),False,False)

return "7.htm"

st.setState(COMPLETED)

 

#Resist Fire

if event == "85":

st.takeItems(ADENA_ID,0)

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1191,3),False,False)

return "7.htm"

st.setState(COMPLETED)

 

#Resist Wind

if event == "86":

st.takeItems(ADENA_ID,0)

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1189,3),False,False)

return "7.htm"

st.setState(COMPLETED)

 

#Resist Poison

if event == "87":

st.takeItems(ADENA_ID,0)

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1033,3),False,False)

return "7.htm"

st.setState(COMPLETED)

 

#Salvation

if event == "88":

st.takeItems(ADENA_ID,0)

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1410,1),False,False)

return "1.htm"

st.setState(COMPLETED)

 

#Prophecy of Water

if event == "89":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1355,1).getEffects(st.getPlayer(),st.getPlayer())

return "6.htm"

st.setState(COMPLETED)

 

#Prophecy of Fire

if event == "90":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1356,1).getEffects(st.getPlayer(),st.getPlayer())

return "6.htm"

st.setState(COMPLETED)

 

#Prophecy of Wind

if event == "91":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1357,1).getEffects(st.getPlayer(),st.getPlayer())

return "6.htm"

st.setState(COMPLETED)

 

#War Chant

if event == "92":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1390,3).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"

st.setState(COMPLETED)

 

#Earth Chant

if event == "93":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1391,3).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"

st.setState(COMPLETED)

 

#Blessing of Queen

if event == "94":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4699,3).getEffects(st.getPlayer(),st.getPlayer())

return "7.htm"

st.setState(COMPLETED)

 

#Gift of Queen

if event == "95":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4700,3).getEffects(st.getPlayer(),st.getPlayer())

return "7.htm"

st.setState(COMPLETED)

 

#Blessing of Seraphim

if event == "96":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4702,3).getEffects(st.getPlayer(),st.getPlayer())

return "7.htm"

st.setState(COMPLETED)

 

#Gift of Seraphim

if event == "97":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4703,3).getEffects(st.getPlayer(),st.getPlayer())

return "7.htm"

st.setState(COMPLETED)

 

#Chant of Spirit

if event == "65":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1362,1).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"

st.setState(COMPLETED)

 

#Chant of Victory

if event == "66":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1363,1).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"

st.setState(COMPLETED)

 

#chant of magnus

if event == "67":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1413,1).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"

st.setState(COMPLETED)

 

#Cancel

if event == "98":

st.getPlayer().stopAllEffects()

return "1.htm"

st.setState(COMPLETED)

 

#CPHEAL

if event == "69":

st.takeItems(ADENA_ID,0)

st.getPlayer().restoreCP()

st.getPlayer().restoreHP()

st.getPlayer().restoreMP()

return "1.htm"

st.setState(COMPLETED)

 

#Restore CP/HP/MP

if event == "100":

st.takeItems(ADENA_ID,0)

st.getPlayer().setCurrentCp(st.getPlayer().getMaxCp())

st.getPlayer().setCurrentHp(st.getPlayer().getMaxHp())

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

return "1.htm"

st.setState(State.COMPLETED)

 

#Restore HP

if event == "101":

st.takeItems(ADENA_ID,0)

st.getPlayer().restoreHP()

return "1.htm"

st.setState(State.COMPLETED)

 

#Restore MP

if event == "102":

st.takeItems(ADENA_ID,0)

st.getPlayer().restoreMP()

return "1.htm"

st.setState(State.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)

 

 

custom/20701_NPCBuffer/__init__.py

 

этот файл поставил в game\data\scripts\custom

 

 

pre_1398247976__eror.jpg

 

 

Кто знает что я не так делал ? )))

Изменено пользователем Lexicon

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

Импорты не правильные.

а знаешь как делать правильные? ) если да то подскажи пожалуйсто , или дай сылку где смогу ориентироватся как исправить ошибку , а то я весь форум искал , и гугл тоже

Изменено пользователем Lexicon

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

Посмотри как другие импорты написаны у подобных нпс и поставь себе

  • Upvote 1

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

from ru.catssoftware.util.database import L2DatabaseFactory

говорит такой импорт не верный.

  • Upvote 1

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты
from ru.catssoftware import L2DatabaseFactory

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

Поменял:

from ru.catssoftware.database import L2DatabaseFactory

на

from ru.catssoftware import L2DatabaseFactory

и уже другая ошибка

File "__init__.py", line 799, in ?

TypeError: ru.catssoftware.gameserver.model.quest.State(): expected 0 args; got 2

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

Поменял:

from ru.catssoftware.database import L2DatabaseFactory

на

from ru.catssoftware import L2DatabaseFactory

и уже другая ошибка

File "__init__.py", line 799, in ?

TypeError: ru.catssoftware.gameserver.model.quest.State(): expected 0 args; got 2

QUEST    = Quest(QuestId,str(QuestId) + "_" + QuestName,QuestDesc)
QUEST.addStartNpc(npcId)
QUEST.addTalkId(npcId)

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

from ru.catssoftware.util.database import L2DatabaseFactory

на

from ru.catssoftware import L2DatabaseFactory

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

Если что у ловели уже есть баффер..С профилями\наборами\випом - чего только душа пожелает.

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

QUEST = Quest(QuestId,str(QuestId) + "_" + QuestName,QuestDesc)
QUEST.addStartNpc(npcId)
QUEST.addTalkId(npcId)

 

Удалил я это , потом ГС ругался по поводу 801 (QUEST.setInitialState(CREATED)) Удалил

Потом Ругался по поводу 804 (QUEST.addStartNpc(npcId) Удалил

Потом Ругался по поводу 805 (QUEST.addTalkId(npcId)) Удалил

Сейчас Ругается по поводу 806 строчке , которая вообще нету

 

Caused by: Traceback (innermost last):

(no code object) at line 0

SyntaxError: ('invalid syntax', ('__init__.py', 806, 1, ''))

 

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

Если что у ловели уже есть баффер..С профилями\наборами\випом - чего только душа пожелает.

да знаю , но хочу другой поставить

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

Удалил я это , потом ГС ругался по поводу 801 (QUEST.setInitialState(CREATED)) Удалил

Потом Ругался по поводу 804 (QUEST.addStartNpc(npcId) Удалил

Потом Ругался по поводу 805 (QUEST.addTalkId(npcId)) Удалил

Сейчас Ругается по поводу 806 строчке , которая вообще нету

 

Caused by: Traceback (innermost last):

(no code object) at line 0

SyntaxError: ('invalid syntax', ('__init__.py', 806, 1, ''))

 

Так, почитать на досуге. Что бы строчки не удалять https://docs.python.org/3/

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

import sys

from ru.catssoftware.gameserver.model.actor.instance import L2PcInstance

from java.util import Iterator

from ru.catssoftware.gameserver.datatables import SkillTable

from ru.catssoftware import L2DatabaseFactory

from ru.catssoftware.gameserver.model.quest import State

from ru.catssoftware.gameserver.model.quest import QuestState

from ru.catssoftware.gameserver.model.quest.jython import QuestJython as JQuest

 

qn = "20701_NPCBuffer"

 

NPC=[20701]

ADENA_ID=57

QuestId = 20701

QuestName = "NPCBuffer"

QuestDesc = "custom"

InitialHtml = "1.htm"

 

 

 

print "============> Buffer Free: LOADED"

 

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 < 0 or st.getPlayer().getLevel() < 1 :

htmltext = "Voce nao tem Adena,

Ou esta com level muito baixo. Tem que ter level 40 ou mais."

else:

st.takeItems(ADENA_ID,0)

st.getPlayer().setTarget(st.getPlayer())

 

if event == "2":

st.takeItems(ADENA_ID,0)

st.getPlayer().stopAllEffects()

SkillTable.getInstance().getInfo(4344,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4346,4).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4349,2).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1389,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4345,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4347,6).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4348,6).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4348,6).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4352,2).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4354,4).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1087,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4360,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4358,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4357,2).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4359,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1032,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4342,2).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1397,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(264,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(266,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(267,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(268,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(269,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(304,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(271,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(274,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(275,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(310,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1363,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1323,1).getEffects(st.getPlayer(),st.getPlayer())

return "1.htm"

st.setState(COMPLETED)

 

if event == "3":

st.takeItems(ADENA_ID,0)

st.getPlayer().stopAllEffects()

SkillTable.getInstance().getInfo(4344,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4346,4).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4349,2).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4353,6).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1389,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4347,6).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4348,6).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4355,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4356,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4352,2).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1303,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1087,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1397,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1044,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4351,6).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(264,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(266,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(268,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(267,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(269,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(304,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(273,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(276,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(365,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1413,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1323,1).getEffects(st.getPlayer(),st.getPlayer())

return "1.htm"

st.setState(COMPLETED)

 

if event == "4":

st.takeItems(ADENA_ID,0)

st.getPlayer().stopAllEffects()

SkillTable.getInstance().getInfo(4344,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4346,4).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4349,2).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1389,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4345,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4347,6).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4348,6).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4352,2).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4354,4).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1087,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4360,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4358,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4357,2).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4359,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1032,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4342,2).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1397,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(264,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(266,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(267,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(268,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(269,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(304,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(271,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(274,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(275,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(310,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1363,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1323,1).getEffects(st.getPlayer(),st.getPlayer())

return "1.htm"

st.setState(COMPLETED)

 

if event == "5":

st.takeItems(ADENA_ID,0)

st.getPlayer().stopAllEffects()

SkillTable.getInstance().getInfo(4344,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4346,4).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4349,2).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4345,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1388,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4347,6).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4348,6).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4352,2).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1087,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4360,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4358,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4357,2).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4359,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1032,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4342,2).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1397,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(264,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(266,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(267,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(268,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(269,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(304,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(271,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(274,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(275,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1363,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1323,1).getEffects(st.getPlayer(),st.getPlayer())

return "1.htm"

st.setState(COMPLETED)

 

if event == "6":

st.takeItems(ADENA_ID,0)

return "1.htm"

st.setState(COMPLETED)

 

#Wind Walk

if event == "7":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4342,2).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Decrease Weight

if event == "8":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4343,3).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Shield

if event == "9":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4344,3).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Might

if event == "10":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4345,3).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Mental Shield

if event == "11":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4346,4).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Bless the Body

if event == "12":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4347,6).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Bless the Soul

if event == "13":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4348,6).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Magic Barrier

if event == "14":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4349,2).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Resist Shock

if event == "15":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4350,4).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Concentration

if event == "16":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4351,6).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Berserker Spirit

if event == "17":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4352,2).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Bless Shield

if event == "18":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4353,6).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Vampiric Rage

if event == "19":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4354,4).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Acumen

if event == "20":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4355,3).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Empower

if event == "21":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4356,3).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Haste

if event == "22":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4357,2).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Guidance

if event == "23":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4358,3).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Focus

if event == "24":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4359,3).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Death Whisper

if event == "25":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4360,3).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

if event == "26":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(271,1).getEffects(st.getPlayer(),st.getPlayer())

return "4.htm"

 

if event == "27":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(272,1).getEffects(st.getPlayer(),st.getPlayer())

return "4.htm"

 

if event == "28":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(273,1).getEffects(st.getPlayer(),st.getPlayer())

return "4.htm"

 

if event == "29":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(274,1).getEffects(st.getPlayer(),st.getPlayer())

return "4.htm"

 

if event == "30":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(275,1).getEffects(st.getPlayer(),st.getPlayer())

return "4.htm"

 

if event == "31":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(276,1).getEffects(st.getPlayer(),st.getPlayer())

return "4.htm"

 

if event == "32":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(277,1).getEffects(st.getPlayer(),st.getPlayer())

return "4.htm"

 

if event == "33":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(307,1).getEffects(st.getPlayer(),st.getPlayer())

return "4.htm"

 

if event == "34":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(309,1).getEffects(st.getPlayer(),st.getPlayer())

return "4.htm"

 

if event == "35":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(310,1).getEffects(st.getPlayer(),st.getPlayer())

return "4.htm"

 

if event == "36":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(311,1).getEffects(st.getPlayer(),st.getPlayer())

return "4.htm"

 

if event == "37":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(366,1).getEffects(st.getPlayer(),st.getPlayer())

return "4.htm"

 

if event == "38":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(365,1).getEffects(st.getPlayer(),st.getPlayer())

return "4.htm"

 

if event == "39":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(264,1).getEffects(st.getPlayer(),st.getPlayer())

return "3.htm"

 

if event == "40":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(265,1).getEffects(st.getPlayer(),st.getPlayer())

return "3.htm"

 

if event == "41":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(266,1).getEffects(st.getPlayer(),st.getPlayer())

return "3.htm"

 

if event == "42":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(267,1).getEffects(st.getPlayer(),st.getPlayer())

return "3.htm"

 

if event == "43":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(268,1).getEffects(st.getPlayer(),st.getPlayer())

return "3.htm"

 

if event == "44":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(269,1).getEffects(st.getPlayer(),st.getPlayer())

return "3.htm"

 

if event == "45":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(270,1).getEffects(st.getPlayer(),st.getPlayer())

return "3.htm"

 

if event == "46":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(304,1).getEffects(st.getPlayer(),st.getPlayer())

return "3.htm"

 

if event == "47":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(305,1).getEffects(st.getPlayer(),st.getPlayer())

return "3.htm"

 

if event == "48":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(306,1).getEffects(st.getPlayer(),st.getPlayer())

return "3.htm"

 

if event == "49":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(308,1).getEffects(st.getPlayer(),st.getPlayer())

return "3.htm"

 

if event == "50":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(363,1).getEffects(st.getPlayer(),st.getPlayer())

return "3.htm"

 

if event == "51":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(364,1).getEffects(st.getPlayer(),st.getPlayer())

return "3.htm"

 

if event == "52":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(349,1).getEffects(st.getPlayer(),st.getPlayer())

return "3.htm"

st.setState(COMPLETED)

 

 

#Chant of Battle

if event == "53":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1007,3).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"

st.setState(COMPLETED)

 

#Chant of Shielding

if event == "54":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1009,3).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"

st.setState(COMPLETED)

 

#Chant of Fire

if event == "55":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1006,3).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"

st.setState(COMPLETED)

 

#Chant of Flame

if event == "56":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1002,3).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"

st.setState(COMPLETED)

 

#Chant of life

if event == "57":

st.takeItems(ADENA_ID,0)

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1229,18),False,False)

return "5.htm"

st.setState(COMPLETED)

 

#Chant of Fury

if event == "58":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1251,2).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"

st.setState(COMPLETED)

 

#Chant of Evasion

if event == "59":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1252,3).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"

st.setState(COMPLETED)

 

#Chant of Rage

if event == "60":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1253,3).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"

st.setState(COMPLETED)

 

#Chant of Revenge

if event == "61":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1284,3).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"

st.setState(COMPLETED)

 

#Chant of Vampire

if event == "62":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1310,4).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"

st.setState(COMPLETED)

 

#Chant of Eagle

if event == "63":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1309,3).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"

st.setState(COMPLETED)

 

#Chant of Predator

if event == "64":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1308,3).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"

st.setState(COMPLETED)

 

#Greater Might

if event == "71":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1388,3).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Noblesse Blessing

if event == "70":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1323,1).getEffects(st.getPlayer(),st.getPlayer())

return "1.htm"

st.setState(COMPLETED)

 

#Invigor

if event == "72":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1032,3).getEffects(st.getPlayer(),st.getPlayer())

return "7.htm"

st.setState(COMPLETED)

 

#Elemental Protection

if event == "73":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1352,1).getEffects(st.getPlayer(),st.getPlayer())

return "7.htm"

st.setState(COMPLETED)

 

#Divine Protection

if event == "74":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1353,1).getEffects(st.getPlayer(),st.getPlayer())

return "7.htm"

st.setState(COMPLETED)

 

#Arcane Protection

if event == "75":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1354,1).getEffects(st.getPlayer(),st.getPlayer())

return "7.htm"

st.setState(COMPLETED)

 

#Regeneration

if event == "76":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1044,3).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Agility

if event == "77":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1087,3).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Clarity

if event == "78":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1397,3).getEffects(st.getPlayer(),st.getPlayer())

return "7.htm"

st.setState(COMPLETED)

 

#Advanced Block

if event == "79":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1304,3).getEffects(st.getPlayer(),st.getPlayer())

return "7.htm"

st.setState(COMPLETED)

 

#Kiss of Eva

if event == "80":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1073,1).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Greater Shield

if event == "81":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1389,3).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Wild Magic

if event == "82":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1303,1).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Body of Avatar

if event == "83":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1311,6).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Resist Aqua

if event == "84":

st.takeItems(ADENA_ID,0)

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1182,3),False,False)

return "7.htm"

st.setState(COMPLETED)

 

#Resist Fire

if event == "85":

st.takeItems(ADENA_ID,0)

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1191,3),False,False)

return "7.htm"

st.setState(COMPLETED)

 

#Resist Wind

if event == "86":

st.takeItems(ADENA_ID,0)

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1189,3),False,False)

return "7.htm"

st.setState(COMPLETED)

 

#Resist Poison

if event == "87":

st.takeItems(ADENA_ID,0)

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1033,3),False,False)

return "7.htm"

st.setState(COMPLETED)

 

#Salvation

if event == "88":

st.takeItems(ADENA_ID,0)

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1410,1),False,False)

return "1.htm"

st.setState(COMPLETED)

 

#Prophecy of Water

if event == "89":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1355,1).getEffects(st.getPlayer(),st.getPlayer())

return "6.htm"

st.setState(COMPLETED)

 

#Prophecy of Fire

if event == "90":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1356,1).getEffects(st.getPlayer(),st.getPlayer())

return "6.htm"

st.setState(COMPLETED)

 

#Prophecy of Wind

if event == "91":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1357,1).getEffects(st.getPlayer(),st.getPlayer())

return "6.htm"

st.setState(COMPLETED)

 

#War Chant

if event == "92":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1390,3).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"

st.setState(COMPLETED)

 

#Earth Chant

if event == "93":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1391,3).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"

st.setState(COMPLETED)

 

#Blessing of Queen

if event == "94":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4699,3).getEffects(st.getPlayer(),st.getPlayer())

return "7.htm"

st.setState(COMPLETED)

 

#Gift of Queen

if event == "95":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4700,3).getEffects(st.getPlayer(),st.getPlayer())

return "7.htm"

st.setState(COMPLETED)

 

#Blessing of Seraphim

if event == "96":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4702,3).getEffects(st.getPlayer(),st.getPlayer())

return "7.htm"

st.setState(COMPLETED)

 

#Gift of Seraphim

if event == "97":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4703,3).getEffects(st.getPlayer(),st.getPlayer())

return "7.htm"

st.setState(COMPLETED)

 

#Chant of Spirit

if event == "65":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1362,1).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"

st.setState(COMPLETED)

 

#Chant of Victory

if event == "66":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1363,1).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"

st.setState(COMPLETED)

 

#chant of magnus

if event == "67":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1413,1).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"

st.setState(COMPLETED)

 

#Cancel

if event == "98":

st.getPlayer().stopAllEffects()

return "1.htm"

st.setState(COMPLETED)

 

#CPHEAL

if event == "69":

st.takeItems(ADENA_ID,0)

st.getPlayer().restoreCP()

st.getPlayer().restoreHP()

st.getPlayer().restoreMP()

return "1.htm"

st.setState(COMPLETED)

 

#Restore CP/HP/MP

if event == "100":

st.takeItems(ADENA_ID,0)

st.getPlayer().setCurrentCp(st.getPlayer().getMaxCp())

st.getPlayer().setCurrentHp(st.getPlayer().getMaxHp())

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

return "1.htm"

st.setState(State.COMPLETED)

 

#Restore HP

if event == "101":

st.takeItems(ADENA_ID,0)

st.getPlayer().restoreHP()

return "1.htm"

st.setState(State.COMPLETED)

 

#Restore MP

if event == "102":

st.takeItems(ADENA_ID,0)

st.getPlayer().restoreMP()

return "1.htm"

st.setState(State.COMPLETED)

 

 

if htmltext != event:

st.setState(COMPLETED)

st.exitQuest(1)

return htmltext

 

 

def onTalk (self,npc,player):

st = player.getQuestState(qn)

htmltext = "I have nothing to say to you"

st.setState(STARTED)

return InitialHtml

 

 

QUEST = Quest(20701,qn,"custom")

 

 

for npcId in NPC:

QUEST.addStartNpc(npcId)

QUEST.addTalkId(npcId)

 

Изменено пользователем masone
  • Upvote 1

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

import sys

from ru.catssoftware.gameserver.model.actor.instance import L2PcInstance

from java.util import Iterator

from ru.catssoftware.gameserver.datatables import SkillTable

from ru.catssoftware import L2DatabaseFactory

from ru.catssoftware.gameserver.model.quest import State

from ru.catssoftware.gameserver.model.quest import QuestState

from ru.catssoftware.gameserver.model.quest.jython import QuestJython as JQuest

 

qn = "20701_NPCBuffer"

 

NPC=[20701]

ADENA_ID=57

QuestId = 20701

QuestName = "NPCBuffer"

QuestDesc = "custom"

InitialHtml = "1.htm"

 

 

 

print "============> Buffer Free: LOADED"

 

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 < 0 or st.getPlayer().getLevel() < 1 :

htmltext = "Voce nao tem Adena,

Ou esta com level muito baixo. Tem que ter level 40 ou mais."

else:

st.takeItems(ADENA_ID,0)

st.getPlayer().setTarget(st.getPlayer())

 

if event == "2":

st.takeItems(ADENA_ID,0)

st.getPlayer().stopAllEffects()

SkillTable.getInstance().getInfo(4344,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4346,4).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4349,2).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1389,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4345,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4347,6).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4348,6).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4348,6).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4352,2).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4354,4).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1087,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4360,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4358,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4357,2).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4359,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1032,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4342,2).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1397,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(264,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(266,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(267,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(268,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(269,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(304,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(271,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(274,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(275,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(310,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1363,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1323,1).getEffects(st.getPlayer(),st.getPlayer())

return "1.htm"

st.setState(COMPLETED)

 

if event == "3":

st.takeItems(ADENA_ID,0)

st.getPlayer().stopAllEffects()

SkillTable.getInstance().getInfo(4344,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4346,4).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4349,2).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4353,6).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1389,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4347,6).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4348,6).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4355,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4356,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4352,2).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1303,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1087,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1397,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1044,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4351,6).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(264,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(266,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(268,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(267,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(269,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(304,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(273,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(276,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(365,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1413,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1323,1).getEffects(st.getPlayer(),st.getPlayer())

return "1.htm"

st.setState(COMPLETED)

 

if event == "4":

st.takeItems(ADENA_ID,0)

st.getPlayer().stopAllEffects()

SkillTable.getInstance().getInfo(4344,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4346,4).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4349,2).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1389,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4345,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4347,6).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4348,6).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4352,2).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4354,4).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1087,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4360,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4358,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4357,2).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4359,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1032,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4342,2).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1397,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(264,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(266,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(267,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(268,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(269,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(304,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(271,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(274,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(275,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(310,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1363,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1323,1).getEffects(st.getPlayer(),st.getPlayer())

return "1.htm"

st.setState(COMPLETED)

 

if event == "5":

st.takeItems(ADENA_ID,0)

st.getPlayer().stopAllEffects()

SkillTable.getInstance().getInfo(4344,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4346,4).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4349,2).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4345,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1388,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4347,6).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4348,6).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4352,2).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1087,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4360,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4358,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4357,2).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4359,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1032,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(4342,2).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1397,3).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(264,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(266,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(267,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(268,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(269,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(304,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(271,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(274,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(275,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1363,1).getEffects(st.getPlayer(),st.getPlayer())

SkillTable.getInstance().getInfo(1323,1).getEffects(st.getPlayer(),st.getPlayer())

return "1.htm"

st.setState(COMPLETED)

 

if event == "6":

st.takeItems(ADENA_ID,0)

return "1.htm"

st.setState(COMPLETED)

 

#Wind Walk

if event == "7":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4342,2).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Decrease Weight

if event == "8":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4343,3).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Shield

if event == "9":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4344,3).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Might

if event == "10":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4345,3).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Mental Shield

if event == "11":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4346,4).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Bless the Body

if event == "12":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4347,6).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Bless the Soul

if event == "13":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4348,6).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Magic Barrier

if event == "14":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4349,2).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Resist Shock

if event == "15":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4350,4).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Concentration

if event == "16":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4351,6).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Berserker Spirit

if event == "17":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4352,2).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Bless Shield

if event == "18":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4353,6).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Vampiric Rage

if event == "19":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4354,4).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Acumen

if event == "20":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4355,3).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Empower

if event == "21":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4356,3).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Haste

if event == "22":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4357,2).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Guidance

if event == "23":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4358,3).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Focus

if event == "24":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4359,3).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Death Whisper

if event == "25":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4360,3).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

if event == "26":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(271,1).getEffects(st.getPlayer(),st.getPlayer())

return "4.htm"

 

if event == "27":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(272,1).getEffects(st.getPlayer(),st.getPlayer())

return "4.htm"

 

if event == "28":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(273,1).getEffects(st.getPlayer(),st.getPlayer())

return "4.htm"

 

if event == "29":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(274,1).getEffects(st.getPlayer(),st.getPlayer())

return "4.htm"

 

if event == "30":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(275,1).getEffects(st.getPlayer(),st.getPlayer())

return "4.htm"

 

if event == "31":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(276,1).getEffects(st.getPlayer(),st.getPlayer())

return "4.htm"

 

if event == "32":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(277,1).getEffects(st.getPlayer(),st.getPlayer())

return "4.htm"

 

if event == "33":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(307,1).getEffects(st.getPlayer(),st.getPlayer())

return "4.htm"

 

if event == "34":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(309,1).getEffects(st.getPlayer(),st.getPlayer())

return "4.htm"

 

if event == "35":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(310,1).getEffects(st.getPlayer(),st.getPlayer())

return "4.htm"

 

if event == "36":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(311,1).getEffects(st.getPlayer(),st.getPlayer())

return "4.htm"

 

if event == "37":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(366,1).getEffects(st.getPlayer(),st.getPlayer())

return "4.htm"

 

if event == "38":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(365,1).getEffects(st.getPlayer(),st.getPlayer())

return "4.htm"

 

if event == "39":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(264,1).getEffects(st.getPlayer(),st.getPlayer())

return "3.htm"

 

if event == "40":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(265,1).getEffects(st.getPlayer(),st.getPlayer())

return "3.htm"

 

if event == "41":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(266,1).getEffects(st.getPlayer(),st.getPlayer())

return "3.htm"

 

if event == "42":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(267,1).getEffects(st.getPlayer(),st.getPlayer())

return "3.htm"

 

if event == "43":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(268,1).getEffects(st.getPlayer(),st.getPlayer())

return "3.htm"

 

if event == "44":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(269,1).getEffects(st.getPlayer(),st.getPlayer())

return "3.htm"

 

if event == "45":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(270,1).getEffects(st.getPlayer(),st.getPlayer())

return "3.htm"

 

if event == "46":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(304,1).getEffects(st.getPlayer(),st.getPlayer())

return "3.htm"

 

if event == "47":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(305,1).getEffects(st.getPlayer(),st.getPlayer())

return "3.htm"

 

if event == "48":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(306,1).getEffects(st.getPlayer(),st.getPlayer())

return "3.htm"

 

if event == "49":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(308,1).getEffects(st.getPlayer(),st.getPlayer())

return "3.htm"

 

if event == "50":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(363,1).getEffects(st.getPlayer(),st.getPlayer())

return "3.htm"

 

if event == "51":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(364,1).getEffects(st.getPlayer(),st.getPlayer())

return "3.htm"

 

if event == "52":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(349,1).getEffects(st.getPlayer(),st.getPlayer())

return "3.htm"

st.setState(COMPLETED)

 

 

#Chant of Battle

if event == "53":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1007,3).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"

st.setState(COMPLETED)

 

#Chant of Shielding

if event == "54":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1009,3).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"

st.setState(COMPLETED)

 

#Chant of Fire

if event == "55":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1006,3).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"

st.setState(COMPLETED)

 

#Chant of Flame

if event == "56":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1002,3).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"

st.setState(COMPLETED)

 

#Chant of life

if event == "57":

st.takeItems(ADENA_ID,0)

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1229,18),False,False)

return "5.htm"

st.setState(COMPLETED)

 

#Chant of Fury

if event == "58":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1251,2).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"

st.setState(COMPLETED)

 

#Chant of Evasion

if event == "59":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1252,3).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"

st.setState(COMPLETED)

 

#Chant of Rage

if event == "60":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1253,3).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"

st.setState(COMPLETED)

 

#Chant of Revenge

if event == "61":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1284,3).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"

st.setState(COMPLETED)

 

#Chant of Vampire

if event == "62":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1310,4).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"

st.setState(COMPLETED)

 

#Chant of Eagle

if event == "63":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1309,3).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"

st.setState(COMPLETED)

 

#Chant of Predator

if event == "64":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1308,3).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"

st.setState(COMPLETED)

 

#Greater Might

if event == "71":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1388,3).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Noblesse Blessing

if event == "70":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1323,1).getEffects(st.getPlayer(),st.getPlayer())

return "1.htm"

st.setState(COMPLETED)

 

#Invigor

if event == "72":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1032,3).getEffects(st.getPlayer(),st.getPlayer())

return "7.htm"

st.setState(COMPLETED)

 

#Elemental Protection

if event == "73":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1352,1).getEffects(st.getPlayer(),st.getPlayer())

return "7.htm"

st.setState(COMPLETED)

 

#Divine Protection

if event == "74":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1353,1).getEffects(st.getPlayer(),st.getPlayer())

return "7.htm"

st.setState(COMPLETED)

 

#Arcane Protection

if event == "75":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1354,1).getEffects(st.getPlayer(),st.getPlayer())

return "7.htm"

st.setState(COMPLETED)

 

#Regeneration

if event == "76":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1044,3).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Agility

if event == "77":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1087,3).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Clarity

if event == "78":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1397,3).getEffects(st.getPlayer(),st.getPlayer())

return "7.htm"

st.setState(COMPLETED)

 

#Advanced Block

if event == "79":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1304,3).getEffects(st.getPlayer(),st.getPlayer())

return "7.htm"

st.setState(COMPLETED)

 

#Kiss of Eva

if event == "80":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1073,1).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Greater Shield

if event == "81":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1389,3).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Wild Magic

if event == "82":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1303,1).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Body of Avatar

if event == "83":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1311,6).getEffects(st.getPlayer(),st.getPlayer())

return "2.htm"

st.setState(COMPLETED)

 

#Resist Aqua

if event == "84":

st.takeItems(ADENA_ID,0)

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1182,3),False,False)

return "7.htm"

st.setState(COMPLETED)

 

#Resist Fire

if event == "85":

st.takeItems(ADENA_ID,0)

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1191,3),False,False)

return "7.htm"

st.setState(COMPLETED)

 

#Resist Wind

if event == "86":

st.takeItems(ADENA_ID,0)

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1189,3),False,False)

return "7.htm"

st.setState(COMPLETED)

 

#Resist Poison

if event == "87":

st.takeItems(ADENA_ID,0)

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1033,3),False,False)

return "7.htm"

st.setState(COMPLETED)

 

#Salvation

if event == "88":

st.takeItems(ADENA_ID,0)

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1410,1),False,False)

return "1.htm"

st.setState(COMPLETED)

 

#Prophecy of Water

if event == "89":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1355,1).getEffects(st.getPlayer(),st.getPlayer())

return "6.htm"

st.setState(COMPLETED)

 

#Prophecy of Fire

if event == "90":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1356,1).getEffects(st.getPlayer(),st.getPlayer())

return "6.htm"

st.setState(COMPLETED)

 

#Prophecy of Wind

if event == "91":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1357,1).getEffects(st.getPlayer(),st.getPlayer())

return "6.htm"

st.setState(COMPLETED)

 

#War Chant

if event == "92":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1390,3).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"

st.setState(COMPLETED)

 

#Earth Chant

if event == "93":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1391,3).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"

st.setState(COMPLETED)

 

#Blessing of Queen

if event == "94":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4699,3).getEffects(st.getPlayer(),st.getPlayer())

return "7.htm"

st.setState(COMPLETED)

 

#Gift of Queen

if event == "95":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4700,3).getEffects(st.getPlayer(),st.getPlayer())

return "7.htm"

st.setState(COMPLETED)

 

#Blessing of Seraphim

if event == "96":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4702,3).getEffects(st.getPlayer(),st.getPlayer())

return "7.htm"

st.setState(COMPLETED)

 

#Gift of Seraphim

if event == "97":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(4703,3).getEffects(st.getPlayer(),st.getPlayer())

return "7.htm"

st.setState(COMPLETED)

 

#Chant of Spirit

if event == "65":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1362,1).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"

st.setState(COMPLETED)

 

#Chant of Victory

if event == "66":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1363,1).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"

st.setState(COMPLETED)

 

#chant of magnus

if event == "67":

st.takeItems(ADENA_ID,0)

SkillTable.getInstance().getInfo(1413,1).getEffects(st.getPlayer(),st.getPlayer())

return "5.htm"

st.setState(COMPLETED)

 

#Cancel

if event == "98":

st.getPlayer().stopAllEffects()

return "1.htm"

st.setState(COMPLETED)

 

#CPHEAL

if event == "69":

st.takeItems(ADENA_ID,0)

st.getPlayer().restoreCP()

st.getPlayer().restoreHP()

st.getPlayer().restoreMP()

return "1.htm"

st.setState(COMPLETED)

 

#Restore CP/HP/MP

if event == "100":

st.takeItems(ADENA_ID,0)

st.getPlayer().setCurrentCp(st.getPlayer().getMaxCp())

st.getPlayer().setCurrentHp(st.getPlayer().getMaxHp())

st.getPlayer().setCurrentMp(st.getPlayer().getMaxMp())

return "1.htm"

st.setState(State.COMPLETED)

 

#Restore HP

if event == "101":

st.takeItems(ADENA_ID,0)

st.getPlayer().restoreHP()

return "1.htm"

st.setState(State.COMPLETED)

 

#Restore MP

if event == "102":

st.takeItems(ADENA_ID,0)

st.getPlayer().restoreMP()

return "1.htm"

st.setState(State.COMPLETED)

 

 

if htmltext != event:

st.setState(COMPLETED)

st.exitQuest(1)

return htmltext

 

 

def onTalk (self,npc,player):

st = player.getQuestState(qn)

htmltext = "I have nothing to say to you"

st.setState(STARTED)

return InitialHtml

 

 

QUEST = Quest(20701,qn,"custom")

 

 

for npcId in NPC:

QUEST.addStartNpc(npcId)

QUEST.addTalkId(npcId)

 

 

К сожалению не помогло (( Но + поставил :friends:

 

===========================================-[ Events/Script/CoreScript/Engine ]

[iNFO 15:26:20]: Script Engine Manager: loaded 48 script(s) form corequests.jar

[ERROR 15:26:20]: Error loading script chedir

javax.script.ScriptException: Traceback (innermost last):

(no code object) at line 0

SyntaxError: ('invalid syntax', ('__init__.py', 25, 1, 'def __init__(self,id,nam

e,descr): JQuest.__init__(self,id,name,descr)'))

 

at com.l2jserver.script.jython.JythonScriptEngine.compileScript(JythonSc

riptEngine.java:352)

at com.l2jserver.script.jython.JythonScriptEngine.eval(JythonScriptEngin

e.java:218)

at com.l2jserver.script.jython.JythonScriptEngine.eval(JythonScriptEngin

e.java:224)

at ru.catssoftware.gameserver.scripting.L2ScriptEngineManager.executeScr

ipt(L2ScriptEngineManager.java:421)

at ru.catssoftware.gameserver.scripting.L2ScriptEngineManager.executeScr

ipt(L2ScriptEngineManager.java:327)

at ru.catssoftware.gameserver.scripting.L2ScriptEngineManager.loadScript

s(L2ScriptEngineManager.java:233)

at ru.catssoftware.gameserver.scripting.L2ScriptEngineManager.loadScript

s(L2ScriptEngineManager.java:245)

at ru.catssoftware.gameserver.scripting.L2ScriptEngineManager.loadScript

s(L2ScriptEngineManager.java:245)

at ru.catssoftware.gameserver.scripting.L2ScriptEngineManager.loadScript

s(L2ScriptEngineManager.java:245)

at ru.catssoftware.gameserver.scripting.L2ScriptEngineManager.loadScript

s(L2ScriptEngineManager.java:252)

at ru.catssoftware.gameserver.L2GameServer.(L2GameServer.java:338)

 

at ru.catssoftware.gameserver.util.BootManager.(BootManager.java:4

6)

at ru.catssoftware.gameserver.util.BootManager.main(BootManager.java:17)

 

Caused by: Traceback (innermost last):

(no code object) at line 0

SyntaxError: ('invalid syntax', ('__init__.py', 25, 1, 'def __init__(self,id,nam

e,descr): JQuest.__init__(self,id,name,descr)'))

 

at org.python.core.parser.fixParseError(Unknown Source)

at org.python.core.parser.parse(Unknown Source)

at org.python.core.Py.compile_flags(Unknown Source)

at org.python.core.Py.compile_flags(Unknown Source)

at org.python.core.__builtin__.compile(Unknown Source)

at com.l2jserver.script.jython.JythonScriptEngine.compileScript(JythonSc

riptEngine.java:348)

... 12 more

 

Изменено пользователем Lexicon

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

этого поставь http://rghost.ru/54526853

поставил , ГС не ругается все нормально , но прии нажатии получит баф просто пропадает окно и всё (

 

pre_1398253646__1.jpg

 

 

pre_1398253904__2.jpg

 

и пропадает окно

 

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

там подправь bypass в html

 

главная html

bypass -h npc_%objectId%_Quest 9990_buffer

 

а в самих html(скрипт)

bypass -h Quest 9990_buffer

Изменено пользователем masone
  • Upvote 1

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

там подправь bypass в html

 

главная html

bypass -h npc_%objectId%_Quest 9990_buffer

 

а в самих html(скрипт)

bypass -h Quest 9990_buffer

 

Cпс ))

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

Для публикации сообщений создайте учётную запись или авторизуйтесь

Вы должны быть пользователем, чтобы оставить комментарий

Создать учетную запись

Зарегистрируйте новую учётную запись в нашем сообществе. Это очень просто!

Регистрация нового пользователя

Войти

Уже есть аккаунт? Войти в систему.

Войти
Авторизация  

  • Последние посетители   0 пользователей онлайн

    Ни одного зарегистрированного пользователя не просматривает данную страницу

×
×
  • Создать...