本帖最后由 ahsin 于 2021-11-10 21:27 编辑
- if msg == "/mylook" or msg == "、mylook" then--检查自己当前id
- NLG.SystemMessage(player,"您正在使用的造型编号为:"..(Char.GetData(player,%对象_形象%)).."");
- end
-
- if check_msg(msg,"/xlook") then--变身
- local metamoid = string.sub(msg,7)
- --NLG.SystemMessage(player,"test:"..metamoid.."");
- local metamoid = tonumber(metamoid)
-
- if metamoid then
- if metamoid < 0 or metamoid > 999999 then
- NLG.SystemMessage(player,"请输入正确的数字,范围0-999999。");
- else
- Char.SetData(player,%对象_形象%,metamoid)
- Char.SetData(player,%对象_原始图档%,metamoid)
- NLG.SystemMessage(player,"更改造型为:"..metamoid..",下线后生效。");
- NLG.UpChar(player)
- end
- else
- NLG.SystemMessage(player,"请输入正确的数字。");
- end
- end
复制代码
/mylook 查询我现在的造型id
/xlook 例:/xlook100001,变造型
|