# Player Management

Derive from Actor

Before using player API, please create player management object. The methods as follows:(此处已废弃)

local Player = class.Player.new()

The specific function name and description are as follows:

Serial number Function name Description
1 getAttr(...) Obtain Player attribute
2 setAttr(...) Player attribute setting
3 getHostUin(...) Obtain uin of host
4 isMainPlayer(...) Whether it is local player
5 getMainPlayerUin(...) Get the local player's uin
6 getGameResults(...) Get result of the game
7 setGameResults(...) Set result of the game
8 getGameScore(...) Get score of the game
9 setGameScore(...) Set score of the game
10 getGameRanking(...) Get the rank of player
11 setGameRanking(...) Set the rank of player
12 gainItems(...) Add items for players
13 teleportHome(...) Transfer to spawn point
14 getCurToolID(...) Get the item id currently held by the player
15 getNickname(...) Get the player's name
16 removeBackpackItem(...) Remove items in backpack
17 getDieTimes(...) Get the number of deaths
18 getLeftLifeNum(...) Get the number of remaining lives left
19 setTeam(...) Set player team
20 getTeam(...) Obtain player team
21 getFoodLevel(...) Get the current satiety
22 setFoodLevel(...) Set satiety of player
23 getCurShotcut(...) Get the current shortcut bar
24 onCurToolUsed(...) Set the consumption of item held by player
25 setSkillCD(...) Set CD
26 reviveToPos(...) Respawn player at designated point
27 setRevivePoint(...) Change the respawn point
28 mountActor(...) Player rides the mount 1.1+
29 playAct(...) Player play the cartoon
30 notifyGameInfo2Self(...) Display texts in popup window
31 useItem(...) Make player use current item
32 rotateCamera(...) Rotate player's lens
33 changeViewMode(...) Change angle mode of player
34 setActionAttrState(...) Set attribute status of player behavior
35 checkActionAttrState(...) Obtain status of player special attribute
36 isEquipByResID(...) 设置玩家是否装备了某件装备 1.7+
37 setPosition(...) Set the location of player
38 getAimPos(...) Get the crosshair location of player
39 setItemAttAction(...) Set the setting attribute of player item 1.1+
40 playMusic(...) Play background music to players 1.3+
41 stopMusic(...) Stop background music to players 1.3+
42 setGameWin(...) Make player win 1.5+
43 openDevStore(...) Open Dev. Store 1.5+
44 getPropsType(...) get the type of the props that player holding on hand 1.7+
45 playAdvertising(...) Play Advertising(Callback can be configured) 1.5+
46 setCheckBoxScale(...) 设置检测掉落物半径 1.7+
47 openBoxByPos(...) Open the box that can be operated 1.7+
48 forceOpenBoxUI(...) Force to open the block that can be operated, like toolbox 1.7+
49 openDevGoodsBuyDialog(...) customDesc : 自定义商品描述 1.8+

# getAttr

  • Parameters and types:
  • Return value and types:
  • The main role of this method: Obtain Player attribute
  • The specific use cases are as follows:
--获取房主的生命值
--第一个参数0为游戏玩家id或玩家迷你号,0是房主
--第二个参数2是属性:当前生命值,具体可以在“游戏数据类型”的“玩家属性枚举”中查看
local result,value=Player:getAttr(0,2)
--在聊天框显示
Chat:sendSystemMsg("房主当前生命值为:"..value)

# setAttr

  • Parameters and types:
  • Return value and types:
  • The main role of this method: Player attribute setting
  • The specific use cases are as follows:
--设置房主的生命上限
--第一个参数0为游戏玩家id或玩家迷你号,0是房主
--第二个参数1是属性:生命上限,具体可以在“游戏数据类型”的“玩家属性枚举”中查看
--第三个参数500是需要设置属性的值
Player:setAttr(0,1,500)
--在聊天框显示
Chat:sendSystemMsg("房主生命上限被设置为500")

# getHostUin

  • Parameters and types:nil
  • Return value and types:
  • The main role of this method: Obtain uin of host
  • The specific use cases are as follows:
--获取房主迷你号
local result,uin=Player:getHostUin()
--在聊天框显示
Chat:sendSystemMsg("房主迷你号为:"..uin)

# isMainPlayer

  • Parameters and types:
  • Return value and types:
    • ErrorCode.OK is that local player is local player
  • The main role of this method: Whether it is local player
  • The specific use cases are as follows:
--判断某迷你号是不是本地玩家(房主)
--参数1000是需要判断的迷你号
local result=Player:isMainPlayer(1000)
if result==0 then--如果是
	--在聊天框显示
	Chat:sendSystemMsg("1000是本地玩家(房主)")
else--如果不是
	--在聊天框显示
	Chat:sendSystemMsg("1000不是本地玩家(房主)")
end

# getMainPlayerUin

  • Parameters and types:nil
  • Return value and types:
  • The main role of this method: Get the local player's uin
  • The specific use cases are as follows:
--获取本地玩家(房主)迷你号
local result,uin=Player:getMainPlayerUin()
--在聊天框显示
Chat:sendSystemMsg("本地玩家(房主)迷你号为:"..uin)

# getGameResults

  • Parameters and types:
  • Return value and types:
  • The main role of this method: Get result of the game
  • The specific use cases are as follows:
--获取玩家的游戏状态或比赛结果
--参数0是玩家id或玩家迷你号,0是房主
--返回值可能是:0游戏中 1游戏胜利 2游戏结束
local result,value=Player:getGameResults(0)
Chat:sendSystemMsg("当前房主的游戏状态是(0游戏中 1游戏胜利 2游戏结束):"..value)

# setGameResults

  • Parameters and types:
  • Return value and types:
  • The main role of this method: Set result of the game
  • The specific use cases are as follows:
--设置玩家的游戏状态或比赛结果
--第一个参数是玩家id或玩家迷你号,0是房主
--第二个参数为游戏状态或比赛结果:0游戏中 1游戏胜利 2游戏结束
Player:setGameResults(0,1)
--在聊天框显示
Chat:sendSystemMsg("设置房主游戏胜利")

# getGameScore

  • Parameters and types:
  • Return value and types:
  • The main role of this method: Get score of the game
  • The specific use cases are as follows:
--当玩家做动画表情时在聊天框显示房主游戏分数
--当玩家做动画表情时执行此函数
local function Player_PlayAction(event)
	--获取房主的游戏分数
	--参数0为玩家id或玩家迷你号,0是房主
	local result,value=Player:getGameScore(0)
	--在聊天框显示
	Chat:sendSystemMsg("房主当前的游戏分数为"..value)
end
--注册一个动画表情监听器,事件发生时执行上面的函数
ScriptSupportEvent:registerEvent([=[Player.PlayAction]=],Player_PlayAction)

# setGameScore

  • Parameters and types:
  • Return value and types:
  • The main role of this method: Set score of the game
  • The specific use cases are as follows:
--把房主的分数设为100(玩家分数不是玩家所在队伍的分数,要注意区别。队伍分数可查阅Team)
--第一个参数是玩家id或玩家迷你号,0是房主
--第二个参数为要设置的游戏分数
Player:setGameScore(0,100)
--在聊天框显示
Chat:sendSystemMsg("房主的游戏分数被设置为了100(玩家分数不是玩家所在队伍的分数)")

# getGameRanking

  • Parameters and types:
  • Return value and types:
  • The main role of this method: Get the rank of player
  • The specific use cases are as follows:
--获取玩家的游戏排行
--参数0为玩家id或玩家迷你号,0是房主
local result,rank=Player:getGameRanking(0)
--在聊天框显示
Chat:sendSystemMsg("房主的游戏排行为"..rank)

# setGameRanking

  • Parameters and types:
  • Return value and types:
  • The main role of this method: Set the rank of player
  • The specific use cases are as follows:
--设置房主的排行为第一名
--第一个参数为玩家id或玩家迷你号,0是房主
--第二个参数为玩家排行
Player:setGameRanking(0,1)
--在聊天框显示
Chat:sendSystemMsg("房主排行被设置为了第一名")

# gainItems

  • Parameters and types:
  • Return value and types:
  • The main role of this method: Add items for players
  • The specific use cases are as follows:
--给玩家背包增加某道具或物品
--第一个参数为玩家id或玩家迷你号,0是房主
--第二个参数是添加物品的id,1是基岩
--第三个参数是添加的物品数量
--最后一个参数是优先快捷栏还是背包栏:1优先快捷栏 2优先背包栏
Player:gainItems(0,1,10,1)
--在聊天框显示
Chat:sendSystemMsg("给房主快捷栏或背包增加了10个基岩")

# teleportHome

  • Parameters and types:
  • Return value and types:
  • The main role of this method: Transfer to spawn point
  • The specific use cases are as follows:
--每当玩家做动画表情房主都会被传送回出生点
--当玩家做动画表情时执行此函数
local function Player_PlayAction(event)
	--把玩家传送至出生点,参数为玩家id或玩家迷你号,0是房主
	Player:teleportHome(0)
	--在聊天框显示
	Chat:sendSystemMsg("房主被传送到了出生点")
end
--注册一个动画表情监听器,事件发生时执行上面的函数
ScriptSupportEvent:registerEvent([=[Player.PlayAction]=],Player_PlayAction)

# getCurToolID

  • Parameters and types:
  • Return value and types:
  • The main role of this method: Get the item id currently held by the player
  • The specific use cases are as follows:
--获取玩家手持物品的id,参数为玩家id或玩家迷你号,0是房主
local result,id=Player:getCurToolID(0)
--在聊天框显示
Chat:sendSystemMsg("房主当前拿着的物品的id为"..id)

# getNickname

  • Parameters and types:
  • Return value and types:
  • The main role of this method: Get the player's name
  • The specific use cases are as follows:
--Get the player's name,参数为玩家id或玩家迷你号,0是房主
local result,name=Player:getNickname(0)
--在聊天框显示
Chat:sendSystemMsg("房主的昵称为:"..name)

# removeBackpackItem

  • Parameters and types:
  • Return value and types:
  • The main role of this method: Remove items in backpack
  • The specific use cases are as follows:
--移除玩家背包里的物品
--第一个参数为玩家id或玩家迷你号,0是房主
--第二个参数为要移除的物品id,101是土块
--第三个参数为要移除的物品数量
Player:removeBackpackItem(0,101,10)
--在聊天框显示
Chat:sendSystemMsg("移除了房主背包里的10个土块")

# getDieTimes

  • Parameters and types:
  • Return value and types:
  • The main role of this method: Get the number of deaths
  • The specific use cases are as follows:
--每当玩家做动画表情,聊天框显示房主死亡次数
--当玩家做动画表情时执行此函数
local function Player_PlayAction(event)
	--Get the number of deaths,参数为玩家id或玩家迷你号,0是房主
	local result,value=Player:getDieTimes(0)
	--在聊天框显示
	Chat:sendSystemMsg("房主的死亡次数为"..value)
end
--注册一个动画表情监听器,事件发生时执行上面的函数
ScriptSupportEvent:registerEvent([=[Player.PlayAction]=],Player_PlayAction)

# getLeftLifeNum

  • Parameters and types:
  • Return value and types:
  • The main role of this method: Get the number of remaining lives left
  • The specific use cases are as follows:
--每当玩家做动画表情,聊天框显示房主剩余生命数
--当玩家做动画表情时执行此函数
local function Player_PlayAction(event)
	--获取玩家剩余生命数,参数为玩家id或玩家迷你号,0是房主
	local result,value=Player:getLeftLifeNum(0)
	--在聊天框显示
	Chat:sendSystemMsg("房主剩余生命数为"..value)
end
--注册一个动画表情监听器,事件发生时执行上面的函数
ScriptSupportEvent:registerEvent([=[Player.PlayAction]=],Player_PlayAction)

# setTeam

  • Parameters and types:
  • Return value and types:
  • The main role of this method: Set player team
  • The specific use cases are as follows:
--Set player team
--第一个参数为玩家id或玩家迷你号,0是房主
--第二个参数为要设置为的队伍
Player:setTeam(0,2)
--在聊天框显示
Chat:sendSystemMsg("房主被设置为第二队")

# getTeam

  • Parameters and types:
  • Return value and types:
  • The main role of this method: Obtain player team
  • The specific use cases are as follows:
--获取玩家所在队伍,参数为玩家id或玩家迷你号,0是房主
local result,value=Player:getTeam(0)
--在聊天框显示
Chat:sendSystemMsg("房主所在队伍为:"..value)

# getFoodLevel

  • Parameters and types:
  • Return value and types:
  • The main role of this method: Get the current satiety
  • The specific use cases are as follows:
--获取玩家饱食度,参数为玩家id或玩家迷你号,0是房主
local result,value=Player:getFoodLevel(0)
--在聊天框显示
Chat:sendSystemMsg("房主当前饱食度为"..value)

# setFoodLevel

  • Parameters and types:
  • Return value and types:
  • The main role of this method: Set satiety of player
  • The specific use cases are as follows:
--Set satiety of player
--第一个参数为玩家id或玩家迷你号,0是房主
--第二个参数为要设置的饱食度
Player:setFoodLevel(0,100)
--在聊天框显示
Chat:sendSystemMsg("设置房主的饱食度为100")

# getCurShotcut

  • Parameters and types:
  • Return value and types:
  • The main role of this method: Get the current shortcut bar
  • The specific use cases are as follows:
--获取玩家当前选中的快捷栏位置,参数为玩家id或玩家迷你号,0是房主
local result,scutIdx=Player:getCurShotcut(0)
--在聊天框显示
Chat:sendSystemMsg("房主当前选中的快捷栏为:"..scutIdx)

# onCurToolUsed

  • Parameters and types:
  • Return value and types:
  • The main role of this method: Set the consumption of item held by player
  • The specific use cases are as follows:
--设置玩家手持物品的消耗
--第一个参数为玩家id或玩家迷你号,0是房主
--第二个参数为消耗的 items number(貌似没效果)
Player:onCurToolUsed(0,1)
--在聊天框显示
Chat:sendSystemMsg("房主当前选中的物品被移除了1个")

# setSkillCD

  • Parameters and types:
  • Return value and types:
  • The main role of this method: Set CD
  • The specific use cases are as follows:
--每当玩家做动画表情,房主的钻石剑CD都会变为100秒
--当玩家做动画表情时执行此函数
local function Player_PlayAction(event)
	--设置玩家的道具CD
	--第一个参数为玩家id或玩家迷你号,0是房主
	--第二个参数为道具id,12005是能量剑(钻石剑)
	--第三个参数为设置的技能冷却时长
	Player:setSkillCD(0,12005,100)
	--在聊天框显示
	Chat:sendSystemMsg("房主的钻石剑技能冷却时间被设置为了100秒")
end
--注册一个动画表情监听器,事件发生时执行上面的函数
ScriptSupportEvent:registerEvent([=[Player.PlayAction]=],Player_PlayAction)

# reviveToPos

  • Parameters and types:
  • Return value and types:
  • The main role of this method: Respawn player at designated point
  • The specific use cases are as follows:
--复活玩家到指定位置(貌似没效果,也许只对死亡玩家有效)
--第一个参数为玩家id或玩家迷你号,0是房主
--后三个参数为复活到坐标
Player:reviveToPos(0,50,7,50)
--在聊天框显示
Chat:sendSystemMsg("把房主复活到(50,50)高度7的位置")

# setRevivePoint

  • Parameters and types:
  • Return value and types:
  • The main role of this method: Change the respawn point
  • The specific use cases are as follows:
--设置玩家的复活点坐标
--第一个参数为玩家id或玩家迷你号,0是房主
--后三个参数为设置的复活点坐标
Player:setRevivePoint(0,50,7,50)
--在聊天框显示
Chat:sendSystemMsg("房主复活点被设置在了(50,50)高度7的位置")

# mountActor 1.1+

  • Parameters and types:
  • Return value and types:
  • The main role of this method: Player rides the mount
  • The specific use cases are as follows:
local result = Player:mountActor(playerid, objid, posindex)

# playAct

  • Parameters and types:
  • Return value and types:
  • The main role of this method: Player play the cartoon
  • The specific use cases are as follows:
--让Player play the cartoon表情
--第一个参数为玩家迷你号
--第二个参数为动作表情id,具体可以在“迷你世界ID查询”的“动作表数据”查询
Player:playAct(1000,1)
--在聊天框显示
Chat:sendSystemMsg("让迷你号为1000的玩家播放打招呼动作")

# notifyGameInfo2Self

  • Parameters and types:
  • Return value and types:
  • The main role of this method: Display texts in popup window
  • The specific use cases are as follows:
--对玩家显示飘窗提示框
--第一个参数为玩家id或玩家迷你号,0是房主
--第二个参数是显示的文本内容
Player:notifyGameInfo2Self(0,"这里是飘窗 text content")

# useItem

  • Parameters and types:
  • Return value and types:
  • The main role of this method: Make player use current item
  • The specific use cases are as follows:
