一个扩展思路的脚本,装备tips
本帖最后由 996传世-小黑 于 2021-12-28 15:51 编辑一个展示功能的脚本
里面如果缺失素材文件的话,可能是我的客户端和你们客户端不一样
一般来说应该是一样的缺失素材自行随便补充一点就行
<div class="blockcode"><blockquote>
脚本
#IF
RANDOM 1
#SAY
\ \
<技能附加特效一/@技能附加1> <技能附加特效二/@技能附加2>\ \
<装备强化提升/@强化提升> <装备强化降低/@强化降低>\ \
<开孔1/@开孔&1> <开孔2/@开孔&2> <开孔3/@开孔&3> <开孔4/@开孔&4> <开孔5/@开孔&5>\ \
<镶嵌1/@嵌入&1> <镶嵌2/@嵌入&2> <镶嵌3/@嵌入&3> <镶嵌4/@嵌入&4> <镶嵌5/@嵌入&5>\ \
<取出1/@取出&1> <镶嵌2/@取出&2> <镶嵌3/@取出&3> <镶嵌4/@取出&4> <镶嵌5/@取出&5>\ \
<关孔1/@关孔&1> <关孔2/@关孔&2> <关孔3/@关孔&3> <关孔4/@关孔&4> <关孔5/@关孔&5>\ \
<翅膀1/@翅膀1> <翅膀2/@翅膀2>
[@翅膀1]
#IF
LARGE P2 5
#ACT
MOV P2 1
WINGTYPE $STR(P2) 1
BREAK
#ELSEACT
INC P2 1
WINGTYPE $STR(P2) 1
BREAK
[@翅膀2]
#IF
LARGE P2 5
#ACT
MOV P2 1
WINGTYPE $STR(P2) 2
BREAK
#ELSEACT
INC P2 1
WINGTYPE $STR(P2) 2
BREAK
[@关孔]
#IF
SMALL $ITEMINFO[$USEITEMMAKEINDEX(1)].VALUEEX(184) $SCRIPTPARAM(1)
#ACT
UPGRADEUSERITEM $USEITEMMAKEINDEX(1) 183 = $SCRIPTPARAM(1)
GOTO @MAIN
BREAK
#ELSEACT
MESSAGEBOX 该位置还有宝石不能关闭孔位
BREAK
[@取出]
#IF
!SMALL $ITEMINFO[$USEITEMMAKEINDEX(1)].VALUEEX(184) $SCRIPTPARAM(1)
#ACT
UPGRADEUSERITEM $USEITEMMAKEINDEX(1) 184 = $DEC.$SCRIPTPARAM(1).1
GOTO @MAIN
BREAK
#ELSEACT
MESSAGEBOX 该位置并未镶嵌
BREAK
[@嵌入]
#IF
SMALL $ITEMINFO[$USEITEMMAKEINDEX(1)].VALUEEX(184) $SCRIPTPARAM(1)
#ACT
UPGRADEUSERITEM $USEITEMMAKEINDEX(1) 184 = $SCRIPTPARAM(1)
GOTO @MAIN
BREAK
#ELSEACT
MESSAGEBOX 该位置已经镶嵌过来
BREAK
[@开孔]
#IF
RANDOM 1
#ACT
UPGRADEUSERITEM $USEITEMMAKEINDEX(1) 183 = $INC.$SCRIPTPARAM(1).1
GOTO @MAIN
BREAK
[@强化提升]
#IF
SMALL $ITEMINFO[$USEITEMMAKEINDEX(1)].VALUEEX(172) 9
#ACT
UPGRADEUSERITEM $USEITEMMAKEINDEX(1) 172 + 1
UPGRADEUSERITEM $USEITEMMAKEINDEX(1) 179 + 1
BREAK
#ELSEACT
SENDMSG 5 到限制了
GOTO @MAIN
BREAK
[@强化降低]
#IF
!SMALL $ITEMINFO[$USEITEMMAKEINDEX(1)].VALUEEX(172) 1
#ACT
UPGRADEUSERITEM $USEITEMMAKEINDEX(1) 172 - 1
UPGRADEUSERITEM $USEITEMMAKEINDEX(1) 179 - 1
BREAK
#ELSEACT
SENDMSG 5 到限制了
GOTO @MAIN
BREAK
[@技能附加1]
#IF
RANDOM 1
#ACT
UPGRADEUSERITEM $USEITEMMAKEINDEX(1) 176 = $RANDOM(1|54)
UPGRADEUSERITEM $USEITEMMAKEINDEX(1) 177 = 1
UPGRADEUSERITEM $USEITEMMAKEINDEX(1) 178 = $RANDOM(1|20)
BREAK
[@技能附加2]
#IF
RANDOM 1
#ACT
UPGRADEUSERITEM $USEITEMMAKEINDEX(1) 176 = $RANDOM(1|54)
UPGRADEUSERITEM $USEITEMMAKEINDEX(1) 177 = 2
UPGRADEUSERITEM $USEITEMMAKEINDEX(1) 178 = $RANDOM(1|20)
BREAK
Item1TipsCfg.xml
<tip goodsname="176+1" maxwidth="200">
<line>
<col content="$LINE"/>
<col picpackage="3" content="302" blend="0" offx="13" offy="10"/>
</line>
<line>
<col font="FONT_SONGTI" fontsize="12" color="0xFFFFFFFF" flag="0" backcolor="" framecolor="" offx="0" offy="10" content="威力额外提升$ITEMVALUE(178)%%"/>
</line>
</tip>
Item2TipsCfg.xml
<tip goodsname="177+1" maxwidth="200">
<line>
<col picpackage="3" picidx="17074" blend="1" offx="-20" offy="-90"/>
</line>
<line>
<col picpackage="3" picidx="17665" blend="0" offx="35" offy="-62"/>
</line>
<line>
<col font="FONT_SONGTI" fontsize="12" color="0xFFFFFF00" flag="4" backcolor="" framecolor="0xFFFF0000" offx="70" offy="-58" content="忘了这里是一行什么说明了"/>
</line>
<line>
<col content="$LINE"/>
</line>
</tip>
ItemAdd1TipsCfg.xml
<tip goodsname="183+1">
<line>
<col picpackage="3" picidx="17805" blend="0" offx="0" offy="-10"/>
<col picpackage="3" picidx="17805" blend="0" offx="5" offy="-10"/>
<col picpackage="3" picidx="17805" blend="0" offx="5" offy="-10"/>
<col picpackage="3" picidx="17805" blend="0" offx="5" offy="-10"/>
<col picpackage="3" picidx="17805" blend="0" offx="5" offy="-10"/>
</line>
<line>
ItemAdd2TipsCfg.xml
<tip goodsname="184+1" maxwidth="200">
<line>
<col picpackage="16" picidx="1455" blend="0" offx="0" offy="-54"/>
</line>
<line>
<col font="FONT_SONGTI" fontsize="12" color="0xFFFFFF00" flag="4" backcolor="" framecolor="0xFFFF0000" offx="0" offy="-20" content="属性加成:"/>
</line>
<line>
<col font="FONT_SONGTI" fontsize="12" color="0XFFFF80FF" flag="0" framecolor="" content="10级金耀石:" offy="0"/>
<col font="FONT_SONGTI" fontsize="12" color="0XFFFF80FF" flag="0" framecolor="" content="暴击伤害提升10%" offx="2" offy="0"/>
</line>
<line>
<col content="$LINE"/>
<col font="FONT_SONGTI" fontsize="12" color="0XFFC68CFF" flag="0" framecolor="" content="宝石总和10级:" offy="0"/>
<col font="FONT_SONGTI" fontsize="12" color="0XFFFF0000" flag="0" framecolor="" content="攻击附加12点真实伤害" offx="0"/>
</line>
<line>
<col font="FONT_SONGTI" fontsize="12" color="0XFFC68CFF" flag="0" framecolor="" content="宝石总和30级:" offy="0"/>
<col font="FONT_SONGTI" fontsize="12" color="0XFFFF0000" flag="0" framecolor="" content="攻击附加36点真实伤害" offx="0"/>
</line>
<line>
<col font="FONT_SONGTI" fontsize="12" color="0XFFC68CFF" flag="0" framecolor="" content="宝石总和50级:" offy="0"/>
<col font="FONT_SONGTI" fontsize="12" color="0XFFFF0000" flag="0" framecolor="" content="攻击附加72点真实伤害" offx="0"/>
</line>
<line>
<col font="FONT_SONGTI" fontsize="12" color="0XFFC68CFF" flag="0" framecolor="" content="宝石总和70级:" offy="0"/>
<col font="FONT_SONGTI" fontsize="12" color="0XFFFF0000" flag="0" framecolor="" content="攻击附加108点真实伤害" offx="0"/>
</line>
<line>
<col font="FONT_SONGTI" fontsize="12" color="0XFFC68CFF" flag="0" framecolor="" content="宝石总和90级:" offy="0"/>
<col font="FONT_SONGTI" fontsize="12" color="0XFFFF0000" flag="0" framecolor="" content="攻击附加120点真实伤害" offx="0"/>
</line>
</tip>
Explain.xml
<tip goodsname="逍遥无极扇" maxwidth="200">
<line>
<col content="$LINE"/>
</line>
<line>
<col font="FONT_SONGTI" fontsize="12" color="0xFFFF8040" flag="0" backcolor="" framecolor="" offx="0" offy="-10" content=" 传说取上古凤血为引,聚天道气息为灵,引冰封龙脊为骨,冰魄玄蚕之翼为面,打造出了一把无上神兵;据说得者需大气运,大勇气,大智略,最终可得大逍遥,谓之曰:逍遥无极扇"/>
</line>
</tip>
我来稳坐第一楼 fgggggggFFFFFFFFFFFFFF 5435435345345 法啊啊啊啊啊阿 :lol:lol:lol:lol 2222222222222222222222222 33333333333333 哈哈哈哈哈 RE: 一个扩展思路的脚本,装备tips [修改]