Jump to content
  • 0

Just won't load


XpelonchasX

Question


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  6
  • Reputation:   0
  • Joined:  04/18/12
  • Last Seen:  

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;
}

Thank you in advance, and sorry for my english...

Edited by XpelonchasX
Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  268
  • Reputation:   27
  • Joined:  12/06/11
  • Last Seen:  

Try changing your file type to .txt

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  351
  • Reputation:   52
  • Joined:  11/15/11
  • Last Seen:  

check your npc/{somename}_athena.conf please, looks like you input some crazy ass name

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  6
  • Reputation:   0
  • Joined:  04/18/12
  • Last Seen:  

nothing of these worked, already tried...

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

your File name look like this ?

bgcash.txt

if yes..then your npc path should be like this

npc:  npc/custom/bgcash.txt

if still cant...printscreen the error and show us

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...