Jump to content
  • 0

[help] BUFFER IMPORT PROBLEM.. + PHOTO


Question

Posted

lpon paidia

 

to pack mou eine l2jbrasil

to client interlude..

 

 

bitmapy.png 

 

Do not meat the Criteria...akolou9isa kai to guide tou Coyote™ http://www.maxcheaters.com/forum/index.php?topic=113154.0

alla dn katafera tpt plz paidia eine anagkh..

 

 

 

edit:plz help

 

 

 

7 answers to this question

Recommended Posts

  • 0
Posted

Exeis valei ta swsta imports?Gia brasil einai auta

 

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

  • 0
Posted

__init__.py sto jscript/custom

__all__ = [
'3995_echo',
'4000_ShadowWeapons',
'5000_MissQueen',
'7000_HeroItems',
'8000_RaidbossInfo',
'6050_KetraOrcSupport',
'6051_VarkaSilenosSupport',
'9999_NPCBuffer'
]
print ""
print "importing custom data ..."
for name in __all__ :
    try :
        __import__('data.jscript.custom.'+name,globals(), locals(), ['__init__'], -1)
    except:
        print "failed to import quest : ",name
print "... done"
print ""

 

 

 

 

__init__.py sto jscript\custom\9999_NPCBuffer

 

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

qn = "9999_NPCBuffer"

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

print "importing custom: 9999: NPCBuffer"

class Quest (JQuest) :

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


def onEvent(self,event,st):
	htmltext = event
	count=st.getQuestItemsCount(ADENA_ID)
	if count < 150000  or st.getPlayer().getLevel() < 40 :
		htmltext = "<html><head><body>You dont have enough Adena,<br> or your level is too low. You must be 40 or higher.</body></html>"
	else:
		st.takeItems(ADENA_ID,0)
		st.getPlayer().setTarget(st.getPlayer())

		if event == "2":
			st.takeItems(ADENA_ID,160000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4360,3),False,False)
			st.getPlayer().restoreHPMP()		
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4359,3),False,False)
			st.getPlayer().restoreHPMP()
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4358,3),False,False)
			st.getPlayer().restoreHPMP()
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4357,2),False,False)
			st.getPlayer().restoreHPMP()
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4354,4),False,False)
			st.getPlayer().restoreHPMP()
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4353,6),False,False)
			st.getPlayer().restoreHPMP()
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4350,4),False,False)
			st.getPlayer().restoreHPMP()
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4347,6),False,False)
			st.getPlayer().restoreHPMP()			
			return "4.htm"
			st.setState(COMPLETED)

		if event == "3": 
			st.takeItems(ADENA_ID,80000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4352,2),False,False)
			st.getPlayer().restoreHPMP()
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4351,6),False,False)	
			st.getPlayer().restoreHPMP()	
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4355,3),False,False)
			st.getPlayer().restoreHPMP()
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4356,3),False,False)
			st.getPlayer().restoreHPMP()				
			return "4.htm"
			st.setState(COMPLETED)

		if event == "4":
			st.takeItems(ADENA_ID,140000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4346,4),False,False)
			st.getPlayer().restoreHPMP()
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4342,2),False,False)
			st.getPlayer().restoreHPMP()
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4343,3),False,False)
			st.getPlayer().restoreHPMP()
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4344,3),False,False)
			st.getPlayer().restoreHPMP()
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4345,3),False,False)
			st.getPlayer().restoreHPMP()
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4349,2),False,False)
			st.getPlayer().restoreHPMP()
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4348,6),False,False)
			st.getPlayer().restoreHPMP()				
			return "4.htm"
			st.setState(COMPLETED)
                        
		if event == "5":
			st.takeItems(ADENA_ID,400000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4360,3),False,False)	
			st.getPlayer().restoreHPMP()	
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4359,3),False,False)
			st.getPlayer().restoreHPMP()
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4358,3),False,False)
			st.getPlayer().restoreHPMP()
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4357,2),False,False)
			st.getPlayer().restoreHPMP()
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4354,4),False,False)
			st.getPlayer().restoreHPMP()
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4353,6),False,False)
			st.getPlayer().restoreHPMP()
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4350,4),False,False)
			st.getPlayer().restoreHPMP()
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4348,6),False,False)
			st.getPlayer().restoreHPMP()
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4352,2),False,False)
			st.getPlayer().restoreHPMP()
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4351,6),False,False)
			st.getPlayer().restoreHPMP()		
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4355,3),False,False)
			st.getPlayer().restoreHPMP()
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4356,3),False,False)
			st.getPlayer().restoreHPMP()
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4346,4),False,False)
			st.getPlayer().restoreHPMP()
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4342,2),False,False)
			st.getPlayer().restoreHPMP()
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4343,3),False,False)
			st.getPlayer().restoreHPMP()
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4344,3),False,False)
			st.getPlayer().restoreHPMP()
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4345,3),False,False)
			st.getPlayer().restoreHPMP()
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4349,2),False,False)
			st.getPlayer().restoreHPMP()
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4347,6),False,False)	
			st.getPlayer().restoreHPMP()				
			return "4.htm"			
			st.setState(COMPLETED)

		if event == "6":
			st.takeItems(ADENA_ID,1000)
			st.getPlayer().restoreHPMP()
			return "1.htm"		
			st.setState(COMPLETED)

		#Wind Walk
		if event == "7":
			st.takeItems(ADENA_ID,25000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4342,2),False,False)
			st.getPlayer().restoreHPMP()
			return "5.htm"		
			st.setState(COMPLETED)

		#Decrease Weight
		if event == "8":
			st.takeItems(ADENA_ID,25000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4343,3),False,False)
			st.getPlayer().restoreHPMP()
			return "5.htm"		
			st.setState(COMPLETED)

		#Shield
		if event == "9":
			st.takeItems(ADENA_ID,25000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4344,3),False,False)
			st.getPlayer().restoreHPMP()
			return "5.htm"		
			st.setState(COMPLETED)

		#Might
		if event == "10":
			st.takeItems(ADENA_ID,25000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4345,3),False,False)
			st.getPlayer().restoreHPMP()
			return "5.htm"		
			st.setState(COMPLETED)

		#Mental Shield
		if event == "11":
			st.takeItems(ADENA_ID,25000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4346,4),False,False)
			st.getPlayer().restoreHPMP()
			return "5.htm"		
			st.setState(COMPLETED)

		#Bless the Body
		if event == "12":
			st.takeItems(ADENA_ID,25000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4347,6),False,False)
			st.getPlayer().restoreHPMP()
			return "5.htm"		
			st.setState(COMPLETED)

		#Bless the Soul
		if event == "13":
			st.takeItems(ADENA_ID,25000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4348,6),False,False)
			st.getPlayer().restoreHPMP()
			return "5.htm"		
			st.setState(COMPLETED)

		#Magic Barrier
		if event == "14":
			st.takeItems(ADENA_ID,25000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4349,2),False,False)
			st.getPlayer().restoreHPMP()
			return "5.htm"		
			st.setState(COMPLETED)

		#Resist Shock
		if event == "15":
			st.takeItems(ADENA_ID,25000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4350,4),False,False)
			st.getPlayer().restoreHPMP()
			return "5.htm"		
			st.setState(COMPLETED)

		#Concentration
		if event == "16":
			st.takeItems(ADENA_ID,25000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4351,6),False,False)
			st.getPlayer().restoreHPMP()
			return "5.htm"		
			st.setState(COMPLETED)

		#Berserker Spirit
		if event == "17":
			st.takeItems(ADENA_ID,25000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4352,2),False,False)
			st.getPlayer().restoreHPMP()
			return "5.htm"		
			st.setState(COMPLETED)

		#Bless Shield
		if event == "18":
			st.takeItems(ADENA_ID,25000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4353,6),False,False)
			st.getPlayer().restoreHPMP()
			return "5.htm"		
			st.setState(COMPLETED)

		#Vampiric Rage
		if event == "19":
			st.takeItems(ADENA_ID,25000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4354,4),False,False)
			st.getPlayer().restoreHPMP()
			return "5.htm"		
			st.setState(COMPLETED)

		#Acumen
		if event == "20":
			st.takeItems(ADENA_ID,25000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4355,3),False,False)
			st.getPlayer().restoreHPMP()
			return "5.htm"		
			st.setState(COMPLETED)

		#Empower
		if event == "21":
			st.takeItems(ADENA_ID,25000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4356,3),False,False)
			st.getPlayer().restoreHPMP()
			return "5.htm"		
			st.setState(COMPLETED)

		#Haste
		if event == "22":
			st.takeItems(ADENA_ID,25000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4357,2),False,False)
			st.getPlayer().restoreHPMP()
			return "5.htm"		
			st.setState(COMPLETED)

		#Guidance
		if event == "23":
			st.takeItems(ADENA_ID,25000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4358,3),False,False)
			st.getPlayer().restoreHPMP()
			return "5.htm"		
			st.setState(COMPLETED)
                        
		#Focus
		if event == "24":
			st.takeItems(ADENA_ID,25000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4359,3),False,False)
			st.getPlayer().restoreHPMP()
			return "5.htm"		
			st.setState(COMPLETED)
                        
                        #Death Whisper
		if event == "25":
			st.takeItems(ADENA_ID,25000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4360,3),False,False)
			st.getPlayer().restoreHPMP()
			return "5.htm"		
			st.setState(COMPLETED)
                        
                        #Prophecy Of Water
		if event == "70":
			st.takeItems(ADENA_ID,25000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1355,1),False,False)
			st.getPlayer().restoreHPMP()
			return "5.htm"		
			st.setState(COMPLETED)

                        #Prophecy Of Fire
		if event == "71":
			st.takeItems(ADENA_ID,25000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1356,1),False,False)
			st.getPlayer().restoreHPMP()
			return "5.htm"		
			st.setState(COMPLETED)

                        #Chant Of Victory
		if event == "72":
			st.takeItems(ADENA_ID,25000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1363,1),False,False)
			st.getPlayer().restoreHPMP()
			return "5.htm"		
			st.setState(COMPLETED)

                        #Elemental Protection
		if event == "73":
			st.takeItems(ADENA_ID,25000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1352,1),False,False)
			st.getPlayer().restoreHPMP()
			return "5.htm"		
			st.setState(COMPLETED)

                        #Clarity
		if event == "74":
			st.takeItems(ADENA_ID,25000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(7060,1),False,False)
			st.getPlayer().restoreHPMP()
			return "5.htm"		
			st.setState(COMPLETED)

                        #Greater Shield
		if event == "75":
			st.takeItems(ADENA_ID,25000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(7058,1),False,False)
			st.getPlayer().restoreHPMP()
			return "5.htm"		
			st.setState(COMPLETED)

                        #Greater Might
		if event == "76":
			st.takeItems(ADENA_ID,25000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(7057,1),False,False)
			st.getPlayer().restoreHPMP()
			return "5.htm"		
			st.setState(COMPLETED)

                        #Blessing Of Noblesse
		if event == "77":
			st.takeItems(ADENA_ID,25000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1323,1),False,False)
			st.getPlayer().restoreHPMP()
			return "5.htm"		
			st.setState(COMPLETED)

                        #Blessing Of Noblesse
		if event == "78":
			st.takeItems(ADENA_ID,25000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1303,2),False,False)
			st.getPlayer().restoreHPMP()
			return "5.htm"		
			st.setState(COMPLETED)

		if event == "26":
			st.takeItems(ADENA_ID,20000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(271,1),False,False)	
			st.getPlayer().restoreHPMP()
			return "2.htm"

		if event == "27":
			st.takeItems(ADENA_ID,20000)	
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(272,1),False,False)
			st.getPlayer().restoreHPMP()
			return "2.htm"

		if event == "28":
			st.takeItems(ADENA_ID,20000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(273,1),False,False)
			st.getPlayer().restoreHPMP()
			return "2.htm"

		if event == "29":
			st.takeItems(ADENA_ID,20000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(274,1),False,False)
			st.getPlayer().restoreHPMP()
			return "2.htm"

		if event == "30":
			st.takeItems(ADENA_ID,20000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(275,1),False,False)
			st.getPlayer().restoreHPMP()
			return "2.htm"

		if event == "31":
			st.takeItems(ADENA_ID,20000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(276,1),False,False)
			st.getPlayer().restoreHPMP()
			return "2.htm"

		if event == "32":
			st.takeItems(ADENA_ID,20000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(277,1),False,False)
			st.getPlayer().restoreHPMP()
			return "2.htm"

		if event == "33":
			st.takeItems(ADENA_ID,20000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(307,1),False,False)
			st.getPlayer().restoreHPMP()
			return "2.htm"

		if event == "34":
			st.takeItems(ADENA_ID,20000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(309,1),False,False)
			st.getPlayer().restoreHPMP()
			return "2.htm"

		if event == "35":
			st.takeItems(ADENA_ID,20000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(310,1),False,False)
			st.getPlayer().restoreHPMP()
			return "2.htm"

		if event == "36":
			st.takeItems(ADENA_ID,20000)		
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(311,1),False,False)
			st.getPlayer().restoreHPMP()
			return "2.htm"

		if event == "37":
			st.takeItems(ADENA_ID,20000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(366,1),False,False)
			st.getPlayer().restoreHPMP()
			return "2.htm"

		if event == "38":
			st.takeItems(ADENA_ID,20000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(365,1),False,False)
			st.getPlayer().restoreHPMP()			
			return "2.htm"

		if event == "39":
			st.takeItems(ADENA_ID,20000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(264,1),False,False)	
			st.getPlayer().restoreHPMP()
			return "3.htm"

		if event == "40":
			st.takeItems(ADENA_ID,20000)	
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(265,1),False,False)
			st.getPlayer().restoreHPMP()
			return "3.htm"

		if event == "41":
			st.takeItems(ADENA_ID,20000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(266,1),False,False)
			st.getPlayer().restoreHPMP()
			return "3.htm"

		if event == "42":
			st.takeItems(ADENA_ID,20000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(267,1),False,False)
			st.getPlayer().restoreHPMP()
			return "3.htm"

		if event == "43":
			st.takeItems(ADENA_ID,20000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(268,1),False,False)
			st.getPlayer().restoreHPMP()
			return "3.htm"

		if event == "44":
			st.takeItems(ADENA_ID,20000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(269,1),False,False)
			st.getPlayer().restoreHPMP()
			return "3.htm"

		if event == "45":
			st.takeItems(ADENA_ID,20000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(270,1),False,False)
			st.getPlayer().restoreHPMP()
			return "3.htm"

		if event == "46":
			st.takeItems(ADENA_ID,20000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(304,1),False,False)
			st.getPlayer().restoreHPMP()
			return "3.htm"

		if event == "47":
			st.takeItems(ADENA_ID,20000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(305,1),False,False)
			st.getPlayer().restoreHPMP()
			return "3.htm"

		if event == "48":
			st.takeItems(ADENA_ID,20000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(306,1),False,False)
			st.getPlayer().restoreHPMP()
			return "3.htm"	

		if event == "49":
			st.takeItems(ADENA_ID,20000)	
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(308,1),False,False)
			st.getPlayer().restoreHPMP()
			return "3.htm"

		if event == "50":
			st.takeItems(ADENA_ID,20000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(363,1),False,False)
			st.getPlayer().restoreHPMP()
			return "3.htm"

		if event == "51":
			st.takeItems(ADENA_ID,20000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(364,1),False,False)
			st.getPlayer().restoreHPMP()
			return "3.htm"	

		if event == "52":
			st.takeItems(ADENA_ID,20000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(349,1),False,False)
			st.getPlayer().restoreHPMP()
			return "3.htm"		
			st.setState(COMPLETED)


		#Chant of Battle
		if event == "53":
			st.takeItems(ADENA_ID,20000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1007,3),False,False)
			st.getPlayer().restoreHPMP()
			return "7.htm"
			st.setState(COMPLETED)

		#Chant of Shielding
		if event == "54":
			st.takeItems(ADENA_ID,20000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1009,3),False,False)
			st.getPlayer().restoreHPMP()
			return "7.htm"
			st.setState(COMPLETED)

		#Chant of Fire
		if event == "55":
			st.takeItems(ADENA_ID,20000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1006,3),False,False)
			st.getPlayer().restoreHPMP()
			return "7.htm"
			st.setState(COMPLETED)

		#Chant of Flame
		if event == "56":
			st.takeItems(ADENA_ID,20000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1002,3),False,False)
			st.getPlayer().restoreHPMP()
			return "7.htm"
			st.setState(COMPLETED)

		#Chant of life
		if event == "57":
			st.takeItems(ADENA_ID,20000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1229,18),False,False)
			st.getPlayer().restoreHPMP()
			return "7.htm"
			st.setState(COMPLETED)

		#Chant of Fury
		if event == "58":
			st.takeItems(ADENA_ID,20000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1251,2),False,False)
			st.getPlayer().restoreHPMP()
			return "7.htm"
			st.setState(COMPLETED)

		#Chant of Evasion
		if event == "59":
			st.takeItems(ADENA_ID,20000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1252,3),False,False)
			st.getPlayer().restoreHPMP()
			return "7.htm"
			st.setState(COMPLETED)

		#Chant of Rage
		if event == "60":
			st.takeItems(ADENA_ID,20000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1253,3),False,False)
			st.getPlayer().restoreHPMP()
			return "7.htm"
			st.setState(COMPLETED)

		#Chant of Revenge
		if event == "61":
			st.takeItems(ADENA_ID,20000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1284,3),False,False)
			st.getPlayer().restoreHPMP()
			return "7.htm"
			st.setState(COMPLETED)

		#Chant of Vampire
		if event == "62":
			st.takeItems(ADENA_ID,20000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1310,4),False,False)
			st.getPlayer().restoreHPMP()
			return "7.htm"
			st.setState(COMPLETED)

		#Chant of Eagle
		if event == "63":
			st.takeItems(ADENA_ID,20000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1309,3),False,False)
			st.getPlayer().restoreHPMP()
			return "7.htm"
			st.setState(COMPLETED)

		#Chant of Predator
		if event == "64":
			st.takeItems(ADENA_ID,20000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1308,3),False,False)
			st.getPlayer().restoreHPMP()
			return "7.htm"
			st.setState(COMPLETED)

		#Chant of Spirit
		if event == "65":
			st.takeItems(ADENA_ID,20000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1362,1),False,False)
			st.getPlayer().restoreHPMP()
			return "7.htm"
			st.setState(COMPLETED)

		#Chant of Victory
		if event == "66":
			st.takeItems(ADENA_ID,20000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1363,1),False,False)
			st.getPlayer().restoreHPMP()
			return "7.htm"
			st.setState(COMPLETED)

		#chant of magnus
		if event == "67":
			st.takeItems(ADENA_ID,20000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1413,1),False,False)
			st.getPlayer().restoreHPMP()
			return "7.htm"
			st.setState(COMPLETED)	

		#MPreg
		if event == "68":
			st.takeItems(ADENA_ID,1000)
			st.getPlayer().restoreHPMP()
			return "1.htm"		
			st.setState(COMPLETED)

		#Ritual Of Life
		if event == "69":
			st.takeItems(ADENA_ID,25000)
			st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1306,6),False,False)
			st.getPlayer().restoreHPMP()
			return "1.htm"		
			st.setState(COMPLETED)	

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


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

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

