⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 npcscript02.lua

📁 top web admin panel (tales of pirates)
💻 LUA
📖 第 1 页 / 共 3 页
字号:
------------------------------------------------------------
-- NPCScript02.lua Created by BT 2004.12.29.
--
-- L.38 -> Line 38
------------------------------------------------------------
-- L.20   [ 杀怪任务:白银武将的请托 ]
-- L.289  [ RandMapList ] L.245 [ 白银 ] L.362 [ 沙岚 ] L.422 [ 雷霆 ] L.482 [ 冰狼 ] L.542 [ 岛屿 ] L.612 [ 通用 ]
-- L.682  [ 小山车的妻子 ]
--
--
--
--
--
--
--
--
--
--
------------------------------------------------------------
-- 杀怪任务:白银武将的请托
------------------------------------------------------------

print( "loading NPCScript02.lua" )


------------------------------------------------------------
-- 通用传送脚本
------------------------------------------------------------

function GoToWhere()

	--取消传送返回选择传送地点的对话内容和页面编号
	local ReSelectTalk = "I need to reconsider…"
	local ReSelectPage = 1

	--取消传送和退出传送的对话和页面编号
	local CancelSelectTalk = "Forget it…I will stay here"
	local CancelSelectPage = 2

	--地图名称信息
	local CurMapName1 = "garner"
	local CurMapName2 = "magicsea"
	local CurMapName3 = "eastgoaf"
	local CurMapName4 = "lonetower"
	local CurMapName5 = "darkblue"

	--白银之城坐标
	local GoTo01X = 2231
	local GoTo01Y = 2788
	local GoTo01M = CurMapName1

	--沙岚之城坐标
	local GoTo02X = 890
	local GoTo02Y = 3575
	local GoTo02M = CurMapName2

	--雷霆堡坐标
	local GoTo03X = 735
	local GoTo03Y = 1590
	local GoTo03M = CurMapName1

	--冰狼堡坐标
	local GoTo04X = 1318
	local GoTo04Y = 510
	local GoTo04M = CurMapName5

	--卡尔加德坐标
	local GoTo05X = 633
	local GoTo05Y = 2100
	local GoTo05M = CurMapName1

	--赖安森林坐标
	local GoTo06X = 1007
	local GoTo06Y = 2966
	local GoTo06M = CurMapName1

	--岛屿3号坐标
	local GoTo07X = 1507
	local GoTo07Y = 2039
	local GoTo07M = CurMapName1

	--岛屿8号坐标
	local GoTo08X = 1711
	local GoTo08Y = 3448
	local GoTo08M = CurMapName1

	--岛屿2号坐标
	local GoTo09X = 2501
	local GoTo09Y = 2997
	local GoTo09M = CurMapName1

	--岛屿5号坐标
	local GoTo10X = 3197
	local GoTo10Y = 1254
	local GoTo10M = CurMapName1

	Talk( 1, "Jovial: Hi! I am the Teleporter! How may I help you?" )
	Text( 1, "Go to Shaitan City!", JumpPage, 5 )
	--Text( 1, "Go to Thundoria Castle!", JumpPage, 6 )
	Text( 1, "Go to Icicle City!", JumpPage, 7 )
	Text( 1, "Record Spawn point", JumpPage, 24 )
	--Text( 1, "Go to Forsanken City!", JumpPage, 8 )
	--Text( 1, "I want to roam the islands!", JumpPage, 3 )

	Talk( 2, "Remember to look for me if you need teleportation services", CloseTalk )

--	Talk( 3, "Want to teleports to which island?" )
--	Text( 3, "Island No. 1", JumpPage, 9 )
--	Text( 3, "Island No. 2", JumpPage, 10 )
--	Text( 3, "Island No. 3", JumpPage, 11 )
--	Text( 3, "Island No. 4", JumpPage, 12 )
--	Text( 3, "Island No. 5", JumpPage, 13 )
--	Text( 3, "Anyone please", JumpPage, 14 )

	
	InitTrigger()
	TriggerCondition( 1, LvCheck, "<", 11 )
	TriggerAction( 1, GoTo, GoTo01X, GoTo01Y, GoTo01M )
	TriggerCondition( 2, HasMoney, 500 )
	TriggerAction( 2, TakeMoney, 500 )
	TriggerAction( 2, GoTo, GoTo01X, GoTo01Y, GoTo01M )
	TriggerFailure( 2, JumpPage, 23 )
	Talk( 4, "Teleports to Argent City? No problem! Please pay 500G. Free for players Lv 10 and below!" )
	Text( 4, "Teleport",MultiTrigger, GetMultiTrigger(), 2 ) 
	Text( 4, CancelSelectTalk, JumpPage , CancelSelectPage )


	InitTrigger()
	TriggerCondition( 1, LvCheck, "<", 11 )
	TriggerAction( 1, GoTo, GoTo02X, GoTo02Y, GoTo02M )
	TriggerCondition( 2, HasMoney, 500 )
	TriggerAction( 2, TakeMoney, 500 )
	TriggerAction( 2,  GoTo, GoTo02X, GoTo02Y, GoTo02M )
	TriggerFailure( 2, JumpPage, 23 )
	Talk( 5, "I just love Shaitan City! Please pay 500G! Players Lv 10 and below free of charge!" )
	Text( 5, "Teleport",MultiTrigger, GetMultiTrigger(), 2)
	Text( 5, CancelSelectTalk, JumpPage , CancelSelectPage )


	InitTrigger()
	TriggerCondition( 1, LvCheck, "<", 11 )
	TriggerAction( 1, GoTo, GoTo03X, GoTo03Y, GoTo03M )
	TriggerCondition( 2, HasMoney, 500 )
	TriggerAction( 2, TakeMoney, 500 )
	TriggerAction( 2,  GoTo, GoTo03X, GoTo03Y, GoTo03M )
	TriggerFailure( 2, JumpPage, 23 )
	Talk( 6, "Teleports to Thundoria Castle? No problem! Please pay 500G! Players Lv 10 and below free!" )
	Text( 6, "Teleport",MultiTrigger, GetMultiTrigger(), 2 )
	Text( 6, CancelSelectTalk, JumpPage , CancelSelectPage )

	InitTrigger()
	TriggerCondition( 1, LvCheck, "<", 11 )
	TriggerAction( 1, GoTo, GoTo04X, GoTo04Y, GoTo04M )
	TriggerCondition( 2, HasMoney, 500 )
	TriggerAction( 2, TakeMoney, 500 )
	TriggerAction( 2, GoTo, GoTo04X, GoTo04Y, GoTo04M )
	TriggerFailure( 2, JumpPage, 23 )
	Talk( 7, "Teleport to Icicle City? No problem! Please pay 500G! Players Lv 10 and below free!" )
	Text( 7, "Teleport",MultiTrigger, GetMultiTrigger(), 2)
	Text( 7, CancelSelectTalk, JumpPage , CancelSelectPage )

	InitTrigger()
	TriggerCondition( 1, LvCheck, "<", 11 )
	TriggerAction( 1, GoTo, GoTo05X, GoTo05Y, GoTo05M )
	TriggerCondition( 2, HasMoney, 500 )
	TriggerAction( 2, TakeMoney, 500 )
	TriggerAction( 2, GoTo, GoTo05X, GoTo05Y, GoTo05M )
	TriggerFailure( 2, JumpPage, 23 )
	Talk( 8, "Teleports to Chaldea Haven? No problem! Please pay 500G! Players Lv 10 and below free!" )
	Text( 8, "Teleport",MultiTrigger, GetMultiTrigger(), 2)
	Text( 8, CancelSelectTalk, JumpPage , CancelSelectPage )

	InitTrigger()
	TriggerCondition( 1, LvCheck, "<", 11 )
	TriggerAction( 1, GoTo, GoTo06X, GoTo06Y, GoTo06M )
	TriggerCondition( 2, HasMoney, 500 )
	TriggerAction( 2, TakeMoney, 500 )
	TriggerAction( 2, GoTo, GoTo06X, GoTo06Y, GoTo06M )
	TriggerFailure( 2, JumpPage, 23 )
	Talk( 9, "Teleport to Andes Forest Haven? No problem! Please pay 500G! Players Lv 10 and below free!" )
	Text( 9, "Teleport",MultiTrigger, GetMultiTrigger(), 2)
	Text( 9, CancelSelectTalk, JumpPage , CancelSelectPage )

