Jump to content
  • 0

Question

Posted

Hello guys

 

I'd like to ask for some help. I have a Freya buffer, and the thing is, that its buffing everyone, with every buff in my party ( including the pets! ). We r working on a high class balanced server now, and I dont want to see full buffed pets. So the question is, what should I do, if I don't want the pets to be buffed?

 

Here is a part of the buffers code:

 

qn = "50000_NPCBuffer"

 

NPC=[50000]

 

QuestId = 50000

QuestName      = "NPCBuffer"

QuestDesc      = "custom"

InitialHtml    = "1.htm"

ADENA_ID=57

 

NotEnoughAdena = "<html><body>You don't have enough adena.</body></html>"

 

print "#####################################"

print "#Betoltve: 50000_NPCBuffer by slshr#"

print "#####################################"

 

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

def skillCast(player,skill,level,useAnimation):   #

# This line is necessary and gets the skill information.   #

skillInfo = SkillTable.getInstance().getInfo(skill,level)   #

if not skillInfo:   #

return False   #

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

# This line causes the client to display the animation for the   #

# skill.  If you do not want the client to display the animation   #

# for a specific skill simply set useAnimation to false for that   #

# skill call.  If you want to disable it for all skills simply   #

# comment out the below two lines.   #

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

# We need to make sure the player has him/herself targetted, but   #

# we also want to make sure we don't permanently change the target   #

# so we will save off the current target before changing it to the   #

# player.   #

currentTarget = player.getTarget()   #

player.setTarget(player)   #

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

# This gets all the targets for the skill (self, party, clan, ally, etc...)#

targets = skillInfo.getTargetList(player)   #

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

# Now we reset the target we had before we switched to the player.   #

player.setTarget(currentTarget)   #

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

# This applies the skill effects to all valid targets.  If you only want  #

# it to apply the effects to the player then you should change "targets"  #

# in the line below to "[player]".   #

player.callSkill(skillInfo,targets)   #

return True   #

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

 

def conditionalCast(st,player,cost,skill,level,html,useAnimation):

adena = st.getQuestItemsCount(ADENA_ID)

if adena < cost:

st.exitQuest(1)

return NotEnoughAdena

else:

st.takeItems(ADENA_ID,cost)

ok = skillCast(player,skill,level,useAnimation)

if ok == False:

return "<html><body>Skill " + str(skill) + " at level " + str(level) + " can not be found.</body></html>"

return html

 

class Quest (JQuest):

 

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

 

def onEvent(self,event,st):

htmltext = event

adena = st.getQuestItemsCount(ADENA_ID)

 

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

#Script Begins for the Buffs#

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

# Linked to 1.htm - Default Page #

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

 

#Heal CP,HP,MP

if event == "1":

if adena < 0:

st.exitQuest(1)

return NotEnoughAdena

st.takeItems(ADENA_ID,0)

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

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

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

htmltext = "1.htm"

 

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

# Linked to 5.htm - Choose Buffs    #

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

 

#Wind Walk

elif event == "2":

htmltext = conditionalCast(st,st.getPlayer(),0,1204,2,"5.htm",True)

 

#Arcane Protection

elif event == "3":

htmltext = conditionalCast(st,st.getPlayer(),0,1354,1,"5.htm",True)

 

#Shield

elif event == "4":

htmltext = conditionalCast(st,st.getPlayer(),0,1040,3,"5.htm",True)

 

#Might

elif event == "5":

htmltext = conditionalCast(st,st.getPlayer(),0,1068,3,"5.htm",True)

What do I have to change? :$

Thankx for the help, maybe it's useful for others too )

3 answers to this question

Recommended Posts

  • 0
Posted
import sys

from com.l2jserver.gameserver.model.actor.instance import L2PcInstance

from java.util import Iterator

from com.l2jserver.gameserver.datatables import SkillTable

from com.l2jserver       import L2DatabaseFactory

from com.l2jserver.gameserver.model.quest import State

from com.l2jserver.gameserver.model.quest import QuestState

from com.l2jserver.gameserver.model.quest.jython import QuestJython as JQuest

 

qn = "50000_NPCBuffer"

 

NPC=[50000]

 

QuestId = 50000

QuestName      = "NPCBuffer"

QuestDesc      = "custom"

InitialHtml    = "1.htm"

ADENA_ID=57

 

NotEnoughAdena = "<html><body>You don't have enough adena.</body></html>"

 

print "#####################################"

print "#Betoltve: 50000_NPCBuffer by kandur#"

print "#####################################"

 

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

def skillCast(player,skill,level,useAnimation):   #

# This line is necessary and gets the skill information.   #

skillInfo = SkillTable.getInstance().getInfo(skill,level)   #

if not skillInfo:   #

return False   #

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

# This line causes the client to display the animation for the   #

# skill.  If you do not want the client to display the animation   #

# for a specific skill simply set useAnimation to false for that   #

# skill call.  If you want to disable it for all skills simply   #

# comment out the below two lines.   #

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

# We need to make sure the player has him/herself targetted, but   #

# we also want to make sure we don't permanently change the target   #

# so we will save off the current target before changing it to the   #

# player.   #

currentTarget = player.getTarget()   #

player.setTarget(player)   #

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

# This gets all the targets for the skill (self, party, clan, ally, etc...)#

targets = skillInfo.getTargetList(player)   #

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

# Now we reset the target we had before we switched to the player.   #

player.setTarget(currentTarget)   #

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

# This applies the skill effects to all valid targets.  If you only want   #

# it to apply the effects to the player then you should change "targets"   #

# in the line below to "[player]".   #

player.callSkill(skillInfo,targets)   #

return True   #

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

 

def conditionalCast(st,player,cost,skill,level,html,useAnimation):

adena = st.getQuestItemsCount(ADENA_ID)

if adena < cost:

st.exitQuest(1)

return NotEnoughAdena

else:

st.takeItems(ADENA_ID,cost)

ok = skillCast(player,skill,level,useAnimation)

if ok == False:

return "<html><body>Skill " + str(skill) + " at level " + str(level) + " can not be found.</body></html>"

return html

 

class Quest (JQuest):

 

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

 

def onEvent(self,event,st):

htmltext = event

adena = st.getQuestItemsCount(ADENA_ID)

 

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

#Script Begins for the Buffs#

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

# Linked to 1.htm - Default Page #

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

 

#Heal CP,HP,MP

if event == "1":

if adena < 0:

st.exitQuest(1)

return NotEnoughAdena

st.takeItems(ADENA_ID,0)

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

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

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

htmltext = "1.htm"

 

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

# Linked to 5.htm - Choose Buffs     #

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

 

#Wind Walk

elif event == "2":

htmltext = conditionalCast(st,st.getPlayer(),0,1204,2,"5.htm",True)

 

#Arcane Protection

elif event == "3":

htmltext = conditionalCast(st,st.getPlayer(),0,1354,1,"5.htm",True)

*

*

*

 

#pow

elif event == "30":

htmltext = conditionalCast(st,st.getPlayer(),0,1355,1,"5.htm",True)

 

#powi

elif event == "31":

htmltext = conditionalCast(st,st.getPlayer(),0,1357,1,"5.htm",True)

 

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

# Choose Buffs  -   Default Page #

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

 

#Wind Walk

elif event == "107":

htmltext = conditionalCast(st,st.getPlayer(),0,4342,2,"5.htm",True)

 

#Decrease Weight

elif event == "108":

htmltext = conditionalCast(st,st.getPlayer(),0,4343,3,"5.htm",True)

 

*

*(just deleted here some buffs, quote was too long)

 

#Death Whisper

elif event == "125":

htmltext = conditionalCast(st,st.getPlayer(),0,4360,3,"5.htm",True)

 

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

# Linked to 2.htm - Dances #

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

 

#Dance of the Warrior

elif event == "200":

htmltext = conditionalCast(st,st.getPlayer(),0,271,1,"2.htm",True)

 

#Dance of Inspiration

elif event == "201":

htmltext = conditionalCast(st,st.getPlayer(),0,272,1,"2.htm",True)

 

#Dance of the Mystic

elif event == "202":

htmltext = conditionalCast(st,st.getPlayer(),0,273,1,"2.htm",True)

 

#Dance of Fire

elif event == "203":

htmltext = conditionalCast(st,st.getPlayer(),0,274,1,"2.htm",True)

 

#Dance of Fury

elif event == "204":

htmltext = conditionalCast(st,st.getPlayer(),0,275,1,"2.htm",True)

 

#Dance of Concentration

elif event == "205":

htmltext = conditionalCast(st,st.getPlayer(),0,276,1,"2.htm",True)

 

#Dance of Light

elif event == "206":

htmltext = conditionalCast(st,st.getPlayer(),0,277,1,"2.htm",True)

 

#Dance of Aqua Guard

elif event == "207":

htmltext = conditionalCast(st,st.getPlayer(),0,307,1,"2.htm",True)

 

#Dance of Earth Guard

elif event == "208":

htmltext = conditionalCast(st,st.getPlayer(),0,309,1,"2.htm",True)

 

#Dance of the Vampire

elif event == "209":

htmltext = conditionalCast(st,st.getPlayer(),0,310,1,"2.htm",True)

 

#Dance of Protection

elif event == "210":

htmltext = conditionalCast(st,st.getPlayer(),0,311,1,"2.htm",True)

 

#Dance of Shadows

elif event == "211":

htmltext = conditionalCast(st,st.getPlayer(),0,366,1,"2.htm",True)

 

#Siren's Dance

elif event == "212":

htmltext = conditionalCast(st,st.getPlayer(),0,365,1,"2.htm",True)

 

#Dance of Alignment

elif event == "213":

htmltext = conditionalCast(st,st.getPlayer(),0,530,1,"2.htm",True)

 

#Dance of Blade Storm

elif event == "214":

htmltext = conditionalCast(st,st.getPlayer(),0,765,1,"2.htm",True)

 

#All Dance

elif event == "215":

if adena < 0:

st.exitQuest(1)

return NotEnoughAdena

st.takeItems(ADENA_ID,0)

skillCast(st.getPlayer(),271,1,True)

skillCast(st.getPlayer(),272,1,True)

skillCast(st.getPlayer(),273,1,True)

skillCast(st.getPlayer(),274,1,True)

skillCast(st.getPlayer(),275,1,True)

skillCast(st.getPlayer(),276,1,True)

skillCast(st.getPlayer(),277,1,True)

skillCast(st.getPlayer(),307,1,True)

skillCast(st.getPlayer(),309,1,True)

skillCast(st.getPlayer(),310,1,True)

skillCast(st.getPlayer(),311,1,True)

skillCast(st.getPlayer(),365,1,True)

skillCast(st.getPlayer(),530,1,True)

skillCast(st.getPlayer(),765,1,True)

htmltext = "2.htm"

 

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

# Linked to 3.htm - Songs #

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

 

#Song of Earth

elif event == "300":

htmltext = conditionalCast(st,st.getPlayer(),0,264,1,"3.htm",True)

 

*

*

*

 

#Song of Wind Strom

               elif event == "315":

htmltext = conditionalCast(st,st.getPlayer(),0,764,1,"3.htm",True)

 

#All Song

elif event == "316":

if adena < 0:

st.exitQuest(1)

return NotEnoughAdena

st.takeItems(ADENA_ID,50000)

skillCast(st.getPlayer(),264,1,True)

skillCast(st.getPlayer(),265,1,True)

skillCast(st.getPlayer(),266,1,True)

skillCast(st.getPlayer(),267,1,True)

skillCast(st.getPlayer(),268,1,True)

skillCast(st.getPlayer(),269,1,True)

skillCast(st.getPlayer(),270,1,True)

skillCast(st.getPlayer(),304,1,True)

skillCast(st.getPlayer(),305,1,True)

skillCast(st.getPlayer(),306,1,True)

skillCast(st.getPlayer(),308,1,True)

skillCast(st.getPlayer(),363,1,True)

skillCast(st.getPlayer(),364,1,True)

skillCast(st.getPlayer(),349,1,True)

skillCast(st.getPlayer(),529,1,True)

htmltext = "3.htm"

 

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

# Linked to 4.htm - Buff Groups #

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

 

#Fighter Buffs

elif event == "400":

if adena < 0:

st.exitQuest(1)

return NotEnoughAdena

st.takeItems(ADENA_ID,500000)

skillCast(st.getPlayer(),1204,2,True) #Wind Walk

skillCast(st.getPlayer(),1040,3,True) #Shield

skillCast(st.getPlayer(),1068,3,True) #Might

skillCast(st.getPlayer(),1035,4,True) #Mental Shield

skillCast(st.getPlayer(),1045,6,True) #Bless the Body

skillCast(st.getPlayer(),1048,6,True) #Bless the Soul

skillCast(st.getPlayer(),1036,2,True) #Magic Barrier

skillCast(st.getPlayer(),1259,4,True) #Resist Shock

skillCast(st.getPlayer(),1078,6,True) #Concentration

skillCast(st.getPlayer(),1062,2,True) #Berserker Spirit

skillCast(st.getPlayer(),1268,4,True) #Vampiric Rage

skillCast(st.getPlayer(),1086,2,True) #Haste

skillCast(st.getPlayer(),1240,3,True) #Guidance

skillCast(st.getPlayer(),1077,3,True) #Focus

skillCast(st.getPlayer(),1242,3,True) #Death Whisper

skillCast(st.getPlayer(),1388,3,True) #greatmight

skillCast(st.getPlayer(),1392,3,True) #holyresist

skillCast(st.getPlayer(),1393,3,True) #Unholyresist

skillCast(st.getPlayer(),1352,1,True) #elemtprotect

skillCast(st.getPlayer(),1304,3,True) #advblock

skillCast(st.getPlayer(),1353,1,True) #divProtect

skillCast(st.getPlayer(),1047,4,True) #manareg

 

skillCast(st.getPlayer(),271,1,True) #Dance of the Warrior

skillCast(st.getPlayer(),272,1,True) #Dance of Inspiration

skillCast(st.getPlayer(),274,1,True) #Dance of Fire

skillCast(st.getPlayer(),275,1,True) #Dance of Fury

skillCast(st.getPlayer(),277,1,True) #Dance of Light

skillCast(st.getPlayer(),310,1,True) #Dance of Vampire

skillCast(st.getPlayer(),311,1,True) #Dance of Protection

skillCast(st.getPlayer(),530,1,True) #Dance of Alignment

skillCast(st.getPlayer(),765,1,True) #Dance of Blade Storm

 

skillCast(st.getPlayer(),264,1,True) #Song of Earth

skillCast(st.getPlayer(),265,1,True) #Song of Life

skillCast(st.getPlayer(),266,1,True) #Song of Water

skillCast(st.getPlayer(),267,1,True) #Song of Warding

skillCast(st.getPlayer(),268,1,True) #Song of Wind

skillCast(st.getPlayer(),269,1,True) #Song of Hunter

skillCast(st.getPlayer(),270,1,True) #Song of Invocation

skillCast(st.getPlayer(),304,1,True) #Song of Vitality

skillCast(st.getPlayer(),305,1,True) #Song of Vengeance

skillCast(st.getPlayer(),363,1,True) #Song of Meditation

skillCast(st.getPlayer(),364,1,True) #Song of Champion

skillCast(st.getPlayer(),349,1,True) #Song of Renewal

skillCast(st.getPlayer(),529,1,True) #Song of Elemental

skillCast(st.getPlayer(),764,1,True) #Song of Wind Strom

 

skillCast(st.getPlayer(),1363,1,True) #Chant of Victory

 

skillCast(st.getPlayer(),1476,3,True) #Apetite

skillCast(st.getPlayer(),1478,2,True) #Protection

 

skillCast(st.getPlayer(),1323,1,True) #Noblesse Blessing

 

skillCast(st.getPlayer(),1487,8,True) #Restoration

skillCast(st.getPlayer(),834,1,True) #Blood Pact

skillCast(st.getPlayer(),1229,18,True) #Chant of Life

htmltext = "4.htm"

 

#Mage Buffs

elif event == "401":

if adena < 0:

st.exitQuest(1)

return NotEnoughAdena

 

skillCast(st.getPlayer(),4349,2,True)

skillCast(st.getPlayer(),4344,3,True)

skillCast(st.getPlayer(),4347,6,True)

skillCast(st.getPlayer(),4353,6,True)

skillCast(st.getPlayer(),4351,6,True)

skillCast(st.getPlayer(),4355,3,True)

skillCast(st.getPlayer(),4352,2,True)

skillCast(st.getPlayer(),4356,3,True)

skillCast(st.getPlayer(),1303,2,True)

skillCast(st.getPlayer(),365,1,True)

skillCast(st.getPlayer(),267,1,True)

skillCast(st.getPlayer(),276,1,True)

skillCast(st.getPlayer(),273,1,True)

skillCast(st.getPlayer(),268,1,True)

skillCast(st.getPlayer(),269,1,True)

skillCast(st.getPlayer(),264,1,True)

skillCast(st.getPlayer(),304,1,True)

skillCast(st.getPlayer(),349,1,True)

skillCast(st.getPlayer(),266,1,True)

skillCast(st.getPlayer(),1252,2,True) #Chant of Evasion

skillCast(st.getPlayer(),1355,1,True) #pow

skillCast(st.getPlayer(),1303,2,True) #wildmagic

 

skillCast(st.getPlayer(),1204,2,True) #Wind Walk

skillCast(st.getPlayer(),1040,3,True) #Shield

skillCast(st.getPlayer(),1068,3,True) #Might

skillCast(st.getPlayer(),1035,4,True) #Mental Shield

skillCast(st.getPlayer(),1045,6,True) #Bless the Body

skillCast(st.getPlayer(),1048,6,True) #Bless the Soul

skillCast(st.getPlayer(),1036,2,True) #Magic Barrier

 

skillCast(st.getPlayer(),1243,6,True) #Bless Shield

skillCast(st.getPlayer(),1078,6,True) #Concentration

 

 

skillCast(st.getPlayer(),264,1,True) #Song of Earth

 

 

skillCast(st.getPlayer(),1479,3,True) #Magic

skillCast(st.getPlayer(),1478,2,True) #Protection

 

skillCast(st.getPlayer(),1323,1,True) #Noblesse Blessing

 

htmltext = "4.htm"

 

#Custom Buffs

elif event == "402":

if adena < 0:

st.exitQuest(1)

return NotEnoughAdena

skillCast(st.getPlayer(),4346,4,True) #Clan Hall: Mental Shield

skillCast(st.getPlayer(),4342,2,True) #Clan Hall: Wind Walk

skillCast(st.getPlayer(),4343,3,True) #Clan Hall: Decrease Weight

skillCast(st.getPlayer(),4344,3,True) #Clan Hall: Shield

skillCast(st.getPlayer(),4345,3,True) #Clan Hall: Might

skillCast(st.getPlayer(),4349,2,True) #Clan Hall: Magic Barrier

skillCast(st.getPlayer(),4348,6,True) #Clan Hall: Blessed Soul

htmltext = "4.htm"

 

 

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

# Linked to 5.htm - Individual Buffs #

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

 

#Clan Hall: Wind Walk

elif event == "500":

htmltext = conditionalCast(st,st.getPlayer(),0,4342,2,"5.htm",True)

 

#Clan Hall: Acumen

elif event == "513":

htmltext = conditionalCast(st,st.getPlayer(),0,4355,3,"5.htm",True)

 

#Clan Hall: Empower

elif event == "514":

htmltext = conditionalCast(st,st.getPlayer(),0,4356,3,"5.htm",True)

 

#Clan Hall: Haste

elif event == "515":

htmltext = conditionalCast(st,st.getPlayer(),0,4357,2,"5.htm",True)

 

#Clan Hall: Guidance

elif event == "516":

htmltext = conditionalCast(st,st.getPlayer(),0,4358,3,"5.htm",True)

 

#Clan Hall: Wild Magic

elif event == "519":

htmltext = conditionalCast(st,st.getPlayer(),0,1303,2,"5.htm",True)

 

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

# Linked to 7.htm - Chants #

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

 

#Chant of Battle

elif event == "700":

htmltext = conditionalCast(st,st.getPlayer(),0,1007,3,"7.htm",True)

 

#Chant of Shielding

elif event == "701":

htmltext = conditionalCast(st,st.getPlayer(),0,1009,3,"7.htm",True)

 

#Chant of Fire

elif event == "702":

htmltext = conditionalCast(st,st.getPlayer(),0,1006,3,"7.htm",True)

 

#Flame Chant

elif event == "703":

htmltext = conditionalCast(st,st.getPlayer(),0,1002,3,"7.htm",True)

 

#Chant of Life

elif event == "704":

htmltext = conditionalCast(st,st.getPlayer(),0,1229,18,"7.htm",True)

 

#Chant of Fury

elif event == "705":

htmltext = conditionalCast(st,st.getPlayer(),0,1251,2,"7.htm",True)

 

#Chant of Evasion

elif event == "706":

htmltext = conditionalCast(st,st.getPlayer(),0,1252,2,"7.htm",True)

 

#Chant of Rage

elif event == "707":

htmltext = conditionalCast(st,st.getPlayer(),0,1253,3,"7.htm",True)

 

#Chant of Revenge

elif event == "708":

htmltext = conditionalCast(st,st.getPlayer(),0,1284,3,"7.htm",True)

 

#Chant of Vampire

elif event == "709":

htmltext = conditionalCast(st,st.getPlayer(),0,1310,4,"7.htm",True)

 

#Chant of Eagle

elif event == "710":

htmltext = conditionalCast(st,st.getPlayer(),0,1309,3,"7.htm",True)

 

#Chant of Predator

elif event == "711":

htmltext = conditionalCast(st,st.getPlayer(),0,1308,3,"7.htm",True)

 

#Chant of Spirit

elif event == "712":

htmltext = conditionalCast(st,st.getPlayer(),0,1362,1,"7.htm",True)

 

#Chant of Victory

elif event == "713":

htmltext = conditionalCast(st,st.getPlayer(),0,1363,1,"7.htm",True)

 

#Magnus' Chant

elif event == "714":

htmltext = conditionalCast(st,st.getPlayer(),0,1413,1,"7.htm",True)

 

#War Chant

elif event == "715":

htmltext = conditionalCast(st,st.getPlayer(),0,1390,3,"7.htm",True)

 

#Earth Chant

elif event == "716":

htmltext = conditionalCast(st,st.getPlayer(),0,1391,3,"7.htm",True)

 

#Chant of Magnus

elif event == "740":

htmltext = conditionalCast(st,st.getPlayer(),0,1413,1,"7.htm",True)

 

#Chant of Protection

elif event == "741":

htmltext = conditionalCast(st,st.getPlayer(),0,1461,1,"7.htm",True)

 

#All Chant

elif event == "742":

if adena < 0:

st.exitQuest(1)

return NotEnoughAdena

st.takeItems(ADENA_ID,360000)

skillCast(st.getPlayer(),1007,3,True)

skillCast(st.getPlayer(),1009,3,True)

skillCast(st.getPlayer(),1006,3,True)

skillCast(st.getPlayer(),1002,3,True)

skillCast(st.getPlayer(),1229,18,True)

skillCast(st.getPlayer(),1251,2,True)

skillCast(st.getPlayer(),1252,2,True)

skillCast(st.getPlayer(),1253,3,True)

skillCast(st.getPlayer(),1284,3,True)

skillCast(st.getPlayer(),1310,4,True)

