Lua接口/客户端函数索引/NpcShop
来自天龙知识库
首页 · 客户端接口 · NpcShop · 窗口操作 · 客户端事件
NpcShop 对象方法
实现类
NpcShop · 16 个方法 · 脚本使用 48 处本页参数与返回值由客户端 C++ 绑定源码自动推断(参数取自
args[n] 与 lua_is* 的实际取值点,返回项数取自 return n),未经运行验证;用途摘要按实现体归纳,仅供参考。调用方式
调用形式:NpcShop:BulkBuyItem(number, number)
对象名 NpcShop 是全局对象,可直接使用。
方法列表
| 方法 | 说明 |
|---|---|
NpcShop:BulkBuyItem(number, number)number, number · 无返回值 · 脚本使用 2 处 |
读取客户端本地数据 Game/Interface/GMGameInterface_Script_NpcShop.cpp L189 |
NpcShop:Close()无参数 · 无返回值 · 脚本使用 6 处 |
触发客户端事件 GE_CLOSE_BOOTH;读取客户端本地数据 Game/Interface/GMGameInterface_Script_NpcShop.cpp L19 |
NpcShop:CloseConfirm()无参数 · 无返回值 · 脚本使用 6 处 |
触发客户端事件 GE_YUANBAO_BUY_ITEM_CONFIRM;读取客户端本地数据 Game/Interface/GMGameInterface_Script_NpcShop.cpp L26 |
NpcShop:EnumCallBackItem(number)number · 1 个返回值 · 脚本使用 1 处 |
读取客户端本地数据 Game/Interface/GMGameInterface_Script_NpcShop.cpp L78 |
NpcShop:EnumItemMaxOverlay(number)number · 1 个返回值 · 脚本使用 2 处 |
读取客户端本地数据 Game/Interface/GMGameInterface_Script_NpcShop.cpp L117 |
NpcShop:EnumItemName(number)number · 1 个返回值 · 脚本使用 2 处 |
读取客户端本地数据 Game/Interface/GMGameInterface_Script_NpcShop.cpp L140 |
NpcShop:EnumItemPrice(number)number · 1 个返回值 · 脚本使用 5 处 |
读取客户端本地数据 Game/Interface/GMGameInterface_Script_NpcShop.cpp L101 |
NpcShop:GetBulkBuyLimit(number)number · 1 个返回值 |
实现体未体现明确的外部效果 Game/Interface/GMGameInterface_Script_NpcShop.cpp L174 |
NpcShop:GetBuyDirectly()无参数 · 1 个返回值 · 脚本使用 4 处 |
实现体未体现明确的外部效果 Game/Interface/GMGameInterface_Script_NpcShop.cpp L32 |
NpcShop:GetCallBackNum()无参数 · 1 个返回值 · 脚本使用 1 处 |
读取客户端本地数据 Game/Interface/GMGameInterface_Script_NpcShop.cpp L258 |
NpcShop:GetIsShopReorder()无参数 · 1 个返回值 · 脚本使用 2 处 |
读取客户端本地数据 Game/Interface/GMGameInterface_Script_NpcShop.cpp L38 |
NpcShop:GetNpcCamp()无参数 · 无返回值 |
实现体未体现明确的外部效果 Game/Interface/GMGameInterface_Script_NpcShop.cpp L315 |
NpcShop:GetNpcId()无参数 · 1 个返回值 · 脚本使用 6 处 |
读取客户端本地数据 Game/Interface/GMGameInterface_Script_NpcShop.cpp L71 |
NpcShop:GetRepairAllPrice()无参数 · 1 个返回值 · 脚本使用 1 处 |
读取客户端本地数据 Game/Interface/GMGameInterface_Script_NpcShop.cpp L292 |
NpcShop:GetShopType(string)string · 1 个返回值 · 脚本使用 6 处 |
读取客户端本地数据 Game/Interface/GMGameInterface_Script_NpcShop.cpp L269 |
NpcShop:SetBuyDirectly(number)number · 无返回值 · 脚本使用 4 处 |
读取客户端本地数据 Game/Interface/GMGameInterface_Script_NpcShop.cpp L44 |
脚本中的调用
以下是该对象在客户端界面脚本里的调用点(整理为注释,便于检索):
-- NpcShop:BulkBuyItem ← MessageBox_Self/MessageBox_Self.lua -- Bank:Close ← Bank/Bank.lua -- NpcShop:CloseConfirm ← Shop/Shop.lua -- NpcShop:EnumCallBackItem ← Shop/Shop.lua