--	Talk( 10, "I heard that those islands are beautiful, enjoy!" )
--	Text( 10, "Teleporting…Free of charge temporary", GoTo, GoTo07X, GoTo07Y, GoTo07M )
--	Text( 10, CancelSelectTalk, JumpPage , CancelSelectPage )
--
--	Talk( 11, "I heard that those islands are beautiful, enjoy!" )
--	Text( 11, "Teleporting…Free of charge temporary", GoTo, GoTo08X, GoTo08Y, GoTo08M )
--	Text( 11, CancelSelectTalk, JumpPage , CancelSelectPage )
--
--	Talk( 12, "I heard that those islands are beautiful, enjoy!" )
--	Text( 12, "Teleporting…Free of charge temporary", GoTo, GoTo09X, GoTo09Y, GoTo09M )
--	Text( 12, CancelSelectTalk, JumpPage , CancelSelectPage )
----
--	Talk( 13, "I heard that those islands are beautiful, enjoy!" )
--	Text( 13, "Teleporting…Free of charge temporary", GoTo, GoTo10X, GoTo10Y, GoTo10M )
--	Text( 13, CancelSelectTalk, JumpPage , CancelSelectPage )
--
--	InitFuncList()
--
--	AddFuncList( GoTo, GoTo06X, GoTo06Y, GoTo06M )
--	AddFuncList( GoTo, GoTo07X, GoTo07Y, GoTo07M )
--	AddFuncList( GoTo, GoTo08X, GoTo08Y, GoTo08M )
--	AddFuncList( GoTo, GoTo09X, GoTo09Y, GoTo09M )
--	AddFuncList( GoTo, GoTo10X, GoTo10Y, GoTo10M )
--
--	Talk( 14, "Teleports to any island? I will send you to anyplace then." )
--	Text( 14, "Teleporting…Free of charge temporary", RandFunction, GetFuncList(), GetNumFunc() )
--	Text( 14, CancelSelectTalk, JumpPage , CancelSelectPage )
--

	Talk( 18, "May: Hi! I am the Teleporter! How may I help you?" )
	Text( 18, "Go to Argent City!", JumpPage, 4 )
	--Text( 18, "Go to Thundoria Castle!", JumpPage, 6 )
	Text( 18, "Go to Icicle City!", JumpPage, 7 )
	Text( 18, "Record Spawn point", JumpPage, 25 )
	--Text( 18, "Go to Forsanken City!", JumpPage, 8 )
	--Text( 18, "I want to roam the islands!", JumpPage, 3 )

	Talk( 19, "Sarah: Hi! I am Thundoria Teleporter. Where do you wish to go?" )
	Text( 19, "Go to Argent City!", JumpPage, 4 )
	Text( 19, "Go to Shaitan City!", JumpPage, 5 )
	Text( 19, "Go to Icicle City!", JumpPage, 7 )
	Text( 19, "Record Spawn point", JumpPage, 26 )

	Talk( 20, "Helen: Hi! I am Icicle Teleporter. Where are you headed?" )
	Text( 20, "Go to Argent City!", JumpPage, 4 )
	Text( 20, "Go to Shaitan City!", JumpPage, 5 )
	Text( 20, "Record Spawn point", JumpPage, 27 )


	--Talk( 21, "Mabel: Hi, I am the teleporter. Do you need any help?" )
	--Text( 21, "Go to Argent City!", JumpPage, 4 )
	--Text( 21, "Go to Shaitan City!", JumpPage, 5 )
	--Text( 21, "Go to Icicle City!", JumpPage, 7 )
	--Text( 21, "Record Spawn point", JumpPage, 31 )

	--Talk( 22, "Wendy: Hi! I am the teleporter of Andes Forest Haven. Where do you wish to go?" )
	--Text( 22, "Go to Argent City!", JumpPage, 4 )
	--Text( 22, "Go to Shaitan City!", JumpPage, 5 )
	--Text( 22, "Go to Icicle City!", JumpPage, 7 )
	--Text( 22, "Record Spawn point", JumpPage, 32 )

	Talk( 23, "Sorry! You do not have enough gold to teleport." )

	Talk( 24, "Jovial: Record in Argent City? Is that correct?" )
	Text( 24, "Yes. Please record.", SetSpawnPos, "Argent City" )
	Text( 24, "No, thank you",CloseTalk )

	Talk( 25, "May: Record in Shaitan? Is that right?" )
	Text( 25, "Yes. Please record.", SetSpawnPos, "Shaitan City" )
	Text( 25, "No, thank you",CloseTalk )

	Talk( 26, "Sarah: Record in Thundoria? Is that correct?" )
	Text( 26, "Yes. Please record.", SetSpawnPos, "Thundoria Castle" )
	Text( 26, "No, thank you",CloseTalk )

	Talk( 27, "Helen: Record spawn point in Icicle Castle?" )
	Text( 27, "Yes. Please record.", SetSpawnPos, "Icicle Castle" )
	Text( 27, "No, thank you",CloseTalk )

	Talk( 28, "Arena Administrator: Hi, I am the PK island Arena Administrator. Where do you wish to go?" )
	Text( 28, "Return to city!", JumpPage, 29 )
	Text( 28, "No, thank you",CloseTalk )
	
	InitTrigger()
	TriggerCondition( 1, HasMoney, 10000 )
	TriggerAction( 1, TakeMoney, 10000 )
	--TriggerAction( 1, GoTo, GoTo01X, GoTo01Y, GoTo01M )
	TriggerAction( 1, SetPkState, 0 )
	TriggerAction( 1, MoveCity, "" )
	TriggerFailure( 1, JumpPage, 30 )
	Talk( 29, "You wish to return to town? There is a 10000G penalty for cowards who escaped. Do you still wish to return?" )
	Text( 29, "Yes. I will pay 10000G. Let me go",MultiTrigger, GetMultiTrigger(), 1 ) 
	Text( 29, "No, thank you" )

	Talk( 30, "Want to escape but no gold? Sorry, if you do not pay 10000G, you will have to fight till the end." )

	Talk( 31, "Mabel: Record at Chaldea Haven? Is that correct?" )
	Text( 31, "Yes. Please record.", SetSpawnPos, "Chaldea Haven" )
	Text( 31, "No, thank you",CloseTalk )

	Talk( 32, "Wendy: Want to record at Andes Forest Haven? Is that correct?" )
	Text( 32, "Yes. Please record.", SetSpawnPos, "Andes Forest Haven" )
	Text( 32, "No, thank you",CloseTalk )



	InitTrigger()

	TriggerCondition( 1, IsMapNpc, "garner", 0 )
	TriggerAction( 1, JumpPage, 1 )

	TriggerCondition( 2, IsMapNpc, "magicsea", 0 )
	TriggerAction( 2, JumpPage, 18 )

	TriggerCondition( 3, IsMapNpc, "garner", 43 )
	TriggerAction( 3, JumpPage, 19 )

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -