📄 npcscript03.lua
字号:
-------------------------------------------------------------------
-- --
-- --
--NPCScript03.lua Created by Robin 2005.6.1. --
-- --
-- --
--------------------------------------------------------------------------
print( "loading NPCScript03.lua" )
jp= JumpPage
amp=AutoMissionPage
ct=CloseTalk
am=AddMission
MissionCheck = HasFlag
mc=MissionCheck
----------------------------------------------------------
-- --
-- --
-- 白银城[交易员·郝洛甫] --
-- --
-- 225538,280188 --
----------------------------------------------------------
-----------------------------------------------------------这里开始P话聊天
function r_talk10 ()
Talk( 1, "Chiroro: Hi! I am the Harbor Operator. How can I help you?" )
InitTrigger()
TriggerCondition( 1, HasBoatInBerth, 1 )
TriggerAction( 1, TradeBerthList, 1 )
TriggerFailure( 1, JumpPage, 2 )
Text( 1, "Cargo Trade", MultiTrigger, GetMultiTrigger(), 1 )
Text( 1, "Regarding High Lv Commerce Permit",JumpPage, 3)
Talk( 2, "Chiroro: Sorry, you do not have any ships docked in Argent Harbor . Unable to trade." )
Talk( 3, "Hi! If you want to get rich, then you will need a \"Commerce Permit!\" With it you can have more products for commerce trade and also reduce your capital to maximize your profits! Currently, players can only obtain Commerce Permit from Shaitan Trading Post.")
Text( 3, "Regarding Tax Rate",JumpPage, 7)
Text( 3, "Low Lv Commerce Permit",JumpPage, 4)
Text( 3, "Mid Lv Commerce Permit",JumpPage, 5)
Text( 3, "High Lv Commerce Permit",JumpPage, 6)
Talk( 4, "Low Lv Commerce Permit is easy to obtain. When you reaches Lv 20, go to the trading post in Shaitan and complete a simple task to have one.")
Talk( 5, "When you reaches Lv 40 and reduces your tax rate to 20%, you can go to Shaitan Trading Post and obtain a Mid Lv Commerce Permit.")
Talk( 6, "When you have reached level 60 and possess a Commerce Permit with 10% tax, you can activate the quest for High Lv Commerce.")
Talk( 7, "Check your Commerce Permit to see the current Tax Rate imposed on your product when you sell it to any trader. Complete some quest at Shaitan Trading Post to reduce the Tax Rate.")
InitGoods(1)
SaleGoodsData( 0 , 4573 , 900 , 279 , 62 )
SaleGoodsData( 0 , 4574 , 800 , 342 , 76 )
SaleGoodsData( 1 , 4575 , 700 , 391 , 87 )
SaleGoodsData( 1 , 4576 , 480 , 432 , 96 )
SaleGoodsData( 2 , 4577 , 300 , 495 , 110 )
SaleGoodsData( 2 , 4578 , 240 , 522 , 116 )
SaleGoodsData( 3 , 4579 , 60 , 589 , 131 )
SaleGoodsData( 3 , 4580 , 40 , 648 , 144 )
BuyGoodsData(0, 4581 , -1 , 542 , 121 )
BuyGoodsData(0, 4583 , -1 , 724 , 161 )
BuyGoodsData(0, 4585 , -1 , 846 , 188 )
BuyGoodsData(0, 4587 , -1 , 846 , 564 )
BuyGoodsData(0, 4593 , -1 , 1000 , 223 )
BuyGoodsData(0, 4595 , -1 , 938 , 625 )
BuyGoodsData(0, 4597 , -1 , 881 , 195 )
BuyGoodsData(0, 4598 , -1 , 878 , 195 )
BuyGoodsData(0, 4600 , -1 , 866 , 577 )
BuyGoodsData(0, 4552 , -1 , 642 , 143 )
BuyGoodsData(0, 4553 , -1 , 789 , 175 )
BuyGoodsData(0, 4554 , -1 , 934 , 207 )
BuyGoodsData(0, 4556 , -1 , 870 , 193 )
BuyGoodsData(0, 4557 , -1 , 970 , 215 )
BuyGoodsData(0, 4560 , -1 , 1056 , 235 )
BuyGoodsData(0, 4563 , -1 , 909 , 202 )
BuyGoodsData(0, 4566 , -1 , 785 , 175 )
BuyGoodsData(0, 4569 , -1 , 1014 , 225 )
BuyGoodsData(0, 4572 , -1 , 924 , 205 )
BuyGoodsData(0, 4547 , -1 , 100 , 0 )
BuyGoodsData(0, 4549 , -1 , 500 , 0 )
BuyGoodsData(0, 4548 , -1 , 300 , 0 )
BuyGoodsData(0, 4551 , -1 , 20 , 0 )
InitTrigger()
TriggerAction( 1, AddNpcTrigger, 51, TE_GAMETIME, TT_CYCLETIME, 30, 0 )
SetNpcTrigger( GetTrigger( 1 ) )
SetNpcActive()
AddNpcMission (443)
AddNpcMission (445)
AddNpcMission (447)
AddNpcMission (1020)
AddNpcMission (1076)
AddNpcMission (1132)
AddNpcMission (1183)
AddNpcMission( 1226 )
end
-----<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<交易员·郝洛甫
----------------------------------------------------------
-- --
-- --
-- 雷霆堡[交易员·桑吉] --
-- --
-- 103877,127848 --
----------------------------------------------------------
-----------------------------------------------------------这里开始P话聊天
function r_talk27 ()
Talk( 1, " Sanjay: Hi, Baby! I am in charge of the trade here…and girls too." )
InitTrigger()
TriggerCondition( 1, HasBoatInBerth, 2 )
TriggerAction( 1, TradeBerthList, 2 )
TriggerFailure( 1, JumpPage, 2 )
Text( 1, "Cargo Trade", MultiTrigger, GetMultiTrigger(), 1 )
Text( 1, "Regarding High Lv Commerce Permit",JumpPage, 3)
Talk( 2, "Sanjay: Sorry! Your ship is not docked in Thundoria Harbor. Unable to trade." )
Talk( 3, "Hi! If you want to get rich, then you will need a \"Commerce Permit!\" With it you can have more products for commerce trade and also reduce your capital to maximize your profits! Currently, players can only obtain Commerce Permit from Shaitan Trading Post.")
Text( 3, "Regarding Tax Rate",JumpPage, 7)
Text( 3, "Low Lv Commerce Permit",JumpPage, 4)
Text( 3, "Mid Lv Commerce Permit",JumpPage, 5)
Text( 3, "High Lv Commerce Permit",JumpPage, 6)
Talk( 4, "Low Lv Commerce Permit is easy to obtain. When you reaches Lv 20, go to the trading post in Shaitan and complete a simple task to have one.")
Talk( 5, "When you reaches Lv 40 and reduces your tax rate to 20%, you can go to Shaitan Trading Post and obtain a Mid Lv Commerce Permit.")
Talk( 6, "When you have reached level 60 and possess a Commerce Permit with 10% tax, you can activate the quest for High Lv Commerce.")
Talk( 7, "Check your Commerce Permit to see the current Tax Rate imposed on your product when you sell it to any trader. Complete some quest at Shaitan Trading Post to reduce the Tax Rate.")
InitGoods( 2)
SaleGoodsData( 1 , 4597 , 480 , 436 , 97 )
SaleGoodsData( 2 , 4598 , 300 , 472 , 105 )
SaleGoodsData( 2 , 4599 , 240 , 508 , 113 )
SaleGoodsData( 3 , 4600 , 60 , 571 , 127 )
SaleGoodsData( 3 , 4601 , 40 , 643 , 143 )
BuyGoodsData(0, 4573 , -1 , 554 , 123 )
BuyGoodsData(0, 4574 , -1 , 711 , 158 )
BuyGoodsData(0, 4576 , -1 , 872 , 193 )
BuyGoodsData(0, 4581 , -1 , 548 , 121 )
BuyGoodsData(0, 4583 , -1 , 740 , 165 )
BuyGoodsData(0, 4587 , -1 , 900 , 600 )
BuyGoodsData(0, 4591 , -1 , 880 , 195 )
BuyGoodsData(0, 4593 , -1 , 1029 , 229 )
BuyGoodsData(0, 4595 , -1 , 976 , 651 )
BuyGoodsData(0, 4553 , -1 , 826 , 183 )
BuyGoodsData(0, 4555 , -1 , 793 , 177 )
BuyGoodsData(0, 4556 , -1 , 860 , 191 )
BuyGoodsData(0, 4557 , -1 , 960 , 213 )
BuyGoodsData(0, 4559 , -1 , 920 , 205 )
BuyGoodsData(0, 4560 , -1 , 1039 , 231 )
BuyGoodsData(0, 4563 , -1 , 909 , 202 )
BuyGoodsData(0, 4566 , -1 , 831 , 185 )
BuyGoodsData(0, 4569 , -1 , 1089 , 243 )
BuyGoodsData(0, 4572 , -1 , 924 , 205 )
BuyGoodsData(0, 4547 , -1 , 100 , 0 )
BuyGoodsData(0, 4549 , -1 , 450 , 0 )
BuyGoodsData(0, 4550 , -1 , 1000 , 0 )
BuyGoodsData(0, 4548 , -1 , 300 , 0 )
BuyGoodsData(0, 4551 , -1 , 20 , 0 )
BuyGoodsData(0, 3913 , -1 , 1248 , 832 )
BuyGoodsData(0, 3912 , -1 , 1395 , 930 )
BuyGoodsData(0, 3914 , -1 , 1614 , 1077 )
InitTrigger()
TriggerAction( 1, AddNpcTrigger, 51, TE_GAMETIME, TT_CYCLETIME, 30, 0 )
SetNpcTrigger( GetTrigger( 1 ) )
SetNpcActive()
AddNpcMission (1021)
AddNpcMission (1077)
AddNpcMission (1133)
AddNpcMission (1184)
end
----------------------------------------------------------
-- --
-- --
-- 沙岚城[船工·弗兰克] --
-- --
-- 90391,366735 --
----------------------------------------------------------
-----------------------------------------------------------这里开始P话聊天
function r_talk60 ()
Talk( 1, "Franklin: Hi! I learnt my ship building skill in Argent City. You can call me Franklin." )
InitTrigger()
TriggerCondition( 1, IsBoatFull )
TriggerAction( 1, SystemNotice, "Ships limit reached. Unable to build more ship" )
TriggerFailure( 1, JumpPage, 2 )
Text( 1, "Build Ship", MultiTrigger, GetMultiTrigger(), 1 )
InitTrigger()
TriggerCondition( 1, HasBoatInBerth, 3 )
TriggerAction( 1, BoatLevelBerthList, 3 )
TriggerFailure( 1, JumpPage, 3 )
Text( 1, "Upgrade ship", MultiTrigger, GetMultiTrigger(), 1 )
Talk( 2, "Franklin: Yo! Want to set sail? Then you will need a good ship! Look at my ships and see if there is any to your liking. To level up your ship, come back when it has gained enough experience from sailing or killing monsters out in the sea." )
InitTrigger()
TriggerCondition( 1, BoatBuildCheck, 1 )
TriggerAction( 1, CreateBoat, 1, 3 )
Text( 2, "Build Guppy", MultiTrigger, GetMultiTrigger(), 1 )
InitTrigger()
TriggerCondition( 1, BoatBuildCheck, 5 )
TriggerAction( 1, CreateBoat, 5, 3 )
Text( 2, "Build Windseeker", MultiTrigger, GetMultiTrigger(), 1 )
InitTrigger()
TriggerCondition( 1, BoatBuildCheck, 6 )
TriggerAction( 1, CreateBoat, 6, 3 )
Text( 2, "Build Swordfish", MultiTrigger, GetMultiTrigger(), 1 )
InitTrigger()
TriggerCondition( 1, BoatBuildCheck, 4 )
TriggerAction( 1, CreateBoat, 4, 3 )
Text( 2, "Build Turtle", MultiTrigger, GetMultiTrigger(), 1 )
InitTrigger()
TriggerCondition( 1, BoatBuildCheck, 14 )
TriggerAction( 1, CreateBoat, 14, 3 )
Text( 2, "Build Torrent", MultiTrigger, GetMultiTrigger(), 1 )
InitTrigger()
TriggerCondition( 1, BoatBuildCheck, 15 )
TriggerAction( 1, CreateBoat, 15, 3 )
Text( 2, "Build Goddess", MultiTrigger, GetMultiTrigger(), 1 )
Talk( 3, "Franklin: You need to have your ship docked at my harbor in order to level it. Ships get better as they level up. To level up your ship, come back when it has gained enough experience from sailing or killing monsters out in the sea." )
AddNpcMission (1116)
AddNpcMission (158)
AddNpcMission (159)
AddNpcMission (160)
end
-----<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<船厂工人·弗兰克
------------------------------------------------------------
-- 白银城-----海事所助理·罗拉娜
------------------------------------------------------------
function r_talk150()
Talk( 1, "Alena: Hi! I am the Maritime Assistant. Can I help you?" )
AddNpcMission (437)
AddNpcMission (439)
AddNpcMission (441)
end
------------------------------------------------------------
-- 白银城-----船工·斯巴克
------------------------------------------------------------
function r_talk151 ()
Talk( 1, "Sinbad: Yo! Want to get out to the sea? How can you do so without a good ship? I offer the best ship around here. Come have a look!" )
InitTrigger()
TriggerCondition( 1, IsBoatFull )
TriggerAction( 1, SystemNotice, "Ships limit reached. Unable to build more ship" )
TriggerFailure( 1, JumpPage, 2 )
Text( 1, "Build Ship", MultiTrigger, GetMultiTrigger(), 1 )
InitTrigger()
TriggerCondition( 1, HasBoatInBerth, 1 )
TriggerAction( 1, BoatLevelBerthList, 1 )
TriggerFailure( 1, JumpPage, 3 )
Text( 1, "Upgrade ship", MultiTrigger, GetMultiTrigger(), 1 )
Talk( 2, "Sinbad: What type of ships you wish to build? I have a few varieties. Please have a look." )
InitTrigger()
TriggerCondition( 1, BoatBuildCheck, 1 )
TriggerAction( 1, CreateBoat, 1, 1 )
Text( 2, "Build Guppy", MultiTrigger, GetMultiTrigger(), 1 )
InitTrigger()
TriggerCondition( 1, BoatBuildCheck, 2 )
TriggerAction( 1, CreateBoat, 2, 1 )
Text( 2, "Build Transporter", MultiTrigger, GetMultiTrigger(), 1 )
InitTrigger()
TriggerCondition( 1, BoatBuildCheck, 3 )
TriggerAction( 1, CreateBoat, 3, 1 )
Text( 2, "Build Flying Fish", MultiTrigger, GetMultiTrigger(), 1 )
InitTrigger()
TriggerCondition( 1, BoatBuildCheck, 6 )
TriggerAction( 1, CreateBoat, 6, 1 )
Text( 2, "Build Swordfish", MultiTrigger, GetMultiTrigger(), 1 )
Talk( 3, "Sinbad: I guess your ship is not docked here. You need to dock here to upgrade the level when it has gained enough experience from sailing or killing monsters out in the sea." )
end
------------------------------------------------------------
-- 白银城-----海港指挥·雪莉
------------------------------------------------------------
function r_talk152()
Talk( 1, " Shirley: Hi! I am the Harbor Operator for Argent. I am in charge of all ships that is docked in this harbor. Look for me if you want to set sail." )
InitTrigger()
TriggerCondition( 1, HasAllBoatInBerth, 1 )
--TriggerAction( 1, RemoveYS )
TriggerAction( 1, LuanchBerthList, 1, 2260,2829, 177 )
TriggerFailure( 1, JumpPage, 3 )
Text( 1, "Set sail", MultiTrigger, GetMultiTrigger(), 1 )
InitTrigger()
TriggerCondition( 1, HasLuanchOut )
TriggerAction( 1, RepairBoat )
TriggerCondition( 2, HasBoatInBerth, 1 )
TriggerAction( 2, RepairBerthList, 1 )
TriggerFailure( 2, JumpPage, 4 )
Text( 1, "Repair Ship", MultiTrigger, GetMultiTrigger(), 2 )
InitTrigger()
TriggerCondition( 1, HasLuanchOut )
TriggerAction( 1, SupplyBoat )
TriggerCondition( 2, HasBoatInBerth, 1 )
TriggerAction( 2, SupplyBerthList, 1 )
TriggerFailure( 2, JumpPage, 5 )
Text( 1, "Refuel", MultiTrigger, GetMultiTrigger(), 2 )
InitTrigger()
TriggerCondition( 1, HasDeadBoatInBerth, 1 )
TriggerAction( 1, SalvageBerthList, 1 )
TriggerFailure( 1, JumpPage, 6 )
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -