Lua接口/客户端函数索引/PlayerShop

来自天龙知识库
雪舞留言 | 贡献2026年9月19日 (六) 13:34的版本 (新建客户端 Lua 接口页:全局函数、对象方法、窗口操作与客户端事件)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳到导航跳到搜索

首页 · 客户端接口 · PlayerShop · 窗口操作 · 客户端事件

PlayerShop 对象方法
实现类 PlayerShop · 87 个方法

调用方式

对象方法以 PlayerShop:方法名(参数) 形式调用,例如 PlayerShop:GetCommercialFactor()。各方法的参数见下表,点方法名进入独立页。 对象名 PlayerShop 是全局对象,可直接使用。

方法列表

方法 说明
PlayerShop:AddFavor(number)
无返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:ApplyMoney(string, number)
无返回值
触发客户端事件 GE_OPEN_PS_MESSAGE_FRAME、GE_NEW_DEBUGMESSAGE;读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:AskOpenShop(string, number)
无返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:AskStallData(string, number)
无返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:BuyItem(string)
无返回值
触发客户端事件 GE_NEW_DEBUGMESSAGE;操作客户端界面;读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:BuyShop()
无返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:CancelRecItem(number, number)
无返回值
触发客户端事件 GE_RECYCLE_DEL_ITEM;读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:CancelSellItem2RecycleShop(number)
无返回值
触发客户端事件 GE_PACKAGE_ITEM_CHANGED;读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:ChangeShopNum(string)
无返回值
触发客户端事件 GE_OPEN_PS_MESSAGE_FRAME;读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:ClearSelect(string)
无返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:ClearSelectPos(string)
无返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:CloseChangeTypeMsgBox()
无返回值
触发客户端事件 GE_CLOSE_PS_CHANGETYPE_MSG;读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:CloseRecycleShop()
无返回值
触发客户端事件 GE_CLOSE_RECYCLESHOP_MSG;读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:CloseSearchFrame()
无返回值
触发客户端事件 GE_PS_CLOSE_FIND_SHOP;读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:CloseShop(string)
无返回值
触发客户端事件 GE_CLOSE_PET_LIST;读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:CloseShopMag()
无返回值
触发客户端事件 GE_PS_CLOSE_SHOP_MAG;读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:CreateShop(string, number)
无返回值
触发客户端事件 GE_NEW_DEBUGMESSAGE、GE_GAMELOGIN_SHOW_SYSTEM_INFO、GE_PS_CLOSE_CREATESHOP;操作客户端界面;读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:DealFriend(string, string)
无返回值
触发客户端事件 GE_NEW_DEBUGMESSAGE;读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:DealMoney(string, number)
2 个返回值
触发客户端事件 GE_NEW_DEBUGMESSAGE;读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:DownSale(string)
无返回值
触发客户端事件 GE_NEW_DEBUGMESSAGE;读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:EnumFriend(number)
1 个返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:EnumItem(number, number, string)
2 个返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:EnumMessage(string, number)
1 个返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:EnumPet(string, number, number)
2 个返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:EnumRecycleItem(number)
4 个返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:EnumRecycleItemAction(number, number)
2 个返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:EnumRecycleItemClass(number)
1 个返回值
实现体未体现明确的外部效果
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:EnumRecycleItemType(number)
1 个返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:EnumSearchShopIndex(number)
1 个返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:EnumShop(number)
7 个返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:EnumShopInfo(string, number)
1 个返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:FindShop(string, number)
无返回值
触发客户端事件 GE_PS_UPDATE_SEARCH_RECYCLESHOPLIST、GE_PS_UPDATE_SEARCH_SHOPLIST;读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:GetCanOpenShopType()
1 个返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:GetCommercialFactor()
1 个返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:GetCurPageMessageNum(string)
1 个返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:GetCurSelectPage(string)
1 个返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:GetCurShopType(string)
1 个返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:GetFriendNum()
1 个返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:GetMessageNum(string)
1 个返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:GetMessageType()
1 个返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:GetMoney(string, string)
4 个返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:GetNpcId()
1 个返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:GetObjName(string, string)
2 个返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:GetObjPrice(string, string)
1 个返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:GetRecycleItem(number, number, string)
1 个返回值
实现体未体现明确的外部效果
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:GetRecycleItemClassCount()
1 个返回值
实现体未体现明确的外部效果
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:GetRecycleItemCount(number, number)
1 个返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:GetRecycleItemTypeCount(number)
1 个返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:GetRecycleShopName(number)
1 个返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:GetRecycleShopOwnerID(number)
1 个返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:GetRecycleShopOwnerName(number)
1 个返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:GetRecycleShopProfitMoney(number)
1 个返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:GetSelectIndex(string)
1 个返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:GetSelfPlace()
1 个返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:GetShopInfo(string, string)
1 个返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:GetShopListType()
1 个返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:GetShopNum(string)
1 个返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:GetStallNum(string)
1 个返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:InfoMoney()
无返回值
实现体未体现明确的外部效果
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:InputMoney(string)
无返回值
触发客户端事件 GE_NEW_DEBUGMESSAGE、GE_TOGLE_INPUT_MONEY、GE_PS_INPUT_MONEY;读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:IsOpenStall(string, number)
1 个返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:IsSaleOut(string)
1 个返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:IsSelectOnSale(string, number)
1 个返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:Modify(string, string)
无返回值
触发客户端事件 GE_GAMELOGIN_SHOW_SYSTEM_INFO、GE_NEW_DEBUGMESSAGE、GE_OPEN_PS_MESSAGE_FRAME;操作客户端界面;读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:ModifySubType(string, number)
无返回值
触发客户端事件 GE_OPEN_PS_MESSAGE_FRAME、GE_NEW_DEBUGMESSAGE;操作客户端界面;读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:OpenADDlg(number)
无返回值
触发客户端事件 GE_RECYCLE_AD_SET;读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:OpenFindShop()
无返回值
触发客户端事件 GE_OPEN_FIND_SHOP;读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:OpenMessage(string, number)
无返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:OpenRecycleShopDLG(string)
无返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:OpenRecycleShopDLG2(number, string)
无返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:OpenSelectRecycleItemDLG(number)
无返回值
触发客户端事件 GE_OPEN_SELECTRECYCLEITEM_DLG;读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:OpenStall(number, number)
无返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:RecycleShop_EnterSell()
无返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:RecycleShop_GetShopDesc(number)
1 个返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:RetackItem(string)
无返回值
触发客户端事件 GE_NEW_DEBUGMESSAGE;读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:SendAddRecycleItemMsg(number, number, number, number)
无返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:SendCancelRecItemMsg(number, number)
无返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:SendSellItem2RecycleShopMsg(number, number)
无返回值
触发客户端事件 GE_PACKAGE_ITEM_CHANGED;读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:SendSetRecycleShopADMsg(number, string)
无返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:SendTakeRecItemMsg(number, number)
无返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:SetCurSelectPage(string, number)
无返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:SetCurSelectPetIndex(string, number, number)
无返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:SetCurSelShopIdx(number)
无返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:SetSelectPet(number)
无返回值
读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:Transfer(string, number)
无返回值
触发客户端事件 GE_TOGLE_INPUT_MONEY;读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:UpStall(string, number)
无返回值
触发客户端事件 GE_NEW_DEBUGMESSAGE;读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp
PlayerShop:ViewPetDesc(string, number)
无返回值
触发客户端事件 GE_VIEW_EXCHANGE_PET;读取客户端本地数据
Game/Interface/GMInterface_Script_PlayerShop.cpp

多返回值方法

  • PlayerShop:DealMoney → 2 个返回值
  • PlayerShop:EnumItem → 2 个返回值
  • PlayerShop:EnumPet → 2 个返回值
  • PlayerShop:EnumRecycleItem → 4 个返回值
  • PlayerShop:EnumRecycleItemAction → 2 个返回值
  • PlayerShop:EnumShop → 7 个返回值
  • PlayerShop:GetMoney → 4 个返回值
  • PlayerShop:GetObjName → 2 个返回值


脚本中的调用

以下是该对象在客户端界面脚本里的调用点(整理为注释,便于检索):

-- PS_ShopList/PS_ShopList.lua
-- MessageBox_Self/MessageBox_Self.lua
-- PS_ShopList/PS_ShopList.lua
-- PS_Shop/PS_Shop.lua