skillCast(st.getPlayer(),1309,3,True)

skillCast(st.getPlayer(),1308,3,True)

skillCast(st.getPlayer(),1362,1,True)

skillCast(st.getPlayer(),1363,1,True)

skillCast(st.getPlayer(),1413,1,True)

skillCast(st.getPlayer(),1390,3,True)

skillCast(st.getPlayer(),1391,3,True)

skillCast(st.getPlayer(),1413,1,True)

skillCast(st.getPlayer(),1461,1,True)

htmltext = "7.htm"

 

#prophecy of Fire

elif event == "717":

htmltext = conditionalCast(st,st.getPlayer(),0,1356,1,"8.htm",True)

 

#Prophecy of Water

elif event == "718":

htmltext = conditionalCast(st,st.getPlayer(),0,1355,1,"8.htm",True)

 

#Prophecy of Wind

elif event == "719":

htmltext = conditionalCast(st,st.getPlayer(),0,1357,1,"8.htm",True)

 

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

# Linked to 10.htm - Summon  #

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

 

#Blessing of Queen

elif event == "720":

htmltext = conditionalCast(st,st.getPlayer(),0,4699,13,"10.htm",True)

 

#Gift of Queen

elif event == "721":

htmltext = conditionalCast(st,st.getPlayer(),0,4700,13,"10.htm",True)

 

#Blessing of Seraphim

elif event == "722":

htmltext = conditionalCast(st,st.getPlayer(),0,4702,13,"10.htm",True)

 

#Gift of Seraphim

elif event == "723":

htmltext = conditionalCast(st,st.getPlayer(),0,4703,13,"10.htm",True)

 

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

# Linked to 9.htm - Noblesse #

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

 

#Noblesse Blessing

elif event == "800":

htmltext = conditionalCast(st,st.getPlayer(),0,1323,1,"1.htm",True)

 

#Fortune of Noblesse

elif event == "801":

htmltext = conditionalCast(st,st.getPlayer(),0,1325,1,"9.htm",True)

 

#All Noblesse

elif event == "802":

if adena < 0:

st.exitQuest(1)

return NotEnoughAdena

st.takeItems(ADENA_ID,500000)

skillCast(st.getPlayer(),1323,1,True) #Noblesse Blessing

skillCast(st.getPlayer(),1325,1,True) #Fortune of Noblesse

htmltext = "9.htm"

 

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

# Linked to 11.htm - Hell Bound #

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

 

#Improve Combat

elif event == "900":

htmltext = conditionalCast(st,st.getPlayer(),0,1499,1,"11.htm",True)

 

#Improve Magic

elif event == "901":

htmltext = conditionalCast(st,st.getPlayer(),0,1500,1,"11.htm",True)

 

#Improve Condition

elif event == "902":

htmltext = conditionalCast(st,st.getPlayer(),0,1501,1,"11.htm",True)

 

#Improve Critical Attack

elif event == "903":

htmltext = conditionalCast(st,st.getPlayer(),0,1502,1,"11.htm",True)

 

#Improve Shield Defense

elif event == "904":

htmltext = conditionalCast(st,st.getPlayer(),0,1503,1,"11.htm",True)

 

#Improve Movement

elif event == "905":

htmltext = conditionalCast(st,st.getPlayer(),0,1504,1,"11.htm",True)

 

#Chant of Combat

elif event == "906":

htmltext = conditionalCast(st,st.getPlayer(),0,1517,1,"11.htm",True)

 

#Chant of Critical Attack

elif event == "907":

htmltext = conditionalCast(st,st.getPlayer(),0,1518,1,"11.htm",True)

 

#Improve Movement

elif event == "908":

htmltext = conditionalCast(st,st.getPlayer(),0,1519,1,"11.htm",True)

 

#All Noblesse

elif event == "909":

if adena < 0:

st.exitQuest(1)

return NotEnoughAdena

skillCast(st.getPlayer(),1499,1,True)

skillCast(st.getPlayer(),1500,1,True)

skillCast(st.getPlayer(),1501,1,True)

skillCast(st.getPlayer(),1502,1,True)

skillCast(st.getPlayer(),1503,1,True)

skillCast(st.getPlayer(),1504,1,True)

skillCast(st.getPlayer(),1517,1,True)

skillCast(st.getPlayer(),1518,1,True)

skillCast(st.getPlayer(),1519,1,True)

htmltext = "11.htm"

 

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

# Linked to 12.htm - Kamael     #

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

 

#Apetite

elif event == "910":

htmltext = conditionalCast(st,st.getPlayer(),0,1476,3,"12.htm",True)

 

#Vampiric

elif event == "911":

htmltext = conditionalCast(st,st.getPlayer(),0,1477,3,"12.htm",True)

 

#Protection

elif event == "912":

htmltext = conditionalCast(st,st.getPlayer(),0,1478,2,"12.htm",True)

 

#Magic

elif event == "913":

htmltext = conditionalCast(st,st.getPlayer(),0,1479,3,"12.htm",True)

 

#All Kamael

elif event == "914":

if adena < 0:

st.exitQuest(1)

return NotEnoughAdena

skillCast(st.getPlayer(),1476,3,True)

skillCast(st.getPlayer(),1477,3,True)

skillCast(st.getPlayer(),1478,2,True)

skillCast(st.getPlayer(),1479,3,True)

htmltext = "12.htm"

 

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

# Linked  - Cancel Buffs     #

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

 

#Cancel Buffs

if event == "1000":

st.getPlayer().stopAllEffects()

return "1.htm"

st.setState(COMPLETED)

return htmltext

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

#Script Ended for the Buffs#

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

 

if htmltext != event:

st.setState(COMPLETED)

st.exitQuest(1)

return htmltext

 

def onTalk (self,npc,player):

st = player.getQuestState(qn)

if not st : st = self.newQuestState(player)

st.setState(State.STARTED)

  return InitialHtml

 

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

 

for npcId in NPC:

QUEST.addStartNpc(npcId)

QUEST.addTalkId(npcId)

 

Where you see " * * * ", there were other buffs, I just deleted some so I can post it here

  • 0
Posted

its because of

 

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

# This gets all the targets for the skill (self, party, clan, ally, etc...)#

targets = skillInfo.getTargetList(player)

 

i'm searching for solution :) i need it too :D i'll post here if i find

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • Recommended seller, I'm using his services. Good luck @Ave
    • https://l2.gamedream.pl/ Update #2 — GameDream Interlude (C6)     This update focuses on Epic bosses, quest chains and overall QoL :cool Highlights: Frintezza access follows a full retail-like chain: Four Goblets → Last Imperial Prince → Journey to a Settlement Retail-like entry requirements restored (scroll + Command Channel) Four Goblets quest is now available in-game Shot visuals synced with attack/skill usage Community Board Premium Shop refreshed with classic Interlude buttons and cleaner tables Epic Raidboss access: Frintezza — 4–5 party Command Channel + scroll + Antique Brooch Antharas — Portal Stone Baium — Bloody Fabric Valakas — Floating Stone Queen Ant / Core / Orfen / Zaken — no quest gates Bug Fixes & QoL: Frintezza quest chain fully fixed TvT rewards — single reward + anti-abuse protection Shots — no double triggering Premium Shop — no blank tabs Mammon NPCs in Giran working correctly Cancel works retail-like (up to 5 buffs removed) Summon Friend fixed with anti-exploit guards YetiBuffer — Saved Buff Profiles (Save / Clear / Restore) PvE — increased aggro range + balance tweaks EXP toggle commands: expoff / expon / expblock Thanks for testing and feedback — more updates coming soon ❤️
    • Hello I would like to offer You my NEW 2026 Updater / Launcher with custom skins.   - UPDATER FEATURES -   1. Performance and Intelligent Resource Management: Smart Disk Detection (SSD/HDD): The updater automatically detects the user's drive type. For SSD/NVMe drives: Launches up to 8-12 concurrent threads, utilizing the full yet optimized connection speed. For HDD drives: Limits the thread count (to 2-3) to prevent computer slowdowns and avoid overloading the drive head. Multi-threaded Downloading: Instead of downloading file by file, the updater downloads multiple files simultaneously, drastically reducing update time. ZSTD Compression: Support for the modern Zstandard compression algorithm (.zst). Files are downloaded in compressed form and decompressed on the fly, saving bandwidth and accelerating downloads. HTTP/2 and Keep-Alive Support: Utilizing the HTTP/2 protocol and persistent connections allows for the instant download of thousands of small files without establishing a new connection for each one.   2. Modern User Interface (UI/UX): Transparency and PNG Graphics: Support for irregular window shapes, allowing for the creation of a unique, modern launcher look. Taskbar Integration: The progress bar is displayed not only in the window but also on the Windows taskbar icon. Built-in News Browser (Optional): The updater features a built-in browser module that displays news/changelogs directly within the launcher (without opening an external browser). Multi-language Support (Optional): Built-in language switching system (e.g., EN/PL/RU, etc.) with dynamic loading of button graphics and text. Animated Buttons (Optional): Dedicated, animated buttons redirecting to Discord, Facebook, YouTube, Instagram, and the website.   3. Technical Features and Application Security: Anti-Dual Run (Optional): The updater checks if the game is already running to prevent file conflicts during updates. Error Diagnostics: Built-in logging system (debug_log.txt) and hardware exception handling (SEH), facilitating the diagnosis of problems for players who cannot run the game. Internal Configuration: Updater settings are stored inside the .exe file, eliminating publicly accessible configuration files.   4. File Categorization (Normal vs. Critical vs. Once): Critical Files: Critical files are verified more thoroughly (via MD5 Hash) even in quick check mode to guarantee stability. Normal Files: Standard game files (textures, models, sounds) are checked depending on the selected mode (Quick vs. Full). Once Files (Overwrite Exclusions): Applies to user configuration files (e.g., Option.ini, User.ini).   5. Check Modes (Verification Algorithms): Self-Update: The updater can update itself before checking game files, allowing for easy deployment of launcher fixes. The updater supports two main operating modes that switch intelligently based on user action: Smart Check (Startup Quick Check): Runs automatically upon updater startup or pressing the START button (unless a full check is forced). Full Check (Full MD5 Verification): Manually triggered by the player via the "Full Check" button. Automatic Update Detection: If a newer version of a file appears on the server, it is automatically detected and downloaded without player interaction. Atomic Updates: Files are downloaded and verified first, and only then saved to the disk. This prevents game client corruption in case of internet connection loss. The entire process takes seconds, even with clients weighing 30GB+. - PATCH BUILDER FEATURES -   1. Professional File Structure Management (Tree-List Hybrid): Directory Tree Visualization: Instead of a flat file list, the Builder displays a clear structure of folders and subfolders. You can collapse and expand entire tree branches, facilitating work with thousands of files. Normal and Critical Division: A clear window division into two main zones: Normal Files and Critical Files. Ghost and Excluded Files Division: The interface visually informs about the status of unchanged files (existing in the previous patch version) and files excluded from the update. Show/Hide Ghosts: With one click, you can hide unchanged files to focus solely on what you are actually sending to players in this update.   2. Intuitive Interaction: Drag & Drop: Full Drag & Drop support. You can grab files or entire folders and drag them between the "Normal" and "Critical" lists. Transfer is intelligent – it moves the entire content of selected folders. Keyboard Shortcuts: Fast workflow thanks to keyboard support: Delete, Enter, Ctrl+A / Ctrl+C (select and copy paths).   3. Advanced Filtering and Searching: Context Search: The search bar works in real-time, filtering the file tree. Type /folder: Searches only within folder names. Type *ex: Shows only excluded files. Standard Typing: Searches files by name.   4. Automation and Security: Auto Self-Update: The Builder automatically detects the updater executable file. Real-Time Statistics: The status bar continuously shows the file count (Normal/Critical), total patch weight (in Bytes/MB/GB), and the last update date. System File Protection: Files marked as "Critical" cannot be accidentally added to the exclusion list – the program blocks such actions.   5. Performance (Backend): ZSTD Compression: The Builder uses the latest Zstandard algorithm to compress files before sending, ensuring a significantly smaller patch size than standard ZIP, saving server bandwidth and player time. Multi-threading: The packing and MD5 checksum generation process utilizes multiple CPU threads, drastically reducing patch building time.   - PRICING - NEW Updater standard price: 79 euro (if You ask for mods, price will change).   - CONTACT - Discord: ave7309   CLICK HERE TO CHECK LATEST TEMPLATES!                         * I have right to REFUSE to take an order. * Supported games: Lineage 2 / Black Desert / MU Online / Tantra / Rohan / Aion / Cabal / Fiesta any more...  
    • 🔥 Upgrade Your Server's Visual Identity 🔥 Hello Community! We are proud to present the Shadowbane Collection – a premium, oriental-style visual suite designed specifically for Metin2 and Silkroad private servers. Forget about static, boring pages. Give your players a true "AAA" experience with a fully animated video header and a professional brand identity. 🎥 VIDEO PREVIEW   🐉 1. Shadowbane – Animated HTML Website Template A fully coded, responsive website template with a stunning video background. No coding skills required – just upload and configure! 🚀 Technology: HTML5 / CSS3 / JS (No PSD, ready code) 🎥 Animated Header: Loopable video background included (.mp4) 📱 Responsive: Works perfectly on Mobile & Desktop 📂 Pages Included: Home, Rankings, Register, Download, News 👉 DOWNLOAD WEBSITE TEMPLATE HERE       ⚔️ 2. Shadowbane – Game Logo & Text Effect Complete your branding with this matching Logo Template. It works as a Photoshop Text Effect – just type your server name! 🎨 Style: Oriental Gold & Brush Ink ⚡ Easy Edit: Smart Objects (One-click change) 🎁 Bonus: Social Media Kit included (Banner + Avatar) 👉 DOWNLOAD LOGO TEMPLATE HERE 🎁 SPECIAL LAUNCH DISCOUNT 🎁 For forum members, we have prepared a special code. Get 20% OFF on your entire order! CODE: LOVEM2 Elevate your server today with Pixarts.store  
    • Contact me on discord have an offer for you. l2avalon.net  
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..