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

📄 missionscript01.lua

📁 top web admin panel (tales of pirates)
💻 LUA
📖 第 1 页 / 共 5 页
字号:
	MisResultCondition(HasFlag, 715, 10)
	MisResultAction(ClearMission, 715)
	MisResultAction(SetRecord, 715)
	MisResultAction(AddExp, 66, 66 )


-----------------------------------战斗训练
	DefineMission( 728, "Battle training", 716 )
	
	MisBeginTalk( "<t>Hmm, not bad.<n><t>Now that your preparations are complete, its time for the special training. Go outside the city and slay 5 <Snow Squirts>.<n><t>Oh by the way, also collect a special seed for me. The Snow Squirt can be found south of the Icicle City gates while the seed can be found on the Snowy Mystic Shrub. Look for me after you have completed your task!<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 item loot." )
	MisBeginCondition(HasRecord, 715)
	MisBeginCondition(NoRecord, 716)
	MisBeginCondition(NoMission, 716)
	MisBeginCondition(LvCheck, ">", 4 )
	MisBeginCondition(LvCheck, "<", 10 )
	MisBeginAction(AddMission, 716)
	MisBeginAction(AddTrigger, 7161, TE_GETITEM, 1597, 1 )
	MisBeginAction(AddTrigger, 7162, TE_KILL, 234, 5 )
	MisBeginAction(SetFlag, 716, 1)
	MisCancelAction(ClearMission, 716)
	
	MisNeed(MIS_NEED_ITEM, 1597, 1, 10, 1)
	MisNeed(MIS_NEED_KILL, 234, 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.")
	MisHelpTalk("<t>Remember! Defeat 5 Snow Squirt and collect 1 Seed")
	MisResultCondition(NoRecord, 716)
	MisResultCondition(HasMission, 716)
	MisResultCondition(HasItem, 1597, 1)
	MisResultCondition(HasFlag, 716, 24)
	MisResultAction(TakeItem, 1597, 1)
	MisResultAction(ClearMission, 716)
	MisResultAction(SetRecord, 716 )
	MisResultAction(AddExp, 75, 75 )

	InitTrigger()
	TriggerCondition( 1, IsItem, 1597 )	
	TriggerAction( 1, AddNextFlag, 716, 10, 1 )
	RegCurTrigger( 7161 )
	InitTrigger()
	TriggerCondition( 1, IsMonster, 234 )	
	TriggerAction( 1, AddNextFlag, 716, 20, 5 )
	RegCurTrigger( 7162 )


	
end
RobinMission030()


----------------------------------------------------------
--							--
--							--
--		冰狼堡[铁匠·暴冰]			--
--							--
--		239185,277025				--
----------------------------------------------------------
function RobinMission031()

---------------------------------------新手任务送小刀
	DefineMission( 723, "Blacksmith's Greetings", 713, COMPLETE_SHOW)
	
	MisBeginCondition( AlwaysFailure )
		
	MisResultTalk("<t>You are new around here? I am <bBash>, the Blacksmith of <pIcicle Castle>. I specialize in making weapons and sadly, still single.<n><t>Now return to Angela at (1315, 507). She will introduce you to other NPCs.<n><t>(Bash has given you a pair of \"Newbie Knife\". Open your inventory and double click on it to equip.)")
	MisResultCondition(NoRecord, 713)
	MisResultCondition(HasMission, 713)
	MisResultCondition(NoFlag, 713, 10)
	MisResultCondition(HasItem, 3959, 1)
	MisResultAction(TakeItem, 3959, 1)
	MisResultAction(SetFlag, 713, 10)
	MisResultBagNeed(1)

end
RobinMission031()


----------------------------------------------------------
--							--
--							--
--		冰狼堡[服装店主·翰娜]			--
--							--
--		239185,277025				--
----------------------------------------------------------
function RobinMission032()

-----------------------------------服装店的问候
	DefineMission( 725, "Tailor's Greetings", 714, COMPLETE_SHOW)
	
	MisBeginCondition( AlwaysFailure )
		
	MisResultTalk("<t>You are new around here, aren't you? Welcome to <pIcicle Castle>. I'm the owner of the tailor shop, <bHannah>. Thank you for the letter, please take these gloves, they are custom made for you. Don't forget to return to <bAngela> the <rNewbie Guide> at (1315, 507) and tell her that I've received her letter.<n><t>(Hannah has given you a pair of \"Newbie Gloves\". Open your inventory and double click on it to equip.)")
	MisResultCondition(NoRecord, 714)
	MisResultCondition(HasMission, 714)
	MisResultCondition(NoFlag, 714, 10)
	MisResultCondition(HasItem, 3960, 1)
	MisResultAction(TakeItem, 3960, 1)
	MisResultAction(SetFlag, 714, 10)
	MisResultAction(GiveItem, 465, 1, 4)
	MisResultBagNeed(1)
	
end
RobinMission032()


----------------------------------------------------------
--							--
--							--
--		冰狼堡[药材商人·达赫]			--
--							--
--		239185,277025				--
----------------------------------------------------------
function RobinMission033()

-----------------------------------药材店的问候
	DefineMission( 727, "Physician's Greetings", 715, COMPLETE_SHOW)
	
	MisBeginCondition( AlwaysFailure )
		
	MisResultTalk("<t> You say you're new around here? Welcome! Take these <rApples>, they're on the house! I'm sure they'll come in handy to you.<n><t>Now return to Angela at (1315, 507).<n><t>(Daisha has given you some \"Apples\". Drag to F1 - F8 hotkey slot to use as a shortcut.)")
	MisResultCondition(NoRecord, 715)
	MisResultCondition(HasMission, 715)
	MisResultCondition(NoFlag, 715, 10)
	MisResultCondition(HasItem, 3961, 1)
	MisResultAction(TakeItem, 3961, 1)
	MisResultAction(SetFlag, 715, 10)
	MisResultAction(GiveItem, 1847, 10, 4)
	MisResultBagNeed(1)

---------------------------------收集癖	
	DefineMission( 735, "Collector's Habit", 723 )

	MisBeginTalk( "<t>Lately after tidying up my collection, I realized that I am missing some <rOctopus Tentacles>.<n><t>I need you to help me find 5 <rOctopus Tentacles> which can be found off the <bSnow Squirts> near the city entrance." )
	MisBeginCondition(NoMission, 723)
	MisBeginCondition(LvCheck, ">", 4 )
	MisBeginCondition(LvCheck, "<", 7 )
	MisBeginAction(AddMission, 723)
	MisBeginAction(SetFlag, 723, 1)
	MisBeginAction(AddTrigger, 7231, TE_GETITEM, 1704, 5 )
	MisCancelAction(ClearMission, 723)

	MisNeed(MIS_NEED_ITEM, 1704, 5, 10, 5)

	MisPrize(MIS_PRIZE_MONEY, 100, 1)
	MisPrizeSelAll()
	
	MisResultTalk("<t>Good! My collection has increased again.<n><t>Thank you!")
	MisHelpTalk("<t>What's the problem? Is it that hard to find them? They are just outside the main entrance.")
	MisResultCondition(HasMission, 723)
	MisResultCondition(HasItem, 1704, 5 )
	MisResultAction(TakeItem, 1704, 5 )
	MisResultAction(AddExp, 40, 70)
	MisResultAction(ClearMission, 723)
		
	InitTrigger()
	TriggerCondition( 1, IsItem, 1704)	
	TriggerAction( 1, AddNextFlag, 723, 10, 5 )
	RegCurTrigger( 7231 )


	---------------------------------收集癖	
	DefineMission( 746, "Collector's Habit", 734 )

	MisBeginTalk( "<t>I have just found out that there isn't any withered branch in my collection at all! Its quite a shame. Can you please go to (1179, 475) and get 5 <yWithered Branch> from the <bSnow Squidy>? Go now quickly for if I am unhappy with my collection, I won't give you any more new task!" )
	MisBeginCondition(NoMission, 734)
	MisBeginCondition(NoMission, 723)
	MisBeginCondition(LvCheck, ">", 6 )
	MisBeginCondition(LvCheck, "<", 8 )
	MisBeginAction(AddMission, 734)
	MisBeginAction(SetFlag, 734, 1)
	MisBeginAction(AddTrigger, 7341, TE_GETITEM, 3372, 5 )
	MisCancelAction(ClearMission, 734)

	MisNeed(MIS_NEED_ITEM, 3372, 5, 10, 5)

	MisPrize(MIS_PRIZE_MONEY, 200, 1)
	MisPrizeSelAll()
	
	MisResultTalk("<t>Hoho. I have added more to my collection.")
	MisHelpTalk("<t>Oh my...<n><t>Its only Withered Branch! Unable to complete such a simple task? Those <bSnow Squidy> just outside of Icicle Castle have it on them.")
	MisResultCondition(HasMission, 734)
	MisResultCondition(HasItem, 3372, 5 )
	MisResultAction(TakeItem, 3372, 5 )
	MisResultAction(AddExp, 70, 95)
	MisResultAction(ClearMission, 734)
		
	InitTrigger()
	TriggerCondition( 1, IsItem, 3372)	
	TriggerAction( 1, AddNextFlag, 734, 10, 5 )
	RegCurTrigger( 7341 )


---------------------------------收集癖	
	DefineMission( 747, "Collector's Habit", 735 )

	MisBeginTalk( "<t>Due to the large additions to my collection of item, I have run out of space to store them! Can you please give me a hand? Go to (1179, 371) and collect 5 <yMedicine Bottles> from <bSnowy Piglets>. Oh by the way, remember to bring more healing potions along, you will need them." )
	MisBeginCondition(NoMission, 735)
	MisBeginCondition(NoMission, 734)
	MisBeginCondition(NoMission, 723)
	MisBeginCondition(LvCheck, ">", 7 )
	MisBeginCondition(LvCheck, "<", 9 )
	MisBeginAction(AddMission, 735)
	MisBeginAction(SetFlag, 735, 1)
	MisBeginAction(AddTrigger, 7351, TE_GETITEM, 1779, 5 )
	MisCancelAction(ClearMission, 735)

	MisNeed(MIS_NEED_ITEM, 1779, 5, 10, 5)

	MisPrize(MIS_PRIZE_MONEY, 300, 1)
	MisPrizeSelAll()
	
	MisResultTalk("<t>Hehe! <n><t>Now that I have the medicine bottle, I am able to store more goods. Haha, I am really happy now!")
	MisHelpTalk("<t>Its only a few Bbttles, go now!")
	MisResultCondition(HasMission, 735)
	MisResultCondition(HasItem, 1779, 5 )
	MisResultAction(TakeItem, 1779, 5 )
	MisResultAction(AddExp, 95, 125)
	MisResultAction(ClearMission, 735)
		
	InitTrigger()
	TriggerCondition( 1, IsItem, 1779)	
	TriggerAction( 1, AddNextFlag, 735, 10, 5 )
	RegCurTrigger( 7351 )



end
RobinMission033()

----------------------------------------------------------
--							--
--							--
--		冰狼堡[冰狼堡剑士·雷欧]			--
--							--
--		239185,277025				--
----------------------------------------------------------
function RobinMission034()

-----------------------------------猎人手册
	DefineMission( 729, "Hunter Manual", 717 )
	
	MisBeginTalk( "<t>Are you here to aquire the Hunter Manual? You are really brave.<n><t>However bravery alone is not enough, to aquire the <rHunter Manual>, you must prove that you have the required agility and dexterity.<n><t>Go to <pIcicle City> and capture 10 <bLittle Deers> at (1164, 305) and 10 <bLittle White Deers> at (1325, 305).<n><t>In additional, you need to have <rElven Fruit Juice>.<n><t>As hunter spends a long amount of time outside hunting solidary, having items that regenerate HP is a must.<n><t>If you managed to complete these tasks, I will consider you to be a qualifed hunter." )
	MisBeginCondition(NoMission, 717)
	MisBeginCondition(LvCheck, ">", 6 )
	MisBeginCondition(PfEqual, 0 )
	MisBeginCondition(CheckConvertProfession, MIS_HUNTER )
	MisBeginAction(AddMission, 717)
	MisBeginAction(SetFlag, 717, 1)
	MisBeginAction(AddTrigger, 7171, TE_KILL, 240, 10 )
	MisBeginAction(AddTrigger, 7172, TE_GETITEM, 3122, 1 )
	MisBeginAction(AddTrigger, 7173, TE_KILL, 238, 10 )
	MisCancelAction(ClearMission, 717)

	
	MisNeed(MIS_NEED_KILL, 240, 10, 10, 10)
	MisNeed(MIS_NEED_ITEM, 3122, 1, 20, 1)
	MisNeed(MIS_NEED_KILL, 238, 10, 30, 10)

	MisPrize(MIS_PRIZE_ITEM, 3955, 1, 4)
	MisPrizeSelAll()
	
	MisResultTalk("<t>Friend, you have done well!<n><t>You have passed my test. This is the <rHunter Manual> that all hunter must have.<n><t>Keep it well. When you reached <pLv10>, come to me for class advancement.")
	MisHelpTalk("<t>You have not met the requirements. Its not so easy to become a Hunter.")
	MisResultCondition(HasMission, 717)
	MisResultCondition(HasItem, 3122, 1 )
	MisResultCondition(HasFlag, 717, 19 )
	MisResultCondition(HasFlag, 717, 39 )
	MisResultAction(TakeItem, 3122, 1)
	MisResultAction(ClearMission, 717)
	MisResultBagNeed(1)
	
	InitTrigger()
	TriggerCondition( 1, IsMonster, 240 )	
	TriggerAction( 1, AddNextFlag, 717, 10, 10 )
	RegCurTrigger( 7171 )
	InitTrigger()
	TriggerCondition( 1, IsItem, 3122 )	
	TriggerAction( 1, AddNextFlag, 717, 20, 1 )

⌨️ 快捷键说明

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