📄 npcscript03.lua
字号:
TriggerAction( 1, RepairBoat )
TriggerFailure( 1, JumpPage, 4 )
Text( 1, "Repair Ship", MultiTrigger, GetMultiTrigger(), 1 )
InitTrigger()
TriggerCondition( 1, HasLuanchOut )
TriggerAction( 1, SupplyBoat )
TriggerFailure( 1, JumpPage, 5 )
Text( 1, "Refuel", MultiTrigger, GetMultiTrigger(), 1 )
--Text( 1, "Obtained Fairy Soul", JumpPage, 6 )
Talk( 4, "Sorry! Repair need 1000G" )
Talk( 5, "Sorry! Refuel needs a fee of 200G" )
InitTrigger()
TriggerCondition( 1, HasItem, 3116, 50 )
TriggerAction( 1, TakeItem, 3116, 50 )
TriggerAction( 1, GiveItem, 3337, 1, 4 )
TriggerFailure( 1, JumpPage, 7 )
Talk( 6, "Whitcombe: Hi! You wish to have a Fairy Soul? Then you must bring me 50 Elven Fruits." )
Text( 6, "I have enough Elven Fruits", MultiTrigger, GetMultiTrigger(), 1 )
Talk( 7, "Whitcombe: Hey! I said before. You must give me 50 Elven Fruits." )
AddNpcMission( 1740 )
AddNpcMission ( 1936 )
AddNpcMission ( 1951 )
AddNpcMission ( 381 )
AddNpcMission ( 382 )
----------------吉尼斯---海港指挥·瓦雷米--03
AddNpcMission (5531 )
AddNpcMission (5532 )
end
------------------------------------------------------------
-- 弗里敦补给站-----海港指挥·法第尔
------------------------------------------------------------
function r_talk184()
Talk( 1, "Fardell: Hi! I am in charge of the ship refuel here. How can I help you?" )
InitTrigger()
TriggerCondition( 1, HasLuanchOut )
TriggerAction( 1, RepairBoat )
TriggerFailure( 1, JumpPage, 4 )
Text( 1, "Repair Ship", MultiTrigger, GetMultiTrigger(), 1 )
InitTrigger()
TriggerCondition( 1, HasLuanchOut )
TriggerAction( 1, SupplyBoat )
TriggerFailure( 1, JumpPage, 5 )
Text( 1, "Refuel", MultiTrigger, GetMultiTrigger(), 1 )
Talk( 4, "Sorry! Repair need 1000G" )
Talk( 5, "Sorry! Refuel needs a fee of 200G" )
AddNpcMission( 1739 )
AddNpcMission ( 1935 )
AddNpcMission ( 1950 )
AddNpcMission ( 383 )
AddNpcMission ( 384 )
AddNpcMission ( 385 )
----------------吉尼斯---海港指挥·法第尔--03
AddNpcMission (5529 )
AddNpcMission (5530 )
end
------------------------------------------------------------
-- 海风岛-----交易员·布尔兹
------------------------------------------------------------
function r_talk185()
Talk( 1, "Burgess: Hi! I am in charge of the trade here. How can I help you?" )
InitTrigger()
TriggerCondition( 1, HasBoatInBerth, 5 )
TriggerAction( 1, TradeBerthList, 5 )
TriggerFailure( 1, JumpPage, 2 )
Text( 1, "Cargo Trade", MultiTrigger, GetMultiTrigger(), 1 )
Text( 1, "Regarding High Lv Commerce Permit",JumpPage, 3)
Talk( 2, "Burgess: Sorry! You ship is not docked in Zephyr 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(5)
SaleGoodsData( 0 , 4552 , 800 , 315 , 70 )
SaleGoodsData( 1 , 4553 , 700 , 405 , 90 )
SaleGoodsData( 1 , 4554 , 480 , 477 , 106 )
BuyGoodsData(0, 4574 , -1 , 697 , 155 )
BuyGoodsData(0, 4578 , -1 , 960 , 213 )
BuyGoodsData(0, 4580 , -1 , 972 , 648 )
BuyGoodsData(0, 4582 , -1 , 664 , 147 )
BuyGoodsData(0, 4584 , -1 , 818 , 181 )
BuyGoodsData(0, 4586 , -1 , 895 , 199 )
BuyGoodsData(0, 4588 , -1 , 969 , 646 )
BuyGoodsData(0, 4590 , -1 , 725 , 161 )
BuyGoodsData(0, 4592 , -1 , 1017 , 226 )
BuyGoodsData(0, 4594 , -1 , 1071 , 238 )
BuyGoodsData(0, 4598 , -1 , 888 , 197 )
BuyGoodsData(0, 4599 , -1 , 955 , 213 )
BuyGoodsData(0, 4601 , -1 , 991 , 661 )
BuyGoodsData(0, 4557 , -1 , 981 , 218 )
BuyGoodsData(0, 4560 , -1 , 1124 , 249 )
BuyGoodsData(0, 4563 , -1 , 976 , 217 )
BuyGoodsData(0, 4566 , -1 , 763 , 169 )
BuyGoodsData(0, 4569 , -1 , 981 , 218 )
BuyGoodsData(0, 4572 , -1 , 950 , 211 )
InitTrigger()
TriggerAction( 1, AddNpcTrigger, 51, TE_GAMETIME, TT_CYCLETIME, 30, 0 )
SetNpcTrigger( GetTrigger( 1 ) )
SetNpcActive()
AddNpcMission (760)
end
------------------------------------------------------------
-- 碎冰岛-----交易员·赛瑟尼
------------------------------------------------------------
function r_talk186()
Talk( 1, "Sacenis: Hi! I am in charge of the trade here. How can I help you?" )
InitTrigger()
TriggerCondition( 1, HasBoatInBerth, 6 )
TriggerAction( 1, TradeBerthList, 6 )
TriggerFailure( 1, JumpPage, 2 )
Text( 1, "Cargo Trade", MultiTrigger, GetMultiTrigger(), 1 )
Text( 1, "Regarding High Lv Commerce Permit",JumpPage, 3)
Talk( 2, "Sacenis: Sorry, you do not have any ships docked in Glacier 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(6)
SaleGoodsData( 1 , 4555 , 480 , 405 , 90 )
SaleGoodsData( 2 , 4556 , 300 , 468 , 104 )
SaleGoodsData( 2 , 4557 , 240 , 522 , 116 )
BuyGoodsData(0, 4573 , -1 , 554 , 123 )
BuyGoodsData(0, 4574 , -1 , 711 , 158 )
BuyGoodsData(0, 4575 , -1 , 780 , 173 )
BuyGoodsData(0, 4585 , -1 , 936 , 208 )
BuyGoodsData(0, 4586 , -1 , 970 , 215 )
BuyGoodsData(0, 4590 , -1 , 699 , 155 )
BuyGoodsData(0, 4592 , -1 , 963 , 214 )
BuyGoodsData(0, 4594 , -1 , 997 , 221 )
BuyGoodsData(0, 4596 , -1 , 1027 , 685 )
BuyGoodsData(0, 4597 , -1 , 855 , 190 )
BuyGoodsData(0, 4600 , -1 , 857 , 571 )
BuyGoodsData(0, 4554 , -1 , 991 , 221 )
BuyGoodsData(0, 4558 , -1 , 828 , 184 )
BuyGoodsData(0, 4559 , -1 , 910 , 203 )
BuyGoodsData(0, 4562 , -1 , 819 , 183 )
BuyGoodsData(0, 4563 , -1 , 879 , 195 )
BuyGoodsData(0, 4566 , -1 , 831 , 185 )
BuyGoodsData(0, 4569 , -1 , 1126 , 251 )
BuyGoodsData(0, 4572 , -1 , 924 , 205 )
InitTrigger()
TriggerAction( 1, AddNpcTrigger, 51, TE_GAMETIME, TT_CYCLETIME, 30, 0 )
SetNpcTrigger( GetTrigger( 1 ) )
SetNpcActive()
AddNpcMission (761)
end
------------------------------------------------------------
-- 雪贼岛-----交易员·肥鲸德拉德
------------------------------------------------------------
function r_talk187()
Talk( 1, "Dilady: Hi, I am the Harbor Operator. How can I help you?" )
InitTrigger()
TriggerCondition( 1, HasBoatInBerth, 7 )
TriggerAction( 1, TradeBerthList, 7 )
TriggerFailure( 1, JumpPage, 2 )
Text( 1, "Cargo Trade", MultiTrigger, GetMultiTrigger(), 1 )
Text( 1, "Regarding High Lv Commerce Permit",JumpPage, 3)
Talk( 2, "Dilady: Sorry, you do not have any ships docked in Outlaw 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(7)
SaleGoodsData( 2 , 4558 , 300 , 450 , 100 )
SaleGoodsData( 2 , 4559 , 240 , 495 , 110 )
SaleGoodsData( 3 , 4560 , 60 , 571 , 127 )
BuyGoodsData(0, 4576 , -1 , 898 , 199 )
BuyGoodsData(0, 4577 , -1 , 930 , 207 )
BuyGoodsData(0, 4585 , -1 , 936 , 208 )
BuyGoodsData(0, 4587 , -1 , 938 , 625 )
BuyGoodsData(0, 4589 , -1 , 548 , 121 )
BuyGoodsData(0, 4591 , -1 , 844 , 187 )
BuyGoodsData(0, 4593 , -1 , 972 , 216 )
BuyGoodsData(0, 4595 , -1 , 900 , 600 )
BuyGoodsData(0, 4597 , -1 , 881 , 195 )
BuyGoodsData(0, 4599 , -1 , 945 , 210 )
BuyGoodsData(0, 4600 , -1 , 866 , 577 )
BuyGoodsData(0, 4554 , -1 , 1020 , 227 )
BuyGoodsData(0, 4555 , -1 , 793 , 177 )
BuyGoodsData(0, 4556 , -1 , 860 , 191 )
BuyGoodsData(0, 4557 , -1 , 960 , 213 )
BuyGoodsData(0, 4561 , -1 , 808 , 179 )
BuyGoodsData(0, 4566 , -1 , 876 , 195 )
BuyGoodsData(0, 4569 , -1 , 1089 , 243 )
BuyGoodsData(0, 4572 , -1 , 924 , 205 )
InitTrigger()
TriggerAction( 1, AddNpcTrigger, 51, TE_GAMETIME, TT_CYCLETIME, 30, 0 )
SetNpcTrigger( GetTrigger( 1 ) )
SetNpcActive()
AddNpcMission (762)
end
------------------------------------------------------------
-- 冰雪岛-----海港指挥·波尔
------------------------------------------------------------
function r_talk188()
Talk( 1, "Paul: Hi! I am the Harbor Operator. How can I help you?" )
InitTrigger()
TriggerCondition( 1, HasAllBoatInBerth, 8 )
TriggerAction( 1, LuanchBerthList, 8, 2351, 767, 0 )
TriggerFailure( 1, JumpPage, 3 )
Text( 1, "Set sail", MultiTrigger, GetMultiTrigger(), 1 )
InitTrigger()
TriggerCondition( 1, HasLuanchOut )
TriggerAction( 1, RepairBoat )
TriggerCondition( 2, HasBoatInBerth, 8 )
TriggerAction( 2, RepairBerthList, 8 )
TriggerFailure( 2, JumpPage, 4 )
Text( 1, "Repair Ship", MultiTrigger, GetMultiTrigger(), 2 )
InitTrigger()
TriggerCondition( 1, HasLuanchOut )
TriggerAction( 1, SupplyBoat )
TriggerCondition( 2, HasBoatInBerth, 8 )
TriggerAction( 2, SupplyBerthList, 8 )
TriggerFailure( 2, JumpPage, 5 )
Text( 1, "Refuel", MultiTrigger, GetMultiTrigger(), 2 )
InitTrigger()
TriggerCondition( 1, HasDeadBoatInBerth, 8 )
TriggerAction( 1, SalvageBerthList, 8 )
TriggerFailure( 1, JumpPage, 6 )
Text( 1, "Salvage Ship", MultiTrigger, GetMultiTrigger(), 1 )
Talk( 3, "Sorry, you do not have a ship at the harbor or it was sunken. Please salvage it before setting sail again!" )
Talk( 4, "Sorry! I only repair ships docked in this harbor. Please pay 1000G." )
Talk( 5, "Sorry, you need to dock your ship in our harbor in order to refuel. Please pay 200G" )
Talk( 6, "Sorry! We only salvage ships docked in our harbor. You have to pay a fee of 1000G." )
end
------------------------------------------------------------
-- 鸣沙岛-----海港指挥·托玛
------------------------------------------------------------
function r_talk189()
Talk( 1, "Tomas: Hi, I am the harbor operator. How can I help you?" )
InitTrigger()
TriggerCondition( 1, HasAllBoatInBerth, 9 )
TriggerAction( 1, LuanchBerthList, 9, 1769, 3788, 0 )
TriggerFailure( 1, JumpPage, 3 )
Text( 1, "Set sail", MultiTrigger, GetMultiTrigger(), 1 )
InitTrigger()
TriggerCondition( 1, HasLuanchOut )
TriggerAction( 1, RepairBoat )
TriggerCondition( 2, HasBoatInBerth, 9 )
TriggerAction( 2, RepairBerthList, 9 )
TriggerFailure( 2, JumpPage, 4 )
Text( 1, "Repair Ship", MultiTrigger, GetMultiTrigger(), 2 )
InitTrigger()
TriggerCondition( 1, HasLuanchOut )
TriggerAction( 1, SupplyBoat )
TriggerCondition( 2, HasBoatInBerth, 9 )
TriggerAction( 2, SupplyBerthList, 9 )
TriggerFailure( 2, JumpPage, 5 )
Text( 1, "Refuel", MultiTrigger, GetMultiTrigger(), 2 )
InitTrigger()
TriggerCondition( 1, HasDeadBoatInBerth, 9 )
TriggerAction( 1, SalvageBerthList, 9 )
TriggerFailure( 1, JumpPage, 6 )
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -