UID15987
阅读权限110
威望 点
积分29124
注册时间2013-8-31
最后登录1970-1-1
听众
收听
升级
  100%
|
精炼脚本如下
物品callfun调用
function script jinglian {
mes "马上为您全身精炼+5";
mes "您每周有3次精炼机会";
mes "本周精炼次数为^FF0000" +a+ "^000000次";
mes "您准备好了么?";
next;
switch(select("开始","退出"))
{
case 1:
if (a < 3){
set @max,5;
set @part,1;
set @part_max,11;
set @ngp,1;
set @ygp,1;
set @ngpmx,11;
set @ygpmx,11;
L_Yes:
if (@ngp == @ngpmx) goto L_ERROR;
if (@ygp == @ygpmx) goto L_ERROR;
if (@part == @part_max) goto L_CLOSE;
if ( getequipisequiped(@part) > 0) goto L_Yes2;
set @ngp,@ngp+1;
set @part,@part+1;
goto L_Yes;
L_Yes2:
if ( getequiprefinerycnt(@part) < @max) goto L_Yes3;
set @ygp,@ygp+1;
set @part,@part+1;
goto L_Yes;
L_Yes3:
if ( getequipisenableref(@part) > 0 ) goto L_Yes4;
set @part,@part+1;
goto L_Yes;
L_Yes4:
if ( getequiprefinerycnt(@part) >= @max) end;
goto L_Yes5;
L_Yes5:
successrefitem @part;
goto L_Yes;
L_ERROR:
mes " 精炼失败";
mes " 本次精炼未计入本周使用次数";
mes " 请确认您装备是否正确";
mes " 再见!";
close;
L_CLOSE:
set a,a+1;
mes "全身精炼成功";
mes "祝您游戏愉快";
close;
end;
}
mes "^FF0000[初级会员菜单]^000000";
mes "尊贵的^0088FF初级会员^000000";
mes "您本周精炼次数已经达到上限";
mes "请下周再来吧!";
close;
}
刷新脚本,不知道这样为什么不行,反正无效果脚本不会去改变变量a的值
- script shuaxin -1,{
end;
OnWeekTime002359:
query_sql "updata `global_reg_value` set `a`>'0' where `set a,0`";
}
也试过另外的脚本
- script shuaxin -1,{
end;
OnWeekTime002359:
set a,0;
}
求助正确的该怎么写 |
温馨提示:
1. 本站模拟器源于网络,经 99Max.mE 二次开发,仅供个人学习娱乐使用,切勿用于商业用途,否则后果自负!
2. 如需更好体验游戏内容,请前往官方游戏!不具备合法的运营模式,都是强盗,请勿擅自搭建私服!
3. 如本站内容有侵犯您的权益,请发送信息至QQ:372607220 或 EMAIL:372607220@qq.com ,我们会及时删除。
|