This script I made can't make it load, and the server doesn't tell me where the problem is, so I need your help, please...
this is the error in the mapserver:
(20:49:14) Error: Loading NPC file: npc/custom/bgcash.txteon.txttls.txtxtxttxtt
(20:49:14) Debug: this npc:
(20:49:14) Debug: other npc:
payon,203,214,5 script Medallas 99,{
set .@name$,"[Agente de Intercambio]";
mes .@name$;
mes "Hola!";
mes "Que puedo hacer por ti?";
menu "Medallas a Cash Points",-,"Cash Points a Medallas",cashbadges,"Nada...",nothing;
mes .@name$;
mes "Que Medalla te gustaria cambiar?";
menu "Medallas Battle",battle,"Medallas Valor",valor,"Medallas Bravery",bravery,"Todas las que tengo",allofthem;
battle:
mes .@name$;
mes "Te puedo dar 15 Cash Points por cada medalla Battle que me des.";
mes "Te gustaria seguir?";
next;
menu "Si",-,"No...",nothing;
if (countitem(7773) < 1) {
mes "No tienes Medallas Battle.";
close;
}
else {
next;
mes .@name$;
mes "Porfavor dime cuantas medallas quieres cambiar";
mes "Ingresa 0 para cancelar.";
input .@input;
if (.@input == 0){
close;
}
else if (.@input > countitem(7773)){
mes "No tienes tantas medallas.";
close;
}
else if {
mes .@name$;
mes "Queres cambiar "+.@input+" medallas por "+.@input*15+" Cash Points?";
next;
menu "Esta bien",-,"No, cambie mi opinion",nothing;
mes .@name$;
mes "Procesando transferencia..";
sleep2 500;
set #CASHPOINTS,#CASHPOINTS+.@input*15;
delitem 7773,.@input;
sleep2 500;
mes "Transaccion completada";
dispbottom "Ahora tienes "+#CASHPOINTS+" Cash Points.";
close;
}
}
valor:
mes .@name$;
mes "Te puedo dar 10 Cash Points por cada Medalla Valor que me des.";
mes "Te gustaria seguir?";
next;
menu "Si",-,"No...",nothing;
if (countitem(7829) < 1) {
mes "No tienes Medallas Valor.";
close;
}
else {
next;
mes .@name$;
mes "Porfavor dime cuantas medallas quieres cambiar";
mes "Ingresa 0 para cancelar.";
input .@input;
if (.@input == 0){
close;
}
else if (.@input > countitem(7829)){
mes "No tienes tantas medallas.";
close;
}
else if {
mes .@name$;
mes "Quieres cambiar "+.@input+" medallas por "+.@input*10+" Cash Points?";
next;
menu "Esta bien",-,"No, cambie mi opinion",nothing;
mes .@name$;
mes "Procesando transferencia..";
sleep2 500;
set #CASHPOINTS,#CASHPOINTS+.@input*10;
delitem 7829,.@input;
sleep2 500;
mes "Transaccion completada.";
dispbottom "Ahora tienes "+#CASHPOINTS+" Cash Points.";
close;
}
}
bravery:
mes .@name$;
mes "Te puedo dar 10 cash points por cada Bravery Badge que me des.";
mes "Te gustaria seguir?";
next;
menu "Si",-,"No...",nothing;
if (countitem(7828) < 1) {
mes "No tienes ninguna Medalla Bravery.";
close;
}
else {
next;
mes .@name$;
mes "Porfavor dime cuantas medallas quieres cambiar";
mes "Ingresa 0 para cancelar.";
input .@input;
if (.@input == 0){
close;
}
else if (.@input > countitem(7828)){
mes "No tienes tantas medallas.";
close;
}
else if {
mes .@name$;
mes "Quieres cambiar "+.@input+" medallas por "+.@input*10+" Cash Points?";
next;
menu "Esta bien",-,"No, cambie mi opinion",nothing;
mes .@name$;
mes "Procesando Transferencia..";
sleep2 500;
set #CASHPOINTS,#CASHPOINTS+.@input*10;
delitem 7828,.@input;
sleep2 500;
mes "Transaccion completada.";
dispbottom "Ahora tienes "+#CASHPOINTS+" Cash Points.";
close;
}
}
allofthem:
if ( (countitem(7773) == 0) && (countitem(7829) == 0) && (countitem(7828) == 0) ){
mes "No tienes ninguna medalla...";
close;
end;
}
else if ( (countitem(7773) >= 1) && (countitem(7829) >= 1) && (countitem(7828) >= 1) ){
set .@allbattle,countitem(7773);
set .@allvalor,countitem(7829);
set .@allbravery,countitem(7828);
mes "Quieres cambiar "+countitem(7773)+" Battle, "+countitem(7829)+" Valor y "+countitem(7828)+" Bravery?";
menu "Si!!",yesall1,"No!!",nothing;
yesall1:
mes .@name$;
mes "Procesando transferencia..";
sleep2 500;
set #CASHPOINTS,#CASHPOINTS+.@allbattle*15+.@allvalor*10+.@allbravery*10;
delitem 7773,.@allbattle;
delitem 7829,.@allvalor;
delitem 7828,.@allbravery;
sleep2 500;
mes "Transaccion completada";
dispbottom "Ahora tienes "+#CASHPOINTS+" Cash Points.";
close;
}
else if ( (countitem(7773) >= 1) && (countitem(7829) >= 1) && (countitem(7828) == 0) ){
set .@allbattle,countitem(7773);
set .@allvalor,countitem(7829);
mes "Quieres cambiar "+countitem(7773)+" Battle y "+countitem(7829)+" Valor?";
menu "Si!!",yesall2,"No!!",nothing;
yesall2:
mes .@name$;
mes "Procesando transferencia..";
sleep2 500;
set #CASHPOINTS,#CASHPOINTS+.@allbattle*15+.@allvalor*10;
delitem 7773,.@allbattle;
delitem 7829,.@allvalor;
sleep2 500;
mes "Transaccion completada";
dispbottom "Ahora tienes "+#CASHPOINTS+" Cash Points.";
close;
}
else if ( (countitem(7773) >= 1) && (countitem(7829) == 0) && (countitem(7828) >= 1) ){
set .@allbattle,countitem(7773);
set .@allbravery,countitem(7828);
mes "Quieres cambiar "+countitem(7773)+" Battle y "+countitem(7828)+" Bravery?";
menu "Si!!",yesall3,"No!!",nothing;
yesall3:
mes .@name$;
mes "Procesando transferencia..";
sleep2 500;
set #CASHPOINTS,#CASHPOINTS+.@allbattle*15+.@allbravery*10;
delitem 7773,.@allbattle;
delitem 7828,.@allbravery;
sleep2 500;
mes "Transaccion completada";
dispbottom "Ahora tienes "+#CASHPOINTS+" Cash Points.";
close;
}
else if ( (countitem(7773) == 0) && (countitem(7829) >= 1) && (countitem(7828) >= 1) ){
set .@allbravery,countitem(7828);
set .@allvalor,countitem(7829);
mes "Quieres cambiar "+countitem(7828)+" Bravery y "+countitem(7829)+" Valor?";
menu "Si!!",yesall4,"No!!",nothing;
yesall4:
mes .@name$;
mes "Procesando transferencia..";
sleep2 500;
set #CASHPOINTS,#CASHPOINTS+.@allbravery*10+.@allvalor*10;
delitem 7828,.@allbravery;
delitem 7829,.@allvalor;
sleep2 500;
mes "Transaccion completada";
dispbottom "Ahora tienes "+#CASHPOINTS+" Cash Points.";
close;
}
else if ( (countitem(7773) >= 1) && (countitem(7829) == 0) && (countitem(7828) == 0) ){
set .@allbattle,countitem(7773);
mes "Quieres cambiar "+countitem(7773)+" Battle?";
menu "Si!!",yesall5,"No!!",nothing;
yesall5:
mes .@name$;
mes "Procesando transferencia..";
sleep2 500;
set #CASHPOINTS,#CASHPOINTS+.@allbattle*15;
delitem 7773,.@allbattle;
sleep2 500;
mes "Transaccion completada";
dispbottom "Ahora tienes "+#CASHPOINTS+" Cash Points.";
close;
}
else if ( (countitem(7773) == 0) && (countitem(7829) >= 1) && (countitem(7828) == 0){
set .@allvalor,countitem(7829);
mes "Quieres cambiar "+countitem(7829)+" Valor?";
menu "Si!!",yesall6,"No!!",nothing;
yesall6:
mes .@name$;
mes "Procesando transferencia..";
sleep2 500;
set #CASHPOINTS,#CASHPOINTS+.@allvalor*10;
delitem 7829,.@allvalor;
sleep2 500;
mes "Transaccion completada";
dispbottom "Ahora tienes "+#CASHPOINTS+" Cash Points.";
close;
}
else if ( (countitem(7773) == 0) && (countitem(7829) == 0) && (countitem(7828) >= 1){
set .@allbravery,countitem(7828);
mes "Quieres cambiar "+countitem(7828)+" Bravery?";
menu "Si!!",yesall7,"No!!",nothing;
yesall7:
mes .@name$;
mes "Procesando transferencia..";
sleep2 500;
set #CASHPOINTS,#CASHPOINTS+.@allbravery*10;
delitem 7828,.@allbravery;
sleep2 500;
mes "Transaccion completada";
dispbottom "Ahora tienes "+#CASHPOINTS+" Cash Points.";
close;
}
cashbadges:
mes .@name$;
mes "Que medallas quieres comprar por cash?";
menu "Medallas Battle",battlecash,"Medallas Valor",valorcash,"Medallas Bravery",braverycash;
battlecash:
mes "Todavia no tengo...";
close;
end;
valorcash:
mes "Todavia no tengo...";
close;
end;
braverycash:
mes "Todavia no tengo...";
close;
end;
nothing:
mes "Okay, adios";
close;
end;
}
Question
XpelonchasX
This script I made can't make it load, and the server doesn't tell me where the problem is, so I need your help, please...
this is the error in the mapserver:
Thank you in advance, and sorry for my english...
Edited by XpelonchasXLink to comment
Share on other sites
4 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.