本文整理汇总了Python中net.sf.l2j.gameserver.model.quest.State.addQuestDrop方法的典型用法代码示例。如果您正苦于以下问题:Python State.addQuestDrop方法的具体用法?Python State.addQuestDrop怎么用?Python State.addQuestDrop使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.sf.l2j.gameserver.model.quest.State
的用法示例。
在下文中一共展示了State.addQuestDrop方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: and
# 需要导入模块: from net.sf.l2j.gameserver.model.quest import State [as 别名]
# 或者: from net.sf.l2j.gameserver.model.quest.State import addQuestDrop [as 别名]
if not st.getQuestItemsCount(GARMIELS_SCRIPTURE_ID) :
st.giveItems(GARMIELS_SCRIPTURE_ID,1)
htmltext = "30143-01.htm"
else :
htmltext = "30143-02.htm"
if st.getQuestItemsCount(UNDRES_LETTER_ID) and (st.getQuestItemsCount(CEREMONIAL_DAGGER_ID) + st.getQuestItemsCount(DREVIANT_WINE_ID) + st.getQuestItemsCount(GARMIELS_SCRIPTURE_ID) >= 3) :
st.set("cond","2")
st.playSound("ItemSound.quest_middle")
return htmltext
QUEST = Quest(166,qn,"Dark Mass")
CREATED = State('Start', QUEST)
STARTING = State('Starting', QUEST)
STARTED = State('Started', QUEST)
COMPLETED = State('Completed', QUEST)
QUEST.setInitialState(CREATED)
QUEST.addStartNpc(30130)
QUEST.addTalkId(30130)
QUEST.addTalkId(30135)
QUEST.addTalkId(30139)
QUEST.addTalkId(30143)
STARTED.addQuestDrop(30135,CEREMONIAL_DAGGER_ID,1)
STARTED.addQuestDrop(30139,DREVIANT_WINE_ID,1)
STARTED.addQuestDrop(30143,GARMIELS_SCRIPTURE_ID,1)
STARTED.addQuestDrop(30130,UNDRES_LETTER_ID,1)
示例2: divmod
# 需要导入模块: from net.sf.l2j.gameserver.model.quest import State [as 别名]
# 或者: from net.sf.l2j.gameserver.model.quest.State import addQuestDrop [as 别名]
partyMember = self.getRandomPartyMemberState(player, STARTED)
if not partyMember : return
st = partyMember.getQuestState(qn)
chance = CHANCE[npc.getNpcId()]*Config.RATE_DROP_QUEST
numItems, chance = divmod(chance,MAX)
if st.getRandom(MAX)<chance :
numItems = numItems + 1
if numItems != 0 :
st.giveItems(ANCIENT_SCROLL,int(numItems))
st.playSound("ItemSound.quest_itemget")
return
QUEST = Quest(385,qn,"Yoke of the Past")
CREATED = State('Start', QUEST)
STARTED = State('Started', QUEST)
QUEST.setInitialState(CREATED)
for npcId in range(31095,31126):
if npcId in [31111,31112,31113]:
continue
QUEST.addTalkId(npcId)
QUEST.addStartNpc(npcId)
for mobs in range(21208,21256):
QUEST.addKillId(mobs)
STARTED.addQuestDrop(20986,ANCIENT_SCROLL,1)
print "importing quests: 385: Yoke of the Past"
示例3:
# 需要导入模块: from net.sf.l2j.gameserver.model.quest import State [as 别名]
# 或者: from net.sf.l2j.gameserver.model.quest.State import addQuestDrop [as 别名]
QUEST.addTalkId(30191)
QUEST.addTalkId(30031)
QUEST.addTalkId(30154)
QUEST.addTalkId(30358)
QUEST.addTalkId(30464)
QUEST.addTalkId(30515)
QUEST.addTalkId(30531)
QUEST.addTalkId(30565)
QUEST.addTalkId(30621)
QUEST.addTalkId(30657)
for i in DROPLIST.keys()+[20013,20019,20036,20044,20553] :
QUEST.addKillId(i)
STARTED.addQuestDrop(30358,SCROLL_OF_DARKELF_TRUST_ID,1)
STARTED.addQuestDrop(30154,SCROLL_OF_ELF_TRUST_ID,1)
STARTED.addQuestDrop(30531,SCROLL_OF_DWARF_TRUST_ID,1)
STARTED.addQuestDrop(30565,SCROLL_OF_ORC_TRUST_ID,1)
STARTED.addQuestDrop(27120,BREATH_OF_WINDS_ID,1)
STARTED.addQuestDrop(27121,SEED_OF_VERDURE_ID,1)
STARTED.addQuestDrop(30154,ORDER_OF_OZZY_ID,1)
STARTED.addQuestDrop(30191,LETTER_TO_ELF_ID,1)
STARTED.addQuestDrop(30464,ORDER_OF_CLAYTON_ID,1)
STARTED.addQuestDrop(20550,BASILISK_PLASMA_ID,1)
STARTED.addQuestDrop(20157,STAKATO_ICHOR_ID,1)
STARTED.addQuestDrop(20082,HONEY_DEW_ID,1)
STARTED.addQuestDrop(30191,LETTER_TO_DARKELF_ID,1)
STARTED.addQuestDrop(30358,LETTER_OF_THIFIELL_ID,1)
STARTED.addQuestDrop(30191,LETTER_TO_SERESIN_ID,1)
STARTED.addQuestDrop(30657,LETTER_TO_ORC_ID,1)
示例4: Quest
# 需要导入模块: from net.sf.l2j.gameserver.model.quest import State [as 别名]
# 或者: from net.sf.l2j.gameserver.model.quest.State import addQuestDrop [as 别名]
if npcId == 30533 and st.getInt("cond")==1 :
htmltext = "30533-04.htm"
elif npcId == 30520 and st.getInt("cond") == 3 :
htmltext = "30520-04.htm"
st.set("cond","4")
elif npcId == 30520 and st.getInt("cond") :
if st.getQuestItemsCount(VERY_EXPENSIVE_NECKLACE) == 0 :
htmltext = "30520-01.htm"
else :
htmltext = "30520-03.htm"
elif npcId == 30650 and st.getInt("cond")==2 :
if st.getQuestItemsCount(VERY_EXPENSIVE_NECKLACE) :
htmltext = "30650-01.htm"
elif npcId == 30533 and st.getInt("cond")==4 :
htmltext = "30533-05.htm"
return htmltext
QUEST = Quest(10,qn,"Into The World")
CREATED = State('Start', QUEST)
STARTED = State('Started', QUEST)
COMPLETED = State('Completed', QUEST)
QUEST.setInitialState(CREATED)
QUEST.addStartNpc(30533)
QUEST.addTalkId(30533)
QUEST.addTalkId(30520)
QUEST.addTalkId(30650)
STARTED.addQuestDrop(30520,VERY_EXPENSIVE_NECKLACE,1)
示例5: Quest
# 需要导入模块: from net.sf.l2j.gameserver.model.quest import State [as 别名]
# 或者: from net.sf.l2j.gameserver.model.quest.State import addQuestDrop [as 别名]
st.playSound("ItemSound.quest_itemget")
else:
st.playSound("ItemSound.quest_middle")
st.set("cond","2")
st.giveItems(MARAKU_WEREWOLF_HEAD,1)
if st.getRandom(100) <= 5 :
st.giveItems(MARAKU_WOLFMEN_TOTEM,1)
return
QUEST = Quest(274,"274_AgainstWolfMen","Against Wolf Men")
CREATED = State('Start', QUEST)
STARTING = State('Starting', QUEST)
STARTED = State('Started', QUEST)
COMPLETED = State('Completed', QUEST)
QUEST.setInitialState(CREATED)
QUEST.addStartNpc(7569)
CREATED.addTalkId(7569)
STARTING.addTalkId(7569)
STARTED.addTalkId(7569)
COMPLETED.addTalkId(7569)
STARTED.addKillId(363)
STARTED.addKillId(364)
STARTED.addQuestDrop(363,MARAKU_WEREWOLF_HEAD,1)
STARTED.addQuestDrop(364,MARAKU_WEREWOLF_HEAD,1)
print "importing quests: 274: Against Wolf Men"
示例6: Quest
# 需要导入模块: from net.sf.l2j.gameserver.model.quest import State [as 别名]
# 或者: from net.sf.l2j.gameserver.model.quest.State import addQuestDrop [as 别名]
st.giveItems(LIZARD_FANG,st.getRandom(5)+1)
st.playSound("ItemSound.quest_itemget")
if random<=CHANCE2 :
st.giveItems(BARREL_OF_LEAGUE,1)
st.set("cond","2")
return
QUEST = Quest(351,qn,"Black Swan")
CREATED = State('Start', QUEST)
STARTED = State('Started', QUEST)
QUEST.setInitialState(CREATED)
QUEST.addStartNpc(30916)
QUEST.addTalkId(30916)
QUEST.addTalkId(30969)
QUEST.addTalkId(30897)
STARTED.addQuestDrop(30916,ORDER_OF_GOSTA,1)
STARTED.addQuestDrop(30916,BARREL_OF_LEAGUE,1)
STARTED.addQuestDrop(30916,LIZARD_FANG,1)
QUEST.addKillId(20784)
QUEST.addKillId(20785)
QUEST.addKillId(21639)
QUEST.addKillId(21640)
QUEST.addKillId(21642)
QUEST.addKillId(21643)
print "importing quests: 351: Black Swan"
示例7: Quest
# 需要导入模块: from net.sf.l2j.gameserver.model.quest import State [as 别名]
# 或者: from net.sf.l2j.gameserver.model.quest.State import addQuestDrop [as 别名]
count = st.getQuestItemsCount(KASHA_WOLF_FANG)
if count < 50 :
if st.getRandom(100) <= 25 and count < 49 :
st.giveItems(KASHA_WOLF_FANG,2)
count += 2
else :
st.giveItems(KASHA_WOLF_FANG,1)
count += 1
if count >= 50 :
st.playSound("ItemSound.quest_middle")
st.set("cond","2")
else:
st.playSound("ItemSound.quest_itemget")
return
QUEST = Quest(271,qn,"Proof Of Valor")
CREATED = State('Start', QUEST)
STARTING = State('Starting', QUEST) # kept just for backwards compatibility
STARTED = State('Started', QUEST)
COMPLETED = State('Completed', QUEST)
QUEST.setInitialState(CREATED)
QUEST.addStartNpc(30577)
QUEST.addTalkId(30577)
QUEST.addKillId(20475)
STARTED.addQuestDrop(20475,KASHA_WOLF_FANG,1)
print "importing quests: 271: Proof Of Valor"
示例8: giveItem
# 需要导入模块: from net.sf.l2j.gameserver.model.quest import State [as 别名]
# 或者: from net.sf.l2j.gameserver.model.quest.State import addQuestDrop [as 别名]
giveItem(itemList[0],maxcount,leader_st)
else:
if npcId == 27181: # Imperial Gravekeeper
leader_st.getPcSpawn().addSpawn(30765,120000,["Curse of the gods on the one that defiles the property of the empire!"],60000)
leader_st.set("ImpGraveKeeper","3")
self.ImpGraveKepperStat = 1
elif npcId == 20668:
leader_st.getPcSpawn().addSpawn(27179)
return
QUEST = Quest(503,qn,"Pursuit of Clan Ambition")
CREATED = State('Start', QUEST)
PROGRESS = State('Progress', QUEST)
COMPLETED = State('Completed', QUEST)
QUEST.setInitialState(CREATED)
QUEST.addStartNpc(NPC[3])
for npcId in NPC:
QUEST.addTalkId(npcId)
for mobId in DROPLIST.keys():
QUEST.addKillId(mobId)
QUEST.addAttackId(27181)
for i in range(3839,3848)+range(3866,3870):
PROGRESS.addQuestDrop(27181,i,1)
print "importing quests: 503: " + qd
示例9: int
# 需要导入模块: from net.sf.l2j.gameserver.model.quest import State [as 别名]
# 或者: from net.sf.l2j.gameserver.model.quest.State import addQuestDrop [as 别名]
htmltext = "7116-01.htm"
elif npcId == 7116 and int(st.get("cond"))==6 :
htmltext = "7116-03.htm"
return htmltext
QUEST = Quest(46,"46_OnceMoreInTheArmsOfTheMotherTree","Once More In The Arms Of The Mother Tree")
CREATED = State('Start', QUEST)
STARTED = State('Started', QUEST)
COMPLETED = State('Completed', QUEST)
QUEST.setInitialState(CREATED)
QUEST.addStartNpc(7097)
CREATED.addTalkId(7097)
COMPLETED.addTalkId(7097)
STARTED.addTalkId(7097)
STARTED.addTalkId(7094)
STARTED.addTalkId(7090)
STARTED.addTalkId(7116)
STARTED.addQuestDrop(7097,GALLADUCCIS_ORDER_DOCUMENT_ID_1,1)
STARTED.addQuestDrop(7097,GALLADUCCIS_ORDER_DOCUMENT_ID_2,1)
STARTED.addQuestDrop(7097,GALLADUCCIS_ORDER_DOCUMENT_ID_3,1)
STARTED.addQuestDrop(7094,MAGIC_SWORD_HILT_ID,1)
STARTED.addQuestDrop(7090,GEMSTONE_POWDER_ID,1)
STARTED.addQuestDrop(7116,PURIFIED_MAGIC_NECKLACE_ID,1)
print "importing quests: 46: Once More In The Arms of the Mother Tree"
示例10: onKill
# 需要导入模块: from net.sf.l2j.gameserver.model.quest import State [as 别名]
# 或者: from net.sf.l2j.gameserver.model.quest.State import addQuestDrop [as 别名]
htmltext = "7095-0a.htm"
st.exitQuest(1)
elif cond == 1:
if not st.getQuestItemsCount(TREASURE_CHEST):
htmltext = "7095-2.htm"
else:
htmltext = "7095-4.htm"
return htmltext
def onKill(self, npc, st):
chance = st.getRandom(100)
if chance < CHANCE_OF_DROP:
st.giveItems(TREASURE_CHEST, 1)
st.playSound("ItemSound.quest_itemget")
return
QUEST = Quest(365, "365_DevilsLegacy", "Devil's Legacy")
CREATED = State("Start", QUEST)
STARTED = State("Started", QUEST)
QUEST.setInitialState(CREATED)
QUEST.addStartNpc(RANDOLF)
CREATED.addTalkId(RANDOLF)
STARTED.addTalkId(RANDOLF)
for mob in MOBS:
STARTED.addKillId(mob)
STARTED.addQuestDrop(RANDOLF, TREASURE_CHEST, 1)
print "importing quests: 365: Devil's Legacy"
示例11: and
# 需要导入模块: from net.sf.l2j.gameserver.model.quest import State [as 别名]
# 或者: from net.sf.l2j.gameserver.model.quest.State import addQuestDrop [as 别名]
st.set("id","5")
st.playSound("ItemSound.quest_middle")
elif npcId == GREENIS and st.getQuestItemsCount(GREENIS_LETTER) :
htmltext = "30157-03.htm"
elif npcId == GREENIS and (st.getQuestItemsCount(ARUJIENS_LETTER1) or st.getQuestItemsCount(ARUJIENS_LETTER2) or st.getQuestItemsCount(ARUJIENS_LETTER3)) :
htmltext = "30157-01.htm"
return htmltext
QUEST = Quest(2,qn,"What Women Want")
CREATED = State('Start', QUEST)
STARTED = State('Started', QUEST)
COMPLETED = State('Completed', QUEST)
QUEST.setInitialState(CREATED)
QUEST.addStartNpc(ARUJIEN)
QUEST.addTalkId(ARUJIEN)
QUEST.addTalkId(MIRABEL)
QUEST.addTalkId(HERBIEL)
QUEST.addTalkId(GREENIS)
QUEST.addTalkId(ARUJIEN)
STARTED.addQuestDrop(ARUJIEN,GREENIS_LETTER,1)
STARTED.addQuestDrop(ARUJIEN,ARUJIENS_LETTER3,1)
STARTED.addQuestDrop(ARUJIEN,ARUJIENS_LETTER1,1)
STARTED.addQuestDrop(ARUJIEN,ARUJIENS_LETTER2,1)
STARTED.addQuestDrop(ARUJIEN,POETRY_BOOK,1)
print "importing quests: 2: What Women Want"
示例12:
# 需要导入模块: from net.sf.l2j.gameserver.model.quest import State [as 别名]
# 或者: from net.sf.l2j.gameserver.model.quest.State import addQuestDrop [as 别名]
QUEST.addTalkId(30655)
QUEST.addKillId(20145)
QUEST.addKillId(20176)
QUEST.addKillId(20233)
QUEST.addKillId(27077)
QUEST.addKillId(20550)
QUEST.addKillId(20581)
QUEST.addKillId(20582)
QUEST.addKillId(20082)
QUEST.addKillId(20084)
QUEST.addKillId(20086)
QUEST.addKillId(20087)
QUEST.addKillId(20088)
STARTED.addQuestDrop(30154,CAMOMILE_CHARM_ID,1)
STARTED.addQuestDrop(30460,CARDIENS_LETTER_ID,1)
STARTED.addQuestDrop(30371,WATER_OF_LIFE_ID,1)
STARTED.addQuestDrop(30154,MOONFLOWER_CHARM_ID,1)
STARTED.addQuestDrop(30154,HIERARCHS_LETTER_ID,1)
STARTED.addQuestDrop(30419,STARDUST_ID,1)
STARTED.addQuestDrop(30300,PURE_MITHRIL_CUP_ID,1)
STARTED.addQuestDrop(30371,THALIAS_INSTRUCTIONS_ID,1)
STARTED.addQuestDrop(30655,ISAELS_LETTER_ID,1)
STARTED.addQuestDrop(27077,TEARS_OF_UNICORN_ID,1)
STARTED.addQuestDrop(30371,GRAIL_DIAGRAM_ID,1)
STARTED.addQuestDrop(30300,PUSHKINS_LIST_ID,1)
STARTED.addQuestDrop(30371,THALIAS_LETTER1_ID,1)
STARTED.addQuestDrop(30419,ARKENIAS_CONTRACT_ID,1)
STARTED.addQuestDrop(30375,ANDARIEL_SCRIPTURE_COPY_ID,1)
STARTED.addQuestDrop(30419,ARKENIAS_INSTRUCTIONS_ID,1)
示例13: onKill
# 需要导入模块: from net.sf.l2j.gameserver.model.quest import State [as 别名]
# 或者: from net.sf.l2j.gameserver.model.quest.State import addQuestDrop [as 别名]
return htmltext
def onKill (self,npc,player):
st = player.getQuestState(qn)
if not st : return
if st.getState() != STARTED : return
npcId = npc.getNpcId()
cond = st.getInt("cond")
if cond==1 :
st.dropQuestItems(BEAR_SKIN,1,20,CHANCE,1)
return
QUEST = Quest(341,qn,"Hunting For Wild Beasts")
CREATED = State('Start', QUEST)
STARTED = State('Started', QUEST)
QUEST.setInitialState(CREATED)
QUEST.addStartNpc(30078)
QUEST.addTalkId(30078)
STARTED.addQuestDrop(30078,BEAR_SKIN,1)
QUEST.addKillId(20021)
QUEST.addKillId(20203)
QUEST.addKillId(20310)
QUEST.addKillId(20335)
print "importing quests: 341: Hunting For Wild Beasts"
示例14: range
# 需要导入模块: from net.sf.l2j.gameserver.model.quest import State [as 别名]
# 或者: from net.sf.l2j.gameserver.model.quest.State import addQuestDrop [as 别名]
st.giveItems(CHAPTER_OF_WIND, 1)
st.playSound("ItemSound.quest_itemget")
elif chance in range(75, 90) and st.getQuestItemsCount(CHAPTER_OF_EARTH) == 0:
st.giveItems(CHAPTER_OF_EARTH, 1)
st.playSound("ItemSound.quest_itemget")
if (
st.getQuestItemsCount(CHAPTER_OF_FIRE)
and st.getQuestItemsCount(CHAPTER_OF_WATER)
and st.getQuestItemsCount(CHAPTER_OF_WIND)
and st.getQuestItemsCount(CHAPTER_OF_EARTH)
):
st.playSound("ItemSound.quest_middle")
return
QUEST = Quest(370, "370_AWisemanSowsSeeds", "A Wiseman Sows Seeds")
CREATED = State("Start", QUEST)
STARTED = State("Started", QUEST)
QUEST.setInitialState(CREATED)
QUEST.addStartNpc(CASIAN)
CREATED.addTalkId(CASIAN)
STARTED.addTalkId(CASIAN)
for i in MOBS:
STARTED.addKillId(i)
for i in range(5917, 5921):
STARTED.addQuestDrop(CASIAN, i, 1)
print "importing quests: 370: A Wiseman Sows Seeds"