📄 missionscript01.lua
字号:
--------------------------------------------------------------------------
-- --
-- --
--MissionScript01.lua Created by Robin 2004.12.27. --
-- --
-- --
--------------------------------------------------------------------------
print( "loading MissionScript01.lua" )
jp= JumpPage
amp=AutoMissionPage
ct=CloseTalk
am=AddMission
MissionCheck = HasFlag
mc=MissionCheck
----------------------------------------------------------
-- --
-- --
-- 白银城[药草商人——帝姆] --
-- --
-- 224575,277025 --
----------------------------------------------------------
function RobinMission003()
-----------------------------------药品店的问候
DefineMission( 707, "Physician's Greetings", 703, 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 Senna at (2223, 2785).<n><t>(Ditto has given you some \"Apples\". Drag to F1 - F8 hotkey slot to use as a shortcut.)")
MisResultCondition(NoRecord, 703)
MisResultCondition(HasMission, 703)
MisResultCondition(NoFlag, 703, 10)
MisResultCondition(HasFlag, 703, 1)
MisResultCondition(HasItem, 3952, 1)
MisResultAction(TakeItem, 3952, 1)
MisResultAction(SetFlag, 703, 10)
MisResultAction(GiveItem, 1847, 10, 4)
MisResultBagNeed(1)
--------------------------叶子收集
DefineMission( 733, "Leaves Collection", 721 )
MisBeginTalk( "<t>Hi! You will need to help me collect some herbs. I need a few types of leaves. They are 10 <rShriveled Leaf> and 5 <rGreen Leaf> and can be found on Mystic Shrub and Mystic Flower." )
MisBeginCondition(NoMission, 721)
MisBeginCondition(LvCheck, ">", 4 )
MisBeginCondition(LvCheck, "<", 7 )
MisBeginAction(AddMission, 721)
MisBeginAction(SetFlag, 721, 1)
MisBeginAction(AddTrigger, 7211, TE_GETITEM, 1573, 10 )
MisBeginAction(AddTrigger, 7212, TE_GETITEM, 1574, 3 )
MisCancelAction(ClearMission, 721)
MisNeed(MIS_NEED_ITEM, 1573, 10, 10, 10)
MisNeed(MIS_NEED_ITEM, 1574, 3, 20, 3)
MisPrize(MIS_PRIZE_MONEY, 100, 1)
MisPrizeSelAll()
MisResultTalk("<t>This is great! I can continue my herbal research once again!")
MisHelpTalk("<t>Have you not collected all the leaves?")
MisResultCondition(HasMission, 721)
MisResultCondition(HasItem, 1573, 10 )
MisResultCondition(HasItem, 1574, 3 )
MisResultAction(TakeItem, 1573, 10 )
MisResultAction(TakeItem, 1574, 3 )
MisResultAction(AddExp, 40, 70)
MisResultAction(ClearMission, 721)
InitTrigger()
TriggerCondition( 1, IsItem, 1573)
TriggerAction( 1, AddNextFlag, 721, 10, 10 )
RegCurTrigger( 7211 )
InitTrigger()
TriggerCondition( 1, IsItem, 1574)
TriggerAction( 1, AddNextFlag, 721, 20, 3 )
RegCurTrigger( 7212 )
--------------------------灵感配方
DefineMission( 738, "Decoction Recipe", 726 )
MisBeginTalk( "<t>I have got an inspiration to make a new kind of medicine. Sorry to trouble you but could you help me to collect 2 <rGlass>, 2 <rFlower Bud> and 5 <rOctopus Ink>. You can get them from Forest Spirit, Mystic Flower and Octopus. I will reward you. Go now!" )
MisBeginCondition(NoMission, 726)
MisBeginCondition(LvCheck, ">", 6 )
MisBeginCondition(LvCheck, "<", 8 )
MisBeginAction(AddMission, 726)
MisBeginAction(SetFlag, 726, 1)
MisBeginAction(AddTrigger, 7261, TE_GETITEM, 1777, 2 )
MisBeginAction(AddTrigger, 7262, TE_GETITEM, 1579, 2 )
MisBeginAction(AddTrigger, 7263, TE_GETITEM, 1705, 5 )
MisCancelAction(ClearMission, 726)
MisNeed(MIS_NEED_ITEM, 1777, 2, 10, 2)
MisNeed(MIS_NEED_ITEM, 1579, 2, 20, 2)
MisNeed(MIS_NEED_ITEM, 1705, 5, 30, 5)
MisPrize(MIS_PRIZE_MONEY, 200, 1)
MisPrizeSelAll()
MisResultTalk("<t>Very well. Since you have collected the nessaccery items, I can begin my research for a new potion.")
MisHelpTalk("<t>What? Hurry up and collect those ingredients before I lose my inspiration…")
MisResultCondition(HasMission, 726)
MisResultCondition(HasItem, 1777, 2 )
MisResultCondition(HasItem, 1579, 2 )
MisResultCondition(HasItem, 1705, 5 )
MisResultAction(TakeItem, 1777, 2 )
MisResultAction(TakeItem, 1579, 2 )
MisResultAction(TakeItem, 1705, 5 )
MisResultAction(AddExp, 70, 95)
MisResultAction(ClearMission, 726)
InitTrigger()
TriggerCondition( 1, IsItem, 1777)
TriggerAction( 1, AddNextFlag, 726, 10, 2 )
RegCurTrigger( 7261 )
InitTrigger()
TriggerCondition( 1, IsItem, 1579)
TriggerAction( 1, AddNextFlag, 726, 20, 2 )
RegCurTrigger( 7262 )
InitTrigger()
TriggerCondition( 1, IsItem, 1705)
TriggerAction( 1, AddNextFlag, 726, 30, 5 )
RegCurTrigger( 7263 )
--------------------------蘑菇蘑菇
DefineMission( 739, "Mushroom Mushroom", 727 )
MisBeginTalk( "<t>Speaking about it, in the past, I used to raise several <bGreedy Shrooms> outside Argent City. Recently I have been busy experimenting with the recipe so I totally forgotten all about them, seems to me now is a good time to put them to good use. Can you please retrieve 10 <rPoison Mushroom> and 5 <rMushroom>?<n><t>Err...Speaking about it, these Greedy Shroom are quite aggressive so its better to bring some healing items just in case. Other than that, these Greedy Shrooms can be found at (2220, 2564). Have a look, it might be the best time for harvest, everything is in your hands now!" )
MisBeginCondition(NoMission, 727)
MisBeginCondition(LvCheck, ">", 7 )
MisBeginCondition(LvCheck, "<", 9 )
MisBeginAction(AddMission, 727)
MisBeginAction(SetFlag, 727, 1)
MisBeginAction(AddTrigger, 7271, TE_GETITEM, 3118, 5 )
MisBeginAction(AddTrigger, 7272, TE_GETITEM, 1725, 10 )
MisCancelAction(ClearMission, 727)
MisNeed(MIS_NEED_ITEM, 3118, 5, 10, 5)
MisNeed(MIS_NEED_ITEM, 1725, 10, 20, 10)
MisPrize(MIS_PRIZE_MONEY, 300, 1)
MisPrizeSelAll()
MisResultTalk("<t>This is great! You have collected all the stuff! Thanks!")
MisHelpTalk("<t>What's the matter? Did the Greedy Shrooms frighten you?")
MisResultCondition(HasMission, 727)
MisResultCondition(HasItem, 3118, 5 )
MisResultCondition(HasItem, 1725, 10 )
MisResultAction(TakeItem, 3118, 5 )
MisResultAction(TakeItem, 1725, 10 )
MisResultAction(AddExp, 95, 125)
MisResultAction(ClearMission, 727)
InitTrigger()
TriggerCondition( 1, IsItem, 3118)
TriggerAction( 1, AddNextFlag, 727, 10, 5 )
RegCurTrigger( 7271 )
InitTrigger()
TriggerCondition( 1, IsItem, 1725)
TriggerAction( 1, AddNextFlag, 727, 20, 10 )
RegCurTrigger( 7272 )
end
RobinMission003() --定义任务后结束时必须调用该函数
----------------------------------------------------------
-- --
-- --
-- 白银城[小山车] --
-- --
-- 219350,273050 --
----------------------------------------------------------
function RobinMission004()
-----------------------------------生存指南
DefineMission( 748, "Survival Compass", 736 )
MisBeginTalk( "<t>Are you here to become an Explorer? Explorer often encounter many dangers and have to persevere on their own. Without any proper knowledge, you will not surive in this harsh world as an Explorer. To obtain the <rSurvival Compass>, you will need to go to the <pOutskirt of Argent City>, defeat 5 <bMarsh Spirits> (North of Mine), 10 <bSea Snails> (Seaside) and collect 5 <bTortoise Blood> (Grassland Tortoise).<n><t>If you can complete these task, I will give you the <bSurvival Compass>.<n><t>When you have reached level 10, you can come back to become a full fledge Explorer." )
MisBeginCondition(NoMission, 736)
MisBeginCondition(LvCheck, ">", 8 )
MisBeginCondition(PfEqual, 0 )
MisBeginCondition(CheckConvertProfession, MIS_RISKER )
MisBeginAction(AddMission, 736)
MisBeginAction(SetFlag, 736, 1)
MisBeginAction(AddTrigger, 7361, TE_KILL, 104, 5 )
MisBeginAction(AddTrigger, 7362, TE_KILL, 39, 10 )
MisBeginAction(AddTrigger, 7363, TE_GETITEM, 1844, 5 )
MisCancelAction(ClearMission, 736)
MisNeed(MIS_NEED_KILL, 104, 5, 10, 5)
MisNeed(MIS_NEED_KILL, 39, 10, 20, 10)
MisNeed(MIS_NEED_ITEM, 1844, 5, 30, 5)
MisPrize(MIS_PRIZE_ITEM, 3962, 1, 4)
MisPrizeSelAll()
MisResultTalk("<t>Quite a nice performance I must say!<n><t>You have passed the test I had set. This <rSurvival Compass> is what all new Explorer requires. <n><t>Keep it safe and come back to me when you are <pLv10>.")
MisHelpTalk("<t>You have reached the requirement to complete this trial. It is not that easy to obtain the Survival Manual.")
MisResultCondition(HasMission, 736)
MisResultCondition(HasFlag, 736, 14 )
MisResultCondition(HasFlag, 736, 29 )
MisResultCondition(HasItem, 1844, 5 )
MisResultAction(TakeItem, 1844, 5)
MisResultAction(ClearMission, 736)
MisResultBagNeed(1)
InitTrigger()
TriggerCondition( 1, IsMonster, 104 )
TriggerAction( 1, AddNextFlag, 736, 10, 5 )
RegCurTrigger( 7361 )
InitTrigger()
TriggerCondition( 1, IsMonster, 39 )
TriggerAction( 1, AddNextFlag, 736, 20, 10 )
RegCurTrigger( 7362 )
InitTrigger()
TriggerCondition( 1, IsItem, 1844 )
TriggerAction( 1, AddNextFlag, 736, 30, 5 )
RegCurTrigger( 7363 )
-----------------------------------航海士转职任务
DefineMission( 758, "Journey of the Voyager", 742 )
MisBeginTalk( "<t>Since you chosen to be a <bVoyager>, you must be prepared for what is to come.<n><t>I have befriend some sailors when I was young. Now, they are incharge of harbors in some part of the world.<n><t>Take my recommendation letter to them and they will know what to do. <n><t>They are <pZephyr Isle>'s <b Burgess>, <pGlacier Isle>'s <b Sacenis>, <pOutlaw Isle>'s <b Dilady> and <pSara Haven>'s <b Whitney>." )
MisBeginCondition(NoRecord, 742)
MisBeginCondition(NoMission, 742)
MisBeginCondition(LvCheck, ">", 39 )
MisBeginCondition(PfEqual, 4 )
MisBeginCondition(CheckConvertProfession, MIS_VOYAGE )
MisBeginAction(AddMission, 742)
MisCancelAction(ClearMission, 742)
MisNeed(MIS_NEED_DESP, "Look for Burgess at (3254, 3278)")
MisNeed(MIS_NEED_DESP, "Look for Sacenis at (2279, 1112)")
MisNeed(MIS_NEED_DESP, "Talk to Dilady at (3595, 739)")
MisNeed(MIS_NEED_DESP, "Talk to Whitney at (3097, 3530)")
MisResultTalk("<t>Oh you are back! You are now a full fledged <bVoyager>.<n><t>Sail the sea and make your legends today!")
MisHelpTalk("<t>Go now! Have you not hear the call of the ocean?")
MisResultCondition(HasMission, 742)
MisResultCondition(HasFlag, 742, 20 )
MisResultCondition(HasFlag, 742, 30 )
MisResultCondition(HasFlag, 742, 40 )
MisResultCondition(HasFlag, 742, 50 )
MisResultAction(ClearMission, 742)
MisResultAction(SetRecord, 742)
MisResultAction(SetProfession, 16)
-----------------------------------航海士转职任务
DefineMission( 760, "Journey of the Voyager", 742, COMPLETE_SHOW)
MisBeginCondition( AlwaysFailure )
MisResultTalk("<t>Hoho! You wish to become a Voyager? Then you must work harder! It will be a promising future for you if you become a Voyager!")
MisResultCondition(NoRecord, 742)
MisResultCondition(HasMission, 742)
MisResultCondition(NoFlag, 742, 20)
MisResultAction(SetFlag, 742, 20)
-----------------------------------航海士转职任务
DefineMission( 761, "Journey of the Voyager", 742, COMPLETE_SHOW)
MisBeginCondition( AlwaysFailure )
MisResultTalk("<t>Damn Little Daniel…Only thought of me after so long…!")
MisResultCondition(NoRecord, 742)
MisResultCondition(HasMission, 742)
MisResultCondition(NoFlag, 742, 30)
MisResultAction(SetFlag, 742, 30)
-----------------------------------航海士转职任务
DefineMission( 762, "Journey of the Voyager", 742, COMPLETE_SHOW)
MisBeginCondition( AlwaysFailure )
MisResultTalk("<t>Oh, a new Voyager, welcome!<n><t>Remember to help me remind Little Daniel that he owe me 50000G...for 5 years already...")
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -