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

📄 missionscript01.lua

📁 top web admin panel (tales of pirates)
💻 LUA
📖 第 1 页 / 共 5 页
字号:

-----------------------------------服装店的问候
	DefineMission( 704, "Tailor's Greetings", 702 )
	
	MisBeginTalk( "<t>This is the second recommendation letter. Pass it to <pArgent City> <bGranny Nila> at (2266, 2705)." )
	MisBeginCondition(HasRecord, 701)
	MisBeginCondition(NoRecord, 702)
	MisBeginCondition(NoMission, 702)
	MisBeginAction(AddMission, 702)
	MisBeginAction(SetFlag, 702, 1)
	MisBeginAction(GiveItem, 3951, 1, 4)
	MisCancelAction(SystemNotice, "This quest cannot be abandoned" )
	--MisCancelAction(ClearMission, 702 )
	MisBeginBagNeed(1)

	MisNeed(MIS_NEED_DESP, "Hand the letter to <bTailor - Granny Nila> in <pArgent City> at (2267, 2704) and return to Newbie Guide Senna at (2223, 2785)")
		
	MisResultTalk("<t>Wow! You mean <bGranny Nila> specially custom made these gloves for you? It looks perfect! I hope you take good care of it.")
	MisHelpTalk("<t>Have you met Granny Nila? She is north of Argent CIty at (2267, 2704). Use the radar to locate her.")
	MisResultCondition(NoRecord, 702)
	MisResultCondition(HasMission, 702)
	MisResultCondition(HasFlag, 702, 10)
	MisResultAction(ClearMission, 702)
	MisResultAction(SetRecord, 702)
	MisResultAction(AddExp, 21, 21 )

-----------------------------------药品店的问候
	DefineMission( 706, "Physician's Greetings", 703 )
	
	MisBeginTalk( "<t>Now, give this final letter to <bPhysican Ditto> (2250, 2770). I am quite sure he will be able to render his assistance to you." )
	MisBeginCondition(HasRecord, 702)
	MisBeginCondition(NoRecord, 703)
	MisBeginCondition(NoMission, 703)
	MisBeginAction(AddMission, 703)
	MisBeginAction(SetFlag, 703, 1)
	MisBeginAction(GiveItem, 3952, 1, 4)
	MisCancelAction(SystemNotice, "This quest cannot be abandoned" )
	--MisCancelAction(ClearMission, 703 )
	MisBeginBagNeed(1)

	MisNeed(MIS_NEED_DESP, "Send the letter to <bPhysican - Ditto> in <pArgent City> at (2250, 2770). Return to look for Newbie Guide Senna at (2223, 2785).")
		
	MisResultTalk("<t>Oh…So <bDitto> gave you some <rApples>. An <rApple> a day keeps the doctor away! It can also recover a bit of HP.")
	MisHelpTalk("<t>Ditto is at the right side of the fountain in Argent City. His coordinates is (2250, 2770). You can locate him by using the radar.")
	MisResultCondition(NoRecord, 703)
	MisResultCondition(HasMission, 703)
	MisResultCondition(HasFlag, 703, 10)
	MisResultAction(ClearMission, 703)
	MisResultAction(SetRecord, 703)
	MisResultAction(AddExp, 66, 66 )


-----------------------------------战斗考核
	DefineMission( 708, "Battle training", 704 )
	
	MisBeginTalk( "<t>Hmm, not bad, now that your preparations are ready. Then go ahead and leave the comforts of the city and try some fighting but of course do not travel too far, you may take this as the last test I have for you.<n><t>From this side, head left and your on the right track to exit the city.<n><t>Defeat 5 Forest Spirits and bring back a pair of Wings.<n><t>The forest spirits can be found just outside the city gates while the pair of wing can be found on any forest spirit. Complete the mission and I will give you some nice reward.<n><t>(You can enter combat by just left clicking on the enemy target, however combat cannot be initiated in the city. To pick items, left click on the items or you can use CTRL + A for quick looting." )
	MisBeginCondition(HasRecord, 703)
	MisBeginCondition(NoRecord, 704)
	MisBeginCondition(NoMission, 704)
	MisBeginCondition(LvCheck, ">", 4 )
	MisBeginCondition(LvCheck, "<", 10 )
	MisBeginAction(AddMission, 704)
	MisBeginAction(SetFlag, 704, 1)
	MisBeginAction(AddTrigger, 7041, TE_GETITEM, 1620, 1 )
	MisBeginAction(AddTrigger, 7042, TE_KILL, 103, 5 )
	MisCancelAction(ClearMission, 704)

	MisNeed(MIS_NEED_ITEM, 1620, 1, 10, 1)
	MisNeed(MIS_NEED_KILL, 103, 5, 20, 5)
	
	MisPrize(MIS_PRIZE_MONEY, 100, 1)
	MisPrizeSelAll()
	
	MisResultTalk("<t>Well done, it looks like you now have a good grasp at basic combat and also a good idea on how item drops work.<n><t>Since there is nothing much left, why don't you go and look for my friends? If fighting is your cup of tea, seek out Marcusa at (2065, 2732). Another person you may like to meet would be Physician Ditto at (2250, 2770). Lately, he has been looking for helpers to help her collect more ingredients.<n><t>Good luck!")
	MisHelpTalk("<t>Don't be anxious, come back after you've kill 5 <bForest Spirits> and obtained 1 of their <rWing>.")
	MisResultCondition(NoRecord, 704)
	MisResultCondition(HasMission, 704)
	MisResultCondition(HasItem, 1620, 1)
	MisResultCondition(HasFlag, 704, 24)
	MisResultAction(TakeItem, 1620, 1)
	MisResultAction(ClearMission, 704)
	MisResultAction(SetRecord, 704)
	MisResultAction(AddExp, 75, 75 )

	InitTrigger()
	TriggerCondition( 1, IsItem, 1620 )	
	TriggerAction( 1, AddNextFlag, 704, 10, 1 )
	RegCurTrigger( 7041 )
	InitTrigger()
	TriggerCondition( 1, IsMonster, 103 )	
	TriggerAction( 1, AddNextFlag, 704, 20, 5 )
	RegCurTrigger( 7042 )

	
end
RobinMission024()


----------------------------------------------------------
--							--
--							--
--		白银城[服装店主·尼萨婆婆]			--
--							--
--		239185,277025				--
----------------------------------------------------------
function RobinMission025()

-----------------------------------服装店的问候
	DefineMission( 705, "Tailor's Greetings", 702, COMPLETE_SHOW)
	
	MisBeginCondition( AlwaysFailure )
		
	MisResultTalk("<t>My my, this is interesting. I haven't seen you around here before. I am <bGranny Nila>, owner of the tailor shop in <pArgent City>. Since Senna has recommended you, I shall have these pair of <rNewbie Gloves> custom-made for you. Do drop by more often in your free time and perhaps we can have a chat.<n><t>Now return to Senna at (2223, 2785).<n><t>(Nila has given you a pair of \"Newbie Gloves\". Open your inventory and double click on it to equip.)")
	MisResultCondition(NoRecord, 702)
	MisResultCondition(HasMission, 702)
	MisResultCondition(NoFlag, 702, 10)
	MisResultCondition(HasFlag, 702, 1)
	MisResultCondition(HasItem, 3951, 1)
	MisResultAction(TakeItem, 3951, 1)
	MisResultAction(SetFlag, 702, 10)
	MisResultAction(GiveItem, 465, 1, 4)
	MisResultBagNeed(1)
	
end
RobinMission025()

----------------------------------------------------------
--							--
--							--
--		白银城[守卫·比特]			--
--							--
--		239185,277025				--
----------------------------------------------------------
function RobinMission026()

-----------------------------------勇气证书
	DefineMission( 709, "Courage Certificate", 705 )
	
	MisBeginTalk( "<t>Are you here for the Courage Certificate? You have some guts.<n><t>However courage alone is not enough, to aquire the <rCourage Certificate>, you must prove that you have the required ability and intellect.<n><t>Go to the <pOutskirt of Argent City> and defeat 10 <bCuddly Lambs> at (2057, 2638), 10 <bBubble Clams> near the northern coast, 10 <bPiglets> and then return to me.<n><t>If you are able to complete these task, I will consider you as a qualifed warrior and give you the <bCourage Certificate>." )
	MisBeginCondition(NoMission, 705)
	MisBeginCondition(LvCheck, ">", 8 )
	MisBeginCondition(PfEqual, 0 )
	MisBeginCondition(CheckConvertProfession, MIS_FENCER )
	MisBeginAction(AddMission, 705)
	MisBeginAction(SetFlag, 705, 1)
	MisBeginAction(AddTrigger, 7051, TE_KILL, 237, 10 )
	MisBeginAction(AddTrigger, 7052, TE_KILL, 213, 10 )
	MisBeginAction(AddTrigger, 7053, TE_KILL, 125, 10 )
	MisCancelAction(ClearMission, 705)
	
	MisNeed(MIS_NEED_KILL, 237, 10, 10, 10)
	MisNeed(MIS_NEED_KILL, 213, 10, 20, 10)
	MisNeed(MIS_NEED_KILL, 125, 10, 30, 10)

	MisPrize(MIS_PRIZE_ITEM, 3953, 1, 4)
	MisPrizeSelAll()
	
	MisResultTalk("<t>Friend! You have done well! This is the required <rCourage Certificate>.<n><t>Keep it well and look for me with it when you reached <pLv 10> to become a full fledged Swordsman.")
	MisHelpTalk("<t>You have not fulfilled my requirement. It is not easy to attain.")
	MisResultCondition(HasMission, 705)
	MisResultCondition(HasFlag, 705, 19 )
	MisResultCondition(HasFlag, 705, 29 )
	MisResultCondition(HasFlag, 705, 39 )
	MisResultAction(ClearMission, 705)
	MisResultBagNeed(1)
	
	InitTrigger()
	TriggerCondition( 1, IsMonster, 237 )	
	TriggerAction( 1, AddNextFlag, 705, 10, 10 )
	RegCurTrigger( 7051 )

	InitTrigger()
	TriggerCondition( 1, IsMonster, 213 )	
	TriggerAction( 1, AddNextFlag, 705, 20, 10 )
	RegCurTrigger( 7052 )

	InitTrigger()
	TriggerCondition( 1, IsMonster, 125 )	
	TriggerAction( 1, AddNextFlag, 705, 30, 10 )
	RegCurTrigger( 7053 )
	

-----------------------------------双剑士转职任务
	DefineMission( 749, "Code of the Crusader", 737 )
	
	MisBeginTalk( "<t>Looks like you have become an excellent Swordsman. Since you want to be stronger, you should advance to become a <bCrusader>. I will need to test you accordingly.<n><t>In the forest west of <pSolace Haven>, there are some <rThickskin Lizards>. Get 5 <yGreasy Lizard Skins> from them and go to <pSkeleton Haven> east of Icicle City, defeat 10 <rSkeletal Warriors> and get 3 <yWarrior Certificates>. Lastly, buy a set of <yBreast Plate> and return to me." )
	MisBeginCondition(NoRecord, 737)
	MisBeginCondition(NoMission, 737)
	MisBeginCondition(LvCheck, ">", 39 )
	MisBeginCondition(PfEqual, 1 )
	MisBeginCondition(CheckConvertProfession, MIS_TWO_FENCER )
	MisBeginAction(AddMission, 737)
	MisBeginAction(AddTrigger, 7372, TE_KILL, 268, 10 )
	MisBeginAction(AddTrigger, 7373, TE_GETITEM, 4474, 5 )
	MisBeginAction(AddTrigger, 7374, TE_GETITEM, 4456, 3 )
	MisBeginAction(AddTrigger, 7375, TE_GETITEM, 295, 1 )
	MisCancelAction(ClearMission, 737)
	
	MisNeed(MIS_NEED_KILL, 268, 10, 20, 10)
	MisNeed(MIS_NEED_ITEM, 4474, 5, 30, 5)
	MisNeed(MIS_NEED_ITEM, 4456, 3, 40, 3)
	MisNeed(MIS_NEED_ITEM, 295, 1, 50, 1)
	
	MisResultTalk("<t>Congratulations!<n><t>You are now a full fledged <bCrusader>!<n><t>More challenges awaits you from now on!")
	MisHelpTalk("<t>Although the requirements are tough, but I am sure you can do it.")
	MisResultCondition(HasMission, 737)
	MisResultCondition(HasFlag, 737, 29 )
	MisResultCondition(HasItem, 4474, 5 )
	MisResultCondition(HasItem, 4456, 3 )
	MisResultCondition(HasItem, 295, 1 )
	MisResultAction(TakeItem, 4474, 5)
	MisResultAction(TakeItem, 4456, 3)
	MisResultAction(TakeItem, 295, 1)
	MisResultAction(ClearMission, 737)
	MisResultAction(SetRecord, 737)
	MisResultAction(SetProfession, 9)
	
	InitTrigger()
	TriggerCondition( 1, IsMonster, 268 )	
	TriggerAction( 1, AddNextFlag, 737, 20, 10 )
	RegCurTrigger( 7372 )
	InitTrigger()
	TriggerCondition( 1, IsItem, 4474 )	
	TriggerAction( 1, AddNextFlag, 737, 30, 5 )
	RegCurTrigger( 7373 )
	InitTrigger()
	TriggerCondition( 1, IsItem, 4456 )	
	TriggerAction( 1, AddNextFlag, 737, 30, 3 )
	RegCurTrigger( 7374 )
	InitTrigger()
	TriggerCondition( 1, IsItem, 295 )	
	TriggerAction( 1, AddNextFlag, 737, 30, 1 )
	RegCurTrigger( 7375 )

