Lua接口/客户端函数索引/PlayerShop
来自天龙知识库
首页 · 客户端接口 · PlayerShop · 窗口操作 · 客户端事件
PlayerShop 对象方法
实现类
PlayerShop · 87 个方法 · 脚本使用 222 处本页参数与返回值由客户端 C++ 绑定源码自动推断(参数取自
args[n] 与 lua_is* 的实际取值点,返回项数取自 return n),未经运行验证;用途摘要按实现体归纳,仅供参考。调用方式
调用形式:PlayerShop:AddFavor(number)
对象名 PlayerShop 是全局对象,可直接使用。
方法列表
| 方法 | 说明 |
|---|---|
PlayerShop:AddFavor(number)number · 无返回值 · 脚本使用 1 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L2414 |
PlayerShop:ApplyMoney(string, number)string, number · 无返回值 · 脚本使用 6 处 |
触发客户端事件 GE_OPEN_PS_MESSAGE_FRAME、GE_NEW_DEBUGMESSAGE;读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L783 |
PlayerShop:AskOpenShop(string, number)string, number · 无返回值 · 脚本使用 2 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L263 |
PlayerShop:AskStallData(string, number)string, number · 无返回值 · 脚本使用 6 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L1423 |
PlayerShop:BuyItem(string)string · 无返回值 · 脚本使用 3 处 |
触发客户端事件 GE_NEW_DEBUGMESSAGE;操作客户端界面;读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L952 |
PlayerShop:BuyShop()无参数 · 无返回值 · 脚本使用 1 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L1988 |
PlayerShop:CancelRecItem(number, number)number, number · 无返回值 · 脚本使用 1 处 |
触发客户端事件 GE_RECYCLE_DEL_ITEM;读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L2720 |
PlayerShop:CancelSellItem2RecycleShop(number)number · 无返回值 · 脚本使用 1 处 |
触发客户端事件 GE_PACKAGE_ITEM_CHANGED;读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L2885 |
PlayerShop:ChangeShopNum(string)string · 无返回值 · 脚本使用 4 处 |
触发客户端事件 GE_OPEN_PS_MESSAGE_FRAME;读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L2236 |
PlayerShop:ClearSelect(string)string · 无返回值 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L1142 |
PlayerShop:ClearSelectPos(string)string · 无返回值 · 脚本使用 1 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L1902 |
PlayerShop:CloseChangeTypeMsgBox()无参数 · 无返回值 · 脚本使用 1 处 |
触发客户端事件 GE_CLOSE_PS_CHANGETYPE_MSG;读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L2700 |
PlayerShop:CloseRecycleShop()无参数 · 无返回值 · 脚本使用 1 处 |
触发客户端事件 GE_CLOSE_RECYCLESHOP_MSG;读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L2705 |
PlayerShop:CloseSearchFrame()无参数 · 无返回值 · 脚本使用 1 处 |
触发客户端事件 GE_PS_CLOSE_FIND_SHOP;读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L2431 |
PlayerShop:CloseShop(string)string · 无返回值 · 脚本使用 2 处 |
触发客户端事件 GE_CLOSE_PET_LIST;读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L1999 |
PlayerShop:CloseShopMag()无参数 · 无返回值 · 脚本使用 1 处 |
触发客户端事件 GE_PS_CLOSE_SHOP_MAG;读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L2679 |
PlayerShop:CreateShop(string, number)string, number · 无返回值 · 脚本使用 1 处 |
触发客户端事件 GE_NEW_DEBUGMESSAGE、GE_GAMELOGIN_SHOW_SYSTEM_INFO、GE_PS_CLOSE_CREATESHOP;操作客户端界面;读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L52 |
PlayerShop:DealFriend(string, string)string, string · 无返回值 · 脚本使用 2 处 |
触发客户端事件 GE_NEW_DEBUGMESSAGE;读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L2154 |
PlayerShop:DealMoney(string, number)string, number · 2 个返回值 · 脚本使用 5 处 |
触发客户端事件 GE_NEW_DEBUGMESSAGE;读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L684 |
PlayerShop:DownSale(string)string · 无返回值 · 脚本使用 2 处 |
触发客户端事件 GE_NEW_DEBUGMESSAGE;读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L1057 |
PlayerShop:EnumFriend(number)number · 1 个返回值 · 脚本使用 1 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L2221 |
PlayerShop:EnumItem(number, number, string)number, number, string · 2 个返回值 · 脚本使用 6 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L301 |
PlayerShop:EnumMessage(string, number)string, number · 1 个返回值 · 脚本使用 3 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L2123 |
PlayerShop:EnumPet(string, number, number)string, number, number · 2 个返回值 · 脚本使用 6 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L1465 |
PlayerShop:EnumRecycleItem(number)number · 4 个返回值 · 脚本使用 1 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L2506 |
PlayerShop:EnumRecycleItemAction(number, number)number, number · 2 个返回值 · 脚本使用 2 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L2530 |
PlayerShop:EnumRecycleItemClass(number)number · 1 个返回值 · 脚本使用 1 处 |
实现体未体现明确的外部效果 Game/Interface/GMInterface_Script_PlayerShop.cpp L2455 |
PlayerShop:EnumRecycleItemType(number)number · 1 个返回值 · 脚本使用 1 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L2472 |
PlayerShop:EnumSearchShopIndex(number)number · 1 个返回值 · 脚本使用 1 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L2404 |
PlayerShop:EnumShop(number)number · 7 个返回值 · 脚本使用 6 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L146 |
PlayerShop:EnumShopInfo(string, number)string, number · 1 个返回值 · 脚本使用 5 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L212 |
PlayerShop:FindShop(string, number)string, number · 无返回值 · 脚本使用 6 处 |
触发客户端事件 GE_PS_UPDATE_SEARCH_RECYCLESHOPLIST、GE_PS_UPDATE_SEARCH_SHOPLIST;读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L2296 |
PlayerShop:GetCanOpenShopType()无参数 · 1 个返回值 · 脚本使用 1 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L1533 |
PlayerShop:GetCommercialFactor()无参数 · 1 个返回值 · 脚本使用 6 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L1274 |
PlayerShop:GetCurPageMessageNum(string)string · 1 个返回值 · 脚本使用 1 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L2098 |
PlayerShop:GetCurSelectPage(string)string · 1 个返回值 · 脚本使用 1 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L668 |
PlayerShop:GetCurShopType(string)string · 1 个返回值 · 脚本使用 3 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L2340 |
PlayerShop:GetFriendNum()无参数 · 1 个返回值 · 脚本使用 1 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L2215 |
PlayerShop:GetMessageNum(string)string · 1 个返回值 · 脚本使用 5 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L2073 |
PlayerShop:GetMessageType()无参数 · 1 个返回值 · 脚本使用 1 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L2692 |
PlayerShop:GetMoney(string, string)string, string · 4 个返回值 · 脚本使用 6 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L1162 |
PlayerShop:GetNpcId()无参数 · 1 个返回值 · 脚本使用 6 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L2954 |
PlayerShop:GetObjName(string, string)string, string · 2 个返回值 · 脚本使用 6 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L1761 |
PlayerShop:GetObjPrice(string, string)string, string · 1 个返回值 · 脚本使用 6 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L1572 |
PlayerShop:GetRecycleItem(number, number, string)number, number, string · 1 个返回值 · 脚本使用 6 处 |
实现体未体现明确的外部效果 Game/Interface/GMInterface_Script_PlayerShop.cpp L2739 |
PlayerShop:GetRecycleItemClassCount()无参数 · 1 个返回值 · 脚本使用 1 处 |
实现体未体现明确的外部效果 Game/Interface/GMInterface_Script_PlayerShop.cpp L2446 |
PlayerShop:GetRecycleItemCount(number, number)number, number · 1 个返回值 · 脚本使用 1 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L2495 |
PlayerShop:GetRecycleItemTypeCount(number)number · 1 个返回值 · 脚本使用 1 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L2484 |
PlayerShop:GetRecycleShopName(number)number · 1 个返回值 · 脚本使用 2 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L2791 |
PlayerShop:GetRecycleShopOwnerID(number)number · 1 个返回值 · 脚本使用 1 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L2811 |
PlayerShop:GetRecycleShopOwnerName(number)number · 1 个返回值 · 脚本使用 1 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L2801 |
PlayerShop:GetRecycleShopProfitMoney(number)number · 1 个返回值 · 脚本使用 1 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L2823 |
PlayerShop:GetSelectIndex(string)string · 1 个返回值 · 脚本使用 4 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L367 |
PlayerShop:GetSelfPlace()无参数 · 1 个返回值 · 脚本使用 2 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L2275 |
PlayerShop:GetShopInfo(string, string)string, string · 1 个返回值 · 脚本使用 6 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L1286 |
PlayerShop:GetShopListType()无参数 · 1 个返回值 · 脚本使用 1 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L2684 |
PlayerShop:GetShopNum(string)string · 1 个返回值 · 脚本使用 2 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L131 |
PlayerShop:GetStallNum(string)string · 1 个返回值 · 脚本使用 4 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L900 |
PlayerShop:InfoMoney()无参数 · 无返回值 |
实现体未体现明确的外部效果 Game/Interface/GMInterface_Script_PlayerShop.cpp L894 |
PlayerShop:InputMoney(string)string · 无返回值 · 脚本使用 5 处 |
触发客户端事件 GE_NEW_DEBUGMESSAGE、GE_TOGLE_INPUT_MONEY、GE_PS_INPUT_MONEY;读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L496 |
PlayerShop:IsOpenStall(string, number)string, number · 1 个返回值 · 脚本使用 2 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L1355 |
PlayerShop:IsSaleOut(string)string · 1 个返回值 · 脚本使用 4 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L1966 |
PlayerShop:IsSelectOnSale(string, number)string, number · 1 个返回值 · 脚本使用 2 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L1024 |
PlayerShop:Modify(string, string)string, string · 无返回值 · 脚本使用 4 处 |
触发客户端事件 GE_GAMELOGIN_SHOW_SYSTEM_INFO、GE_NEW_DEBUGMESSAGE、GE_OPEN_PS_MESSAGE_FRAME;操作客户端界面;读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L1627 |
PlayerShop:ModifySubType(string, number)string, number · 无返回值 · 脚本使用 2 处 |
触发客户端事件 GE_OPEN_PS_MESSAGE_FRAME、GE_NEW_DEBUGMESSAGE;操作客户端界面;读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L2358 |
PlayerShop:OpenADDlg(number)number · 无返回值 · 脚本使用 1 处 |
触发客户端事件 GE_RECYCLE_AD_SET;读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L2900 |
PlayerShop:OpenFindShop()无参数 · 无返回值 · 脚本使用 1 处 |
触发客户端事件 GE_OPEN_FIND_SHOP;读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L2283 |
PlayerShop:OpenMessage(string, number)string, number · 无返回值 · 脚本使用 6 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L2025 |
PlayerShop:OpenRecycleShopDLG(string)string · 无返回值 · 脚本使用 1 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L2647 |
PlayerShop:OpenRecycleShopDLG2(number, string)number, string · 无返回值 · 脚本使用 1 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L2661 |
PlayerShop:OpenSelectRecycleItemDLG(number)number · 无返回值 · 脚本使用 1 处 |
触发客户端事件 GE_OPEN_SELECTRECYCLEITEM_DLG;读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L2436 |
PlayerShop:OpenStall(number, number)number, number · 无返回值 · 脚本使用 3 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L1398 |
PlayerShop:RecycleShop_EnterSell()无参数 · 无返回值 · 脚本使用 1 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L2871 |
PlayerShop:RecycleShop_GetShopDesc(number)number · 1 个返回值 · 脚本使用 1 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L2943 |
PlayerShop:RetackItem(string)string · 无返回值 · 脚本使用 2 处 |
触发客户端事件 GE_NEW_DEBUGMESSAGE;读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L393 |
PlayerShop:SendAddRecycleItemMsg(number, number, number, number)number, number, number, number · 无返回值 · 脚本使用 1 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L2617 |
PlayerShop:SendCancelRecItemMsg(number, number)number, number · 无返回值 · 脚本使用 1 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L2594 |
PlayerShop:SendSellItem2RecycleShopMsg(number, number)number, number · 无返回值 · 脚本使用 1 处 |
触发客户端事件 GE_PACKAGE_ITEM_CHANGED;读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L2833 |
PlayerShop:SendSetRecycleShopADMsg(number, string)number, string · 无返回值 · 脚本使用 1 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L2910 |
PlayerShop:SendTakeRecItemMsg(number, number)number, number · 无返回值 · 脚本使用 1 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L2571 |
PlayerShop:SetCurSelectPage(string, number)string, number · 无返回值 · 脚本使用 4 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L647 |
PlayerShop:SetCurSelectPetIndex(string, number, number)string, number, number · 无返回值 · 脚本使用 2 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L1540 |
PlayerShop:SetCurSelShopIdx(number)number · 无返回值 · 脚本使用 2 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L2710 |
PlayerShop:SetSelectPet(number)number · 无返回值 · 脚本使用 2 处 |
读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L1519 |
PlayerShop:Transfer(string, number)string, number · 无返回值 · 脚本使用 5 处 |
触发客户端事件 GE_TOGLE_INPUT_MONEY;读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L1923 |
PlayerShop:UpStall(string, number)string, number · 无返回值 · 脚本使用 2 处 |
触发客户端事件 GE_NEW_DEBUGMESSAGE;读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L559 |
PlayerShop:ViewPetDesc(string, number)string, number · 无返回值 · 脚本使用 6 处 |
触发客户端事件 GE_VIEW_EXCHANGE_PET;读取客户端本地数据 Game/Interface/GMInterface_Script_PlayerShop.cpp L1863 |
多返回值方法
PlayerShop:DealMoney→ 2 个返回值PlayerShop:EnumItem→ 2 个返回值PlayerShop:EnumPet→ 2 个返回值PlayerShop:EnumRecycleItem→ 4 个返回值PlayerShop:EnumRecycleItemAction→ 2 个返回值PlayerShop:EnumShop→ 7 个返回值PlayerShop:GetMoney→ 4 个返回值PlayerShop:GetObjName→ 2 个返回值
脚本中的调用
以下是该对象在客户端界面脚本里的调用点(整理为注释,便于检索):
-- PlayerShop:AddFavor ← PS_ShopList/PS_ShopList.lua -- PlayerShop:ApplyMoney ← MessageBox_Self/MessageBox_Self.lua -- PlayerShop:AskOpenShop ← PS_ShopList/PS_ShopList.lua -- PlayerShop:AskStallData ← PS_Shop/PS_Shop.lua