📄 npcscript02.lua
字号:
Talk( 26, "Sorry! You do not have enough gold to teleport." )
Talk( 27, "Remember to look for me if you need teleportation services", CloseTalk )
Talk( 28, "Error, unable to record, Call Robin", CloseTalk )
InitTrigger()
TriggerCondition( 1, IsMapNpc, "garner", 96 )
TriggerAction( 1, JumpPage, 1 )
TriggerCondition( 2, IsMapNpc, "garner", 94 )
TriggerAction( 2, JumpPage, 2 )
TriggerCondition( 3, IsMapNpc, "garner", 95 )
TriggerAction( 3, JumpPage, 4 )
TriggerCondition( 4, IsMapNpc, "garner", 97 )
TriggerAction( 4, JumpPage, 5 )
TriggerCondition( 5, IsMapNpc, "garner", 55 )
TriggerAction( 5, JumpPage, 6 )
TriggerCondition( 6, IsMapNpc, "garner", 56 )
TriggerAction( 6, JumpPage, 3 )
TriggerCondition( 7, IsMapNpc, "magicsea", 50 )
TriggerAction( 7, JumpPage, 7 )
TriggerCondition( 8, IsMapNpc, "magicsea", 46 )
TriggerAction( 8, JumpPage, 8 )
TriggerCondition( 9, IsMapNpc, "darkblue", 56 )
TriggerAction( 9, JumpPage, 9 )
TriggerCondition( 10, IsMapNpc, "darkblue", 42 )
TriggerAction( 10, JumpPage, 10 )
TriggerCondition( 11, IsMapNpc, "darkblue", 46 )
TriggerAction( 11, JumpPage, 11 )
TriggerCondition( 12, IsMapNpc, "darkblue", 51 )
TriggerAction( 12, JumpPage, 12 )
Start( GetMultiTrigger(), 12 )
end
------------------------------------------------------------
-- 岛屿传送脚本
------------------------------------------------------------
function island()
--取消传送返回选择传送地点的对话内容和页面编号
--local ReSelectTalk = "I need to reconsider…"
--local ReSelectPage = 1
--取消传送和退出传送的对话和页面编号
local CancelSelectTalk = "Forget it…I will stay here"
local CancelSelectPage = 27
--地图名称信息
local CurMapName1 = "garner"
local CurMapName2 = "magicsea"
local CurMapName3 = "eastgoaf"
local CurMapName4 = "lonetower"
local CurMapName5 = "darkblue"
--海风岛
local GoTo01X = 3260
local GoTo01Y = 3280
local GoTo01M = CurMapName1
--碎冰岛
local GoTo02X = 2273
local GoTo02Y = 1122
local GoTo02M = CurMapName1
--雪贼岛
local GoTo03X = 3590
local GoTo03Y = 755
local GoTo03M = CurMapName1
--冰雪岛
local GoTo04X = 2376
local GoTo04Y = 725
local GoTo04M = CurMapName2
--鸣沙岛
local GoTo05X = 1730
local GoTo05Y = 3775
local GoTo05M = CurMapName2
--真爱岛
local GoTo06X = 2529
local GoTo06Y = 2406
local GoTo06M = CurMapName2
--好运岛
local GoTo07X = 1631
local GoTo07Y = 1974
local GoTo07M = CurMapName5
--白银城
local GoTo08X = 2231
local GoTo08Y = 2788
local GoTo08M = CurMapName1
Talk( 1, "Silvius: Hi! I am Island Teleporter Silvius. Anything I can help you with?" )
Text( 1, "Go to Zephyr Isle!", JumpPage, 14 )
Text( 1, "Go to Glacier Isle!", JumpPage, 15 )
Text( 1, "Go to Outlaw Isle!", JumpPage, 16 )
Text( 1, "Go to Isle of Chill!", JumpPage, 17 )
Text( 1, "Go to Canary Isle!", JumpPage, 18 )
Text( 1, "Go to Cupid Isle!", JumpPage, 19 )
Text( 1, "Go to Isle of Fortune!", JumpPage, 20 )
Text( 1, "Record Spawn point", JumpPage, 25 ) --白银城
Talk( 2, "Andrea: Hi! I am Island Teleporter Andrea. How can I help you?" )
Text( 2, "Go to Argent City!", JumpPage, 21 )
Text( 2, "Go to Glacier Isle!", JumpPage, 15 )
Text( 2, "Go to Outlaw Isle!", JumpPage, 16 )
Text( 2, "Go to Isle of Chill!", JumpPage, 17 )
Text( 2, "Go to Canary Isle!", JumpPage, 18 )
Text( 2, "Go to Cupid Isle!", JumpPage, 19 )
Text( 2, "Go to Isle of Fortune!", JumpPage, 20 )
Text( 2, "Record Spawn point", JumpPage, 25 ) --海风岛
Talk( 3, "Arsene: Hi! I am the Island Teleporter. How can I help you?" )
Text( 3, "Go to Argent City!", JumpPage, 21 )
Text( 3, "Go to Zephyr Isle!", JumpPage, 14 )
Text( 3, "Go to Outlaw Isle!", JumpPage, 16 )
Text( 3, "Go to Isle of Chill!", JumpPage, 17 )
Text( 3, "Go to Canary Isle!", JumpPage, 18 )
Text( 3, "Go to Cupid Isle!", JumpPage, 19 )
Text( 3, "Go to Isle of Fortune!", JumpPage, 20 )
Text( 3, "Record Spawn point", JumpPage, 25 ) --碎冰岛
Talk( 4, "Shayala: Hi! I am Island Teleporter Shayala. How can I help you?" )
Text( 4, "Go to Argent City!", JumpPage, 21 )
Text( 4, "Go to Zephyr Isle!", JumpPage, 14 )
Text( 4, "Go to Glacier Isle!", JumpPage, 15 )
Text( 4, "Go to Isle of Chill!", JumpPage, 17 )
Text( 4, "Go to Canary Isle!", JumpPage, 18 )
Text( 4, "Go to Cupid Isle!", JumpPage, 19 )
Text( 4, "Go to Isle of Fortune!", JumpPage, 20 )
Text( 4, "Record Spawn point", JumpPage, 25 ) ---雪贼岛
Talk( 5, "Julie: Hi, I am the island teleporter! How can I help you?" )
Text( 5, "Go to Argent City!", JumpPage, 21 )
Text( 5, "Go to Zephyr Isle!", JumpPage, 14 )
Text( 5, "Go to Glacier Isle!", JumpPage, 15 )
Text( 5, "Go to Outlaw Isle!", JumpPage, 16 )
Text( 5, "Go to Canary Isle!", JumpPage, 18 )
Text( 5, "Go to Cupid Isle!", JumpPage, 19 )
Text( 5, "Go to Isle of Fortune!", JumpPage, 20 )
Text( 5, "Record Spawn point", JumpPage, 25 ) ---冰雪岛
Talk( 6, "Winnie: Hi! I am the Island Teleporter. How can I help you?" )
Text( 6, "Go to Argent City!", JumpPage, 21 )
Text( 6, "Go to Zephyr Isle!", JumpPage, 14 )
Text( 6, "Go to Glacier Isle!", JumpPage, 15 )
Text( 6, "Go to Outlaw Isle!", JumpPage, 16 )
Text( 6, "Go to Isle of Chill!", JumpPage, 17 )
Text( 6, "Go to Cupid Isle!", JumpPage, 19 )
Text( 6, "Go to Isle of Fortune!", JumpPage, 20 )
Text( 6, "Record Spawn point", JumpPage, 25 ) ---鸣沙岛
Talk( 7, "Wanda: Hi! I am Island Teleporter Wanda. How can I help you?" )
Text( 7, "Go to Argent City!", JumpPage, 21 )
Text( 7, "Go to Zephyr Isle!", JumpPage, 14 )
Text( 7, "Go to Glacier Isle!", JumpPage, 15 )
Text( 7, "Go to Outlaw Isle!", JumpPage, 16 )
Text( 7, "Go to Isle of Chill!", JumpPage, 17 )
Text( 7, "Go to Canary Isle!", JumpPage, 18 )
Text( 7, "Go to Isle of Fortune!", JumpPage, 20 )
Text( 7, "Record Spawn point", JumpPage, 25 ) ---真爱岛
Talk( 8, "Juliet: Hi, I am the island teleporter! How can I help you?" )
Text( 8, "Go to Argent City!", JumpPage, 21 )
Text( 8, "Go to Zephyr Isle!", JumpPage, 14 )
Text( 8, "Go to Glacier Isle!", JumpPage, 15 )
Text( 8, "Go to Outlaw Isle!", JumpPage, 16 )
Text( 8, "Go to Isle of Chill!", JumpPage, 17 )
Text( 8, "Go to Canary Isle!", JumpPage, 18 )
Text( 8, "Go to Cupid Isle!", JumpPage, 19 )
Text( 8, "Record Spawn point", JumpPage, 25 ) ---好运岛
InitTrigger()
TriggerCondition( 1, HasMoney, 2000 )
TriggerAction( 1, TakeMoney, 2000 )
TriggerAction( 1, GoTo, GoTo01X, GoTo01Y, GoTo01M )
TriggerFailure( 1, JumpPage, 26 )
Talk( 14, "Teleport to Zephyr Isle? No problem! Please pay 2000G!" )
Text( 14, "Teleport",MultiTrigger, GetMultiTrigger(), 1 )
Text( 14, CancelSelectTalk, JumpPage , CancelSelectPage )
InitTrigger()
TriggerCondition( 1, HasMoney, 2000 )
TriggerAction( 1, TakeMoney, 2000 )
TriggerAction( 1, GoTo, GoTo02X, GoTo02Y, GoTo02M )
TriggerFailure( 1, JumpPage, 26 )
Talk( 15, "Teleport to Glacier Isle? No problem! Please pay 2000G!" )
Text( 15, "Teleport",MultiTrigger, GetMultiTrigger(), 1 )
Text( 15, CancelSelectTalk, JumpPage , CancelSelectPage )
InitTrigger()
TriggerCondition( 1, HasMoney, 2000 )
TriggerAction( 1, TakeMoney, 2000 )
TriggerAction( 1, GoTo, GoTo03X, GoTo03Y, GoTo03M )
TriggerFailure( 1, JumpPage, 26 )
Talk( 16, "Teleport to Outlaw Isle? No problem! Please pay 2000G!" )
Text( 16, "Teleport",MultiTrigger, GetMultiTrigger(), 1 )
Text( 16, CancelSelectTalk, JumpPage , CancelSelectPage )
InitTrigger()
TriggerCondition( 1, HasMoney, 2000 )
TriggerAction( 1, TakeMoney, 2000 )
TriggerAction( 1, GoTo, GoTo04X, GoTo04Y, GoTo04M )
TriggerFailure( 1, JumpPage, 26 )
Talk( 17, "Teleports to Isle of Chill? No problem! Please pay 2000G!" )
Text( 17, "Teleport",MultiTrigger, GetMultiTrigger(), 1 )
Text( 17, CancelSelectTalk, JumpPage , CancelSelectPage )
InitTrigger()
TriggerCondition( 1, HasMoney, 2000 )
TriggerAction( 1, TakeMoney, 2000 )
TriggerAction( 1, GoTo, GoTo05X, GoTo05Y, GoTo05M )
TriggerFailure( 1, JumpPage, 26 )
Talk( 18, "Teleport to Canary Isle? No problem! Please pay 2000G!" )
Text( 18, "Teleport",MultiTrigger, GetMultiTrigger(), 1 )
Text( 18, CancelSelectTalk, JumpPage , CancelSelectPage )
InitTrigger()
TriggerCondition( 1, HasMoney, 2000 )
TriggerAction( 1, TakeMoney, 2000 )
TriggerAction( 1, GoTo, GoTo06X, GoTo06Y, GoTo06M )
TriggerFailure( 1, JumpPage, 26 )
Talk( 19, "Going to Cupid Isle? No problem! Please pay 2000G!" )
Text( 19, "Teleport",MultiTrigger, GetMultiTrigger(), 1 )
Text( 19, CancelSelectTalk, JumpPage , CancelSelectPage )
InitTrigger()
TriggerCondition( 1, HasMoney, 2000 )
TriggerAction( 1, TakeMoney, 2000 )
TriggerAction( 1, GoTo, GoTo07X, GoTo07Y, GoTo07M )
TriggerFailure( 1, JumpPage, 26 )
Talk( 20, "Teleport to Isle of Fortune? No problem! Please pay 2000G!" )
Text( 20, "Teleport",MultiTrigger, GetMultiTrigger(), 1 )
Text( 20, CancelSelectTalk, JumpPage , CancelSelectPage )
InitTrigger()
TriggerCondition( 1, HasMoney, 2000 )
TriggerAction( 1, TakeMoney, 2000 )
TriggerAction( 1, GoTo, GoTo08X, GoTo08Y, GoTo08M )
TriggerFailure( 1, JumpPage, 26 )
Talk( 21, "Teleport to Argent City? No problem! Please pay 2000G!" )
Text( 21, "Teleport",MultiTrigger, GetMultiTrigger(), 1 )
Text( 21, CancelSelectTalk, JumpPage , CancelSelectPage )
InitTrigger()
TriggerCondition( 1, IsMapNpc, "garner", 123 )
TriggerAction( 1, SetSpawnPos, "Argent City")
TriggerCondition( 2, IsMapNpc, "garner", 124 )
TriggerAction( 2, SetSpawnPos, "Zephyr Isle")
TriggerCondition( 3, IsMapNpc, "garner", 125 )
TriggerAction( 3, SetSpawnPos, "Glacier Isle")
TriggerCondition( 4, IsMapNpc, "garner", 126 )
TriggerAction( 4, SetSpawnPos, "Outlaw Isle")
TriggerCondition( 5, IsMapNpc, "magicsea", 69 )
TriggerAction( 5, SetSpawnPos, "Isle of Chill")
TriggerCondition( 6, IsMapNpc, "magicsea", 70)
TriggerAction( 6, SetSpawnPos, "Canary Isle")
TriggerCondition( 7, IsMapNpc, "magicsea", 71 )
TriggerAction( 7, SetSpawnPos, "Cupid Isle")
TriggerCondition( 8, IsMapNpc, "darkblue", 65 )
TriggerAction( 8, SetSpawnPos, "Isle of Fortune")
TriggerFailure( 8, JumpPage, 28 )
Talk( 25, "Do you wish to record here?" )
Text( 25, "Yes. Please record.", MultiTrigger, GetMultiTrigger(), 8 )
Text( 25, "No, thank you",CloseTalk )
Talk( 26, "Sorry! You do not have enough gold to teleport." )
Talk( 27, "Remember to look for me if you need teleportation services", CloseTalk )
Talk( 28, "Error, unable to record, Call Robin", CloseTalk )
InitTrigger()
TriggerCondition( 1, IsMapNpc, "garner", 123 )
TriggerAction( 1, JumpPage, 1 )
TriggerCondition( 2, IsMapNpc, "garner", 124 )
TriggerAction( 2, JumpPage, 2 )
TriggerCondition( 3, IsMapNpc, "garner", 125 )
TriggerAction( 3, JumpPage, 3 )
TriggerCondition( 4, IsMapNpc, "garner", 126 )
TriggerAction( 4, JumpPage, 4 )
TriggerCondition( 5, IsMapNpc, "magicsea", 69 )
TriggerAction( 5, JumpPage, 5)
TriggerCondition( 6, IsMapNpc, "magicsea", 70)
TriggerAction( 6, JumpPage, 6 )
TriggerCondition( 7, IsMapNpc, "magicsea", 71 )
TriggerAction( 7, JumpPage, 7)
TriggerCondition( 8, IsMapNpc, "darkblue", 65 )
TriggerAction( 8, JumpPage, 8 )
Start( GetMultiTrigger(), 8 )
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -