找回密码
 register
搜索
查看: 98|回复: 0

[游戏攻略] 无穷Lua5 恶人谷NPC 转 新源端X64 lua4代码

[复制链接]
  • 打卡等级:本地老炮
  • 打卡总天数:523
  • 打卡月天数:12
  • 打卡总奖励:521
  • 最近打卡:2026-06-14 09:46:51
Waylee 发表于 2026-2-11 04:30 | 显示全部楼层 |阅读模式 | Google Chrome | Windows 10
本来想从群文件的老源端(32位)客户端里移植一下NPC,发现他一个场景才5个NPC,
然后看了下无穷端里NPC脚本比较多
Lua5写法改成Lua4写法,方便新源端X64武道三版本使用



脚本注册:

;恶人谷
018035=\obj\erengu\oerengu_shangui.lua
018036=\obj\erengu\oerengu_duanyanqing.lua
018037=\obj\erengu\oerengu_yeerniang.lua
018038=\obj\erengu\oerengu_yunzhonghe.lua
018039=\obj\erengu\oerengu_yuelaosan.lua
018040=\obj\erengu\oerengu_tanqing.lua
018041=\obj\erengu\oerengu_lubuping.lua
018042=\obj\erengu\oerengu_xingwanli.lua
018043=\obj\erengu\oerengu_yinpo.lua
018044=\obj\erengu\oerengu_shanliuer.lua
018045=\obj\erengu\oerengu_shanyao.lua
018046=\obj\erengu\oerengu_shanwang.lua
018047=\obj\erengu\oerengu_shanliang.lua
018048=\obj\erengu\oerengu_tushijiu.lua
018049=\obj\erengu\oerengu_qiaoniang.lua
018050=\obj\erengu\oerengu_huyulang.lua
018051=\obj\erengu\oerengu_qixiaohuan.lua
018052=\obj\erengu\oerengu_shanyue.lua
018053=\obj\erengu\oerengu_yinzu.lua
018054=\obj\erengu\oerengu_yingong.lua

以下文件放到:
/home/tlbb1/Public/Data/Script/obj/erengu

erengu_monster.ini NPC注册:

[info]
monstercount=25

[monster0]
guid=1986678
type=52600
name=山鬼
title=恶人谷谷主
pos_x=84
pos_z=27
dir=27
script_id=018035
respawn_time=1000
group_id=-1
team_id=-1
base_ai=3
ai_file=0
patrol_id=-1
shop0=-1
shop1=-1
shop2=-1
shop3=-1
ReputationID=-1
level=-1

[monster1]
guid=1986678
type=52601
name=段延庆
title=恶人谷拜师人
pos_x=155
pos_z=56
dir=27
script_id=018036
respawn_time=1000
group_id=-1
team_id=-1
base_ai=3
ai_file=0
patrol_id=-1
shop0=-1
shop1=-1
shop2=-1
shop3=-1
ReputationID=-1
level=-1

[monster2]
guid=1986678
type=52602
name=叶二娘
title=恶人谷武功传授人
pos_x=188
pos_z=120
dir=18
script_id=018037
respawn_time=1000
group_id=-1
team_id=-1
base_ai=3
ai_file=0
patrol_id=-1
shop0=-1
shop1=-1
shop2=-1
shop3=-1
ReputationID=-1
level=-1

[monster3]
guid=1986678
type=52603
name=云中鹤
title=恶人谷轻功传授人
pos_x=79
pos_z=162
dir=27
script_id=018038
respawn_time=1000
group_id=-1
team_id=-1
base_ai=3
ai_file=0
patrol_id=-1
shop0=-1
shop1=-1
shop2=-1
shop3=-1
ReputationID=-1
level=-1

[monster4]
guid=1986678
type=52604
name=岳老三
title=恶人谷任务发布人
pos_x=183
pos_z=181
dir=27
script_id=018039
respawn_time=1000
group_id=-1
team_id=-1
base_ai=3
ai_file=0
patrol_id=-1
shop0=-1
shop1=-1
shop2=-1
shop3=-1
ReputationID=-1
level=-1

[monster5]
guid=1986678
type=52605
name=谭青
title=恶人谷指路人
pos_x=87
pos_z=154
dir=27
script_id=018040
respawn_time=1000
group_id=-1
team_id=-1
base_ai=3
ai_file=0
patrol_id=-1
shop0=-1
shop1=-1
shop2=-1
shop3=-1
ReputationID=-1
level=-1

[monster6]
guid=1986678
type=52606
name=孙三霸
title=恶人谷传送人
pos_x=123
pos_z=150
dir=5
script_id=990010
respawn_time=1000
group_id=-1
team_id=-1
base_ai=3
ai_file=0
patrol_id=-1
shop0=-1
shop1=-1
shop2=-1
shop3=-1
ReputationID=-1
level=-1

[monster7]
guid=1986678
type=52607
name=鹿不平
title=护卫使
pos_x=195
pos_z=157
dir=5
script_id=018041
respawn_time=1000
group_id=-1
team_id=-1
base_ai=3
ai_file=0
patrol_id=-1
shop0=-1
shop1=-1
shop2=-1
shop3=-1
ReputationID=-1
level=-1

[monster8]
guid=1986678
type=52608
name=刑万里
title=坐骑管理员
pos_x=38
pos_z=57
dir=0
script_id=018042
respawn_time=1000
group_id=-1
team_id=-1
base_ai=3
ai_file=0
patrol_id=-1
shop0=-1
shop1=-1
shop2=-1
shop3=-1
ReputationID=-1
level=-1

[monster9]
guid=1986678
type=52609
name=印婆
title=
pos_x=43
pos_z=53
dir=0
script_id=018043
respawn_time=1000
group_id=-1
team_id=-1
base_ai=3
ai_file=0
patrol_id=-1
shop0=-1
shop1=-1
shop2=-1
shop3=-1
ReputationID=-1
level=-1

[monster10]
guid=1986678
type=52610
name=山流儿
title=门派生活技能
pos_x=111
pos_z=120
dir=23
script_id=018044
respawn_time=1000
group_id=-1
team_id=-1
base_ai=3
ai_file=0
patrol_id=-1
shop0=-1
shop1=-1
shop2=-1
shop3=-1
ReputationID=-1
level=-1

[monster11]
guid=1986678
type=52611
name=山曜
title=
pos_x=112
pos_z=123
dir=0
script_id=018045
respawn_time=1000
group_id=-1
team_id=-1
base_ai=3
ai_file=0
patrol_id=-1
shop0=-1
shop1=-1
shop2=-1
shop3=-1
ReputationID=-1
level=-1

[monster12]
guid=1986678
type=52618
name=山魍
title=门派举荐人
pos_x=119
pos_z=100
dir=6.8
script_id=018046
respawn_time=1000
group_id=-1
team_id=-1
base_ai=3
ai_file=0
patrol_id=-1
shop0=-1
shop1=-1
shop2=-1
shop3=-1
ReputationID=-1
level=-1

[monster13]
guid=1986678
type=52619
name=山魉
title=门派问鼎人
pos_x=123
pos_z=97
dir=7.1
script_id=018047
respawn_time=1000
group_id=-1
team_id=-1
base_ai=3
ai_file=0
patrol_id=-1
shop0=-1
shop1=-1
shop2=-1
shop3=-1
ReputationID=-1
level=-1

[monster14]
guid=1986678
type=52616
name=山人木
title=溯魂武道长老
pos_x=105
pos_z=31
dir=18
script_id=992002
respawn_time=1000
group_id=-1
team_id=-1
base_ai=3
ai_file=0
patrol_id=-1
shop0=-1
shop1=-1
shop2=-1
shop3=-1
ReputationID=-1
level=-1

