Jump to content
  • 0

Buffer Effect.


Rio

Question

Hi guys i saw i post from elfo : http://www.maxcheaters.com/topic/181446-just-another-buffer/?hl=buffer

And i want to make my buffer when it gives buffs to show buff effects like elfo's.
I use python buffer for l2jfrozen. Please give me an example on this code:

 

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


 

Edited by Rio
Link to comment
Share on other sites

Recommended Posts

  • 0

Alright after many hours of experiment i finally managed to make the effects of buffs i choose from buffer to work:
 

st.takeItems(ADENA_ID,0)
                                st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1204,2),False,False)
				SkillTable.getInstance().getInfo(1204,2).getEffects(st.getPlayer(),st.getPlayer())
				return "2.htm"		
				st.setState(COMPLETED)

The problem now is that insead of buffer using effects on character the characters cast buffs on himself.
 

Link to comment
Share on other sites

  • 0

i think is here i am not sure 

with efect on player and npc

SkillTable.getInstance().getInfo(buffid, bufflevel).getEffects(this, player);

with effect on player not sure

SkillTable.getInstance().getInfo(buffid, bufflevel).getEffects(player, this);

 

but you can use this

player.useMagic(SkillTable.getInstance().getInfo(buffid, bufflevel), false, false);

the bad is use MP on cast skill

Edited by tazerman2
Link to comment
Share on other sites

  • 0

with efect on player and npc
SkillTable.getInstance().getInfo(buffid, bufflevel).getEffects(this, player);
with effect on player not sure
SkillTable.getInstance().getInfo(buffid, bufflevel).getEffects(player, this);

doesnt work the code needs .usemagic

something like this:

 

st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1204,2),False,False)

but instead of st.player, i want the npc to .usemagic effect on st.player

Link to comment
Share on other sites

  • 0

this buffer is with effect on player but is not good because take real skill and use it slow

you can see code and you can make some like in java 

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

qn = "9999_NPCBuffer"

NPC=[7784,7788,7790,7786,7778,7780,7782,7774,7776,7800,7802,7798,12836,12837,12835,12834,12833,8158,8160,8156,8152,8150,8154,12895,12896,12897,40006]
ADENA_ID=57
QuestId     = 9999
QuestName   = "NPCBuffer"
QuestDesc   = "custom"
InitialHtml = "672210.htm"