QUEST.setInitialState(CREATED)

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • Hello, I'm looking for classic client for l2 gold or l2 gold weapons for classic 166 version
    • Good afternoon   ⚡CAN'T GO TO THE ONLINE STORE? OPEN THE SITE VIA VPN OR TOR BROWSER⚡ ⚡PREMIUM QUALITY ACCOUNTS, INSTANT DELIVERY, FREE CONSULTATIONS, RELIABLE WORK⚡   ✔ Ready accounts ✔   BUSINESS ACCOUNTS ☟ Blackcatcard Business LV, Volet com (AdvCash) Business EU, Xapo Bank Business EU, Finom Business, PayPal Business, Payset Business, Stripe Business, Payoneer Business EU, Wise Business UK/EU, Revolut Business EU/UK, N26 Business DE, Wallester Business EU, Mistertango Business LV   BANKS, NATIONAL BANKS ☟ Ceska Sporitelna, KASIKORNBANK, BBVA, CommerzBank, Santander, Kaspi Bank, AlfaBank, Raiffeisen, mBank, Paribas, Bereke Bank, Freedom Bank   PAYMENT SYSTEMS ☟ Bunq on emulator (DE, NL, FR, ES, IE ibans), Revolut on emulator (UK/EU), ICard, BlackCatCard, Vivid DE, Bankera, Bitsa, Wise EU/UK, N26 DE on emulator, Skrill, Neteller, Trasta, Wirex, Lama, Paysera, 4x4 io, Weststein, Paysafecard, Paysend, Genome, Conotoxia, Mybrocard, Payz Silver, Pockit UK, NagaPay, Volet com, SpectroCoin, SwissMoney, Yuh, Lydia / Sumeria, Ka.App, Wittix, Western Union, MyGuava   CRYPTOEXCHANGE ☟ Poloniex, Bitmart, Kraken, WhiteBit, Quppy, Nexo, Gate, OKX, Paybis, Paxful, Huobi (HTX), xcoins com, Bit2Me, Bybit LVL 2, KuCoin, Binance LVL 2, Mexc, Latoken   Contact via telegram - in the first post of the topic!
    • Sell "Amoral" Classic Armor and Weapon.   Custom "Amoral" Draconic Set YouTube Custom "Amoral" Imperial Set YouTube Custom "Amoral" Dark Crystal Robe YouTube Custom "Amoral" Classic S-Grade Weapon YouTube My Contacts Telegram  
    • Greetings to all! I offer a scope for client modification. What services do I provide: 1) Transfer of any Weapon, Armor, Accessories, from any chronicles to yours. 2) Creating exclusive add-ons. 3) Repainting of Armor, Weapons аnd Accessories. 4) Packing the icons you need and other things. 5) Creating NPCs with and without effects. 6) Create Monsters and Raid bosses, with effects and sounds. 7) HTLM NPC design. Creating Buttons and other things for your project. And much more If you have any questions, write in  Telegram. You can find some of the works here  YouTube
  • Topics

×
×
  • Create New...