[monster15]
guid=1986678
type=52617
name=山姥
title=判命武道长老
pos_x=201
pos_z=43
dir=12.5
script_id=992002
respawn_time=1000
group_id=-1
team_id=-1
base_ai=3
ai_file=0
patrol_id=-1
shop0=-1
shop1=-1
shop2=-1
shop3=-1
ReputationID=-1
level=-1

[monster16]
guid=1986678
type=52613
name=图十九
title=
pos_x=60
pos_z=169
dir=27
script_id=018048
respawn_time=1000
group_id=-1
team_id=-1
base_ai=3
ai_file=0
patrol_id=-1
shop0=-1
shop1=-1
shop2=-1
shop3=-1
ReputationID=-1
level=-1

[monster17]
guid=1986678
type=52612
name=巧娘
title=
pos_x=60
pos_z=165
dir=27
script_id=018049
respawn_time=1000
group_id=-1
team_id=-1
base_ai=3
ai_file=0
patrol_id=-1
shop0=-1
shop1=-1
shop2=-1
shop3=-1
ReputationID=-1
level=-1

[monster18]
guid=1986678
type=52613
name=狐玉郎
title=
pos_x=121
pos_z=204
dir=0
script_id=018050
respawn_time=1000
group_id=-1
team_id=-1
base_ai=3
ai_file=0
patrol_id=-1
shop0=-1
shop1=-1
shop2=-1
shop3=-1
ReputationID=-1
level=-1

[monster19]
guid=1986678
type=52623
name=齐小环
title=
pos_x=50
pos_z=141
dir=9
script_id=018051
respawn_time=1000
group_id=-1
team_id=-1
base_ai=3
ai_file=0
patrol_id=-1
shop0=-1
shop1=-1
shop2=-1
shop3=-1
ReputationID=-1
level=-1

[monster20]
guid=1986678
type=52620
name=山月
title=
pos_x=157
pos_z=156
dir=23
script_id=018052
respawn_time=1000
group_id=-1
team_id=-1
base_ai=3
ai_file=0
patrol_id=-1
shop0=-1
shop1=-1
shop2=-1
shop3=-1
ReputationID=-1
level=-1

[monster21]
guid=1986678
type=52621
name=印祖
title=
pos_x=133
pos_z=122
dir=32
script_id=018053
respawn_time=1000
group_id=-1
team_id=-1
base_ai=3
ai_file=0
patrol_id=-1
shop0=-1
shop1=-1
shop2=-1
shop3=-1
ReputationID=-1
level=-1

[monster22]
guid=1986678
type=52622
name=印公
title=
pos_x=144
pos_z=148
dir=27
script_id=018054
respawn_time=1000
group_id=-1
team_id=-1
base_ai=3
ai_file=0
patrol_id=-1
shop0=-1
shop1=-1
shop2=-1
shop3=-1
ReputationID=-1
level=-1

[monster23]
guid=1986678
type=53293
name=鳄鱼
title=
pos_x=173
pos_z=178
dir=27
script_id=990010
respawn_time=1000
group_id=-1
team_id=-1
base_ai=3
ai_file=0
patrol_id=-1
shop0=-1
shop1=-1
shop2=-1
shop3=-1
ReputationID=-1
level=-1

[monster24]
guid=1986678
type=53292
name=鳄鱼
title=
pos_x=170
pos_z=190
dir=18
script_id=990010
respawn_time=1000
group_id=-1
team_id=-1
base_ai=3
ai_file=0
patrol_id=-1
shop0=-1
shop1=-1
shop2=-1
shop3=-1
ReputationID=-1
level=-1

无穷的992002脚本就不用他了,
武道的
zhanglaoA.lua
zhanglaoB.lua
则参考其他门派的写一下即可

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?register

×
您需要登录后才可以回帖 登录 | register

本版积分规则

QQ|雪舞知识库 ( 浙ICP备15015590号-1 | 萌ICP备20232229号|浙公网安备33048102000118号 )|天天打卡

GMT+8, 2026-6-14 19:29 , Processed in 0.135660 second(s), 32 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表