print "importing " + QuestDesc + ": " + str(QuestId) + ": " + QuestName + ": " + QuestName,

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
		if count < 0  or st.getPlayer().getLevel() < 1 :
			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.getPlayer().setTarget(st.getPlayer())
			
			if event == "6":
				st.takeItems
				st.getPlayer().restoreHP()
				return "672210.htm"		
				st.setState(COMPLETED)

			#Wind Walk
			if event == "7":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False) <--- special buff atk.Spd / Casting speed
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4342,2),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"		
				st.setState(COMPLETED)

			#Decrease Weight
			if event == "8":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False) <--- special buff atk.Spd / Casting speed
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4343,3),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"		
				st.setState(COMPLETED)

			#Shield
			if event == "9":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False) <--- special buff atk.Spd / Casting speed
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4344,3),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"		
				st.setState(COMPLETED)

			#Might
			if event == "10":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False) <--- special buff atk.Spd / Casting speed
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4345,3),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"		
				st.setState(COMPLETED)

			#Mental Shield
			if event == "11":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False) <--- special buff atk.Spd / Casting speed
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4346,4),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"		
				st.setState(COMPLETED)

			#Bless the Body
			if event == "12":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False) <--- special buff atk.Spd / Casting speed
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4347,6),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"		
				st.setState(COMPLETED)

			#Bless the Soul
			if event == "13":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False) <--- special buff atk.Spd / Casting speed
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4348,6),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"		
				st.setState(COMPLETED)

			#Magic Barrier
			if event == "14":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False) <--- special buff atk.Spd / Casting speed
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4349,2),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"		
				st.setState(COMPLETED)

			#Resist Shock
			if event == "15":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False) <--- special buff atk.Spd / Casting speed
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4350,4),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"		
				st.setState(COMPLETED)

			#Concentration
			if event == "16":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False) <--- special buff atk.Spd / Casting speed
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4351,6),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"		
				st.setState(COMPLETED)

			#Berserker Spirit
			if event == "17":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False) <--- special buff atk.Spd / Casting speed
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4352,2),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"		
				st.setState(COMPLETED)

			#Bless Shield
			if event == "18":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False) <--- special buff atk.Spd / Casting speed
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4353,6),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"		
				st.setState(COMPLETED)

			#Vampiric Rage
			if event == "19":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False) <--- special buff atk.Spd / Casting speed
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4354,4),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"		
				st.setState(COMPLETED)

			#Acumen
			if event == "20":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False) <--- special buff atk.Spd / Casting speed
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4355,3),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"		
				st.setState(COMPLETED)

			#Empower
			if event == "21":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False)
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4356,3),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"		
				st.setState(COMPLETED)

			#Haste
			if event == "22":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False)
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4357,2),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"		
				st.setState(COMPLETED)

			#Guidance
			if event == "23":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False)
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4358,3),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"		
				st.setState(COMPLETED)

			#Focus
			if event == "24":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False)
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4359,3),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"		
				st.setState(COMPLETED)

			#Death Whisper
			if event == "25":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False)
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4360,3),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"		
				st.setState(COMPLETED)

			if event == "26":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False)
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(271,1),False,False)	
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)

			if event == "27":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False)
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(272,1),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)

			if event == "28":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False)
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(273,1),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)

			if event == "29":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False)
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(274,1),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)

			if event == "30":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False)
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(275,1),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)

			if event == "31":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False)
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(276,1),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)

			if event == "32":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False)
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(277,1),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)

			if event == "33":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False)
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(307,1),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)

			if event == "34":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False)
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(309,1),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)

			if event == "35":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False)
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(310,1),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)

			if event == "36":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False)
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(311,1),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)

			if event == "37":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False)
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(366,1),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)

			if event == "38":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False)
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(365,1),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())			
				return "672210.htm"
				st.setState(COMPLETED)

			if event == "39":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False)
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(264,1),False,False)	
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)

			if event == "40":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False)
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(265,1),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)

			if event == "41":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False)
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(266,1),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)

			if event == "42":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False)
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(267,1),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)

			if event == "43":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False)
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(268,1),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)

			if event == "44":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False)
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(269,1),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)

			if event == "45":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False)
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(270,1),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)

			if event == "46":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False)
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(304,1),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)

			if event == "47":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False)
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(349,1),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)

			if event == "48":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False)
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(306,1),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)

			if event == "49":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False)
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(308,1),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)

			if event == "50":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False)
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(363,1),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)

			if event == "51":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False)
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(364,1),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)

			if event == "52":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False)
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(349,1),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)
				
				
			#Chant of Battle
			if event == "53":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False)
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1007,3),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)
				
			#Chant of Shielding
			if event == "54":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False)
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1009,3),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)
				
			#Chant of Fire
			if event == "55":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False)
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1006,3),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)
				
			#Chant of Flame
			if event == "56":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False)
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1002,3),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)
				
			#Chant of life
			if event == "57":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False)
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1229,18),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)
				
			#Chant of Fury
			if event == "58":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False)
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1251,2),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)
				
			#Chant of Evasion
			if event == "59":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False)
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1252,3),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)
				
			#Chant of Rage
			if event == "60":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False)
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1253,3),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)
				
			#Chant of Revenge
			if event == "61":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False)
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1284,3),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)
				
			#Chant of Vampire
			if event == "62":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False)
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1310,4),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)
				
			#Chant of Eagle
			if event == "63":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False)
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1309,3),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)
				
			#Chant of Predator
			if event == "64":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False)
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1308,3),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)
				
			#Chant of Spirit
			if event == "65":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False)
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1362,1),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)
				
			#Chant of Victory
			if event == "66":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False)
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1363,1),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)
				
			#chant of magnus
			if event == "67":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False)
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1413,1),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)	
			
			#MPreg
			if event == "68":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)

			#CPHEAL
			if event == "69":
				st.takeItems
				st.getPlayer().restoreCP()
				return "672210.htm"
				st.setState(COMPLETED)
                                          
                                          #Noblesse
			if event == "70":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1323,1),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)

                                          #Salvation
			if event == "71":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1410,1),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)

                                          #Elemental Protection
			if event == "72":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1352,1),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)

                                          #Divine Protection
			if event == "73":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1353,1),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)

                                          #Arcane Protection
			if event == "74":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1354,1),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)

                                         #Pow
			if event == "75":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1355,1),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)

                                          #Pof
			if event == "76":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1356,1),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)

                                          #Powind
			if event == "77":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1357,1),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)

                                          #gif of seraphim
			if event == "78":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4703,1),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)

                                          #blessing of queen
			if event == "79":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4699,1),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)

                                          #blessing of serahpim
			if event == "80":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4702,1),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)

                                          #gift of queen
			if event == "81":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(4700,1),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)

                                          #wild magic
			if event == "82":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1303,2),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)
                                         
                                          #G might
			if event == "83":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1388,3),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)
                                          
                                          #G shield
			if event == "84":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1389,3),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)

                                         #Earth Chant
			if event == "85":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1391,3),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)

			#Cancellation
			if event == "86":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11000,1),False,False)
				SkillTable.getInstance().getInfo(4094,12).getEffects(st.getPlayer(),st.getPlayer())
				st.getPlayer().stopAllEffects()
				return "672210.htm"
				st.setState(State.COMPLETED)

					#Anvanture

			if event == "87":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False)
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1304,3),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)

					#Heal

                        if event == "88":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False)
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1218,33),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED) 
				
					#Songs of Water

                        if event == "89":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False)
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(266,1),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED) 
 
					#Songs of life

                        if event == "90":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False)
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(265,1),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)

                        if event == "91":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False)
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1087,3),False,False)
				st.getPlayer().setCurrentHpMp(st.getPlayer().getMaxHp(),st.getPlayer().getMaxMp())
				return "672210.htm"
				st.setState(COMPLETED)         
			
			#Cancellation
			if event == "92":
				st.takeItems
				st.getPlayer().useMagic(SkillTable.getInstance().getInfo(11001,1),False,False)
				return "672210.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)
