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

📄 missionscript02.lua

📁 top web admin panel (tales of pirates)
💻 LUA
📖 第 1 页 / 共 5 页
字号:
	InitTrigger()
	TriggerCondition( 1, IsItem, 3975)	
	TriggerAction( 1, AddNextFlag, 214, 30, 5 )
	RegCurTrigger( 2143 )

-------------------------------------------------清理利齿菇
	DefineMission( 225, "Kill the Shrooms", 215 )

	MisBeginTalk( "<t>My main priority is to get rid of Bandits, but the <rKiller Shrooms> are currently the biggest nuisance in the area.<n><t>Please go and exterminate the nearby <rKiller Shrooms> at (1594, 2689)!" )
	MisBeginCondition(NoRecord, 215)
	MisBeginCondition(HasRecord, 214)
	MisBeginCondition(NoMission, 215)
	MisBeginAction(AddMission, 215)
	MisBeginAction(AddTrigger, 2151, TE_KILL, 252, 10 )		--利齿菇
	MisCancelAction(ClearMission, 215)

	MisNeed(MIS_NEED_KILL, 252, 10, 10, 10)

	MisResultTalk("<t>Good job! With the Killer Shrooms out of the way, we'll be able to focus our attention on the Bandits!")
	MisHelpTalk("<t>You must beware! <rKiller Shroom> will bite!")
	MisResultCondition(HasMission, 215)
	MisResultCondition(HasFlag, 215, 19 )
	MisResultAction(ClearMission, 215)
	MisResultAction(SetRecord, 215 )
	MisResultAction(AddExp,500,500)
	MisResultAction(AddMoney,1700,1700)	
	MisResultAction(AddExpAndType,2,3403,3403)


	InitTrigger()
	TriggerCondition( 1, IsMonster, 252)	
	TriggerAction( 1, AddNextFlag, 215, 10, 10 )
	RegCurTrigger( 2151 )

-------------------------------------------------帝姆的委托
	DefineMission( 226, "Ditto's Request", 216 )

	MisBeginTalk( "<t>I just received a letter from Ditto, it seems that he has encountered some difficulty in his research so now he needs you to find a <yCrab King Stomach Stone> to continue his research.<n><t>I know where this <rArmored King Crab> is, it is north of the Abandoned Mine just before the beach at (1783, 2507)." )
	MisBeginCondition(NoRecord, 216)
	MisBeginCondition(HasRecord, 215)
	MisBeginCondition(NoMission, 216)
	MisBeginAction(AddMission, 216)
	MisBeginAction(AddTrigger, 2161, TE_GETITEM, 3976, 1 )		--蟹王的胃结石
	MisCancelAction(ClearMission, 216)

	MisNeed(MIS_NEED_ITEM, 3976, 1, 10, 1)

	MisResultTalk("<t>Wow! You've found it! I'll send it to Ditto immediately!")
	MisHelpTalk("<t>Have you found <r Armored King Crab>? Go north out of the mine and look along the beach.")
	MisResultCondition(HasMission, 216)
	MisResultCondition(HasItem, 3976, 1 )
	MisResultAction(TakeItem, 3976, 1)
	MisResultAction(ClearMission, 216)
	MisResultAction(SetRecord, 216 )
	MisResultAction(AddExp,3000,3000)
	MisResultAction(AddMoney,9000,9000)	
	MisResultAction(AddExpAndType,2,3404,3404)


	InitTrigger()
	TriggerCondition( 1, IsItem, 3976 )	
	TriggerAction( 1, AddNextFlag, 216, 10, 1 )
	RegCurTrigger( 2161 )

-------------------------------------------------山贼势力图
	DefineMission( 227, "Bandit Hideout Map", 217 )

	MisBeginTalk( "<t>Rumor has it that a mysterious person is selling a map containing locations of bandit's activity. This information is invaluable to us, you must try to get it! Try to search for him at (2217, 2547)." )
	MisBeginCondition(NoRecord, 217)
	MisBeginCondition(HasRecord, 216)
	MisBeginCondition(NoMission, 217)
	MisBeginAction(AddMission, 217)
	MisBeginAction(AddTrigger, 2171, TE_GETITEM, 3977, 1 )		--山贼势力图
	MisCancelAction(ClearMission, 217)

	MisNeed(MIS_NEED_ITEM, 3977, 1, 10, 1)

	MisResultTalk("<t>You really managed to get it! Fantastic! We'll have those Bandits on the run in no time!")
	MisHelpTalk("<t>No idea where to start looking? Me too! Maybe asking around might help.")
	MisResultCondition(HasMission, 217)
	MisResultCondition(HasItem, 3977, 1 )
	MisResultAction(TakeItem, 3977, 1)
	MisResultAction(ClearMission, 217)
	MisResultAction(SetRecord, 217 )
	MisResultAction(AddExp,750,750)
	MisResultAction(AddMoney,2000,2000)
	MisResultAction(AddExpAndType,2,11833,11833)

	InitTrigger()
	TriggerCondition( 1, IsItem, 3977 )	
	TriggerAction( 1, AddNextFlag, 217, 10, 1 )
	RegCurTrigger( 2171 )

-------------------------------------------------突袭山贼团
	DefineMission( 228, "Ambush Bandit", 218 )

	MisBeginTalk( "<t>From the map, the Bandits are gathering near the west of <pRockery Haven>. I need you to infiltrate their camp and slay a few of them. Bring me 3 <yBandit Necklaces> while you're at it." )
	MisBeginCondition(NoRecord, 218)
	MisBeginCondition(HasRecord, 217)
	MisBeginCondition(NoMission, 218)
	MisBeginAction(AddMission, 218)
	MisBeginAction(AddTrigger, 2181, TE_GETITEM, 1841, 3 )		--山贼的项链
	MisCancelAction(ClearMission, 218)

	MisNeed(MIS_NEED_ITEM, 1841, 3, 10, 3)

	MisResultTalk("<t>Woohoo! This is the first time we've managed to gain an upperhand over those pesky Bandits!")
	MisHelpTalk("<t>Why? Have you collected those <yBandit Necklace>?")
	MisResultCondition(HasMission, 218)
	MisResultCondition(HasItem, 1841, 3 )
	MisResultAction(TakeItem, 1841, 3 )
	MisResultAction(ClearMission, 218)
	MisResultAction(SetRecord, 218 )
	MisResultAction(AddExp,1000,1000)
	MisResultAction(AddMoney,2200,2200)	
	MisResultAction(AddExpAndType,2,11833,11833)


	InitTrigger()
	TriggerCondition( 1, IsItem, 1841 )	
	TriggerAction( 1, AddNextFlag, 218, 10, 3 )
	RegCurTrigger( 2181 )

-------------------------------------------------悬赏令
	DefineMission( 229, "Bounty", 219 )

	MisBeginTalk( "<t>According to my knowledge, the leader of the sand bandits is called <rAdder>. He is a very cruel and cunning person, always hiding amongst the shadows.<n><t>Locate the sand bandit main camp at (1052, 3037) and wreck havoc among the the bandits. This should be enough to lure him out for you to defeat him!" )
	MisBeginCondition(NoRecord, 219)
	MisBeginCondition(HasRecord, 218)
	MisBeginCondition(NoMission, 219)
	MisBeginAction(AddMission, 219)
	MisBeginAction(AddTrigger, 2191, TE_KILL, 211, 1 )		--山贼首领·蝰蛇
	MisCancelAction(ClearMission, 219)

	MisNeed(MIS_NEED_KILL, 211, 1, 10, 1)

	MisResultTalk("<t>You've defeated Adder? Well done! Thanks to your courageous deed, the Bandits are no longer a threat.")
	MisHelpTalk("<t>Are you afraid to go alone? Why don't you try getting a few of your friends to help out?")
	MisResultCondition(HasMission, 219)
	MisResultCondition(HasFlag, 219, 10 )
	MisResultAction(ClearMission, 219)
	MisResultAction(SetRecord, 219 )
	MisResultAction(AddExp,5000,5000)
	MisResultAction(AddMoney,10000,10000)	
	MisResultAction(AddExpAndType,2,11833,11833)


	InitTrigger()
	TriggerCondition( 1, IsMonster, 211 )	
	TriggerAction( 1, AddNextFlag, 219, 10, 1 )
	RegCurTrigger( 2191 )

----------------------------去沙漠
	DefineMission( 230, "Desert Visit", 220 )
	
	MisBeginTalk( "<t>A <ySecretary Letter> from <bSecretary Salvier> has asked me to inform you to head towards Shaitan City in the Magical Ocean region. Look for <bClan Chief Albuda> at (898, 3640) as he has more information about the unusual cases revolving around feral and poisonous animals." )
	MisBeginCondition(NoRecord, 220)
	MisBeginCondition(HasRecord, 219)
	MisBeginCondition(NoMission, 220)
	MisBeginAction(AddMission, 220)
	MisBeginAction(GiveItem, 3978, 1, 4)
	MisCancelAction(ClearMission, 220)
	MisBeginBagNeed(1)
		
	MisNeed(MIS_NEED_DESP, "Look for Shaitan Clan Chieftain at (898, 3640)")
	
	MisHelpTalk("<t>Although I wish for you to stay, you are much needed elsewhere. Make haste and go!")
	MisResultCondition(AlwaysFailure )

-----------------------------------去沙漠
	DefineMission( 231, "Desert Visit", 220, COMPLETE_SHOW )
	
	MisBeginCondition(AlwaysFailure )
		
	MisResultTalk("<t>Welcome stranger.  Secretary Salvier has informed me about your mission to understand why the animals are behaving in such an unusual manner. We believe that is the decree of Kara the Goddess. I will help you as much as I can in your task.")
	MisResultCondition(NoRecord, 220)
	MisResultCondition(HasMission, 220)
	MisResultCondition(HasItem, 3978, 1)
	MisResultAction(TakeItem, 3978, 1 )
	MisResultAction(ClearMission, 220 )
	MisResultAction(SetRecord, 220 )
	MisResultAction(AddExp,1100,1100)
	MisResultAction(AddMoney,2300,2300)
	MisResultAction(AddExpAndType,2,5000,5000)


----------------------------变异的原因
	DefineMission( 232, "Changes", 221 )
	
	MisBeginTalk( "<t>There is a talking lamb last seen near the city harbor at (898, 3683). It nearly scared the life out of the first person who spotted him. Maybe it can help you in your investigations.<n><t>Let me know after you find it." )
	MisBeginCondition(NoRecord, 221)
	MisBeginCondition(HasRecord, 220)
	MisBeginCondition(NoMission, 221)
	MisBeginAction(AddMission, 221)
	MisCancelAction(ClearMission, 221)
		
	MisNeed(MIS_NEED_DESP, "Look for Lamb Welly at (898, 3683) and return to Clan Chief Albuda at (898, 3640)")
	
	MisResultTalk("<t>Oh! You've spoken to Welly? Haha, he's definitely one of the main attractions in Shaitan City.")
	MisHelpTalk("<t>Have you talk to <bLamb - Welly> before? He can talk!")
	MisResultCondition(HasMission, 221 )
	MisResultCondition(NoRecord, 221 )
	MisResultCondition(HasFlag, 221, 1 )
	MisResultAction(ClearMission, 221 )
	MisResultAction(SetRecord, 221 )
	MisResultAction(AddExp,1200,1200)
	MisResultAction(AddMoney,2400,2400)	
	MisResultAction(AddExpAndType,2,5000,5000)

-----------------------------------变异的原因
	DefineMission( 233, "Changes", 221, COMPLETE_SHOW )
	
	MisBeginCondition(AlwaysFailure )
		
	MisResultTalk("<t>Baa...I'm Welly the Sheep!<n><t>Wondering how did I start talking?<n><t>Not too long ago, I was taking a nice evening stroll. Baa...Don't you know? Even sheeps need to relax every now and then.<n><t>Anyway, I remember seeing a round egg shaped fruit washed up on shore, it looked good enough to eat.<n><t>Baa...Next thing I knew, I could speak to humans!<n><t>The <bClan Chief> was nice enough to let me stay in town. Baa...tell him I said \"Hello\" when you meet him.")
	MisResultCondition(NoRecord, 221)
	MisResultCondition(HasMission, 221)
	MisResultCondition(NoFlag, 221, 1)
	MisResultAction(SetFlag, 221, 1 )
	


----------------------------罗森的笔记本
	DefineMission( 234, "Roland's Notebook", 222 )
	
	MisBeginTalk( "<t>Hmm...A <yStrange Fruit> which floated ashore? I remember I read about something like that, but where? Let me think...<n><t>Oh right! Its the <bPirate King Roland>'s <yJournal Log>! Our Shaitan library once had the Pirate King's log, it was a long long time ago...<n><t>Its a pity that our library was broken into before you came. Many navigation related books were stolen, even our Lee family genealogy book! The person in charge of investigating is Patroller <bMicheal> at (958, 3549). I think that it might be a good idea for you get more details from him." )
	MisBeginCondition(NoRecord, 222)
	MisBeginCondition(HasRecord, 221)
	MisBeginCondition(NoMission, 222)
	MisBeginAction(AddMission, 222)
	MisCancelAction(ClearMission, 222)
		
	MisNeed(MIS_NEED_DESP, "Ask Michael at (958, 3549) about the progress of the investigation")
	
	MisHelpTalk("<t><bMichael> is patrolling somewhere outside the city gates. Hurry up and go to him! Don't forget to look for my Lee family genealogy book too!")
	MisResultCondition(AlwaysFailure )

-----------------------------------罗森的笔记本
	DefineMission( 235, "Roland's Notebook", 222, COMPLETE_SHOW )
	
	MisBeginCondition(AlwaysFailure )
		
	MisResultTalk("<t>Hi! I am Michael.<n><t>The culprit who broke into the library did not leave any evidence behind at all! If he were to steal from the bank he would probably succeed as well! It's as if a ghost came in and took them.<n><t>What's even more unusual is that the thief only stole a few worthless books. Eerie Indeed...")
	MisResultCondition(NoRecord, 222)
	MisResultCondition(HasMission, 222)
	MisResultAction(ClearMission, 222 )
	MisResultAction(SetRecord, 222 )
	MisResultAction(AddExp,1200,1200)
	MisResultAction(AddMoney,2400,2400)
	MisResultAction(AddExpAndType,2,5000,5000)


----------------------------线索
	DefineMission( 236, "Clues", 223 )
	
	MisBeginTalk( "<t>Based on my investigations on the clues, the <rSand Bandit> are definitely responsible for this incident!<n><t>They are the most organised outlaws in this desert!<n><t>How about this, I do know of a weird sand bandit named <bSupermun>, it seems that he is unhappy with the bandit current leadership. He can be found at <pChaotic Oasis> at (1080,3086), west of <pBabul Haven>. Find out about the current situation from him." )
	MisBeginCondition(NoRecord, 223)
	MisBeginCondition(HasRecord, 222)
	MisBeginCondition(NoMission, 223)
	MisBeginAction(AddMission, 223)
	MisCancelAction(ClearMission, 223)
		
	MisNeed(MIS_NEED_DESP, "Find Supermun at (1080, 3086) for more info")
	
	MisHelpTalk("<t>Don't worry. <bSupermun> isn't like the other Sand Bandits. He usually prefers to avoid fighting.")
	MisResultCondition(AlwaysFailure )

-----------------------------------线索
	DefineMission( 237, "Clues", 223, COMPLETE_SHOW )
	
	MisBeginCondition(AlwaysFailure )
		
	MisResultTalk("<t>How did you find me? You want to know more about the theft that happened at the Shaitan library?<n><t>It has nothing to do with me. Haha! Seriously. Take my advice, don't delve into it any further. It won't do you any good. I'm a Sand Bandit too.<n><t>Aren't you afraid that I'll kill you?")
	MisResultCondition(NoRecord, 223)
	MisResultCondition(HasMission, 223)
	MisResultAction(ClearMission, 223 )
	MisResultAction(SetRecord, 223 )
	MisResultAction(AddExp,600,600)
	MisResultAction(AddMoney,2400,2400)
	MisResultAction(AddExpAndType,2,5000,5000)


⌨️ 快捷键说明

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