找回密码
 立即注册
查看: 49|回复: 0

[脚本资源] 怎么给传奇服务端添加修炼值兑换功能

[复制链接]

0

威望

8500

元宝

1万

金币

VIP会员

积分
12647
逍遥MIR 发表于 2024-7-11 05:55:44 | 显示全部楼层 |阅读模式
[@main]

你当前修炼值为:<$HUMAN(修炼值)>\
【<修炼值兑换修炼值卷>】 <元宝兑换修炼值卷/@元宝兑换修炼值卷> \ \
 <兑换100修炼值卷/@兑换100修炼值卷>   <兑换500修炼值卷/@兑换500修炼值卷>\
 <兑换1000修炼值卷/@兑换1000修炼值卷>   <兑换5000修炼值卷/@兑换5000修炼值卷>\
 <兑换10000修炼值卷/@兑换10000修炼值卷>  <兑换50000修炼值卷/@兑换50000修炼值卷>\
 <兑换100000修炼值卷/@兑换100000修炼值卷>  <兑换500000修炼值卷/@兑换500000修炼值卷>\
 300元宝可兑换100点修炼值

[@元宝兑换修炼值卷]
你当前修炼值为:<$HUMAN(修炼值)>\
<修炼值兑换修炼值卷/@main> 【<元宝兑换修炼值卷>】 <装备兑换修炼值卷/@装备兑换修炼值卷>\ \
 <兑换100修炼值卷/@兑换100修炼值卷1>   <兑换500修炼值卷/@兑换500修炼值卷1>\
 <兑换1000修炼值卷/@兑换1000修炼值卷1>   <兑换5000修炼值卷/@兑换5000修炼值卷1>\
 <兑换10000修炼值卷/@兑换10000修炼值卷1>  <兑换50000修炼值卷/@兑换50000修炼值卷1>\
 <兑换100000修炼值卷/@兑换100000修炼值卷1>  <兑换500000修炼值卷/@兑换500000修炼值卷1>\
 300元宝可兑换100点修炼值



[@兑换500000修炼值卷1]
#IF
CheckGameGold > 1499999
#ACT
GameGold - 1500000
give 500000修炼值 1
SENDMSG 0  提示:%s成功兑换500000修炼值卷!!!
goto @元宝兑换修炼值卷
#elseact
messagebox 对不起!你元宝不够!

[@兑换100000修炼值卷1]
#IF
CheckGameGold > 299999
#ACT
GameGold - 300000
give 100000修炼值 1
SENDMSG 0  提示:%s成功兑换100000修炼值卷!!!
goto @元宝兑换修炼值卷
#elseact
messagebox 对不起!你元宝不够!

[@兑换50000修炼值卷1]
#IF
CheckGameGold > 149999
#ACT
GameGold - 150000
give 50000修炼值 1
SENDMSG 0  提示:%s成功兑换50000修炼值卷!!!
goto @元宝兑换修炼值卷
#elseact
messagebox 对不起!你元宝不够!!

[@兑换10000修炼值卷1]
#IF
CheckGameGold > 29999
#ACT
GameGold - 30000
give 10000修炼值 1
SENDMSG 0  提示:%s成功兑换10000修炼值卷!!!
goto @元宝兑换修炼值卷
#elseact
messagebox 对不起!你元宝不够!!

[@兑换5000修炼值卷1]
#IF
CheckGameGold > 14999
#ACT
GameGold - 15000
give 5000修炼值 1
SENDMSG 0  提示:%s成功兑换5000修炼值卷!!!
goto @元宝兑换修炼值卷
#elseact
messagebox 对不起!你元宝不够!!

[@兑换1000修炼值卷1]
#IF
CheckGameGold > 2999
#ACT
GameGold - 3000
give 1000修炼值 1
SENDMSG 0  提示:%s成功兑换1000修炼值卷!!!
goto @元宝兑换修炼值卷
#elseact
messagebox 对不起!你元宝不够!!

[@兑换500修炼值卷1]
#IF
CheckGameGold > 1499
#ACT
GameGold - 1500
give 500修炼值 1
SENDMSG 0  提示:%s成功兑换500修炼值卷!!!
goto @元宝兑换修炼值卷
#elseact
messagebox 对不起!你元宝不够!!