Edited by tazerman2
Link to comment
Share on other sites

  • 0

You can give me just one example on a single buff like wind walk or smth and ill manage to do the rest.
Here it is:
 

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

qn = "95999_NPCBuffer"

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

print "importing custom: 95999: NPCBuffer"

class Quest (JQuest) :

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


	def onEvent(self,event,st):
		htmltext = event
		count=st.getQuestItemsCount(ADENA_ID)
		if count < 1000  or st.getPlayer().getLevel() < 1 :
			htmltext = "<html><head><body>You dont have enough Adena!<br> You have to pay me 1000 adenas for every single buff.</body></html>"
		else:
			st.takeItems(ADENA_ID,0)
			st.getPlayer().setTarget(st.getPlayer())
			
			#Wind Walk
			if event == "2":
				st.takeItems(ADENA_ID,1000)
                                st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1204,2),False,False)
				SkillTable.getInstance().getInfo(1204,2).getEffects(st.getPlayer(),st.getPlayer())
				return "2.htm"		
				st.setState(COMPLETED)

			#Decrease Weight
			if event == "3":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(1257,3).getEffects(st.getPlayer(),st.getPlayer())
				return "2.htm"		
				st.setState(COMPLETED)

			#Shield
			if event == "4":
				st.takeItems(ADENA_ID,1000)
                                st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1040,3),False,False)
				SkillTable.getInstance().getInfo(1040,3).getEffects(st.getPlayer(),st.getPlayer())
				return "2.htm"		
				st.setState(COMPLETED)

			#Might
			if event == "5":
				st.takeItems(ADENA_ID,1000)
                                st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1068,3),False,False)
				SkillTable.getInstance().getInfo(1068,3).getEffects(st.getPlayer(),st.getPlayer())
				return "2.htm"		
				st.setState(COMPLETED)

			#Mental Shield
			if event == "6":
				st.takeItems(ADENA_ID,1000)
                                st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1035,4),False,False)
				SkillTable.getInstance().getInfo(1035,4).getEffects(st.getPlayer(),st.getPlayer())
				return "2.htm"		
				st.setState(COMPLETED)

			#Bless the Body
			if event == "7":
				st.takeItems(ADENA_ID,1000)
                                st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1045,6),False,False)
				SkillTable.getInstance().getInfo(1045,6).getEffects(st.getPlayer(),st.getPlayer())
				return "2.htm"		
				st.setState(COMPLETED)

			#Bless the Soul
			if event == "8":
				st.takeItems(ADENA_ID,1000)
                                st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1048,6),False,False)
				SkillTable.getInstance().getInfo(1048,6).getEffects(st.getPlayer(),st.getPlayer())
				return "2.htm"		
				st.setState(COMPLETED)

			#Magic Barrier
			if event == "9":
				st.takeItems(ADENA_ID,1000)
                                st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1036,2),False,False)
				SkillTable.getInstance().getInfo(1036,2).getEffects(st.getPlayer(),st.getPlayer())
				return "2.htm"		
				st.setState(COMPLETED)

			#Concentration
			if event == "10":
				st.takeItems(ADENA_ID,1000)
                                st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1078,6),False,False)
				SkillTable.getInstance().getInfo(1078,6).getEffects(st.getPlayer(),st.getPlayer())
				return "2.htm"		
				st.setState(COMPLETED)

			#Berserker Spirit
			if event == "11":
				st.takeItems(ADENA_ID,1000)
                                st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1062,2),False,False)
				SkillTable.getInstance().getInfo(1062,2).getEffects(st.getPlayer(),st.getPlayer())
				return "2.htm"		
				st.setState(COMPLETED)

			#Bless Shield
			if event == "12":
				st.takeItems(ADENA_ID,1000)
                                st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1243,6),False,False)
				SkillTable.getInstance().getInfo(1243,6).getEffects(st.getPlayer(),st.getPlayer())
				return "2.htm"		
				st.setState(COMPLETED)

			#Vampiric Rage
			if event == "13":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(1268,4).getEffects(st.getPlayer(),st.getPlayer())
				return "2.htm"		
				st.setState(COMPLETED)

			#Acumen
			if event == "14":
				st.takeItems(ADENA_ID,1000)
                                st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1085,3),False,False)
				SkillTable.getInstance().getInfo(1085,3).getEffects(st.getPlayer(),st.getPlayer())
				return "2.htm"		
				st.setState(COMPLETED)

			#Empower
			if event == "15":
				st.takeItems(ADENA_ID,1000)
                                st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1059,3),False,False)
				SkillTable.getInstance().getInfo(1059,3).getEffects(st.getPlayer(),st.getPlayer())
				return "2.htm"		
				st.setState(COMPLETED)

			#Haste
			if event == "16":
				st.takeItems(ADENA_ID,1000)
                                st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1086,2),False,False)
				SkillTable.getInstance().getInfo(1086,2).getEffects(st.getPlayer(),st.getPlayer())
				return "2.htm"		
				st.setState(COMPLETED)

			#Guidance
			if event == "17":
				st.takeItems(ADENA_ID,1000)
                                st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1240,3),False,False)
				SkillTable.getInstance().getInfo(1240,3).getEffects(st.getPlayer(),st.getPlayer())
				return "2.htm"		
				st.setState(COMPLETED)

			#Focus
			if event == "18":
				st.takeItems(ADENA_ID,1000)
                                st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1077,3),False,False)
				SkillTable.getInstance().getInfo(1077,3).getEffects(st.getPlayer(),st.getPlayer())
				return "2.htm"		
				st.setState(COMPLETED)

			#Death Whisper
			if event == "19":
				st.takeItems(ADENA_ID,1000)
                                st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1242,3),False,False)
				SkillTable.getInstance().getInfo(1242,3).getEffects(st.getPlayer(),st.getPlayer())
				return "2.htm"		
				st.setState(COMPLETED)

            #Agility
			if event == "20":
				st.takeItems(ADENA_ID,1000)
                                st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1087,3),False,False)
				SkillTable.getInstance().getInfo(1087,3).getEffects(st.getPlayer(),st.getPlayer())
				return "2.htm"
				st.setState(COMPLETED)	
                                                
            #Clarity
			if event == "21":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(1397,3).getEffects(st.getPlayer(),st.getPlayer())
				return "2.htm"
				st.setState(COMPLETED)	
                                                
            #Advanced Block
			if event == "22":
				st.takeItems(ADENA_ID,1000)
                                st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1304,3),False,False)
				SkillTable.getInstance().getInfo(1304,3).getEffects(st.getPlayer(),st.getPlayer())
				return "2.htm"
				st.setState(COMPLETED)	
                                                
            #Kiss of Eva
			if event == "23":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(1073,2).getEffects(st.getPlayer(),st.getPlayer())
				return "2.htm"
				st.setState(COMPLETED)	
                                                
            #Greater Shield
			if event == "24":
				st.takeItems(ADENA_ID,1000)
                                st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1389,3),False,False)
				SkillTable.getInstance().getInfo(1389,3).getEffects(st.getPlayer(),st.getPlayer())
				return "2.htm"
				st.setState(COMPLETED)	
                                               
            #Wild Magic
			if event == "25":
				st.takeItems(ADENA_ID,1000)
                                st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1303,1),False,False)
				SkillTable.getInstance().getInfo(1303,1).getEffects(st.getPlayer(),st.getPlayer())
				return "2.htm"
				st.setState(COMPLETED)

			#Regeneration
			if event == "26":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(1044,3).getEffects(st.getPlayer(),st.getPlayer())
				return "8.htm"		
				st.setState(COMPLETED)

			#Holy Weapon
			if event == "27":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(1043,1).getEffects(st.getPlayer(),st.getPlayer())
				return "8.htm"		
				st.setState(COMPLETED)

			#Mana Regeneration
			if event == "28":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(1047,4).getEffects(st.getPlayer(),st.getPlayer())
				return "8.htm"		
				st.setState(COMPLETED)

			#Greater Might
			if event == "29":
				st.takeItems(ADENA_ID,1000)
                                st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1388,3),False,False)
				SkillTable.getInstance().getInfo(1388,3).getEffects(st.getPlayer(),st.getPlayer())
				return "2.htm"		
				st.setState(COMPLETED)

			#Chant of battle
			if event == "30":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(1007,3).getEffects(st.getPlayer(),st.getPlayer())
				return "2.htm"		
				st.setState(COMPLETED)

			#Chant of Shielding
			if event == "31":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(1009,3).getEffects(st.getPlayer(),st.getPlayer())
				return "2.htm"		
				st.setState(COMPLETED)

			#Chant of Fire
			if event == "32":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(1006,3).getEffects(st.getPlayer(),st.getPlayer())
				return "2.htm"		
				st.setState(COMPLETED)

			#Chant of Flame
			if event == "33":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(1002,3).getEffects(st.getPlayer(),st.getPlayer())
				return "2.htm"		
				st.setState(COMPLETED)

			#Chant of Fury
			if event == "34":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(1251,2).getEffects(st.getPlayer(),st.getPlayer())
				return "2.htm"		
				st.setState(COMPLETED)

			#Chant of Evasion
			if event == "35":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(1252,3).getEffects(st.getPlayer(),st.getPlayer())
				return "2.htm"		
				st.setState(COMPLETED)

			#Chant of Rage
			if event == "36":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(1253,3).getEffects(st.getPlayer(),st.getPlayer())
				return "2.htm"		
				st.setState(COMPLETED)

			#Chant of Revenge
			if event == "37":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(1284,3).getEffects(st.getPlayer(),st.getPlayer())
				return "2.htm"		
				st.setState(COMPLETED)

			#Chant of Vampire
			if event == "38":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(1310,4).getEffects(st.getPlayer(),st.getPlayer())
				return "2.htm"		
				st.setState(COMPLETED)

			#Chant of Eagle
			if event == "39":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(1309,3).getEffects(st.getPlayer(),st.getPlayer())
				return "2.htm"		
				st.setState(COMPLETED)

			#Chant of Predator
			if event == "40":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(1308,3).getEffects(st.getPlayer(),st.getPlayer())
				return "2.htm"		
				st.setState(COMPLETED)

			#Chant of Spirit
			if event == "41":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(1362,1).getEffects(st.getPlayer(),st.getPlayer())
				return "2.htm"		
				st.setState(COMPLETED)

			#Chant of Victory
			if event == "42":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(1363,1).getEffects(st.getPlayer(),st.getPlayer())
				return "2.htm"		
				st.setState(COMPLETED)

			#Chant of Magnus
			if event == "43":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(1413,1).getEffects(st.getPlayer(),st.getPlayer())
				return "2.htm"		
				st.setState(COMPLETED)

			#War Chant
			if event == "44":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(1390,3).getEffects(st.getPlayer(),st.getPlayer())
				return "2.htm"		
				st.setState(COMPLETED)

			#Earth Chant
			if event == "45":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(1391,3).getEffects(st.getPlayer(),st.getPlayer())
				return "2.htm"		
				st.setState(COMPLETED)

			#Chant of life
			if event == "46":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(1229,1).getEffects(st.getPlayer(),st.getPlayer())
				return "2.htm"		
				st.setState(COMPLETED)

			#Body Avatar
			if event == "47":
				st.takeItems(ADENA_ID,1000)
                                st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1311,6),False,False)
				SkillTable.getInstance().getInfo(1311,6).getEffects(st.getPlayer(),st.getPlayer())
				return "2.htm"		
				st.setState(COMPLETED)

			#Profecy of Fire
			if event == "48":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(1356,1).getEffects(st.getPlayer(),st.getPlayer())
				return "2.htm"		
				st.setState(COMPLETED)

			#Profecy of Wather
			if event == "49":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(1355,1).getEffects(st.getPlayer(),st.getPlayer())
				return "2.htm"		
				st.setState(COMPLETED)

			#profecy of Wind
			if event == "50":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(1357,1).getEffects(st.getPlayer(),st.getPlayer())
				return "2.htm"		
				st.setState(COMPLETED)

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

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

			#Gifth Queen
			if event == "53":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(4703,13).getEffects(st.getPlayer(),st.getPlayer())
				return "7.htm"		
				st.setState(COMPLETED)

			#Gifth Seraphim
			if event == "54":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(4700,13).getEffects(st.getPlayer(),st.getPlayer())
				return "7.htm"		
				st.setState(COMPLETED)

			#Holy Resistance
			if event == "55":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(1392,3).getEffects(st.getPlayer(),st.getPlayer())
				return "8.htm"		
				st.setState(COMPLETED)

			#Unholy Resistance
			if event == "56":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(1393,3).getEffects(st.getPlayer(),st.getPlayer())
				return "8.htm"		
				st.setState(COMPLETED)

			#Resist Aqua
			if event == "57":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(1182,3).getEffects(st.getPlayer(),st.getPlayer())
				return "8.htm"		
				st.setState(COMPLETED)

			#Resist Wind
			if event == "58":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(1189,3).getEffects(st.getPlayer(),st.getPlayer())
				return "8.htm"		
				st.setState(COMPLETED)

			#Resist Fire
			if event == "59":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(1191,3).getEffects(st.getPlayer(),st.getPlayer())
				return "8.htm"		
				st.setState(COMPLETED)

			#Resist Poison
			if event == "60":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(1033,3).getEffects(st.getPlayer(),st.getPlayer())
				return "8.htm"		
				st.setState(COMPLETED)

			#Elemetal Protection
			if event == "61":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(1352,1).getEffects(st.getPlayer(),st.getPlayer())
				return "8.htm"		
				st.setState(COMPLETED)

			#Arcane Protection
			if event == "62":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(1354,1).getEffects(st.getPlayer(),st.getPlayer())
				return "8.htm"		
				st.setState(COMPLETED)

			#Divine Protection
			if event == "63":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(1353,1).getEffects(st.getPlayer(),st.getPlayer())
				return "8.htm"		
				st.setState(COMPLETED)

			#Invigor
			if event == "64":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(1032,3).getEffects(st.getPlayer(),st.getPlayer())
				return "8.htm"		
				st.setState(COMPLETED)

			#Resist Shock
			if event == "65":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(1259,4).getEffects(st.getPlayer(),st.getPlayer())
				return "8.htm"		
				st.setState(COMPLETED)

			#Pa'agrio Gifth
			if event == "66":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(1003,3).getEffects(st.getPlayer(),st.getPlayer())
				return "10.htm"		
				st.setState(COMPLETED)

			#Pa'agrio Blessing
			if event == "67":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(1005,3).getEffects(st.getPlayer(),st.getPlayer())
				return "10.htm"		
				st.setState(COMPLETED)

			#Pa'agrio Glory
			if event == "68":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(1008,3).getEffects(st.getPlayer(),st.getPlayer())
				return "10.htm"		
				st.setState(COMPLETED)

			#Pa'agrio Tact
			if event == "69":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(1260,3).getEffects(st.getPlayer(),st.getPlayer())
				return "10.htm"		
				st.setState(COMPLETED)

			#Pa'agrio Wisdom
			if event == "70":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(1004,3).getEffects(st.getPlayer(),st.getPlayer())
				return "10.htm"		
				st.setState(COMPLETED)

			#Pa'agrio Protection
			if event == "71":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(1250,3).getEffects(st.getPlayer(),st.getPlayer())
				return "10.htm"		
				st.setState(COMPLETED)

			#Pa'agrio Rage
			if event == "72":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(1261,2).getEffects(st.getPlayer(),st.getPlayer())
				return "10.htm"		
				st.setState(COMPLETED)

			#Pa'agrio Vision
			if event == "73":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(1249,3).getEffects(st.getPlayer(),st.getPlayer())
				return "10.htm"		
				st.setState(COMPLETED)

			#Pa'agrio Haste
			if event == "74":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(1282,2).getEffects(st.getPlayer(),st.getPlayer())
				return "10.htm"		
				st.setState(COMPLETED)

			#Pa'agrio Eye
			if event == "75":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(1364,1).getEffects(st.getPlayer(),st.getPlayer())
				return "10.htm"		
				st.setState(COMPLETED)

			#Pa'agrio Soul
			if event == "76":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(1365,1).getEffects(st.getPlayer(),st.getPlayer())
				return "10.htm"		
				st.setState(COMPLETED)

			#Pa'agrio Emblem
			if event == "77":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(1415,1).getEffects(st.getPlayer(),st.getPlayer())
				return "10.htm"		
				st.setState(COMPLETED)

			#Pa'agrio Fist
			if event == "78":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(1416,1).getEffects(st.getPlayer(),st.getPlayer())
				return "10.htm"		
				st.setState(COMPLETED)

			#Pa'agrio Victory
			if event == "79":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(1414,1).getEffects(st.getPlayer(),st.getPlayer())
				return "10.htm"		
				st.setState(COMPLETED)

			#Dance of Warrior
			if event == "80":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(271,1).getEffects(st.getPlayer(),st.getPlayer())
				return "4.htm"		
				st.setState(COMPLETED)

			#Dance of Inspiration
			if event == "81":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(272,1).getEffects(st.getPlayer(),st.getPlayer())
				return "4.htm"		
				st.setState(COMPLETED)

			#Dance of Mystic
			if event == "82":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(273,1).getEffects(st.getPlayer(),st.getPlayer())
				return "4.htm"		
				st.setState(COMPLETED)

			#Dance of Fire
			if event == "83":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(274,1).getEffects(st.getPlayer(),st.getPlayer())
				return "4.htm"		
				st.setState(COMPLETED)

			#Dance of Fury
			if event == "84":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(275,1).getEffects(st.getPlayer(),st.getPlayer())
				return "4.htm"		
				st.setState(COMPLETED)

			#Dance of Concentration
			if event == "85":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(276,1).getEffects(st.getPlayer(),st.getPlayer())
				return "4.htm"		
				st.setState(COMPLETED)

			#Dance of Light
			if event == "86":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(277,1).getEffects(st.getPlayer(),st.getPlayer())
				return "4.htm"		
				st.setState(COMPLETED)

			#Aqua Guard
			if event == "87":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(307,1).getEffects(st.getPlayer(),st.getPlayer())
				return "4.htm"		
				st.setState(COMPLETED)

			#Earth Guard
			if event == "88":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(309,1).getEffects(st.getPlayer(),st.getPlayer())
				return "4.htm"		
				st.setState(COMPLETED)

			#Dance of Vampire
			if event == "89":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(310,1).getEffects(st.getPlayer(),st.getPlayer())
				return "4.htm"		
				st.setState(COMPLETED)

			#Dance of Protection
			if event == "90":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(311,1).getEffects(st.getPlayer(),st.getPlayer())
				return "4.htm"		
				st.setState(COMPLETED)

			#Siren's Dance 
			if event == "91":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(365,1).getEffects(st.getPlayer(),st.getPlayer())
				return "4.htm"		
				st.setState(COMPLETED)

			#Dance of Shadow
			if event == "92":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(366,1).getEffects(st.getPlayer(),st.getPlayer())
				return "8.htm"		
				st.setState(COMPLETED)

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

			#Song of Life
			if event == "94":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(265,1).getEffects(st.getPlayer(),st.getPlayer())
				return "3.htm"		
				st.setState(COMPLETED)

			#Song of Water
			if event == "95":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(266,1).getEffects(st.getPlayer(),st.getPlayer())
				return "3.htm"		
				st.setState(COMPLETED)

			#Song of Warding
			if event == "96":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(267,1).getEffects(st.getPlayer(),st.getPlayer())
				return "3.htm"		
				st.setState(COMPLETED)

			#Song of Wind
			if event == "97":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(268,1).getEffects(st.getPlayer(),st.getPlayer())
				return "3.htm"		
				st.setState(COMPLETED)

			#Song of Hunter
			if event == "98":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(269,1).getEffects(st.getPlayer(),st.getPlayer())
				return "3.htm"		
				st.setState(COMPLETED)

			#Song of Invocation
			if event == "99":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(270,1).getEffects(st.getPlayer(),st.getPlayer())
				return "3.htm"		
				st.setState(COMPLETED)

			#Song of Vitality
			if event == "100":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(304,1).getEffects(st.getPlayer(),st.getPlayer())
				return "3.htm"		
				st.setState(COMPLETED)

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

			#Flame Guard
			if event == "102":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(306,1).getEffects(st.getPlayer(),st.getPlayer())
				return "3.htm"		
				st.setState(COMPLETED)

			#Storm Guard
			if event == "103":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(308,1).getEffects(st.getPlayer(),st.getPlayer())
				return "3.htm"		
				st.setState(COMPLETED)

			#Song of Meditation
			if event == "104":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(363,1).getEffects(st.getPlayer(),st.getPlayer())
				return "3.htm"		
				st.setState(COMPLETED)

			#Song of Champion
			if event == "105":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(364,1).getEffects(st.getPlayer(),st.getPlayer())
				return "3.htm"		
				st.setState(COMPLETED)

			#Song of Renewal
			if event == "106":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(349,1).getEffects(st.getPlayer(),st.getPlayer())
				return "3.htm"		
				st.setState(COMPLETED)

			#Fighter Buffers
			if event == "107":
				st.takeItems(ADENA_ID,1000)
				st.getPlayer().stopAllEffects()
				SkillTable.getInstance().getInfo(1040,3).getEffects(st.getPlayer(),st.getPlayer())
				SkillTable.getInstance().getInfo(1036,2).getEffects(st.getPlayer(),st.getPlayer())
				SkillTable.getInstance().getInfo(1068,3).getEffects(st.getPlayer(),st.getPlayer())
				SkillTable.getInstance().getInfo(1388,3).getEffects(st.getPlayer(),st.getPlayer())
				SkillTable.getInstance().getInfo(1045,6).getEffects(st.getPlayer(),st.getPlayer())
				SkillTable.getInstance().getInfo(1087,3).getEffects(st.getPlayer(),st.getPlayer())
				SkillTable.getInstance().getInfo(1242,3).getEffects(st.getPlayer(),st.getPlayer())
				SkillTable.getInstance().getInfo(1240,3).getEffects(st.getPlayer(),st.getPlayer())
				SkillTable.getInstance().getInfo(1086,2).getEffects(st.getPlayer(),st.getPlayer())
				SkillTable.getInstance().getInfo(1077,3).getEffects(st.getPlayer(),st.getPlayer())
				SkillTable.getInstance().getInfo(1204,2).getEffects(st.getPlayer(),st.getPlayer())
				SkillTable.getInstance().getInfo(1363,1).getEffects(st.getPlayer(),st.getPlayer())
				SkillTable.getInstance().getInfo(264,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(304,1).getEffects(st.getPlayer(),st.getPlayer())
				SkillTable.getInstance().getInfo(269,1).getEffects(st.getPlayer(),st.getPlayer())
				SkillTable.getInstance().getInfo(349,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(1323,1).getEffects(st.getPlayer(),st.getPlayer())
				return "1.htm"
				st.setState(COMPLETED)

			#Mage Buffers
			if event == "108":
				st.takeItems(ADENA_ID,1000)
				st.getPlayer().stopAllEffects()
				SkillTable.getInstance().getInfo(1040,3).getEffects(st.getPlayer(),st.getPlayer())
				SkillTable.getInstance().getInfo(1035,4).getEffects(st.getPlayer(),st.getPlayer())
				SkillTable.getInstance().getInfo(1036,2).getEffects(st.getPlayer(),st.getPlayer())
				SkillTable.getInstance().getInfo(1204,2).getEffects(st.getPlayer(),st.getPlayer())
				SkillTable.getInstance().getInfo(1389,3).getEffects(st.getPlayer(),st.getPlayer())
				SkillTable.getInstance().getInfo(1045,6).getEffects(st.getPlayer(),st.getPlayer())
				SkillTable.getInstance().getInfo(1085,3).getEffects(st.getPlayer(),st.getPlayer())
				SkillTable.getInstance().getInfo(1059,3).getEffects(st.getPlayer(),st.getPlayer())
				SkillTable.getInstance().getInfo(1303,1).getEffects(st.getPlayer(),st.getPlayer())
				SkillTable.getInstance().getInfo(1078,6).getEffects(st.getPlayer(),st.getPlayer())
				SkillTable.getInstance().getInfo(264,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(349,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 == "109":
				st.takeItems(ADENA_ID,1000)
				return "1.htm"		
				st.setState(COMPLETED)

			#Cancel
			if event == "110": 
				st.getPlayer().stopAllEffects()
				return "1.htm"
				st.setState(COMPLETED)

            #Noblesse Blessing
			if event == "111":
				st.takeItems(ADENA_ID,1000)
				SkillTable.getInstance().getInfo(1323,1).getEffects(st.getPlayer(),st.getPlayer())
				return "1.htm"
				st.setState(COMPLETED)	

            #Restore CP/HP/MP
			if event == "115":
				st.takeItems(ADENA_ID,1000)
				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)
	

				
			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)

Edited by Rio
Link to comment
Share on other sites

  • 0

The first argument of getEffects() should be the npc object, the second should be the player object... http://subversion.assembla.com/svn/L2jFrozenInterlude/trunk/gameserver/head-src/com/l2jfrozen/gameserver/model/L2Skill.java

 

This is really very ugly code...

Edited by Tessa
Link to comment
Share on other sites

  • 0

The first argument of getEffects() should be the npc object, the second should be the player object... http://subversion.assembla.com/svn/L2jFrozenInterlude/trunk/gameserver/head-src/com/l2jfrozen/gameserver/model/L2Skill.java

 

This is really very ugly code...

give me an example on this code:

 

if event == "2":
				st.takeItems(ADENA_ID,1000)
                                st.getPlayer().useMagic(SkillTable.getInstance().getInfo(1204,2),False,False)
				SkillTable.getInstance().getInfo(1204,2).getEffects(st.getPlayer(),st.getPlayer())
				return "2.htm"		
				st.setState(COMPLETED)
Link to comment
Share on other sites

  • 0

You could use onAdvEvent() instead of onEvent(). It takes an npc reference as a parameter. ^^

 

Ups, not a good idea... :lol:

You do better obtain a reference through the onTalk() method. Less painful for you... :D

 

Change the constructor to:

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

Then, at the onTalk() method add this line:

def onTalk (self,npc,player):
    self.npc_obj = npc

Now you should be able to use

getEffects(self.npc_obj, st.getPlayer())
Edited by Tessa
Link to comment
Share on other sites

  • 0

Yes, quality is enough and you can say doin' it with phone is faster, if you don't have program to record and/or you are lazy to install/download it.

 

But quality doesn't matter, it's about the fact he recorded with phone.  :not bad:

Link to comment
Share on other sites

  • 0

it is what he wanted.

It's not. He was not asking for core buffer. He want to add cast animation to his (crappy) python buffer.

Link to comment
Share on other sites

  • 0

I originally sended it to a friend over whatsapp so i recorded it with phone..

So i wanted to show it a friend via skype.. so i uploaded it to YouTube because i was to lazy to record it with my computer.

 

But i think the request seems to be answered.. since this script works perfectly and it is what he wanted.

Yeah, the only problem is that L2JFrozen uses Python as a scripting language (which I personally think is better than Java), and your Java implementation won't work. ^^

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


  • Posts

    • Diablo III, the action-packed hack-and-slash RPG developed by Blizzard Entertainment, has captivated gamers worldwide since its release in 2012. Now, imagine a world where Diablo III's source code is opened up to the community, inviting developers and enthusiasts alike to enhance and refine this beloved game. This topic delves into the possibilities, challenges, and community desires surrounding the idea of Diablo III as an open-source project.   Key Points: 1. Defining Diablo III: Diablo III is an action role-playing game set in the dark fantasy world of Sanctuary. Players traverse through randomized dungeons, battling hordes of demons and collecting loot to strengthen their characters. With its compelling storyline, addictive gameplay mechanics, and rich lore, Diablo III has amassed a dedicated fanbase over the years.   2. Open Source Potential: Opening up the source code of Diablo III could unlock a wealth of opportunities for the game's future. Community developers could introduce new features, enhance existing gameplay elements, and address long-standing issues. The modding community, known for its creativity and innovation, could breathe new life into the game by creating custom content, game modes, and user interface improvements. 3. Community Interest: The question arises - would the gaming community welcome the idea of Diablo III becoming open source? Many players are eager to see the game evolve beyond its current state, with enhancements such as improved balance, expanded end-game content, and enhanced multiplayer features. By involving the community in the development process, Diablo III could foster a stronger sense of ownership and collaboration among its players. 4. Challenges and Considerations: While the concept of Diablo III as an open source is enticing, it also presents several challenges. Ensuring the integrity of the game's balance and preventing cheating would be paramount concerns. Additionally, coordinating development efforts and maintaining a cohesive vision for the game could prove challenging in a community-driven environment. However, with proper oversight and collaboration, these obstacles can be overcome. 5. Is Diablo III an MMORPG? Diablo III is often categorized as an action RPG rather than a traditional MMORPG (massively multiplayer online role-playing game). While it does feature online multiplayer elements, including cooperative play and player-versus-player combat, it lacks the persistent open world typically associated with MMORPGs. Instead, Diablo III focuses on instanced dungeons and smaller-scale multiplayer interactions. The Benefits of Improvement: Improving Diablo III through open-source development could revitalize the game, attracting new players and re-engaging existing fans. By embracing community-driven innovation, Diablo III could remain relevant and enjoyable for years to come. Additionally, fostering an active modding community could extend the game's longevity and create new opportunities for player expression and creativity.   Source code  
    • Good evening, can someone help me, I'm looking for client classic zaken eu protocol 110, is there a download link?  thank you
    • Great developer made my changes in less than 2 weeks. Has full knowledge from start to finish. Definitely recommend. 
    • We are giving out promo codes for 3GBs for testing Asocks proxy. All you need to do is post a reply in this thread.
  • Topics

×
×
  • Create New...