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

📄 missionscript05.lua

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

	MisNeed(MIS_NEED_KILL, 64, 10, 10, 10)
	
	MisHelpTalk("<t>Hunt down those <rMad Boars> and stop their rampage!")
	MisResultTalk("<t>The world is a better place to be in now! Thank you!")
	MisResultCondition(NoRecord, 619)
	MisResultCondition(HasMission, 619)
	MisResultCondition(HasFlag, 619, 19 )
	MisResultAction(ClearMission, 619)
	MisResultAction(SetRecord, 619)
	MisResultAction(AddExp, 3400, 3400)
	MisResultAction(AddMoney,424,424)


	InitTrigger()
	TriggerCondition( 1, IsMonster, 64 )	
	TriggerAction( 1, AddNextFlag, 619, 10, 10 )
	RegCurTrigger( 6191 )

-----------------------------------挑战野猪
	DefineMission( 620, "Boar Challenge", 620 )
	
	MisBeginTalk( "<t>Hi, have you just arrived here? Don't you wish to display your strength to the people here?<n><t>I have a way for you to prove your valor to the villagers.<n><t>Kill 5 <rMad Boars> at (911, 2973) that has been plaguing our village.")
	MisBeginCondition(LvCheck, ">", 29 )
	MisBeginCondition(NoMission, 620)
	MisBeginCondition(NoMission, 619)
	MisBeginCondition(NoRecord, 620)
	MisBeginAction(AddMission, 620)
	MisBeginAction(AddTrigger, 6201, TE_KILL, 64, 5 )
	MisCancelAction(ClearMission, 620)

	MisNeed(MIS_NEED_KILL, 64, 5, 10, 5)
	
	MisHelpTalk("<t>Kill 5 <rMad Boars> and prove your prowess to the villagers!")
	MisResultTalk("<t>Well done, my friend!")
	MisResultCondition(NoRecord, 620)
	MisResultCondition(HasMission, 620)
	MisResultCondition(HasFlag, 620, 14 )
	MisResultAction(ClearMission, 620)
	MisResultAction(SetRecord, 620)
	MisResultAction(AddExp, 3400, 3400)
	MisResultAction(AddMoney,424,424)


	InitTrigger()
	TriggerCondition( 1, IsMonster, 64 )	
	TriggerAction( 1, AddNextFlag, 620, 10, 5 )
	RegCurTrigger( 6201 )

-----------------------------------珍贵的药草
	DefineMission( 621, "Expensive Herbs", 621 )
	
	MisBeginTalk( "<t>Hey, my friend, I lost several expensive herbs while on the way here.<n><t>These herbs were meant to replace the shortages in the warehouse.<n><t>But now I have nothing to show for!<n><t>Please take a pity on me and go to the plains where <rGrassland Elk> resides and pick 6 <yPrecious Herbs> for me. Wheres the plains?...I remembered!<n><t>It is just nearby at (1360, 2683).")
	MisBeginCondition(LvCheck, ">", 29 )
	MisBeginCondition(NoMission, 621)
	MisBeginCondition(NoRecord, 621)
	MisBeginAction(AddMission, 621)
	MisBeginAction(AddTrigger, 6211, TE_GETITEM, 4090, 6 )
	MisCancelAction(ClearMission, 621)

	MisNeed(MIS_NEED_ITEM, 4090, 6, 10, 6)
	
	MisHelpTalk("<t>Have you found 6 <yPrecious Herbs>?")
	MisResultTalk("<t>Thank you for your kindness! I will remember it always!")
	MisResultCondition(NoRecord, 621)
	MisResultCondition(HasMission, 621)
	MisResultCondition(HasItem, 4090, 6)
	MisResultAction(TakeItem, 4090, 6 )
	MisResultAction(ClearMission, 621)
	MisResultAction(SetRecord, 621)
	MisResultAction(AddExp, 3400, 3400)
	MisResultAction(AddMoney,424,424)


	InitTrigger()
	TriggerCondition( 1, IsItem, 4090 )	
	TriggerAction( 1, AddNextFlag, 621, 10, 6 )
	RegCurTrigger( 6211 )

-----------------------------------草原鹿的秘密
	DefineMission( 622, "Secret of the Grassland Elk", 622 )
	
	MisBeginTalk( "<t>I don't get it, why does the <rGrassland Elk> here run so fast and their reaction is so agile?<n><t>Please go and collect 5 <yRigid Deer Hoofs> for me as I wish to see whats the difference between it and the other elks. These springly animals seems to be living at (1360, 2683).")
	MisBeginCondition(LvCheck, ">", 30 )
	MisBeginCondition(NoMission, 622)
	MisBeginCondition(NoRecord, 622)
	MisBeginAction(AddMission, 622)
	MisBeginAction(AddTrigger, 6221, TE_GETITEM, 4372, 5 )
	MisCancelAction(ClearMission, 622)

	MisNeed(MIS_NEED_ITEM, 4372, 5, 10, 5)
	
	MisHelpTalk("<t>I need 5 <yRigid Deer Hoofs>! Where are they?")
	MisResultTalk("<t>I cannot see any differences. They look just like any other hoofs…")
	MisResultCondition(NoRecord, 622)
	MisResultCondition(HasMission, 622)
	MisResultCondition(HasItem, 4372, 5)
	MisResultAction(TakeItem, 4372, 5 )
	MisResultAction(ClearMission, 622)
	MisResultAction(SetRecord, 622)
	MisResultAction(AddExp, 3800, 3800)
	MisResultAction(AddMoney,863,863)


	InitTrigger()
	TriggerCondition( 1, IsItem, 4372 )	
	TriggerAction( 1, AddNextFlag, 622, 10, 5 )
	RegCurTrigger( 6221 )

-----------------------------------鹿皮大衣
	DefineMission( 623, "Deer Skin Coat", 623 )
	
	MisBeginTalk( "<t>Hey friend, to be honest, I was once a pirate before. I only escaped here because I was defeated by the Jack Black's pirate crew!<n><t>I wish to wear a suit made of <yTop Grade Deer Skin> so I believe you will help me get 5 <yTop Grade Deer Skin>.<n><t>Why not? Because if you refuse to, I am going to give you a lesson you will never forget!<n><t>Go now to (1360, 2683) and get the deer skin from <rGrassland Elk>.")
	MisBeginCondition(LvCheck, ">", 30 )
	MisBeginCondition(NoMission, 623)
	MisBeginCondition(NoRecord, 623)
	MisBeginAction(AddMission, 623)
	MisBeginAction(AddTrigger, 6231, TE_GETITEM, 4091, 5 )
	MisCancelAction(ClearMission, 623)

	MisNeed(MIS_NEED_ITEM, 4091, 5, 10, 5)
	
	MisHelpTalk("<t>Go get 5 <yTop Grade Deer Skins> now! Or I beat the hell out of you!")
	MisResultTalk("<t>Hehe! You are skillful indeed! Well done!")
	MisResultCondition(NoRecord, 623)
	MisResultCondition(HasMission, 623)
	MisResultCondition(HasItem, 4091, 5)
	MisResultAction(TakeItem, 4091, 5 )
	MisResultAction(ClearMission, 623)
	MisResultAction(SetRecord, 623)
	MisResultAction(AddExp, 3800, 3800)
	MisResultAction(AddMoney,863,863)


	InitTrigger()
	TriggerCondition( 1, IsItem, 4091 )	
	TriggerAction( 1, AddNextFlag, 623, 10, 5 )
	RegCurTrigger( 6231 )

-----------------------------------雪白猫头鹰
	DefineMission( 624, "White Owlie", 624 )
	
	MisBeginTalk( "<t>I hate those <rWhite Owlies>! They are making loads of noise during the day, giving me a big headache!<n><t>I will go crazy if this continues! If you don't mind, help me kill 5 <rWhite Owlies> and let me have a quiet time for a few days. Those evil creatures can be found near (1360, 2683).")
	MisBeginCondition(LvCheck, ">", 31 )
	MisBeginCondition(NoMission, 624)
	MisBeginCondition(NoRecord, 624)
	MisBeginAction(AddMission, 624)
	MisBeginAction(AddTrigger, 6241, TE_KILL, 225, 5 )
	MisCancelAction(ClearMission, 624)

	MisNeed(MIS_NEED_KILL, 225, 5, 10, 5)
	
	MisHelpTalk("<t>You only need to hunt 5 <rWhite Owlies>.")
	MisResultTalk("<t>Thank you very much! I can lead back my peaceful life again.")
	MisResultCondition(NoRecord, 624)
	MisResultCondition(HasMission, 624)
	MisResultCondition(HasFlag, 624, 14 )
	MisResultAction(ClearMission, 624)
	MisResultAction(SetRecord, 624)
	MisResultAction(AddExp, 4300, 4300)
	MisResultAction(AddMoney,438,438)


	InitTrigger()
	TriggerCondition( 1, IsMonster, 225 )	
	TriggerAction( 1, AddNextFlag, 624, 10, 5 )
	RegCurTrigger( 6241 )

-----------------------------------报复行为
	DefineMission( 625, "Revenge", 625 )
	
	MisBeginTalk( "<t>Hey, I am glad you came, I have a favour to ask of you! I lost a batch of expensive herbs but do you know why? It because of those <rWhite Owlies> who using their <ySharp Beak> to tear open the luggages, taking the medicine back to their nest!<n><t>To exact revenge on these <rWhite Owlie>, please kill them for me and remove their <ySharp Beak> and return it to me!<n><t>Their nest seems to be at (1360, 2683).")
	MisBeginCondition(LvCheck, ">", 31 )
	MisBeginCondition(HasRecord, 621)
	MisBeginCondition(NoMission, 625)
	MisBeginCondition(NoRecord, 625)
	MisBeginAction(AddMission, 625)
	MisBeginAction(AddTrigger, 6251, TE_GETITEM, 4451, 5 )
	MisCancelAction(ClearMission, 625)

	MisNeed(MIS_NEED_ITEM, 4451, 5, 10, 5)
	
	MisHelpTalk("<t> Have you got 5 <ySharp Beaks> for me?")
	MisResultTalk("<t>Hahaha! Now I am satisfied!")
	MisResultCondition(NoRecord, 625)
	MisResultCondition(HasMission, 625)
	MisResultCondition(HasItem, 4451, 5)
	MisResultAction(TakeItem, 4451, 5 )
	MisResultAction(ClearMission, 625)
	MisResultAction(SetRecord, 625)
	MisResultAction(AddExp, 4300, 4300)
	MisResultAction(AddMoney,877,877)


	InitTrigger()
	TriggerCondition( 1, IsItem, 4451 )	
	TriggerAction( 1, AddNextFlag, 625, 10, 5 )
	RegCurTrigger( 6251 )

-----------------------------------驱逐草原狼
	DefineMission( 626, "Pursue of the Wolf", 626 )
	
	MisBeginTalk( "<t><rGrassland Wolf> are fearsome animals, I have never seen anything more threatening to the safety of human than them!<n><t>I am requesting you to kill 5 <rGrassland Wolves> so as to drive away the wolves packs and make this a safe place!<n><t>It seems that the wolve packs are gathered at (1143, 2705).<n><t>Remember, don't not get surrounded by them as these wolves attack in packs.")
	MisBeginCondition(LvCheck, ">", 32 )
	MisBeginCondition(NoMission, 626)
	MisBeginCondition(NoRecord, 626)
	MisBeginAction(AddMission, 626)
	MisBeginAction(AddTrigger, 6261, TE_KILL, 136, 5 )
	MisCancelAction(ClearMission, 626)

	MisNeed(MIS_NEED_KILL, 136, 5, 10, 5)
	
	MisHelpTalk("<t>Have not kill 5 <rGrassland Wolf>? Hurry!")
	MisResultTalk("<t>Woah! Nicely done!")
	MisResultCondition(NoRecord, 626)
	MisResultCondition(HasMission, 626)
	MisResultCondition(HasFlag, 626, 14 )
	MisResultAction(ClearMission, 626)
	MisResultAction(SetRecord, 626)
	MisResultAction(AddExp, 4800, 4800)
	MisResultAction(AddMoney,446,446)


	InitTrigger()
	TriggerCondition( 1, IsMonster, 136 )	
	TriggerAction( 1, AddNextFlag, 626, 10, 5 )
	RegCurTrigger( 6261 )


