mud_sanc 板


LINE

同场加映: 1.组队状态:顺便请教一下红字部份直接写在if判断的方法。        桃色字自行依角色中文名的长度去调整。 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- <triggers> <trigger enabled="y" keep_evaluating="y" match="(Lv.\d+|\[队长\])(.*) HP:(\**※|\**○|\**☆|\**★)(\**) SP:(\**※|\** ○|\**☆|\**★)(\**) PP:(\**※|\**○|\**☆|\**★)(\**)" omit_from_output="y" regexp="y" send_to="12" sequence="100" > <send> for k,v in pairs(GetStyleInfo (GetLinesInBufferCount())) do if string.find('%2',v.text) then _,j= string.find('%2',v.text) if string.len('%2')-j == 0 then ColourTell (RGBColourToName (v.textcolour), RGBColourToName (v.backcolour), string.format("%%-"..30-(GetLineInfo (GetLinesInBufferCount(),2)).."s",v.text)) else ColourTell (RGBColourToName (v.textcolour), RGBColourToName (v.backcolour), v.text) end --j else ColourTell (RGBColourToName (v.textcolour), RGBColourToName (v.backcolour), v.text) end --find end -- for Note ("")</send> </trigger> </triggers> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 排版前: *两仪 wWw拔刀队*战队中共有 10 个成员。 [队长]两仪  HP:********** SP:********** PP:********** Lv.120衣狐 HP:********** SP:**********※ PP:**********※ Lv.120齐格 HP:********** SP:**********※ PP:**********※ Lv.120 HP:********** SP:**********※ PP:**********※ Lv.120卡莲.奥尔黛西亚 HP:********** SP:********** PP:********** Lv.120乙橘槙绘 HP:********** SP:**********※ PP:**********※ Lv.120雷提雅.雅雷提雅 HP:********** SP:**********※ PP:**********※ Lv.120羿云身上的爱困无尾熊 HP:********** SP:**********※ PP:**********※ Lv.120紫苑亚特拉希亚 HP:********** SP:**********※ PP:**********※ Lv.120洁克蒂.安 HP:********** SP:**********※ PP:**********※ 排版後: *两仪 wWw拔刀队*战队中共有 10 个成员。 [队长]两仪  HP:********** SP:**********☆ PP:*********※* Lv.120衣狐 HP:********** SP:**********※ PP:**********※ Lv.120齐格 HP:********** SP:**********※ PP:**********※ Lv.120 HP:********** SP:**********※ PP:**********※ Lv.120卡莲.奥尔黛西亚 HP:********** SP:********** PP:********** Lv.120乙橘槙绘 HP:********** SP:**********※ PP:**********※ Lv.120雷提雅.雅雷提雅 HP:********** SP:**********※ PP:**********※ Lv.120羿云身上的爱困无尾熊 HP:********** SP:**********※ PP:**********※ Lv.120紫苑亚特拉希亚 HP:********** SP:**********※ PP:**********※ Lv.120洁克蒂.安 HP:********** SP:**********※ PP:**********※ =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 2.公会技能表,有三条:   a.下指令list时,会打开触发b和c,至结尾会关闭b和c。 b.不能学或未学的技能显示重排。 c.已经学会的技能显示编排。 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- <triggers> <trigger enabled="y" group="TypeFix" match="^(你是第.+你能学的技能如下(:)|你还有.+点的学习点数可供锻练用(!))$" name="GuildSkTypeControl" regexp="y" send_to="12" sequence="100" > <send>if "%2" == ":" then SetTriggerOption ("GuildSkList", "enabled", "y") SetTriggerOption ("GuildSkList2", "enabled", "y") elseif "%3" == "!" then SetTriggerOption ("GuildSkList", "enabled", "n") SetTriggerOption ("GuildSkList2", "enabled", "n") end--if</send> </trigger> <trigger enabled="y" keep_evaluating="y" match="^(\S+\([a-z0-9 -_]+\)) (<要\d+级\S+能学唷!>|<主公会\S+能学喔>)$" omit_from_output="y" name="GuildSkList2" regexp="y" send_to="12" sequence="100" > <send>for k,v in pairs(GetStyleInfo (GetLinesInBufferCount())) do if string.find(v.text,'<') then text2 = string.sub(v.text,string.find(v.text,'<'),-1) text1 = string.gsub(v.text,text2,"") ColourTell (RGBColourToName (v.textcolour), RGBColourToName (v.backcolour), string.format("%%-"..28-v.column.."s",text1)..text2) else ColourTell (RGBColourToName (v.textcolour), RGBColourToName (v.backcolour), v.text) end --if end -- for Note ("")</send> </trigger> <trigger enabled="y" keep_evaluating="y" match="^.+\(.+\) 第.+\/.+级.*int.+\(.+\)$" omit_from_output="y" name="GuildSkList1" regexp="y" send_to="12" sequence="100" > <send>for k,v in pairs(GetStyleInfo (GetLinesInBufferCount())) do if string.find(v.text,'第') then text2 = '第 ' text1 = string.sub(v.text,1,-3) ColourTell (RGBColourToName (v.textcolour), RGBColourToName (v.backcolour), string.format("%%-"..28-v.column.."s",text1)..text2) elseif string.find(v.text,'级') then ColourTell (RGBColourToName (v.textcolour), RGBColourToName (v.backcolour), ' 级'..string.format("%%12s",string.sub(v.text,3,-1))) elseif string.find(v.text,'%d+') then ColourTell (RGBColourToName (v.textcolour), RGBColourToName (v.backcolour), string.format("%%4s",v.text)) else ColourTell (RGBColourToName (v.textcolour), RGBColourToName (v.backcolour), v.text) end --if end -- for Note ("")</send> </trigger> </triggers> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 排版前: 你是第 16 级的剑士(slasher)你能学的技能如下: ------------------------------------------------------------ 技能名称 训练费用 学习点数 ------------------------------------------------------------ 剑士之心(slasher heart) 第900/384级 350 int (2) 基本剑法(sword) 第9900/384级2000 int (182) (rainbow slash) 第9900/240级5000 int (182) 身体平衡(body control) 第1000/240级 550 int (4) 剑诀(swordmaster) 第2000/50级2100 int (24) 四时剑法(4-season slash) 第2000/50级2100 int (24) 舞凤诀(phoenix-recipe) <要21级剑士一-能学唷!> 潜能激发(talent-arouse) <要22级剑士一-能学唷!> 阿邦剑法(avan slash) <要23级剑士一-能学唷!> 独孤九剑(nine-sword) <要24级剑士一-能学唷!> 灵力武器(spiriten) <要25级剑士一-能学唷!> 大!剑!技!(crack slash) <主公会剑士一-能学喔> ----------------------------------------------------------- 你还有 37589541 的存款跟 3001 点的学习点数可供锻练用! 排版後: 你是第 16 级的剑士(slasher)你能学的技能如下: ------------------------------------------------------------ 技能名称 训练费用 学习点数 ------------------------------------------------------------ 剑士之心(slasher heart) 第 900/ 384 级 350 int ( 2) 基本剑法(sword) 第 9900/ 384 级 2000 int ( 182) (rainbow slash) 第 9900/ 240 级 5000 int ( 182) 身体平衡(body control) 第 1000/ 240 级 550 int ( 4) 剑诀(swordmaster) 第 2000/ 50 级 2100 int ( 24) 四时剑法(4-season slash) 第 2000/ 50 级 2100 int ( 24) 舞凤诀(phoenix-recipe) <要21级剑士一-能学唷!> 潜能激发(talent-arouse) <要22级剑士一-能学唷!> 阿邦剑法(avan slash) <要23级剑士一-能学唷!> 独孤九剑(nine-sword) <要24级剑士一-能学唷!> 灵力武器(spiriten) <要25级剑士一-能学唷!> 大!剑!技!(crack slash) <主公会剑士一-能学喔> ----------------------------------------------------------- 你还有 37589541 的存款跟 3001 点的学习点数可供锻练用! =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 3.天空城家里物品列表,有三条:   a.回家会打开b和c,回recall处则关闭b和c。 b.表头栏位移动。其实只要一行ColourNote取代原行就可以了!(avert) c.物品栏位调整,其实也就把数量栏位对齐,如果物品名称很长,还是会偏移。    这条难度仅次於技能表而以。 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- <triggers> <trigger enabled="y" group="TypeFix" match="^(你....了自己位於天空城的家(\.)|这里是罗德斯镇的巨型高塔(,)是人们与 神最为接近的地方,每天)$" name="HomeItemTypeControl" regexp="y" send_to="12" sequence="100" > <send> if "%2" == "." then SetTriggerOption ("HomeItemOne", "enabled", "y") SetTriggerOption ("HomeItemList", "enabled", "y") elseif "%3" == "," then SetTriggerOption ("HomeItemOne", "enabled", "n") SetTriggerOption ("HomeItemList", "enabled", "n") end--if </send> </trigger> <trigger enabled="y" keep_evaluating="y" match="^(序号 lv 物..名称) (数量)$" omit_from_output="y" name="HomeItemOne" regexp="y" send_to="12" sequence="100" > <send>for k,v in pairs(GetStyleInfo (GetLinesInBufferCount())) do ColourTell (RGBColourToName (v.textcolour), RGBColourToName (v.backcolour), "%1"..string.format("%%"..70-string.len("%1").."s","%2")) end --for Note("")</send> </trigger> <trigger enabled="y" keep_evaluating="y" match="^( +\d+\. +\d+ )(.*) +(\(\d\))$" omit_from_output="y" name="HomeItemList" regexp="y" send_to="12" sequence="100" > <send>for k,v in pairs(GetStyleInfo (GetLinesInBufferCount())) do if string.find(v.text,"%(%d%)") and string.len(Trim(v.text)) == 3 then ColourTell (RGBColourToName (v.textcolour), RGBColourToName (v.backcolour), string.format("%%"..70-GetLineInfo (GetLinesInBufferCount(),2).."s",v.text)) elseif string.find(v.text,"%(%d%)") and string.len(Trim(v.text)) &gt; 3 then text2 = Trim(string.sub(v.text,-3)) text1 = Trim(string.sub(v.text,1,-4)) ColourTell (RGBColourToName (v.textcolour), RGBColourToName (v.backcolour), text1..string.format("%%"..70-GetLineInfo (GetLinesInBufferCount(),2)-string.len(text1).."s",text2)) else ColourTell (RGBColourToName (v.textcolour), RGBColourToName (v.backcolour), v.text) end --if end -- for Note ("")</send> </trigger> </triggers> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 排版前: 序号 lv 物品名称 数量 1. 120 (The Warth Of Heaven) (1) 2. 110 (Foxy Fork) (1) 3. 120 誓约愿(Vow Wish) (1) 4. 125 石(Stone God Ring) (1) 5. 200 幻月(Moonsword) (1) 6. 120 月神月神微笑(Smile Of Artemis) (1) 7. 1 中秋月饼(Moon Cake) (6) 8. 125 漩涡(Magic Swirl) (1) 9. 110 (Jade Finger) (1) 10. 120 回雪抄(Flutter Keith Gyrate Snowy) (1) 11. 120 欧西里斯天空盔(Slifer the Sky Helmet) (1) 12. 110 巫婆帽(Wizer hat) (1) 13. 180 (Purple Feather) (2) 14. 130 腰带(Star Belt) (1) 15. 150 (Diamond of Glory) (1) 16. 130 雪夜(Snow-Night Bracelet) (1) 17. 110 艾丽丝围裙(Alice's Apron) (1) 18. 115 左戒(Leftring Of Galaxy) (1) 19. 120 (Fall Sun Bracelet) (1) 20. 1 (Votive Card) (1) 21. 130 痞子记忆(Ruffian's Pants) (1) 排版後: 序号 lv 物品名称 数量 1. 120 (The Warth Of Heaven) (1) 2. 110 (Foxy Fork) (1) 3. 120 誓约愿(Vow Wish) (1) 4. 125 石(Stone God Ring) (1) 5. 200 幻月(Moonsword) (1) 6. 120 月神月神微笑(Smile Of Artemis) (1) 7. 1 中秋月饼(Moon Cake) (6) 8. 125 漩涡(Magic Swirl) (1) 9. 110 (Jade Finger) (1) 10. 120 回雪抄(Flutter Keith Gyrate Snowy) (1) 11. 120 欧西里斯天空盔(Slifer the Sky Helmet) (1) 12. 110 巫婆帽(Wizer hat) (1) 13. 180 (Purple Feather) (2) 14. 130 腰带(Star Belt) (1) 15. 150 (Diamond of Glory) (1) 16. 130 雪夜(Snow-Night Bracelet) (1) 17. 110 艾丽丝围裙(Alice's Apron) (1) 18. 115 左戒(Leftring Of Galaxy) (1) 19. 120 (Fall Sun Bracelet) (1) 20. 1 (Votive Card) (1) 21. 130 痞子记忆(Ruffian's Pants) (1) =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 注:在if判断式常会看到"&gt;"及"&lt;",这是当从MushClient里复制机码或汇出   出Plugin的时候,将"<"及">"转换出来的代码,因为在xml里,"<"与">"用来 做标签宣告,所以位阶非常高,如果直接用在机码里做比大小,会直接当做标   签符号来用,然後就一直说有bug... --



※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 220.132.196.45
1F:→ laechan :这个 wiz 可协助排为上述模式但需用到 [24;XXH 06/10 07:47
2F:→ laechan :所以我倾向不使用,玩家可透过hmml的方式自行为显示做 06/10 07:47
3F:→ laechan :排版,这样一般玩家下list时可正常看到东西,mush玩家 06/10 07:48
4F:→ laechan :下list时可看到自己想要的排版格式 06/10 07:48
5F:→ laechan :而如果有难搞的显示时就说一下我们再配合修改 06/10 07:48







like.gif 您可能会有兴趣的文章
icon.png[问题/行为] 猫晚上进房间会不会有憋尿问题
icon.pngRe: [闲聊] 选了错误的女孩成为魔法少女 XDDDDDDDDDD
icon.png[正妹] 瑞典 一张
icon.png[心得] EMS高领长版毛衣.墨小楼MC1002
icon.png[分享] 丹龙隔热纸GE55+33+22
icon.png[问题] 清洗洗衣机
icon.png[寻物] 窗台下的空间
icon.png[闲聊] 双极の女神1 木魔爵
icon.png[售车] 新竹 1997 march 1297cc 白色 四门
icon.png[讨论] 能从照片感受到摄影者心情吗
icon.png[狂贺] 贺贺贺贺 贺!岛村卯月!总选举NO.1
icon.png[难过] 羡慕白皮肤的女生
icon.png阅读文章
icon.png[黑特]
icon.png[问题] SBK S1安装於安全帽位置
icon.png[分享] 旧woo100绝版开箱!!
icon.pngRe: [无言] 关於小包卫生纸
icon.png[开箱] E5-2683V3 RX480Strix 快睿C1 简单测试
icon.png[心得] 苍の海贼龙 地狱 执行者16PT
icon.png[售车] 1999年Virage iO 1.8EXi
icon.png[心得] 挑战33 LV10 狮子座pt solo
icon.png[闲聊] 手把手教你不被桶之新手主购教学
icon.png[分享] Civic Type R 量产版官方照无预警流出
icon.png[售车] Golf 4 2.0 银色 自排
icon.png[出售] Graco提篮汽座(有底座)2000元诚可议
icon.png[问题] 请问补牙材质掉了还能再补吗?(台中半年内
icon.png[问题] 44th 单曲 生写竟然都给重复的啊啊!
icon.png[心得] 华南红卡/icash 核卡
icon.png[问题] 拔牙矫正这样正常吗
icon.png[赠送] 老莫高业 初业 102年版
icon.png[情报] 三大行动支付 本季掀战火
icon.png[宝宝] 博客来Amos水蜡笔5/1特价五折
icon.pngRe: [心得] 新鲜人一些面试分享
icon.png[心得] 苍の海贼龙 地狱 麒麟25PT
icon.pngRe: [闲聊] (君の名は。雷慎入) 君名二创漫画翻译
icon.pngRe: [闲聊] OGN中场影片:失踪人口局 (英文字幕)
icon.png[问题] 台湾大哥大4G讯号差
icon.png[出售] [全国]全新千寻侘草LED灯, 水草

请输入看板名称,例如:Tech_Job站内搜寻

TOP