📄 missionscript07.lua
字号:
-------------------------------------------------------------------
-- --
-- --
--NPCScript07.lua Created by knight.gong 2005.7.12. --
-- --
-- --
--------------------------------------------------------------------------
print( "loading NPCScript07.lua" )
---------------------------------------------宠宠总动员(1)
DefineMission( 900, "Pet Event", 900)
MisBeginTalk( "<t>Want a beautiful pet? Then you will have to take my test.<n><t>Go outside of town to kill 10 Fox Taoists and bring back the Exorcism Bell.<n><t>I will give you a chance to obtain a beautiful pet.")
MisBeginCondition(LvCheck, ">", 59 )
MisBeginCondition(HasItem, 0844, 1)
MisBeginCondition(NoMission, 900)
MisBeginAction(AddMission, 900)
MisBeginAction(AddTrigger, 9001, TE_KILL, 748, 10 )
MisCancelAction(ClearMission, 900)
MisNeed(MIS_NEED_DESP, "Kill 10 Fox Taoist for the fortune teller")
MisNeed(MIS_NEED_KILL, 748, 10, 10, 10)
MisHelpTalk("<t>Go now! For the sake of a new pet!")
MisResultTalk("<t>You are quite fast!<n><t>If you are lucky, the chest will contain the pet you wanted")
MisResultCondition(HasMission, 900)
MisResultCondition(HasFlag, 900, 19 )
MisResultCondition(HasItem,0844,1)
MisResultAction(TakeItem, 0844,1)
MisResultAction(ClearMission,900)
MisResultAction(GiveItem, 1852, 1, 4)
MisResultBagNeed(1)
InitTrigger()
TriggerCondition( 1, IsMonster, 748 )
TriggerAction( 1, AddNextFlag, 900, 10, 10 )
RegCurTrigger(9001)
-------------------------------------------------宠宠总动员(2)
DefineMission(901,"Pet Event",901)
MisBeginTalk("<t>Want a beautiful pet? Then you will have to take my test. Go outside of town to kill 10 Fox Taoists and bring back the Exorcism Bell. I will give you a chance to obtain a beautiful pet.")
MisBeginCondition(LvCheck, "<", 60 )
MisBeginCondition(HasItem, 0844, 1)
MisBeginCondition(NoMission,901)
MisBeginAction(AddMission, 901)
MisBeginAction(AddTrigger, 9011, TE_KILL, 103, 20)
MisBeginAction(AddTrigger, 9012, TE_KILL, 70, 20)
MisBeginAction(AddTrigger, 9013, TE_KILL, 253, 10)
MisBeginAction(AddTrigger, 9014, TE_KILL, 85, 10)
MisBeginAction(AddTrigger, 9015, TE_KILL, 76, 10)
MisCancelAction(ClearMission, 901)
MisNeed(MIS_NEED_DESP, "Help Old Man Blurry at (2272, 2700) to kill 20 Forest Spirit, 20 Little Squidy, 10 Mud Monster, 10 Stramonium and 10 Rookie Boxeroo.")
MisNeed(MIS_NEED_KILL, 103, 20, 10, 20)
MisNeed(MIS_NEED_KILL, 70, 20, 30, 20)
MisNeed(MIS_NEED_KILL, 253, 10, 50, 10)
MisNeed(MIS_NEED_KILL, 85, 10, 60, 10)
MisNeed(MIS_NEED_KILL, 76, 10, 70, 10)
MisHelpTalk("<t>Hurry up for your beautiful pet")
MisResultTalk("<t>You are quite fast!<n><t>If you are lucky, the chest will contain the pet you wanted")
MisResultCondition(HasMission, 901)
MisResultCondition(HasFlag, 901, 29)
MisResultCondition(HasFlag, 901, 49)
MisResultCondition(HasFlag, 901, 59)
MisResultCondition(HasFlag, 901, 69)
MisResultCondition(HasFlag, 901, 79)
MisResultCondition(HasItem, 0844, 1)
MisResultAction(TakeItem, 0844, 1)
MisResultAction(ClearMission, 901)
MisResultAction(GiveItem, 1852, 1, 4)
MisResultBagNeed(1)
InitTrigger()
TriggerCondition( 1, IsMonster, 103 )
TriggerAction( 1, AddNextFlag, 901, 10, 20 )
RegCurTrigger(9011)
InitTrigger()
TriggerCondition( 1, IsMonster, 70 )
TriggerAction( 1, AddNextFlag, 901, 30, 20 )
RegCurTrigger(9012)
InitTrigger()
TriggerCondition( 1, IsMonster, 253 )
TriggerAction( 1, AddNextFlag, 901, 50, 10 )
RegCurTrigger(9013)
InitTrigger()
TriggerCondition( 1, IsMonster, 85 )
TriggerAction( 1, AddNextFlag, 901, 60, 10 )
RegCurTrigger(9014)
InitTrigger()
TriggerCondition( 1, IsMonster, 76 )
TriggerAction( 1, AddNextFlag, 901, 70, 10 )
RegCurTrigger(9015)
-------------------------------------------------端午佳节吃粽子 雄黄艾草辟百邪
DefineMission( 902, "Use Chinese Dumpling, Sulphur and Ether Clover on Dragon Boat festival to ward evil", 902)
MisBeginTalk("<t>Oh dear! The river monsters are moving again. I need some things to throw down to the river. Can you help me collect them?")
MisBeginCondition(LvCheck, ">",15 )
MisBeginCondition(NoMission,902)
MisBeginCondition(NoRecord,902)
MisBeginAction(AddMission,902)
MisBeginAction(AddTrigger, 9021, TE_GETITEM, 3116, 10 ) --精灵果
MisBeginAction(AddTrigger, 9022, TE_GETITEM, 3131, 10 ) --奇异果实
MisBeginAction(AddTrigger, 9023, TE_GETITEM, 4419, 5 ) --坏掉的蜂蜜
MisCancelAction(ClearMission, 902)
MisNeed(MIS_NEED_DESP, "Help Qu Yuan find 10 Elven Fruit, 10 Strange Fruit and 5 Fermented Honey")
MisNeed(MIS_NEED_ITEM, 3116, 10, 10, 10)
MisNeed(MIS_NEED_ITEM, 3131, 10, 20, 10)
MisNeed(MIS_NEED_ITEM, 4419, 5, 30, 5)
MisHelpTalk("<t>Hurry! I'll be waiting for you! Its 10 Elven Fruits, 10 Strange Fruits and 5 Fermented Honey.")
MisResultTalk("<t>Hope that these can feed them well and prevent them from creating anymore mischief.")
MisResultCondition(HasMission, 902)
MisResultCondition(NoRecord,902)
MisResultCondition(HasItem, 3116, 10)
MisResultCondition(HasItem, 3131, 10 )
MisResultCondition(HasItem, 4419, 5 )
MisResultAction(TakeItem, 3116, 10 )
MisResultAction(TakeItem, 3131, 10 )
MisResultAction(TakeItem, 4419, 5 )
MisResultAction(ClearMission, 902)
MisResultAction(SetRecord, 902 )
InitTrigger()
TriggerCondition( 1, IsItem, 3116)
TriggerAction( 1, AddNextFlag, 902, 10, 10 )
RegCurTrigger( 9021 )
InitTrigger()
TriggerCondition( 1, IsItem, 3131)
TriggerAction( 1, AddNextFlag, 902, 20, 10 )
RegCurTrigger( 9022 )
InitTrigger()
TriggerCondition( 1, IsItem, 4419)
TriggerAction( 1, AddNextFlag, 902, 30, 5 )
RegCurTrigger( 9023 )
-------------------------------------------------- 端午佳节吃粽子 雄黄艾草辟百邪
DefineMission( 903, "Use Chinese Dumpling, Sulphur and Ether Clover on Dragon Boat festival to ward evil", 903)
MisBeginTalk("<t>Oh dear! Those items are not enough! I need more. Can you help me again?")
MisBeginCondition(NoMission,902)
MisBeginCondition(NoMission,903)
MisBeginCondition(HasRecord,902)
MisBeginCondition(NoRecord,903)
MisBeginAction(AddMission,903)
MisBeginAction(AddTrigger, 9031, TE_GETITEM, 1779, 10 ) --药瓶
MisBeginAction(AddTrigger, 9032, TE_GETITEM, 1584, 20 ) --有毒的刺
MisBeginAction(AddTrigger, 9033, TE_GETITEM, 1650, 10 ) --有疗效的水
MisCancelAction(ClearMission, 903)
MisNeed(MIS_NEED_DESP, "Help Qu Yuan find 10 Bottle, 20 Poisoned Thorn and 10 Healing Water")
MisNeed(MIS_NEED_ITEM, 1779, 10, 10, 10)
MisNeed(MIS_NEED_ITEM, 1584, 20, 20, 20)
MisNeed(MIS_NEED_ITEM, 1650, 10, 40, 10)
MisHelpTalk("<t>Sign…these river creatures…")
MisResultTalk("<t>They shouldn't dare to try anything funny this time.")
MisResultCondition(HasMission, 903)
MisResultCondition(NoRecord,903)
MisResultCondition(HasItem, 1779, 10)
MisResultCondition(HasItem, 1584, 20 )
MisResultCondition(HasItem, 1650, 10 )
MisResultAction(TakeItem, 1779, 10 )
MisResultAction(TakeItem, 1584, 20 )
MisResultAction(TakeItem, 1650, 10 )
MisResultAction(ClearMission, 903)
MisResultAction(SetRecord, 903 )
InitTrigger()
TriggerCondition( 1, IsItem, 1779)
TriggerAction( 1, AddNextFlag, 903, 10, 10 )
RegCurTrigger( 9031 )
InitTrigger()
TriggerCondition( 1, IsItem, 1584)
TriggerAction( 1, AddNextFlag, 903, 20, 20 )
RegCurTrigger( 9032 )
InitTrigger()
TriggerCondition( 1, IsItem, 1650)
TriggerAction( 1, AddNextFlag, 903, 40, 10 )
RegCurTrigger( 9033 )
-------------------------------------------------- 端午佳节吃粽子 雄黄艾草辟百邪
DefineMission( 904, "Use Chinese Dumpling, Sulphur and Ether Clover on Dragon Boat festival to ward evil", 904)
MisBeginTalk("<t>Sigh…To appease those river monsters, I spent so much effort, resulting in me getting seriously ill. Although I know what can cure my illness, I am unable to get them on my own. Can you get those items back for me to make a cure?")
MisBeginCondition(NoMission,904)
MisBeginCondition(NoRecord,904)
MisBeginCondition(HasRecord,903)
MisBeginAction(AddMission,904)
MisBeginAction(AddTrigger, 9041, TE_GETITEM, 3129, 5 ) --药用草叶
MisBeginAction(AddTrigger, 9042, TE_GETITEM, 1681, 5 ) --眼泪
MisCancelAction(ClearMission, 904)
MisNeed(MIS_NEED_DESP, "Help Qu Yuan collect 5 Medicated Grass and 5 Tears")
MisNeed(MIS_NEED_ITEM, 3129, 5, 10, 5)
MisNeed(MIS_NEED_ITEM, 1681, 5, 20, 5)
MisHelpTalk("<t>Sigh…I have so much illness…")
MisResultTalk("<t>Thank you for helping me. Please take these as rewards.")
MisResultCondition(HasMission, 904)
MisResultCondition(NoRecord,904)
MisResultCondition(HasItem, 3129, 5)
MisResultCondition(HasItem, 1681, 5 )
MisResultAction(TakeItem, 3129, 5 )
MisResultAction(TakeItem, 1681, 5 )
MisResultAction(GiveItem, 263, 3, 4)
MisResultAction(GiveItem, 264, 3, 4)
MisResultAction(GiveItem, 265, 3 ,4)
MisResultAction(ClearMission, 904)
MisResultAction(SetRecord, 904 )
MisResultBagNeed(3)
InitTrigger()
TriggerCondition( 1, IsItem, 3129)
TriggerAction( 1, AddNextFlag, 904, 10, 5 )
RegCurTrigger( 9041 )
InitTrigger()
TriggerCondition( 1, IsItem, 1681)
TriggerAction( 1, AddNextFlag, 904, 20, 5 )
RegCurTrigger( 9042 )
-------------------------------------------------- 海盗王的生日
DefineMission( 905, "Pirate King Anniversary", 905)
MisBeginTalk("<t>Do you know that not only Drunky loves to eat cakes baked by Granny Beldi, Pirate King Roland loves them too! Rumor has it that whoever eats the cake will get 3 bonus stat points! No wonder the Pirate King is invincible.<n><t>Don't you want to try too? Not everybody has a chance though. You need to take a \"Cake Sampling Voucher\" and go to \"Granny Beldi\" for exchange of a slice.")
MisBeginCondition(NoMission,905)
MisBeginCondition(HasItem, 1097, 1 )
MisBeginCondition(NoRecord,905)
MisBeginAction(AddMission,905)
MisCancelAction(SystemNotice, "This quest cannot be abandoned")
MisNeed(MIS_NEED_DESP, "Look for Granny Beldi")
MisHelpTalk("<t>Hurry and look for the old granny else no more cakes will be left!")
MisResultCondition(AlwaysFailure )
-------------------------------------------------- 海盗王的生日
DefineMission ( 906, "Pirate King Anniversary", 905,COMPLETE_SHOW)
MisBeginCondition(AlwaysFailure )
MisResultTalk("<t>Its Tintin who recommended you to come. Hmm...He loves to eat my bread. Haha. I take the \"Cake Voucher\". Here is your cake.")
MisResultCondition(HasMission,905)
MisResultCondition(HasItem, 1097, 1 )
MisResultAction(ClearMission, 905 )
MisResultAction(TakeItem, 1097, 1 )
MisResultAction(GiveItem, 3338, 1, 4 )
MisResultAction(SetRecord, 905 )
MisCancelAction(SystemNotice, "This quest cannot be abandoned")
MisBeginBagNeed(1)
-------------------------------寻找遗失的爱情之鱼儿寻找花瓣
DefineMission( 907, "Search for Flower", 906)
MisBeginTalk( "<t>I miss her a lot! I beg you, please help me find her. I can't do without her. I know she was last sighted at Deep Blue(1333,558). Can you go look around in that area?")
MisBeginCondition(NoRecord, 913 )
MisBeginCondition(NoMission, 906 )
MisBeginAction(AddMission, 906 )
MisCancelAction(ClearMission, 906)
MisNeed(MIS_NEED_DESP, "Locate Flower at (1333, 558)")
MisHelpTalk("<t>Her last known coordinates is at (1333, 558) in Deep Blue region.")
MisResultCondition(AlwaysFailure )
---------------------------------------寻找遗失的爱情之鱼儿寻找花瓣
DefineMission(908,"Search for Flower",906,COMPLETE_SHOW )
MisBeginCondition(AlwaysFailure)
MisResultTalk("<t>You are a friend of Little Fish? I'm Flower's friend, the one he has been looking for!")
MisResultCondition(HasMission, 906)
MisBeginCondition(NoRecord, 913)
MisResultAction(ClearMission, 906)
MisResultAction(SetRecord, 913)
----------------------------------寻找遗失的爱情之舞蝶喜欢吃月饼
DefineMission ( 909, "Mooncake Affinity", 907)
MisBeginTalk("<t>How can I so easily believe that you were sent by Little Fish? How about this, I really love to eat mooncake. Help me find 10 mooncakes.")
MisBeginCondition(HasRecord,913)
MisBeginCondition(NoMission,907)
MisBeginCondition(NoRecord,907)
MisBeginAction(AddMission,907)
MisBeginAction(AddTrigger, 9071, TE_GETITEM, 3915, 10)
MisCancelAction(ClearMission, 907)
MisNeed(MIS_NEED_DESP, "Help Butterfly to collect 10 Mooncakes")
MisNeed(MIS_NEED_ITEM, 3915, 10, 10, 10)
MisHelpTalk("<t>Need 10 mooncakes!")
MisResultTalk("<t>You seems to be a nice fellow. I love to eat mooncake, thank you!")
MisResultCondition(HasMission, 907)
MisResultCondition(NoRecord,907)
MisResultCondition(HasItem, 3915, 10)
MisResultAction(TakeItem, 3915, 10 )
MisResultAction(ClearMission, 907)
MisResultAction(SetRecord, 907 )
InitTrigger()
TriggerCondition( 1, IsItem, 3915)
TriggerAction( 1, AddNextFlag, 907, 10, 10 )
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -