合成物品

自行车学习日记 自行车学习日记 34 人阅读 | 0 人回复 | 2025-04-22

[@main]
#act 
newreadcsv ..\questdiary\Boss查询\cfg_合成.csv
mov S$装备页面 
inc S$装备页面 <Button|ax=0|x=224|y=154|color=255|nimg=public/1900000652.png|size=18|text=<$cfg_合成(1_1)>|link=@合成装备#装备参数=1>
inc S$装备页面 <Button|ax=0|x=224|y=223|color=255|nimg=public/1900000652.png|size=18|text=<$cfg_合成(2_1)>|link=@合成装备#装备参数=2>
inc S$装备页面 <Button|ax=0|x=224|y=292|color=255|nimg=public/1900000652.png|size=18|text=<$cfg_合成(3_1)>|link=@合成装备#装备参数=3>
inc S$装备页面 <Button|ax=0|x=224|y=361|color=255|nimg=public/1900000652.png|size=18|text=<$cfg_合成(4_1)>|link=@合成装备#装备参数=4>
inc S$装备页面 <Button|ax=0|x=224|y=430|color=255|nimg=public/1900000652.png|size=18|text=<$cfg_合成(5_1)>|link=@合成装备#装备参数=5>
inc S$装备页面 <Button|ax=0|x=224|y=499|color=255|nimg=public/1900000652.png|size=18|text=<$cfg_合成(6_1)>|link=@合成装备#装备参数=6>
#say
<Img|x=205.0|y=113.0|children={1,2,3,4,5,6}|img=public_win32/1900000610.png|bg=1|esc=1|move=0|loadDelay=1|show=0|reset=1>
<Layout|x=838.0|y=106.0|width=80|height=80|link=@exit>
<Button|x=847.0|y=114|nimg=public/1900000510.png|pimg=public/1900000511.png|link=@exit>
<$str(S$装备页面)>
[@合成装备]
#if
#act
mov S$合成页面
mov S$合成装备idx
mov S$装备 <$cfg_合成(<$str(S$装备参数)>_1)>
getvalidstr <$cfg_合成(<$str(S$装备参数)>_3)> # S$材料3 S$材料3数量
getvalidstr <$cfg_合成(<$str(S$装备参数)>_4)> # S$材料4 S$材料4数量
getdbitemfieldvalue <$str(S$材料3)> idx N$合成装备idx3
getdbitemfieldvalue <$str(S$材料4)> idx N$合成装备idx4
getdbitemfieldvalue <$cfg_合成(<$str(S$装备参数)>_1)> idx N$合成装备idx1
getdbitemfieldvalue <$cfg_合成(<$str(S$装备参数)>_6)> idx N$合成装备idx6
INC S$合成页面 <ItemShow|x=530.0|y=187.0|width=70|height=70|itemid=<$str(N$合成装备idx1)>|itemcount=1|showtips=1|bgtype=1>
INC S$合成页面 <ItemShow|x=385.0|y=343.0|width=70|height=70|itemid=<$str(N$合成装备idx3)>|itemcount=<$str(S$材料3数量)>|showtips=1|bgtype=1>
INC S$合成页面 <ItemShow|x=530.0|y=343.0|width=70|height=70|itemid=<$str(N$合成装备idx4)>|itemcount=<$str(S$材料4数量)>|showtips=1|bgtype=1>
INC S$合成页面 <ItemShow|x=679.0|y=343.0|width=70|height=70|itemid=<$str(N$合成装备idx6)>|itemcount=<$cfg_合成(<$str(S$装备参数)>_7)>|showtips=1|bgtype=1>
INC S$合成页面 <Img|x=607.0|y=256.0|width=100|rotate=45|img=public/1900000702.png|esc=0>
INC S$合成页面 <Img|x=511.0|y=261.0|width=100|rotate=135|img=public/1900000702.png|esc=0>
INC S$合成页面 <Img|x=563.0|y=245.0|width=100|rotate=90|img=public/1900000702.png|esc=0>
; sendmsg 6 <$str(S$材料1)>///<$str(N$合成装备idx3)>///<$str(N$合成装备idx4)>
#if 
equal <$cfg_合成(<$str(S$装备参数)>_2)> 3
#act 
#say
<Img|x=205.0|y=113.0|children={1,2,3,4,5,6}|img=public_win32/1900000610.png|bg=1|esc=1|move=0|loadDelay=1|show=0|reset=1>
<Layout|x=838.0|y=106.0|width=80|height=80|link=@exit>
<Button|x=847.0|y=114|nimg=public/1900000510.png|pimg=public/1900000511.png|link=@exit>
<Button|x=519.0|y=489.0|nimg=public/1900000611.png|color=255|size=18|text=合成|link=@合成1>
<$str(S$装备页面)>
<$str(S$合成页面)>
#elseact 
#if 
equal <$cfg_合成(<$str(S$装备参数)>_2)> 4
#act 
mov S$合成页面2 
getvalidstr <$cfg_合成(<$str(S$装备参数)>_5)> # S$材料5 S$材料5数量
getdbitemfieldvalue <$str(S$材料5)> idx N$合成装备idx5
sendmsg 6 <$str(N$合成装备idx5)>///<$str(S$材料5)>
INC S$合成页面2 <ItemShow|x=536.0|y=188.0|width=70|height=70|itemid=<$str(N$合成装备idx1)>|itemcount=1|showtips=1|bgtype=1>
INC S$合成页面2 <ItemShow|x=356|y=357.0|width=70|height=70|itemid=<$str(N$合成装备idx3)>|itemcount=<$str(S$材料3数量)>||showtips=1|bgtype=1>
INC S$合成页面2 <ItemShow|x=456|y=357.0|width=70|height=70|itemid=<$str(N$合成装备idx4)>|itemcount=<$str(S$材料4数量)>|showtips=1|bgtype=1>
INC S$合成页面2 <ItemShow|x=556.0|y=357.0|width=70|height=70|itemid=<$str(N$合成装备idx5)>|itemcount=<$str(S$材料5数量)>|showtips=1|bgtype=1>
INC S$合成页面2 <ItemShow|x=656.0|y=357.0|width=70|height=70|itemid=<$str(N$合成装备idx6)>|itemcount=<$cfg_合成(<$str(S$装备参数)>_7)>|showtips=1|bgtype=1>
INC S$合成页面2 <Img|x=587.9|y=256.0|width=100|rotate=75|img=public/1900000702.png|esc=0>
INC S$合成页面2 <Img|x=489.8|y=256.8|width=100|rotate=135|img=public/1900000702.png|esc=0>
INC S$合成页面2 <Img|x=541.8|y=260.2|width=100|rotate=115|img=public/1900000702.png|esc=0>
INC S$合成页面2 <Img|x=619.8|y=257.2|width=100|rotate=45|img=public/1900000702.png|esc=0>
#say
<Img|x=205.0|y=113.0|children={1,2,3,4,5,6}|img=public_win32/1900000610.png|bg=1|esc=1|move=0|loadDelay=1|show=0|reset=1>
<Layout|x=838.0|y=106.0|width=80|height=80|link=@exit>
<Button|x=847.0|y=114|nimg=public/1900000510.png|pimg=public/1900000511.png|link=@exit>
<Button|x=519.0|y=489.0|nimg=public/1900000611.png|color=255|size=18|text=合成|link=@合成2>
<$str(S$装备页面)>
<$str(S$合成页面2)>
[@合成1]
#act 
sendmsg 6 <$cfg_合成(<$str(S$装备参数)>_6)>//<$cfg_合成(<$str(S$装备参数)>_7)>//<$str(S$装备)>//<$str(S$材料4)>//<$str(S$材料4数量)>//<$str(S$材料3)>//<$str(S$材料3数量)>
#if 
checkitem  <$str(S$材料3)> <$str(S$材料3数量)>
checkitem  <$str(S$材料4)> <$str(S$材料4数量)>
checkmoney <$cfg_合成(<$str(S$装备参数)>_6)> ? <$cfg_合成(<$str(S$装备参数)>_7)>
#act 
take <$str(S$材料3)> <$str(S$材料3数量)>
take <$str(S$材料4)> <$str(S$材料4数量)>
money <$cfg_合成(<$str(S$装备参数)>_6)> - <$cfg_合成(<$str(S$装备参数)>_7)>
goto @随机
break
#elseact 
sendmsg 9 您所需物品数量不足!!!
[@合成2]
#if 
checkitem  <$str(S$材料3)> <$str(S$材料3数量)>
checkitem  <$str(S$材料4)> <$str(S$材料4数量)>
checkitem  <$str(S$材料5)> <$str(S$材料5数量)>
checkmoney <$cfg_合成(<$str(S$装备参数)>_6)> ? <$cfg_合成(<$str(S$装备参数)>_7)>
#act 
take <$str(S$材料3)> <$str(S$材料3数量)>
take <$str(S$材料4)> <$str(S$材料4数量)>
take <$str(S$材料5)> <$str(S$材料5数量)>
money <$cfg_合成(<$str(S$装备参数)>_6)> - <$cfg_合成(<$str(S$装备参数)>_7)>
goto @随机
break
#elseact 
sendmsg 9 您所需物品数量不足!!!
[@随机]
#if 
randomex <$cfg_合成(<$str(S$装备参数)>_8)> 100
#act 
give <$str(S$装备)> 1
sendmsg 9 合成成功!!!
#elseact 
sendmsg 9 合成失败!!!
分享到:
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则