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

Join the conversation

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

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

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

×   Your previous content has been restored.   Clear editor

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



×
×
  • Create New...