This is my first time ask question here, sorry if there is a mistake. I have a script, but it shows an error in the mapserv.bat
[Error]: Script:op_1: argument is not a number (op=C_LNOT)
[Debug]: Data: C_ARG
I have attached the script, Can anyone help me on this? I have tried many many ways, but still can not figure out. I would really appreciate if anyone can help me on this, I think this is the only place that can help me on this... Thanks...
prontera.gat,255,77,3 script 初级道场 734,{
mes "* 尊敬的^ff6040"+strcharinfo(0)+"^000000"+(Sex?"先生":"小姐");
mes "* ^984AAC欢迎您参加初级道场的挑战^000000";
mes "* 总共15关";
mes "* 挑战等级 : "+$@Dc_Level_lv1+"";
mes "* 报名费 : "+$@Dc_In_Zeny_lv1+"z";
next;
menu ">> 参加挑战",-,">> 查看奖励",checkjl,">> 查看场地",changdi;
mes "[初级道场]";
if (Baselevel < $@Dc_Level_lv1)
{
mes "----------------------------";
mes ">> 您的等级不足"+$@Dc_Level_lv1+"级";
mes "----------------------------";
close;
}
if (!getcharid(1) || Zeny<$@Dc_In_Zeny_lv1)
{
mes "----------------------------";
mes ">> 您没有队伍或金钱不足 "+$@Dc_In_Zeny_lv1+" Zeny";
mes "----------------------------";
close;
}
if( getcharid(0) != getpartyleader(getcharid(1),2) )
{
mes "----------------------------";
mes ">> 只有队长才可以报名。";
mes "----------------------------";
close;
}
getpartymember getcharid(1),2;
if($@partymembercount>$@Dc_PeoplET_THROB1)
{
mes "初级道场挑战";
mes "----------------------------";
mes ">> ^C63131你的队伍人数超过了"+$@Dc_PeoplET_THROB1+"人不能报名。^000000";
mes "----------------------------";
close;
}
for(set .@a,0;.@a<$@partymembercount;set .@a,.@a+1)
{
if(!isloggedin($@partymemberaid[.@a]))continue;
if(!attachrid($@partymemberaid[.@a]))continue;
if(#DC_time == 0)continue;
if(#DC_time > gettimetick(2))
{
attachrid(getpartyleader(getcharid(1),1));
next;
mes "队伍中有人尚在CD中";
mes "开启挑战失败";
close;
end;
}
}
for (set @t,1;@t<6;set @t,@t+1)
{
if ($@Dc_timer_lv1[@t]==0 )
{
killmonster "1@g_vs"+@t+".gat","lv1_Dc_Main_"+@t+"::OnKillMob";
set Zeny,Zeny-$@Dc_In_Zeny_lv1;
set $@Dc_Truns_lv1[@t],1;
//set $@Dc_Party_lv1[@t],getcharid(1);
set $@Dc_timer_lv1[@t],$@Dc_Delay_lv1[0];
enablenpc "初级道场管理员#"+@t+"";
initnpctimer "Dc_timer_lv1_"+@t+"";
announce "[ 道场 ] "+getpartyname(getcharid(1)) +" 队伍, 开始挑战初级道场!",15,0xdcdcdc;
warpparty "1@g_vs"+@t+".gat",49,47,getcharid(1);
killmonsterall "1@g_vs"+@t;
getpartymember getcharid(1),2;
for(set .@a,0;.@a<$@partymembercount;set .@a,.@a+1)
{
if(!isloggedin($@partymemberaid[.@a]))continue;
if(!attachrid($@partymemberaid[.@a]))continue;
set #DC_time,gettimetick(2)+3600;
}
if (!sleep2(3000))
end;
mapannounce "1@g_vs"+@t+".gat","[ 道场 ] 请在 "+$@Dc_Delay_lv1[0]+" 分钟内开始比赛,否则将强制退出!",15;
end;
}
}
set @a,0;
for (set @t,1;@t<6;set @t,@t+1)
{
if(getmapusers("1@g_vs"+@t+".gat") != 0)
{
mes "[场地"+@t+"]:已经有人在挑战了!";
set @a,@a+1;
}
else
{
mes "[场地"+@t+"]:没有人在挑战!";
}
}
if(@a == 5)mes "全部场地都有人在挑战了,请稍后再试";
close;
changdi:
for (set @t,1;@t<6;set @t,@t+1)
{
if(getmapusers("1@g_vs"+@t+".gat") != 0)
{
mes "[场地"+@t+"]:已经有人在挑战了!";
}
else
{
mes "[场地"+@t+"]:没有人在挑战!";
}
}
close;
checkjl:
mes "----------------------------";
mes ">> 获得以下物品";
mes "----------------------------";
mes ">> 初级道场礼包 * 1";
mes "----------------------------";
close2;
cutin "",255;
end;
function script Dc_Pay_lv1 {
mes "我是负责发放初级道场奖品的";
next;
menu "我要领"+getarg(0)+"",-;
set @Pay,rand((getarraysize($@Dc_Item_Id_lv1)-1));
getitem $@Dc_Item_Id_lv1[@Pay],$@Dc_Item_Num_lv1[@Pay];
set @DC_zeny,rand($@Dc_Win_Zeny_lv1,$@Dc_Win_Zeny_2v1);
set zeny,zeny+@DC_zeny;
dispbottom "[Roz提示] -本次获取< "+@DC_zeny+" > Z. ";
warp "prontera",157,182;
end;
}
Question
Surefirer
Hi,
This is my first time ask question here, sorry if there is a mistake. I have a script, but it shows an error in the mapserv.bat
[Error]: Script:op_1: argument is not a number (op=C_LNOT)
[Debug]: Data: C_ARG
I have attached the script, Can anyone help me on this? I have tried many many ways, but still can not figure out. I would really appreciate if anyone can help me on this, I think this is the only place that can help me on this... Thanks...
初级道场.txt
Edited by Surefireradding the script
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.