⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 missionscript05.lua

📁 top web admin panel (tales of pirates)
💻 LUA
📖 第 1 页 / 共 5 页
字号:
	MisBeginCondition(LvCheck, ">", 9 )
	MisBeginCondition(NoMission, 639)
	MisBeginCondition(NoRecord, 639)
	MisBeginAction(AddMission, 639)
	MisBeginAction(AddTrigger, 6391, TE_KILL, 62, 10 )
	MisCancelAction(ClearMission, 639)

	MisNeed(MIS_NEED_KILL, 62, 10, 10, 10)
	
	MisHelpTalk("<t>They should not pose any problem for you. Please complete it fast.")
	MisResultTalk("<t>Thank you! Thank you so much!")
	MisResultCondition(NoRecord, 639)
	MisResultCondition(HasMission, 639)
	MisResultCondition(HasFlag, 639, 19 )
	MisResultAction(ClearMission, 639)
	MisResultAction(SetRecord, 639)
	MisResultAction(AddExp, 120, 120)
	MisResultAction(AddMoney,149,149)


	InitTrigger()
	TriggerCondition( 1, IsMonster, 62 )	
	TriggerAction( 1, AddNextFlag, 639, 10, 10 )
	RegCurTrigger( 6391 )


-----------------------------------跳跳蜥的分泌物
	DefineMission( 640, "Hopping Lizard Secretion", 640 )
	
	MisBeginTalk( "<t>I discovered that the weird smells from the desert are from the <rHopping Lizard>. However it is not their droppings that emitted the odour.<n><t>Currently as of now, I still do not understand the entire issue, can you please go to where the <rHopping Lizard> appears and get me 5 bottles of <yHopping Lizard Secretion> so that I can study it.<n><t>They can be found at (892,3273).")
	MisBeginCondition(LvCheck, ">", 10 )
	MisBeginCondition(NoMission, 640)
	MisBeginCondition(NoRecord, 640)
	MisBeginAction(AddMission, 640)
	MisBeginAction(AddTrigger, 6401, TE_GETITEM, 4095, 5 )
	MisCancelAction(ClearMission, 640)

	MisNeed(MIS_NEED_ITEM, 4095, 5, 10, 5)
	
	MisHelpTalk("<t>Have you collected 5 bottles of <yHopping Lizard Secretion>?")
	MisResultTalk("<t>Oh my! It's the mating season for <rHopping Lizard>. That explains the smell.")
	MisResultCondition(NoRecord, 640)
	MisResultCondition(HasMission, 640)
	MisResultCondition(HasItem, 4095, 5)
	MisResultAction(TakeItem, 4095, 5 )
	MisResultAction(ClearMission, 640)
	MisResultAction(SetRecord, 640)
	MisResultAction(AddExp, 150, 150)
	MisResultAction(AddMoney,318,318)


	InitTrigger()
	TriggerCondition( 1, IsItem, 4095 )	
	TriggerAction( 1, AddNextFlag, 640, 10, 5 )
	RegCurTrigger( 6401 )


-----------------------------------驱逐小狼
	DefineMission( 641, "Expel the Wolves", 641 )
	
	MisBeginTalk( "<t>I am terrified of <rWolf Cubs>, they often appear in packs in the desert and that leaves me shivering with fear.<n><t>Can you please think of a way to reduce the <rWolf Cubs> population? Try killing 10 <rWolf Cubs>.<n><t>Heh, lets just do it this way, so will you help me hunt 10 <rWolf Cubs>! They usually appear at (687, 3093).")
	MisBeginCondition(LvCheck, ">", 10 )
	MisBeginCondition(NoMission, 641)
	MisBeginCondition(NoRecord, 641)
	MisBeginAction(AddMission, 641)
	MisBeginAction(AddTrigger, 6411, TE_KILL, 100, 10 )
	MisCancelAction(ClearMission, 641)

	MisNeed(MIS_NEED_KILL, 100, 10, 10, 10)
	
	MisHelpTalk("<t>Have you killed 10 <rWolf Cubs> yet? Please try harder!")
	MisResultTalk("<t>Thank you so much! Reducing their population will make traveling safer.")
	MisResultCondition(NoRecord, 641)
	MisResultCondition(HasMission, 641)
	MisResultCondition(HasFlag, 641, 19 )
	MisResultAction(ClearMission, 641)
	MisResultAction(SetRecord, 641)
	MisResultAction(AddExp, 150, 150)
	MisResultAction(AddMoney,159,159)


	InitTrigger()
	TriggerCondition( 1, IsMonster, 100 )	
	TriggerAction( 1, AddNextFlag, 641, 10, 10 )
	RegCurTrigger( 6411 )

-----------------------------------屠杀小狼
	DefineMission( 642, "Wolves Massacre", 642 )
	
	MisBeginTalk( "<t>Ah, I have a friend <bChang> who is willing to spend large amounts of money to collect weird body parts. He self proclaims as a living arts collector, something which I don't agree with.<n><t>This time round he is paying a high price for 5 <yWolf Cub Claws> from <rWolf Cub>. What a cruel job!<n><t>I can't bring myself to do this. However, he is paying a very high price for it so if you are interested, I will hand over the job to you.<n><t>These pitiful animals can be found at (687, 3093).")
	MisBeginCondition(LvCheck, ">", 11 )
	MisBeginCondition(LvCheck, ">", 11 )
	MisBeginCondition(NoMission, 642)
	MisBeginCondition(NoRecord, 642)
	MisBeginAction(AddMission, 642)
	MisBeginAction(AddTrigger, 6421, TE_GETITEM, 4096, 5 )
	MisCancelAction(ClearMission, 642)

	MisNeed(MIS_NEED_ITEM, 4096, 5, 10, 5)
	
	MisHelpTalk("<t>You need to collect 5 <yWolf Cub Claws>.")
	MisResultTalk("<t>Have you done so already? Here is your much deserved reward.")
	MisResultCondition(NoRecord, 642)
	MisResultCondition(HasMission, 642)
	MisResultCondition(HasItem, 4096, 5)
	MisResultAction(TakeItem, 4096, 5 )
	MisResultAction(ClearMission, 642)
	MisResultAction(SetRecord, 642)
	MisResultAction(AddExp, 190, 190)
	MisResultAction(AddMoney,339,339)


	InitTrigger()
	TriggerCondition( 1, IsItem, 4096 )	
	TriggerAction( 1, AddNextFlag, 642, 10, 5 )
	RegCurTrigger( 6421 )

-----------------------------------铲除杀手仙人掌
	DefineMission( 643, "Clearance of Killer Cactus", 643 )
	
	MisBeginTalk( "<t>Abomination! This is definitely an abomination.<n><t>As a merchant I travel a lot, when I first arrived here I saw so many walking <rKiller Cactus>.<n><t>This is too weird! I can't believe that plants can actually walk! Oh my god, please kill 10 <rKiller Cactus> so that I can have a peace of mind.<n><t>They can be found at (884, 3156).")
	MisBeginCondition(LvCheck, ">", 12 )
	MisBeginCondition(NoMission, 643)
	MisBeginCondition(NoRecord, 643)
	MisBeginAction(AddMission, 643)
	MisBeginAction(AddTrigger, 6431, TE_KILL, 43, 10 )
	MisCancelAction(ClearMission, 643)

	MisNeed(MIS_NEED_KILL, 43, 10, 10, 10)
	
	MisHelpTalk("<t>Have you gotten rid of 10 <rKiller Cactuses>?")
	MisResultTalk("<t>Thank you! I feel so much better!")
	MisResultCondition(NoRecord, 643)
	MisResultCondition(HasMission, 643)
	MisResultCondition(HasFlag, 643, 19 )
	MisResultAction(ClearMission, 643)
	MisResultAction(SetRecord, 643)
	MisResultAction(AddExp, 240, 240)
	MisResultAction(AddMoney,180,180)


	InitTrigger()
	TriggerCondition( 1, IsMonster, 43 )	
	TriggerAction( 1, AddNextFlag, 643, 10, 10 )
	RegCurTrigger( 6431 )



-----------------------------------良药苦口
	DefineMission( 644, "Bitter Medication", 644 )
	
	MisBeginTalk( "<t>The dry air of the desert makes people uncomfortable. I do have a secret recipe that when used, it can make travellers feel a tad bit better.<n><t>However this remedy requires <yLarge Cactus Tuber> from <rKiller Cactus>.<n><t>I don't have the capability to defeat these monsters so can you please obtain 5 <yLarge Cactus Tubers> for me? These monsters are often found at (884, 3156) frolicking under the sun.")
	MisBeginCondition(LvCheck, ">", 13 )
	MisBeginCondition(NoMission, 644)
	MisBeginCondition(NoRecord, 644)
	MisBeginAction(AddMission, 644)
	MisBeginAction(AddTrigger, 6441, TE_GETITEM, 4421, 5 )
	MisCancelAction(ClearMission, 644)

	MisNeed(MIS_NEED_ITEM, 4421, 5, 10, 5)
	
	MisHelpTalk("<t>I need 5 <yLarge Cactus Tubers> to make medicine.")
	MisResultTalk("<t>Thank you! Now we can help those tourists!")
	MisResultCondition(NoRecord, 644)
	MisResultCondition(HasMission, 644)
	MisResultCondition(HasItem, 4421, 5)
	MisResultAction(TakeItem, 4421, 5 )
	MisResultAction(ClearMission, 644)
	MisResultAction(SetRecord, 644)
	MisResultAction(AddExp, 290, 290)
	MisResultAction(AddMoney,384,384)


	InitTrigger()
	TriggerCondition( 1, IsItem, 4421 )	
	TriggerAction( 1, AddNextFlag, 644, 10, 5 )
	RegCurTrigger( 6441 )


-----------------------------------仙人掌的水囊
	DefineMission( 645, "Cactus Water Pouch", 645 )
	
	MisBeginTalk( "<t>Hey, look what I discovered! The secret of <rKiller Cactus>'s ability to survive in the desert without drinking for long periods of time!<n><t>It because they have a <yCactus Water Pouch> which has very good elastcity to contain water which helps the <rKiller Cactus> through the periods of dry spells.<n><t>However i don't fully understand the materials which the bag is made of, can you help me get 5 <yCactus Water Pouch> back? <rKiller Cactus> can be found at (884, 3516).")
	MisBeginCondition(LvCheck, ">", 13 )
	MisBeginCondition(NoMission, 645)
	MisBeginCondition(HasRecord, 644)
	MisBeginCondition(NoRecord, 645)
	MisBeginAction(AddMission, 645)
	MisBeginAction(AddTrigger, 6451, TE_GETITEM, 4097, 5 )
	MisCancelAction(ClearMission, 645)

	MisNeed(MIS_NEED_ITEM, 4097, 5, 10, 5)
	
	MisHelpTalk("<t>When can you get me 5 <yCactus Water Pouches>?")
	MisResultTalk("<t>This research might be useful to mankind!")
	MisResultCondition(NoRecord, 645)
	MisResultCondition(HasMission, 645)
	MisResultCondition(HasItem, 4097, 5)
	MisResultAction(TakeItem, 4097, 5 )
	MisResultAction(ClearMission, 645)
	MisResultAction(SetRecord, 645)
	MisResultAction(AddExp, 290, 290)
	MisResultAction(AddMoney,384,384)


	InitTrigger()
	TriggerCondition( 1, IsItem, 4097 )	
	TriggerAction( 1, AddNextFlag, 645, 10, 5 )
	RegCurTrigger( 6451 )

----------------------------------翻滚大仙人球
	DefineMission( 646, "Rolling Melons", 646 )
	
	MisBeginTalk( "<t>I wonder who planted so many <rGigantic Melons>. Now hat they are overrunning the desert, what a sight for sore eyes.<n><t>Can you please get rid of 10 <rGigantic Melons> at (687, 3093)?")
	MisBeginCondition(LvCheck, ">", 14 )
	MisBeginCondition(NoMission, 646)
	MisBeginCondition(NoRecord, 646)
	MisBeginAction(AddMission, 646)
	MisBeginAction(AddTrigger, 6461, TE_KILL, 294, 10 )
	MisCancelAction(ClearMission, 646)

	MisNeed(MIS_NEED_KILL, 294, 10, 10, 10)
	
	MisHelpTalk("<t>Have you gotten rid of 10 <rGigantic Melons>?")
	MisResultTalk("<t>Thank you! You are skillful indeed!")
	MisResultCondition(NoRecord, 646)
	MisResultCondition(HasMission, 646)
	MisResultCondition(HasFlag, 646, 19 )
	MisResultAction(ClearMission, 646)
	MisResultAction(SetRecord, 646)
	MisResultAction(AddExp, 360, 360)
	MisResultAction(AddMoney,204,204)


	InitTrigger()
	TriggerCondition( 1, IsMonster, 294 )	
	TriggerAction( 1, AddNextFlag, 646, 10, 10 )
	RegCurTrigger( 6461 )

-----------------------------------苦味多汁果
	DefineMission( 647, "Bitter Fruit", 647 )
	
	MisBeginTalk( "<t>The <yBitter Fruit> from <rGigantic Melons> is bitter and extremely juicy.<n><t>Recently, using bitter fruit as a beverage seems to be the current trend for youngsters.<n><t> Everything I put up is sold immediately and I have run out of stock. Can you please get me 5 <yBitter Fruits>?<n><t>You can get them from the <rGigantic Melons> at (687, 3093).")
	MisBeginCondition(LvCheck, ">", 14 )
	MisBeginCondition(NoMission, 647)
	MisBeginCondition(NoRecord, 647)
	MisBeginAction(AddMission, 647)
	MisBeginAction(AddTrigger, 6471, TE_GETITEM, 4475, 5 )
	MisCancelAction(ClearMission, 647)

	MisNeed(MIS_NEED_ITEM, 4475, 5, 10, 5)
	
	MisHelpTalk("<t>Have you collected 5 <Bitter Fruits>?")
	MisResultTalk("<t>Thank you! These are your rewards!")
	MisResultCondition(NoRecord, 647)
	MisResultCondition(HasMission, 647)
	MisResultCondition(HasItem, 4475, 5)
	MisResultAction(TakeItem, 4475, 5 )
	MisResultAction(ClearMission, 647)
	MisResultAction(SetRecord, 647)
	MisResultAction(AddExp, 360, 360)
	MisResultAction(AddMoney,408,408)


	InitTrigger()
	TriggerCondition( 1, IsItem, 4475 )	
	TriggerAction( 1, AddNextFlag, 647, 10, 5 )
	RegCurTrigger( 6471 )

----------------------------------鬼怪树传说
	DefineMission( 648, "Legend of Phantom Tree", 648 )
	
	MisBeginTalk( "<t>Rumor has it that <rPhantom Tree> symbolizes impending doom.<n><t>Although it might not be true, these <rPhantom Trees> still reek of evil. Please chop down 10 <rPhantom Trees> at (885, 3027) and put the villagers to ease.")
	MisBeginCondition(LvCheck, ">", 15 )
	MisBeginCondition(NoMission, 648)
	MisBeginCondition(NoRecord, 648)
	MisBeginAction(AddMission, 648)
	MisBeginAction(AddTrigger, 6481, TE_KILL, 203, 10 )
	MisCancelAction(ClearMission, 648)

	MisNeed(MIS_NEED_KILL, 203, 10, 10, 10)
	
	MisHelpTalk("<t>Chop down 10 <rPhantom Trees>!")
	MisResultTalk("<t>Well done!")
	MisResultCondition(NoRecord, 648)
	MisResultCondition(HasMission, 648)
	MisResultCondition(HasFlag, 648, 19 )
	MisResultAction(ClearMission, 648)
	MisResultAction(SetRecord, 648)
	MisResultAction(AddExp, 450, 450)
	MisResultAction(AddMoney,216,216)


	InitTrigger()
	TriggerCondition( 1, IsMonster, 203 )	
	TriggerAction( 1, AddNextFlag, 648, 10, 10 )
	RegCurTrigger( 6481 )


-----------------------------------枯木逢春
	D

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -