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

📄 missionscript01.lua

📁 top web admin panel (tales of pirates)
💻 LUA
📖 第 1 页 / 共 5 页
字号:
	MisResultCondition(NoRecord, 742)
	MisResultCondition(HasMission, 742)
	MisResultCondition(NoFlag, 742, 40)
	MisResultAction(SetFlag, 742, 40)

-----------------------------------航海士转职任务
	DefineMission( 763, "Journey of the Voyager", 742, COMPLETE_SHOW)
	
	MisBeginCondition( AlwaysFailure )
		
	MisResultTalk("<t>Sailing the sea is perilous. Talk to me if you have any needs. Little Daniel used to help me a lot in the past.")
	MisResultCondition(NoRecord, 742)
	MisResultCondition(HasMission, 742)
	MisResultCondition(NoFlag, 742, 50)
	MisResultAction(SetFlag, 742, 50)

end
RobinMission004()


----------------------------------------------------------
--							--
--							--
--		白银城[小金金]				--
--							--
--		224575,277025				--
----------------------------------------------------------
function RobinMission007()

-----------------------------------铁匠的问候
	DefineMission( 703, "Blacksmith's Greetings", 701, COMPLETE_SHOW)
	
	MisBeginCondition( AlwaysFailure )
		
	MisResultTalk("<t>You're new here? People call me <bGoldie>, I'm the Blacksmith of <pArgent City>. I mainly forge swords but I do make quite a bit of sales off other weapons as well. I'm really busy these days but I'll make an exception to help you out since you have beautiful Senna's recommendation.<n><t>Don't forget to return to tell <bSenna> at (2223, 2785) that I'm doing all this for her sake, haha!<n><t>(Goldie has given you a pair of \"Newbie Knife\". Open your inventory and double click on it to equip.)")
	MisResultCondition(NoRecord, 701)
	MisResultCondition(HasMission, 701)
	MisResultCondition(NoFlag, 701, 10)
	MisResultCondition(HasItem, 3950, 1)
	MisResultAction(TakeItem, 3950, 1)
	MisResultAction(SetFlag, 701, 10)
	MisResultBagNeed(1)
	

end
RobinMission007()


----------------------------------------------------------
--							--
--							--
--		沙岚城[大神官·甘地维拉]			--
--							--
--		239185,277025				--
----------------------------------------------------------
function RobinMission017()

-----------------------------------虔诚祷文
	DefineMission( 719, "Righteous Document", 711 )
	
	MisBeginTalk( "<t>Why do you want to the <rRighteous Document>? Recently, many have tried to be a herbalist just to earn money. You have to prove to me whether you can meet the qualifications of being one.<n><t>Then I will pass you the <rRighteous Document>.<n><t>Go and decoct 1 cup of <rElven Fruit Juice> and bring me 2 <rMedicated Grass>. This is part of your training regarding recovery potions. Look for <bOuya> in <pShaitan> if you need help.<n><t>Go to <r(1184, 3557)> and kill 10 <bBig Scorpions> too." )
	MisBeginCondition(NoMission, 711)
	MisBeginCondition(LvCheck, ">", 8 )
	MisBeginCondition(CheckConvertProfession, MIS_DOCTOR )
	MisBeginAction(AddMission, 711)
	MisBeginAction(SetFlag, 711, 1)
	MisBeginAction(AddTrigger, 7111, TE_GETITEM, 3122, 1 )
	MisBeginAction(AddTrigger, 7112, TE_GETITEM, 3129, 2 )
	MisBeginAction(AddTrigger, 7113, TE_KILL, 247, 10 )
	MisCancelAction(ClearMission, 711)

	MisNeed(MIS_NEED_ITEM, 3122, 1, 10, 1)
	MisNeed(MIS_NEED_ITEM, 3129, 2, 20, 2)
	MisNeed(MIS_NEED_KILL, 247, 10, 30, 10)

	MisPrize(MIS_PRIZE_ITEM, 3954, 1, 4)
	MisPrizeSelAll()
	
	MisResultTalk("<t>You have done well!<n><t>Since you have passed my test, this is the <rRighteous Document> required to become a Herbalist.<n><t>Keep it well and return here after you are <pLv 10>. ")
	MisHelpTalk("<t>You have not met my requirement. Its not that easy to become a Herbalist.")
	MisResultCondition(HasMission, 711)
	MisResultCondition(HasItem, 3122, 1 )
	MisResultCondition(HasItem, 3129, 2 )
	MisResultCondition(HasFlag, 711, 39 )
	MisResultAction(TakeItem, 3122, 1 )
	MisResultAction(TakeItem, 3129, 2 )
	MisResultAction(ClearMission, 711)
	MisResultBagNeed(1)
	
	InitTrigger()
	TriggerCondition( 1, IsItem, 3122 )	
	TriggerAction( 1, AddNextFlag, 711, 10, 1 )
	RegCurTrigger( 7111 )

	InitTrigger()
	TriggerCondition( 1, IsItem, 3129 )	
	TriggerAction( 1, AddNextFlag, 711, 20, 2 )
	RegCurTrigger( 7112 )

	InitTrigger()
	TriggerCondition( 1, IsMonster, 247 )	
	TriggerAction( 1, AddNextFlag, 711, 30, 10 )
	RegCurTrigger( 7113 )

