当前位置: 首页>>代码示例>>Python>>正文


Python State.addAttackId方法代码示例

本文整理汇总了Python中net.sf.l2j.gameserver.model.quest.State.addAttackId方法的典型用法代码示例。如果您正苦于以下问题:Python State.addAttackId方法的具体用法?Python State.addAttackId怎么用?Python State.addAttackId使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在net.sf.l2j.gameserver.model.quest.State的用法示例。


在下文中一共展示了State.addAttackId方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: setLeaderVar

# 需要导入模块: from net.sf.l2j.gameserver.model.quest import State [as 别名]
# 或者: from net.sf.l2j.gameserver.model.quest.State import addAttackId [as 别名]
			else:
				if npcId == 5181:								# Imperial Gravekeeper
					st.getPcSpawn().addSpawn(7765,6000000,["Curse of the gods on the one that defiles the property of the empire!"],0)
					setLeaderVar(st,"ImpGraveKeeper","3")
				else:
					st.getPcSpawn().addSpawn(5179)
		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])

CREATED.addTalkId(NPC[3])

for npcId in NPC:
	PROGRESS.addTalkId(npcId)

for mobId in DROPLIST.keys():
	PROGRESS.addKillId(mobId)

PROGRESS.addAttackId(5181)

for i in range(3839,3848)+range(3866,3870):
    PROGRESS.addQuestDrop(5181,i,1)

print "importing quests: 503: " + qd
开发者ID:ivanovkrasen,项目名称:C4-Datapack,代码行数:32,代码来源:__init__.py

示例2: State

# 需要导入模块: from net.sf.l2j.gameserver.model.quest import State [as 别名]
# 或者: from net.sf.l2j.gameserver.model.quest.State import addAttackId [as 别名]
PROGRESS    = State('Progress', QUEST)
COMPLETED      = State('Completed', QUEST)


QUEST.setInitialState(CREATED)
QUEST.addStartNpc(NPC[1])

# adds all npcs, mobs to the progress state
CREATED.addTalkId(NPC[1])
for npcId in NPC:
   PROGRESS.addTalkId(npcId)
for mobId in DROPLIST_LARA.keys():
   PROGRESS.addKillId(mobId)
for mobId in DROPLIST_SUMMON.keys():
   PROGRESS.addKillId(mobId)
   PROGRESS.addAttackId(mobId)
#for summonId in PLAYER_SUMMONS:
#   PROGRESS.addKillId(summonId)

# this will add the player to the list of notified objects in onDeath Part
#addNotifyOfDeath(st.getPlayer())
   
#This is just to formal add the drops, in case that a player abort this quest.. the items should disappear
STARTED        = State('Started', QUEST)

STARTED.addQuestDrop(7063,LARS_LIST1_ID,1)
STARTED.addQuestDrop(7063,LARS_LIST2_ID,1)
STARTED.addQuestDrop(7063,LARS_LIST3_ID,1)
STARTED.addQuestDrop(7063,LARS_LIST4_ID,1)
STARTED.addQuestDrop(7063,LARS_LIST5_ID,1)
STARTED.addQuestDrop(7635,ALMORS_ARCANA_ID,1)
开发者ID:ivanovkrasen,项目名称:C4-Datapack,代码行数:33,代码来源:__init__.py


注:本文中的net.sf.l2j.gameserver.model.quest.State.addAttackId方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。