LuaQuick框架(客户端)

996传奇引擎三端lua快速开发


cstring

<p>[TOC]</p> <h3>分割字符串</h3> <pre><code>cstring.splitStr(str)</code></pre> <h3>字符串转物品数组</h3> <pre><code>cstring.toItemData(str)</code></pre> <h3>转属性对象 字符串格式 3^10|4^20#3^10|4^20#3^10|4^20   #分割职业</h3> <pre><code>cstring.toAttrData(array)</code></pre> <h3>转属性表对象</h3> <pre><code>cstring.toAttrObj(data)</code></pre> <h3>array to {r = array[1],g = array[2],b = array[3]}</h3> <pre><code>cstring.toColor(array)</code></pre> <h3>转二维数组,str格式: 3^10|4^20</h3> <pre><code>cstring.toAttr(str)</code></pre> <h3>转二维数组,str格式: 3#10|4#20</h3> <pre><code>cstring.toAttrEx(str)</code></pre> <h3>装备属性转二位数组</h3> <pre><code>cstring.toItemAttr(str,type)</code></pre> <pre><code>        str格式: 3#1#3000|3#2#3000|3#3#60|3#4#60|3#5#60|3#6#60|3#9#130|3#10#130         类型1         返回值格式:         {             [1] = {                 [1] = 属性ID,                 [2] = 属性值,             },             [2] = {                 [1] = 属性ID,                 [2] = 属性值,             },         }         类型2         返回值格式:         {             [属性ID] = 属性值,             [属性ID] = 属性值,         }</code></pre> <h3>拆分装备ITEMPAEAM1字段</h3> <pre><code>cstring.toParam(str)</code></pre>

页面列表

ITEM_HTML