-----------------------------------圣职者转职任务
	DefineMission( 751, "Walk of the Cleric", 739 )
	
	MisBeginTalk( "<t>To become a <bCleric>, you must have faith. I hope that you will remember this. I will give you a simple task.<n><t>Collect a total of 2 <yFancy Petals>, 4 <yPanaceas> and 6 bottles of <yElven Fruit Juice>.<n><t>Pass half of each to <bGranny Dong> in Icicle Haven and <bDoctor - Chivo> in Chaldea Haven. Each must receive 3 bottles of Elven Fruit Juice, 2 Panaceas and 1 Fancy Petal." )
	MisBeginCondition(NoRecord, 739)
	MisBeginCondition(NoMission, 740)
	MisBeginCondition(NoMission, 739)
	MisBeginCondition(LvCheck, ">", 39 )
	MisBeginCondition(PfEqual, 5 )
	MisBeginCondition(CheckConvertProfession, MIS_CLERGY )
	MisBeginAction(AddMission, 739)
	MisCancelAction(ClearMission, 739)

	MisNeed(MIS_NEED_DESP, "Bring 3 Elven Fruit Juice, 2 Panacea and 1 Fancy Petal to <bGranny Dong> in Icicle Haven at (795, 363)")
	MisNeed(MIS_NEED_DESP, "Bring 3 cups of Elven Fruit Juice, 2 Panacea and 1 Fancy Petal to <bDoctor Chivo> in Chaldea Haven at (630, 2091)")
	
	MisResultTalk("<t>Congratulations!<n><t>You are now a qualifed <bCleric>!<n><t>May Goddess Kara be with you.")
	MisHelpTalk("<t>What is the reason that is stopping you? Remember! Patience and determination is the key to success!")
	MisResultCondition(HasMission, 739)
	MisResultCondition(HasFlag, 739, 10 )
	MisResultCondition(HasFlag, 739, 20 )
	MisResultAction(ClearMission, 739)
	MisResultAction(SetRecord, 739)
	MisResultAction(SetProfession, 13)
	
-----------------------------------圣职者转职任务
	DefineMission( 752, "Walk of the Cleric", 739, COMPLETE_SHOW)
	
	MisBeginCondition( AlwaysFailure )
		
	MisResultTalk("This is a gift for me? You are so kind. I will tell the High Priest about it.")
	MisResultCondition(NoRecord, 739)
	MisResultCondition(HasMission, 739)
	MisResultCondition(NoFlag, 739, 10)
	MisResultCondition(HasItem, 3122, 3)
	MisResultCondition(HasItem, 3146, 2)
	MisResultCondition(HasItem, 3130, 1)
	MisResultAction(TakeItem, 3122, 3)
	MisResultAction(TakeItem, 3146, 2)
	MisResultAction(TakeItem, 3130, 1)
	MisResultAction(SetFlag, 739, 10)

-----------------------------------圣职者转职任务
	DefineMission( 753, "Walk of the Cleric", 739, COMPLETE_SHOW)
	
	MisBeginCondition( AlwaysFailure )
		
	MisResultTalk("So the high priest sent you. I lack some important herbs and you come at the right moment. I will report back to the high priest regarding this matter.")
	MisResultCondition(NoRecord, 739)
	MisResultCondition(HasMission, 739)
	MisResultCondition(NoFlag, 739, 20)
	MisResultCondition(HasItem, 3122, 3)
	MisResultCondition(HasItem, 3146, 2)
	MisResultCondition(HasItem, 3130, 1)
	MisResultAction(TakeItem, 3122, 3)
	MisResultAction(TakeItem, 3146, 2)
	MisResultAction(TakeItem, 3130, 1)
	MisResultAction(SetFlag, 739, 20)



-----------------------------------封印师转职任务
	DefineMission( 755, "Ways of the Seal", 740 )
	
	MisBeginTalk( "<t>To become a <bSeal Master>, you must have a balance of good and evil. To test your ability, I need to do something:<n><t>Collect 3 <yDingle Bells> from <rCrazy Sheep>, 10 <yDangerous Sharp Claws> from <rStinging Beak> and 3 <yHearts of Purity> from <rSnow Spirit>. Bring these to <bHoly Priestess - Ada> at <pOld Shaitan City> and ask her to cleanse them with <ySoul of Purity>. <n><t>Look for <rStinging Beak> in the deep forest in <pAscaron> and the rest of monsters can be found near <pIcicle Castle>" )
	MisBeginCondition(NoRecord, 740)
	MisBeginCondition(NoMission, 740)
	MisBeginCondition(NoMission, 739)
	MisBeginCondition(LvCheck, ">", 39 )
	MisBeginCondition(PfEqual, 5 )
	MisBeginCondition(CheckConvertProfession, MIS_SEALER )
	MisBeginAction(AddMission, 740)
	MisCancelAction(ClearMission, 740)

	MisNeed(MIS_NEED_DESP, "Bring the required 3 items and <yHeart of Purity> to <bHoly Priestess Ada> in <pOld Shaitan City> at (862, 3303). Let her purify it with the <ySoul of Purity>.")
	
	MisResultTalk("<t>Congratulations, you are now a qualified <bSeal Master>.<n><t>May the Goddess bless you!")
	MisHelpTalk("<t>Go now! Have faith in yourself!")
	MisResultCondition(HasMission, 740)
	MisResultCondition(HasFlag, 740, 10 )
	MisResultAction(ClearMission, 740)
	MisResultAction(SetRecord, 740)
	MisResultAction(SetProfession, 14)

-----------------------------------封印师转职任务
	DefineMission( 756, "Ways of the Seal", 740, COMPLETE_SHOW)
	
	MisBeginCondition( AlwaysFailure )
		
	MisResultTalk("<t>May the Goddess bless you.<n><t>So you have brought these stuffs to be purified. Very well. I will do my utmost for you in this sacred temple.<n><t>You can go back to Gannon in Shaitan. I prefer to be alone here.<n><t>May the Goddess bless you.")
	MisResultCondition(NoRecord, 740)
	MisResultCondition(HasMission, 740)
	MisResultCondition(NoFlag, 740, 10)
	MisResultCondition(HasItem, 4471, 3)
	MisResultCondition(HasItem, 4385, 10)
	MisResultCondition(HasItem, 4481, 3)
	MisResultAction(TakeItem, 4471, 3)
	MisResultAction(TakeItem, 4385, 10)
	MisResultAction(TakeItem, 4481, 3)
	MisResultAction(SetFlag, 740, 10)


end
RobinMission017()

----------------------------------------------------------
--							--
--							--
--		沙岚城[铁匠·铜铜鼓]			--
--							--
--		239185,277025				--
----------------------------------------------------------
function RobinMission022()

---------------------------------------新手任务送小刀
	DefineMission( 713, "Blacksmith's Greetings", 707, COMPLETE_SHOW)
	
	MisBeginCondition( AlwaysFailure )
		
	MisResultTalk("You're new here?<n><t>People call me <bSmithy>, I'm the Blacksmith of <pShaitan City>. I forge swords and also make quite a bit of sales off other weapons as well. I'm really busy<n><t>Don't forget to return to tell <bResline> at (876, 3572) that I'm doing all this for her sake, haha!<n><t>(Smithy has given you a pair of \"Newbie Knife\". Open your inventory and double click on it to equip.)")
	MisResultCondition(NoRecord, 707)
	MisResultCondition(HasMission, 707)
	MisResultCondition(NoFlag, 707, 10)
	MisResultCondition(HasItem, 3956, 1)
	MisResultAction(TakeItem, 3956, 1)
	MisResultAction(SetFlag, 707, 10)
	MisResultBagNeed(1)

end
RobinMission022()

----------------------------------------------------------
--							--
--							--
--		白银城[新手指导·瑟安]			--
--							--
--		239185,277025				--
----------------------------------------------------------
function RobinMission024()

-----------------------------------新人报道
	DefineMission( 701, "Welcome", 1, COMPLETE_SHOW)
	
	MisBeginCondition( AlwaysFailure )
	
	MisResultTalk("<t> Welcome!<n><t>Come to me if you have any questions regarding Classes and Attribute related issue.<n><t>Next I am going to tell you where to buy good weapons in <pArgent City>.<n><t>Since you have leveled up,  you can press the yellow button below your portrait (Alt + A) to open your character page to distribute your stats. Every time you level up, you will received more points for your own allocation. <n><t>You have 5 basic attributes that can be added: Strength which affects your melee attack power; Agility which increases your Attack Speed and Dodge rate; Accuracy which increases your Hit Rate and range attack power; Spirit which increases your Max SP and magical damage; Constitution which increases your defense and Max HP.")
	MisHelpTalk("<t>Hi! I am the only Newbie Guide in this city. Look for me when you feel the need to understand the basic of this game.<n><t>It will be harsh for you to survive without any help.")
	MisResultCondition(NoRecord, 1)
	MisResultCondition(HasMission, 1)
	--MisResultCondition(HasFlag, 700, 10)
	--MisResultCondition(HasFlag, 700, 20)
	MisResultAction(ClearMission, 1)
	MisResultAction(SetRecord, 1)
	MisResultAction(AddExp, 6, 6)


-----------------------------------铁匠的问候
	DefineMission( 702, "Blacksmith's Greetings", 701 )
	
	MisBeginTalk( "<t>You will not be able to survive in this harsh world if you are going around unarmed.<n><t>Take this letter to <pArgent City>'s Blacksmith, <bGoldie> at (2193, 2706). I believe he can be of help to you.<n><t>You can use the Radar (Alt + R) to locate him." )
	MisBeginCondition(HasRecord, 1)
	MisBeginCondition(NoRecord, 701)
	MisBeginCondition(NoMission, 701)
	MisBeginAction(AddMission, 701)
	MisBeginAction(SetFlag, 701, 1)
	MisBeginAction(GiveItem, 3950, 1, 4)
	MisCancelAction(ClearMission, 701 )
	MisBeginBagNeed(1)

	MisNeed(MIS_NEED_DESP, "Send the letter to <bBlacksmith - Goldie> in <pArgent City> at (2193, 2706). Return to look for Newbie Guide Senna at (2223, 2785)")
		
	MisResultTalk("<t>I see, so you've met <bGoldie>. He's the guy to look for when you have made enough money to get a good weapon.")
	MisHelpTalk("<t>Remember to hand the letter to Goldie personally. He is at the left corner of Argent City at (2193, 2706).<n><t> You can use the Radar(Alt + R) to locate him.")
	MisResultCondition(NoRecord, 701)
	MisResultCondition(HasMission, 701)
	MisResultCondition(HasFlag, 701, 10)
	MisResultAction(ClearMission, 701)
	MisResultAction(SetRecord, 701)
	MisResultAction(AddExp, 9, 9 )

⌨️ 快捷键说明

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