-----------------------------------残忍的屠杀
	DefineMission( 627, "Cruel Massacre", 627 )
	
	MisBeginTalk( "<t>I told you before I was a evil pirate! Now im still as cruel as before.<n><t>I have taken a dislike to <Grassland Wolf>. I want you to kill these wolves and retrieve 5 <Swift Wolve Claws> for me to decorate my room, haha!<n><t>It is said that these wolves pack can be found at (1143, 2705).")
	MisBeginCondition(HasRecord, 623)
	MisBeginCondition(LvCheck, ">", 32 )
	MisBeginCondition(NoMission, 627)
	MisBeginCondition(NoRecord, 627)
	MisBeginAction(AddMission, 627)
	MisBeginAction(AddTrigger, 6271, TE_GETITEM, 4469, 5 )
	MisCancelAction(ClearMission, 627)

	MisNeed(MIS_NEED_ITEM, 4469, 5, 10, 5)
	
	MisHelpTalk("<t>I need 5 <ySwift Wolf Claws>! Get it fast!")
	MisResultTalk("<t>Hmm…This fits nicely into my room! Heh!")
	MisResultCondition(NoRecord, 627)
	MisResultCondition(HasMission, 627)
	MisResultCondition(HasItem, 4469, 5)
	MisResultAction(TakeItem, 4469, 5 )
	MisResultAction(ClearMission, 627)
	MisResultAction(SetRecord, 627)
	MisResultAction(AddExp, 4800, 4800)
	MisResultAction(AddMoney,892,892)


	InitTrigger()
	TriggerCondition( 1, IsItem, 4469 )	
	TriggerAction( 1, AddNextFlag, 627, 10, 5 )
	RegCurTrigger( 6271 )

-----------------------------------惹事生非的袋鼠
	DefineMission( 628, "Boxing Trouble", 628 )
	
	MisBeginTalk( "<t>Wait a moment! Can you help me? While I was walking home from work last night, I was attacked by a bunch of <rBerserk Boxeroos>!<n><t>They will attack anybody aimlessly. Please put a stop to them by hunting 5 <rBerserk Boxeroos> at (1161, 2639) please.")
	MisBeginCondition(LvCheck, ">", 33 )
	MisBeginCondition(NoMission, 628)
	MisBeginCondition(NoRecord, 628)
	MisBeginAction(AddMission, 628)
	MisBeginAction(AddTrigger, 6281, TE_KILL, 80, 5 )
	MisCancelAction(ClearMission, 628)

	MisNeed(MIS_NEED_KILL, 80, 5, 10, 5)
	
	MisHelpTalk("<t>Have you gotten rid of the 5 <rBerserk Boxeroos>?")
	MisResultTalk("<t>Oh! Thank you very much!")
	MisResultCondition(NoRecord, 628)
	MisResultCondition(HasMission, 628)
	MisResultCondition(HasFlag, 628, 14 )
	MisResultAction(ClearMission, 628)
	MisResultAction(SetRecord, 628)
	MisResultAction(AddExp, 5400, 5400)
	MisResultAction(AddMoney,453,453)


	InitTrigger()
	TriggerCondition( 1, IsMonster, 80 )	
	TriggerAction( 1, AddNextFlag, 628, 10, 5 )
	RegCurTrigger( 6281 )

-----------------------------------祈运魔法石
	DefineMission( 629, "Lucky Magical Stone", 629 )
	
	MisBeginTalk( "<t>Sshh, this is a secret between me and you, I don't wish for a third party to know!<n><t>Where the <rBerserk Boxeroo> resides lies a miraculous <yLucky Magical Stone>, it is said to be a very powerful talisman capable of protecting the wearer.<n><t>Go quietly and retrieve 3 <yLucky Magical Stones> and pass it to me. I think the stones can be found at (1161, 2639). Search carefully among the bushes.")
	MisBeginCondition(LvCheck, ">", 33 )

⌨️ 快捷键说明

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