[@兑换100修炼值卷1]
#IF
CheckGameGold > 299
#ACT
GameGold - 300
give 100修炼值 1
SENDMSG 0  提示:%s成功兑换100修炼值卷!!!
goto @元宝兑换修炼值卷
#elseact
messagebox 对不起!你元宝不够!!


[@兑换500000修炼值卷]
#IF
CHECKVAR HUMAN 修炼值 > 499999
#ACT
CALCVAR HUMAN 修炼值 - 500000
SAVEVAR HUMAN 修炼值 ..\QuestDiary\修炼值.txt
give 500000修炼值 1
SENDMSG 0  提示:%s成功兑换500000修炼值卷!!!
goto @main
#elseact
messagebox 对不起!你修炼值不够

[@兑换100000修炼值卷]
#IF
CHECKVAR HUMAN 修炼值 > 99999
#ACT
CALCVAR HUMAN 修炼值 - 100000
SAVEVAR HUMAN 修炼值 ..\QuestDiary\修炼值.txt
give 100000修炼值 1
SENDMSG 0  提示:%s成功兑换100000修炼值卷!!!
goto @main
#elseact
messagebox 对不起!你修炼值不够

[@兑换50000修炼值卷]
#IF
CHECKVAR HUMAN 修炼值 > 49999
#ACT
CALCVAR HUMAN 修炼值 - 50000
SAVEVAR HUMAN 修炼值 ..\QuestDiary\修炼值.txt
give 50000修炼值 1
SENDMSG 0  提示:%s成功兑换50000修炼值卷!!!
goto @main
#elseact
messagebox 对不起!你修炼值不够!

[@兑换10000修炼值卷]
#IF
CHECKVAR HUMAN 修炼值 > 9999
#ACT
CALCVAR HUMAN 修炼值 - 10000
SAVEVAR HUMAN 修炼值 ..\QuestDiary\修炼值.txt
give 10000修炼值 1
SENDMSG 0  提示:%s成功兑换10000修炼值卷!!!
goto @main
#elseact
messagebox 对不起!你修炼值不够!

[@兑换5000修炼值卷]
#IF
CHECKVAR HUMAN 修炼值 > 4999
#ACT
CALCVAR HUMAN 修炼值 - 5000
SAVEVAR HUMAN 修炼值 ..\QuestDiary\修炼值.txt
give 5000修炼值 1
SENDMSG 0  提示:%s成功兑换5000修炼值卷!!!
goto @main
#elseact
messagebox 对不起!你修炼值不够!

[@兑换1000修炼值卷]
#IF
CHECKVAR HUMAN 修炼值 > 999
#ACT
CALCVAR HUMAN 修炼值 - 1000
SAVEVAR HUMAN 修炼值 ..\QuestDiary\修炼值.txt
give 1000修炼值 1
SENDMSG 0  提示:%s成功兑换1000修炼值卷!!!
goto @main
#elseact
messagebox 对不起!你修炼值不够!

[@兑换500修炼值卷]
#IF
CHECKVAR HUMAN 修炼值 > 499
#ACT
CALCVAR HUMAN 修炼值 - 500
SAVEVAR HUMAN 修炼值 ..\QuestDiary\修炼值.txt
give 500修炼值 1
SENDMSG 0  提示:%s成功兑换500修炼值卷!!!
goto @main
#elseact
messagebox 对不起!你修炼值不够!

[@兑换100修炼值卷]
#IF
CHECKVAR HUMAN 修炼值 > 99
#ACT
CALCVAR HUMAN 修炼值 - 100
SAVEVAR HUMAN 修炼值 ..\QuestDiary\修炼值.txt
give 100修炼值 1
SENDMSG 0  提示:%s成功兑换100修炼值卷!!!
goto @main
#elseact
messagebox 对不起!你修炼值不够!
本楼点评(0) 收起
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|小黑屋|逍遥版本库

GMT+8, 2024-9-20 05:32 , Processed in 0.046209 second(s), 31 queries .

Powered by XyBbk! X3.5

Copyright © 2001-2023, XyBbk Cloud.

快速回复 返回顶部 返回列表