local result = Player:useItem(objid, itemid, status, onshift)

# rotateCamera

  • Parameters and types:
  • Return value and types:
  • The main role of this method: Rotate player's lens
  • The specific use cases are as follows:
--设置玩家视角方向
--第一个参数为玩家id或玩家迷你号,0是房主
--第二个参数为水平方向旋转角度,正北为0,由北向东为正方向
--第三个参数为俯仰角,90为俯视,-90为仰视,之间的角度可任意设置
Player:rotateCamera(0,90,90)
--在聊天框显示
Chat:sendSystemMsg("房主视角被设置为面向正东、俯视")

# changeViewMode

  • Parameters and types:
  • Return value and types:
  • The main role of this method: Change angle mode of player
  • The specific use cases are as follows:
--设置玩家视角模式
--第一个参数为玩家id或玩家迷你号,0是房主
--第二个参数为视角模式:0主视角 1背视角 2正视角 3俯视角 4俯视角 5自定义视角
--第三个参数为是否锁定视角:true锁定 false不锁定
Player:changeViewMode(0,0,true)
--在聊天框显示
Chat:sendSystemMsg("锁定房主视角为第一人称主视角")

# setActionAttrState

  • Parameters and types:
  • Return value and types:
  • The main role of this method: Set attribute status of player behavior
  • The specific use cases are as follows:
--Set attribute status of player behavior
--第一个参数为玩家id或玩家迷你号,0是房主
--第二个参数是行为属性值,1是“移动”,具体可以在“游戏数据类型”的“Player attribute setting”里查看
--第三个参数为“是否可以”,true可以 false不可以
Player:setActionAttrState(0,1,false)
--在聊天框显示
Chat:sendSystemMsg("设置房主不可移动")

# checkActionAttrState

  • Parameters and types:
  • Return value and types:
  • The main role of this method: Obtain status of player special attribute
  • The specific use cases are as follows:
--获取玩家的行为属性状态
--第一个参数为玩家id或玩家迷你号,0是房主
--第二个参数是行为属性值,1是“移动”,具体可以在“游戏数据类型”的“Player attribute setting”里查看
local result=Player:checkActionAttrState(0,1)
if result==0 then--如果可以
	--在聊天框显示
	Chat:sendSystemMsg("房主可以移动")
else--如果不可以
	--在聊天框显示
	Chat:sendSystemMsg("房主不可移动")
end

# isEquipByResID 1.7+

  • Parameters and types:
  • Return value and types:
  • The main role of this method: 设置玩家是否装备了某件装备
  • The specific use cases are as follows:
local result = Player:isEquipByResID(objid, itemid)

# setPosition

  • Parameters and types:
  • Return value and types:
  • The main role of this method: Set the location of player
  • The specific use cases are as follows:
--设置玩家到某坐标
--第一个参数为玩家id或玩家迷你号,0是房主
--后三个参数为设置到的坐标
Player:setPosition(0,100,7,100)
--在聊天框显示
Chat:sendSystemMsg("房主被设置到了(100,100)高度7的位置")

# getAimPos

  • Parameters and types:
  • Return value and types:
  • The main role of this method: Get the crosshair location of player
  • The specific use cases are as follows:
--获取玩家准心坐标,参数为玩家id或玩家迷你号,0是房主
local result,x,y,z=Player:getAimPos(0)
--在聊天框显示
Chat:sendSystemMsg("房主当前准心坐标为("..x..","..y..","..z..")")
--输出到控制台
print("房主当前准心坐标为("..x..","..y..","..z..")")

# setItemAttAction 1.1+

--设置玩家的道具的操作属性
--第一个参数为玩家id或玩家迷你号,0是房主
--第二个参数为要设置的道具的id,101是土块
--第三个参数为属性值:1不可丢弃 2不可掉落
--最后一个参数为是否开启属性:true开启 false关闭
Player:setItemAttAction(0,101,1,true)
--在聊天框显示
Chat:sendSystemMsg("房主被设置为不可丢弃土块")

# playMusic 1.3+

  • Parameters and types:
  • Return value and types:
  • The main role of this method: Play background music to players
  • The specific use cases are as follows:
--对玩家播放音乐
--第一个参数为玩家id或玩家迷你号,0是房主
--第二个参数为音乐id,具体可以在“迷你世界ID表查询”的“音效表数据”里查看
--第三个参数为播放音量
--第四个参数为播放音高
--最后一个参数为Whether to loop播放
Player:playMusic(0,10713,100,1,false)
--在聊天框显示
Chat:sendSystemMsg("开始对房主播放音乐10713")

# stopMusic 1.3+

  • Parameters and types:
  • Return value and types:
  • The main role of this method: Stop background music to players
  • The specific use cases are as follows:
--对房主播放音乐10713
Player:playMusic(0,10713,100,1,false)
--在聊天框显示
Chat:sendSystemMsg("开始对房主播放音乐10713,做动画表情即可停止播放")
--当玩家做动画表情时执行此函数
local function Player_PlayAction(event)
	--停止对玩家播放音乐,参数为玩家id或玩家迷你号,0是房主
	Player:stopMusic(0)
	--在聊天框显示
	Chat:sendSystemMsg("停止对房主播放音乐")
end
--注册一个动画表情监听器,事件发生时执行上面的函数
ScriptSupportEvent:registerEvent([=[Player.PlayAction]=],Player_PlayAction)

# setGameWin 1.5+

  • Parameters and types:
  • Return value and types:
  • The main role of this method: Make player win
  • The specific use cases are as follows:
--每当玩家做动画表情,让指定迷你号的玩家获胜
--当玩家做动画表情时执行此函数
local function Player_PlayAction(event)
	--指定迷你号玩家获胜,参数为玩家迷你号
	local result=Player:setGameWin(1000)
	if result==0 then--如果房间里存在迷你号为1000的玩家
		--在聊天框显示
		Chat:sendSystemMsg("设置玩家1000获胜")
	else--如果房间里没有迷你号为1000的玩家
		--在聊天框显示
		Chat:sendSystemMsg("房间里没有玩家迷你号为1000")
	end
end
--注册一个动画表情监听器,事件发生时执行上面的函数
ScriptSupportEvent:registerEvent([=[Player.PlayAction]=],Player_PlayAction)

# openDevStore 1.5+

  • Parameters and types:
  • Return value and types:
  • The main role of this method: Open Dev. Store
  • The specific use cases are as follows:
--每当玩家做动画表情,为指定玩家Open Dev. Store
--当玩家做动画表情时执行此函数
local function Player_PlayAction(event)
	--为指定玩家Open Dev. Store,参数为玩家id或玩家迷你号,0是房主
	Player:openDevStore(0)
	--在聊天框显示
	Chat:sendSystemMsg("为房主打开了开发者商店")
end
--注册一个动画表情监听器,事件发生时执行上面的函数
ScriptSupportEvent:registerEvent([=[Player.PlayAction]=],Player_PlayAction)

# getPropsType 1.7+

  • Parameters and types:
  • Return value and types:
  • The main role of this method: get the type of the props that player holding on hand
  • The specific use cases are as follows:
local result = Player:getPropsType(playerid)

# playAdvertising 1.5+

  • Parameters and types:
    • objid:number
    • adname:stringName of the advertising
    • eventname:stringCallback event name
    • eventparams:tableCallback event parameters
  • Return value and types:
  • The main role of this method: Play Advertising(Callback can be configured)
  • The specific use cases are as follows:
local result = Player:playAdvertising(objid, adname, eventname, eventparams)

# setCheckBoxScale 1.7+

  • Parameters and types:
  • Return value and types:
  • The main role of this method: 设置检测掉落物半径
  • The specific use cases are as follows:
local result = Player:setCheckBoxScale(objid, range)

# openBoxByPos 1.7+

  • Parameters and types:
  • Return value and types:
  • The main role of this method: Open the box that can be operated
  • The specific use cases are as follows:
local result = Player:openBoxByPos(objid, x, y, z)

# forceOpenBoxUI 1.7+

  • Parameters and types:
  • Return value and types:
  • The main role of this method: Force to open the block that can be operated, like toolbox
  • The specific use cases are as follows:
local result = Player:forceOpenBoxUI(objid, itemid)

# openDevGoodsBuyDialog 1.8+

  • Parameters and types:
  • Return value and types:
  • The main role of this method: customDesc : 自定义商品描述
  • The specific use cases are as follows:
local result = Player:openDevGoodsBuyDialog(objid, devGoodsId, customDesc)
Last Update: 2/19/2021, 9:36:24 AM