The forums will be going offline for an extended maintenance period at 1400hrs GMT on 19th June 2025. The number of hours for this downtime is intentionally not advertised due to the nature of these upgrades.
×
- 0
[Error]: script:op_2: invalid data for operator C_EQ
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
eloscar23
Hello, I need help with this script, I can not figure it out
[Error]: script:op_2: invalid data for operator C_EQ
[Debug]: Data: number value=0
[Debug]: Data: string value="qwqwqwq"
[Debug]: Source (NPC): muertesmvp (invisible/not on a map)
[Debug]: Source (NPC): muertesmvp is located in: npc/custom/ranking.txt
prontera,155,155,6 script Ranking 119,{
set .@rango1, "";
set .@muertes1, "0";
set .@rango2, "";
set .@muertes2, "0";
mes "Que te gustaria hacer?";
switch(select("CheckTop:Leave")){
case 1:
mes "El rango 1 es "+$rango1$+" con "+$muertes1+" realizadas.";
mes "El rango 2 es "+$rango2$+" con "+$muertes2+" realizadas.";
close;
break;
case 2:
mes "pasa buen dia";
close;
} //end if
end;
}
- script muertesmvp -1,{
OnNPCKillEvent:
if(killedrid == 1002){
set matado, matado + 1;
dispbottom "Recordatorio "+strcharinfo(0)+" obtenido MvP.";
callfunc ("rangos",matado,strcharinfo(0));
}
end;
}
function script rangos {
set @muertes, getarg(0);
set @nombre$, getarg(1);
if(@muertes > .@muertes1 ){
if(.@nombre == strcharinfo(0)){
//si soy el numero 1, solo cuento
set .@rango1, @nombre$;
set .@muertes1, @muertes;
} else {
//guardo el anterior 1
set .@auxn1, .@rango1;
set .@auxm1, .@muertes1;
// me vuelvo el 1
set .@rango1, @nombre$;
set .@muertes1, @muertes;
//volvemos el 1 el 2
set .@auxn1, .@rango2;
set .@auxm2, .@muertes2;
} //end iff de rango 1
} else if(.@muertes > .@muertes2){
if(.@nombre == strcharinfo(0)){
set .@rango2, @nombre$;
set .@muertes2, @muertes;
} else {
set .@muertes2, @muertes;
set .@rango2, @nombre$;
} // termina el de adentro end 2
} // end if del if else
}
Edited by eloscar23Link to comment
Share on other sites
5 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.