-----------------------------------巨剑士转职任务
	DefineMission( 750, "Champion's Valor", 738 )
	
	MisBeginTalk( "<t>Want to become a <bChampion>? Good!<n><t>However, you must bring the following items before you return: <n><t>You must have a suitable weapon of a Champion, go and buy a <yCriss Sword>. Bring me 5 <yNinja Masks> from <rNinja Mole>. 5 <rPolar Bear>'s <yGreat Bear Tooth> and 5 <ySolid Rock> from <rRock Golem>.<n><t>This way, you can prove that you have the capability to become a great Champion.<n><t>Look for <rNinja Mole> in <pAbandoned Mine>, <rRock Golem> in <pAndes Forest> and <rPolar Bear> can be found east of Icicle City" )
	MisBeginCondition(NoRecord, 738)
	MisBeginCondition(NoMission, 738)
	MisBeginCondition(LvCheck, ">", 39 )
	MisBeginCondition(PfEqual, 1 )
	MisBeginCondition(CheckConvertProfession, MIS_LARGE_FENCER )
	MisBeginAction(AddMission, 738)
	MisBeginAction(AddTrigger, 7381, TE_GETITEM, 15, 1 )
	MisBeginAction(AddTrigger, 7382, TE_GETITEM, 4454, 1 )
	MisBeginAction(AddTrigger, 7383, TE_GETITEM, 4453, 5 )
	MisBeginAction(AddTrigger, 7384, TE_GETITEM, 4368, 5 )
	MisCancelAction(ClearMission, 738)

	MisNeed(MIS_NEED_ITEM, 15, 1, 10, 1)
	MisNeed(MIS_NEED_ITEM, 4454, 1, 20, 1)
	MisNeed(MIS_NEED_ITEM, 4453, 5, 30, 5)
	MisNeed(MIS_NEED_ITEM, 4368, 5, 40, 5)
	
	MisResultTalk("<t>Congratulations! You have successfully become a qualified <bChampion>!<n><t>More challenges awaits you!")
	MisHelpTalk("<t>Any questions? <rNinja Mole> can be found in <pAbandon Mine>, <rRock Golem> in <pAndes Forest> and <rPolar Bears> at the east of <pIcicle Castle>")
	MisResultCondition(HasMission, 738)
	MisResultCondition(HasItem, 15, 1 )
	MisResultCondition(HasItem, 4454, 1 )
	MisResultCondition(HasItem, 4453, 5 )
	MisResultCondition(HasItem, 4368, 5 )
	MisResultAction(TakeItem, 15, 1)
	MisResultAction(TakeItem, 4454, 1)
	MisResultAction(TakeItem, 4453, 5)
	MisResultAction(TakeItem, 4368, 5)
	MisResultAction(ClearMission, 738)
	MisResultAction(SetRecord, 738)
	MisResultAction(SetProfession, 8)
	
	InitTrigger()
	TriggerCondition( 1, IsItem, 15 )	
	TriggerAction( 1, AddNextFlag, 738, 10, 1 )
	RegCurTrigger( 7381 )
	InitTrigger()
	TriggerCondition( 1, IsItem, 4454 )	
	TriggerAction( 1, AddNextFlag, 738, 20, 1 )
	RegCurTrigger( 7382 )
	InitTrigger()
	TriggerCondition( 1, IsItem, 4453 )	
	TriggerAction( 1, AddNextFlag, 738, 30, 5 )
	RegCurTrigger( 7383 )
	InitTrigger()
	TriggerCondition( 1, IsItem, 4368 )	

⌨️ 快捷键说明

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