找回密码
 注册/Sign up
搜索
查看: 1714|回复: 0

支持免费换造型的服用,游戏内输入命令变造型的lua

[复制链接]

发表于 2021-11-10 21:25:26 | 显示全部楼层 |阅读模式
本帖最后由 ahsin 于 2021-11-10 21:27 编辑
  1. if msg == "/mylook" or msg == "、mylook" then--检查自己当前id
  2.                 NLG.SystemMessage(player,"您正在使用的造型编号为:"..(Char.GetData(player,%对象_形象%)).."");
  3.         end
  4.         if check_msg(msg,"/xlook") then--变身
  5.                 local metamoid = string.sub(msg,7)
  6.                 --NLG.SystemMessage(player,"test:"..metamoid.."");
  7.                 local metamoid = tonumber(metamoid)
  8.                
  9.                 if metamoid then
  10.                         if metamoid < 0 or metamoid > 999999 then
  11.                                 NLG.SystemMessage(player,"请输入正确的数字,范围0-999999。");
  12.                         else
  13.                                 Char.SetData(player,%对象_形象%,metamoid)
  14.                                 Char.SetData(player,%对象_原始图档%,metamoid)
  15.                                 NLG.SystemMessage(player,"更改造型为:"..metamoid..",下线后生效。");
  16.                                 NLG.UpChar(player)
  17.                         end
  18.                 else
  19.                         NLG.SystemMessage(player,"请输入正确的数字。");
  20.                 end
  21.         end
复制代码



/mylook   查询我现在的造型id
/xlook     例:/xlook100001,变造型
您需要登录后才可以回帖 登录 | 注册/Sign up

本版积分规则

手机版|cgmsv引擎论坛

GMT+8, 2026-6-5 09:09 , Processed in 0.029108 second(s), 3 queries , Gzip On, Redis On.

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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