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


Python State.addKillId方法代码示例

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


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

示例1: State

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


QUEST.setInitialState(CREATED)
QUEST.addStartNpc(7327)

CREATED.addTalkId(7327)
STARTING.addTalkId(7327)
COMPLETED.addTalkId(7327)

STARTED.addTalkId(7317)
STARTED.addTalkId(7327)

STARTED.addKillId(35)
STARTED.addKillId(42)
STARTED.addKillId(45)
STARTED.addKillId(51)
STARTED.addKillId(54)
STARTED.addKillId(60)
STARTED.addKillId(782)

STARTED.addQuestDrop(7327,SORIUS_LETTER1_ID,1)
STARTED.addQuestDrop(782,EMERALD_PIECE_ID,1)
STARTED.addQuestDrop(54,TOPAZ_PIECE_ID,1)
STARTED.addQuestDrop(7317,KLUTO_MEMO_ID,1)
STARTED.addQuestDrop(7317,KLUTO_BOX_ID,1)

print "importing quests: 406: Path To Elven Knight"
开发者ID:ivanovkrasen,项目名称:C4-Datapack,代码行数:32,代码来源:__init__.py

示例2: Quest

# 需要导入模块: from net.sf.l2j.gameserver.model.quest import State [as 别名]
# 或者: from net.sf.l2j.gameserver.model.quest.State import addKillId [as 别名]
                st.playSound("ItemSound.quest_middle")
                if part == 1:
                    count = 0
                    for items in [GOLDEN_SEED1_ID, GOLDEN_SEED2_ID, GOLDEN_SEED3_ID]:
                        count += st.getQuestItemsCount(items)
                    if count > 2:
                        st.set("cond", "5")
            else:
                st.giveItems(item, 1)
                st.playSound("ItemSound.quest_itemget")
        return


QUEST = Quest(228, "228_TestOfMagus", "Test Of Magus")
CREATED = State("Start", QUEST)
STARTING = State("Starting", QUEST)
STARTED = State("Started", QUEST)
COMPLETED = State("Completed", QUEST)


QUEST.setInitialState(CREATED)
QUEST.addStartNpc(7629)

STARTING.addTalkId(7629)

for npcId in [7391, 7409, 7411, 7412, 7413, 7612, 7629]:
    STARTED.addTalkId(npcId)

for mobId in [145, 157, 176, 230, 231, 232, 234, 5095, 5096, 5097, 5098, 553, 564, 565, 566]:
    STARTED.addKillId(mobId)
开发者ID:ivanovkrasen,项目名称:C4-Datapack,代码行数:32,代码来源:__init__.py

示例3: onKill

# 需要导入模块: from net.sf.l2j.gameserver.model.quest import State [as 别名]
# 或者: from net.sf.l2j.gameserver.model.quest.State import addKillId [as 别名]
     return htmltext

 def onKill (self,npc,st):
     npcId = npc.getNpcId()
     random = st.getRandom(100)
     if random<=CHANCE :
         st.giveItems(LIENRIK_EGG1,1)
     if random<=CHANCE2 :
         st.giveItems(LIENRIK_EGG2,1)
     return

QUEST       = Quest(352,"352_HelpRoodRaiseANewPet","Help Rood Raise A New Pet")
CREATED     = State('Start', QUEST)
STARTED     = State('Started', QUEST)

QUEST.setInitialState(CREATED)
QUEST.addStartNpc(8067)

CREATED.addTalkId(8067)
STARTED.addTalkId(8067)

STARTED.addQuestDrop(8067,LIENRIK_EGG1,1)
STARTED.addQuestDrop(8067,LIENRIK_EGG2,1)

STARTED.addKillId(786)
STARTED.addKillId(787)

print "importing quests: 352: Help Rood Raise A New Pet"


开发者ID:ivanovkrasen,项目名称:C4-Datapack,代码行数:30,代码来源:__init__.py

示例4: int

# 需要导入模块: from net.sf.l2j.gameserver.model.quest import State [as 别名]
# 或者: from net.sf.l2j.gameserver.model.quest.State import addKillId [as 别名]
                st.getPcSpawn().addSpawn(5044)
                st.takeItems(KASHA_PARASITE_ID,count)
        else :
                st.giveItems(KASHA_PARASITE_ID,1)
                st.playSound("ItemSound.quest_itemget")
   elif npcId == 5044 :
      if int(st.get("cond"))==1 and st.getQuestItemsCount(KASHA_CRYSTAL_ID) == 0 :
        st.giveItems(KASHA_CRYSTAL_ID,1)
        st.playSound("ItemSound.quest_middle")
        st.set("cond","2")
   return

QUEST       = Quest(276,"276_HestuiTotem","Hestui Totem")
CREATED     = State('Start', QUEST)
STARTED     = State('Started', QUEST)
COMPLETED   = State('Completed', QUEST)

QUEST.setInitialState(CREATED)

QUEST.addStartNpc(7571)
CREATED.addTalkId(7571)
STARTED.addTalkId(7571)

STARTED.addKillId(479)
STARTED.addKillId(5044)

STARTED.addQuestDrop(5044,KASHA_CRYSTAL_ID,1)
STARTED.addQuestDrop(479,KASHA_PARASITE_ID,1)

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

示例5: range

# 需要导入模块: from net.sf.l2j.gameserver.model.quest import State [as 别名]
# 或者: from net.sf.l2j.gameserver.model.quest.State import addKillId [as 别名]
QUEST.setInitialState(CREATED)

for i in [SIR_KRISTOF_RODEMAI,STATUE_OF_OFFERING] :
    QUEST.addStartNpc(i)
    CREATED.addTalkId(i)

for i in [WITCH_KALIS,WITCH_ATHREA] :
    CREATED.addTalkId(i)
    
for i in [SIR_KRISTOF_RODEMAI,WITCH_KALIS] :
    PART2.addTalkId(i)
    PART3.addTalkId(i)
    PART4.addTalkId(i)


CREATED.addQuestDrop(STATUE_OF_OFFERING,SYMBOL_OF_LOYALTY,1)
PART3.addQuestDrop(WITCH_KALIS,ANTIDOTE_RECIPE,1)
PART4.addQuestDrop(WITCH_KALIS,VOUCHER_OF_FAITH,1)
PART4.addQuestDrop(WITCH_KALIS,POTION_OF_RECOVERY,1)
PART4.addQuestDrop(WITCH_KALIS,ANTIDOTE_RECIPE,1)

for i in range(len(MOBS)) :
    CREATED.addKillId(MOBS[i][0])
    CREATED.addQuestDrop(MOBS[i][0],MOBS[i][1],1)

for i in CHESTS :
    CREATED.addKillId(i)

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

示例6: setLeaderVar

# 需要导入模块: from net.sf.l2j.gameserver.model.quest import State [as 别名]
# 或者: from net.sf.l2j.gameserver.model.quest.State import addKillId [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


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