Jump to content

Script: Costume Item


exchisu

Recommended Posts


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  60
  • Reputation:   1
  • Joined:  12/12/13
  • Last Seen:  

Hola a todos, me presento soy Fernando, desde Chile.

 

E estado buscando durante toda la tarde y no e llegado a ningún resultado concreto y bueno.

 

El Error:

 

 

[Error]:  Loading NPC file: npc/custom/costume.txt

script error on npc/custom/costume.txt line 45
    parse_line: expect command, missing function name or calling undeclared f
tion
    40 :                                mes "[Clown]";
    41 :                                mes "Need some time to think about it
uh?";
    42 :                                mes "Alright, I can understand.";
    43 :                                close;
    44 :                        }
*   45 :                        'c'ostume .@Part, // Convert the Headgear
    46 :                        mes "[Clown]";
    47 :                        mes "Done, enjoy your costume headgear.";
    48 :                        close;
    49 :        case 2:
    50 :                        next;

 

 

El script costume item es el tipico que todos conocemos que te identificara el Hat que traes puesto, si es que esta dentro de un listado interno obviamente, en donde te dará la opción de Hacerlo CUSTOME, la pestañita de Equipo custome en donde se vera tu Hat costume y no el que traerás puesto en verdad.

 

xwfqPr6.png

 

todas hacían referencia a: http://rathena.org/board/topic/82370-costume-npc-and-costumeitem/

 

 

 

en donde puse el Script y me lanzo un error, leí los post y el mismo error tenia un tipo, y bueno nadie respondio.

 

si alguien sabe, tiene, podría facilitar ayuda ? o su script ? 

 

 

PD: ahí sale un diff... no leí como se integra oh que se hace con eso :S 

 

De ante mano me despido, Gracias

Edited by exchisu
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  60
  • Reputation:   1
  • Joined:  12/12/13
  • Last Seen:  

English pls

 

is this the Spanish support ?  /oops

 

what ever,

 

Resumed:

 

i wanna add a script, who convert the normal headgear into "Costume Headgear"  i was looking foor the next guide http://rathena.org/board/topic/82370-costume-npc-and-costumeitem/ 

 

i add the costume.txt to my server and nothing but the next error appear:

 

 

[Error]:  Loading NPC file: npc/custom/costume.txt

script error on npc/custom/costume.txt line 45
    parse_line: expect command, missing function name or calling undeclared f
tion
    40 :                                mes "[Clown]";
    41 :                                mes "Need some time to think about it
uh?";
    42 :                                mes "Alright, I can understand.";
    43 :                                close;
    44 :                        }
*   45 :                        'c'ostume .@Part, // Convert the Headgear
    46 :                        mes "[Clown]";
    47 :                        mes "Done, enjoy your costume headgear.";
    48 :                        close;
    49 :        case 2:
    50 :                        next;

 

well... ah! in the original topic, (mentioned up there) are two attached items, i dunno what can i do with the .Diff ?? i just add costume.txt like a ordinary script and i have the error.

 

 

Attached Files

 

  •  
Edited by exchisu
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  1
  • Reputation:   0
  • Joined:  10/04/14
  • Last Seen:  

 'c'ostume .@Part, // Convert the Headgear

Si ese es el error, es porque estas cerrado la línea con una "," en lugar de con ";".

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  60
  • Reputation:   1
  • Joined:  12/12/13
  • Last Seen:  

 'c'ostume .@Part, // Convert the Headgear

Si ese es el error, es porque estas cerrado la línea con una "," en lugar de con ";".

 

no fue creado por mi, fue creado por Zephyrus creo lel...

 

Error:

 

lA9RrfG.png

 

 

Y en este otro que encontré dentro de los comentarios acá en rathena...lanza este error:

[Error]:  Loading NPC file: npc/custom/Eclipse/costume.txt
script error on npc/custom/Eclipse/costume.txt line 11
    parse_simpleexpr: unmatched ')'
     6 : {
     7 :
     8 :        set .@PRECIO , 500;
     9 :
    10 :        mes name$; mes "";
*   11 :        if( isPremium'(') != 1 ) {
    12 :                mes "This is a premium account system";
    13 :                close;
    14 :        }
    15 :        mes "Precio: " + .@PRECIO + " Cash C/U";
    16 :

Edited by exchisu
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

I dont understand. but here please relay on this and apply it manually.

 

http://rathena.org/board/topic/82370-costume-npc-and-costumeitem/?p=272111

 

I tested it on the latest revision.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  60
  • Reputation:   1
  • Joined:  12/12/13
  • Last Seen:  

I dont understand. but here please relay on this and apply it manually.

 

http://rathena.org/board/topic/82370-costume-npc-and-costumeitem/?p=272111

 

I tested it on the latest revision.

 

a guy post the same problem what i have bro...  THIS:

 

lA9RrfG.png

 

and where can i add this..  Costume_System_v1.diff

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.02
  • Content Count:  207
  • Reputation:   16
  • Joined:  12/19/13
  • Last Seen:  

Fernando intenta con esto ;)
Yo lo tengo que pida 10 Valor Badge + 5.000.000 millones de Zeny

Tu puedes editar esa parte como también el mensaje que te dice ;)

itemmall,194,72,4	script	Custome	864,{
	mes "[^FFA500Custome^000000]";
	mes "¡Hola! ^0000FF" + strcharinfo(0) + "^000000.";
	mes "Yo puedo convertir cualquiera de tus Headgear en Custome items.";
	next;
	mes "[^FFA500Custome^000000]";
	mes "Selecciona que item quieres convertir";
	mes "^FF0000Advertencia:^000000 Los bonus, refine y cartas serán removidos.";
	mes "^FF0000Advertencia:^000000 Si no sabes lo que es pregunta a un GM o revisa información en el foro.";
	next;

	setarray .@Position$[1],"Top","Mid","Low";
	setarray .@Position[1],     1,    9,   10;

	set .@Menu$,"";
	for( set .@i, 1; .@i < 4; set .@i, .@i + 1 )
	{
		if( getequipisequiped(.@Position[.@i]) )
			set .@Menu$, .@Menu$ + .@Position$[.@i] + "-" + "[" + getequipname(.@Position[.@i]) + "]";

		set .@Menu$, .@Menu$ + ":";
	}

	set .@Part, .@Position[ select(.@Menu$) ];
	if( !getequipisequiped(.@Part) )
	{
		mes "[^FFA500Custome^000000]";
		mes "No estás vistiendo nada";
		close;
	}
	
	mes "[^FFA500Custome^000000]";
	mes "¿Quieres convertir " + getitemname(getequipid(.@Part)) + " en custome?";
	next;
	if( select("Sí, por favor:No, lo siento.") == 2 )
	{
		mes "[^FFA500Custome^000000]";
		mes "Regresa cuando necesites de mis servicios.";
		close;
	}

	mes "[^FFA500Custome^000000]";
	mes "Para poder convertir " + getitemname(getequipid(.@Part)) + " necesitas estas cosas.";
	mes "10 Valor Badge";
	mes "5.000.000 millones de Zeny";
	next;
	mes "[^FFA500Custome^000000]";
	mes "¿Tienes lo que se necesita?";
	next;
	if( select("Sí, lo tengo:No") == 2 )
	{
		mes "[^FFA500Custome^000000]";
		mes "Regresa cuando tengas lo que te pedí.";
		close;
	}
	if(countitem(7829) < 10 || Zeny < 5000000)
	{
	mes "[^FFA500Custome^000000]";
	mes "Regresa cuando tengas los items.";
	close;
	}
	else {
	delitem 7829, 10;
	set Zeny, Zeny - 5000000;
	costume .@Part; // Convert the Headgear
	mes "[^FFA500Custome^000000]";
	mes "Listo, disfrutalo.";
	close;
	}

	OnInit:
	waitingroom "Custome",0;
	end;
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  60
  • Reputation:   1
  • Joined:  12/12/13
  • Last Seen:  

mismo error :( !

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.02
  • Content Count:  207
  • Reputation:   16
  • Joined:  12/19/13
  • Last Seen:  

El problema es que no usas eamod esos comandos no te correrán con solo rathena

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  60
  • Reputation:   1
  • Joined:  12/12/13
  • Last Seen:  

pero ahi colocan ese diff pero nose que hacer con el

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.01
  • Content Count:  72
  • Reputation:   3
  • Joined:  03/09/14
  • Last Seen:  

tengo el npc disguise por ejemplo puede convertir cualquier hat en costume manda imbox si te interesa hehe

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

 

I dont understand. but here please relay on this and apply it manually.

 

http://rathena.org/board/topic/82370-costume-npc-and-costumeitem/?p=272111

 

I tested it on the latest revision.

 

a guy post the same problem what i have bro...  THIS:

 

lA9RrfG.png

 

and where can i add this..  Costume_System_v1.diff

 

 

It means that you need to add/change something on the source. so the script will work properly

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.02
  • Content Count:  207
  • Reputation:   16
  • Joined:  12/19/13
  • Last Seen:  

pero ahi colocan ese diff pero nose que hacer con el

El diff es para agregar comandos al src

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  60
  • Reputation:   1
  • Joined:  12/12/13
  • Last Seen:  

 

pero ahi colocan ese diff pero nose que hacer con el

El diff es para agregar comandos al src

 

 

pero como lo uso xD!!

Link to comment
Share on other sites

  • 4 years later...

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  22
  • Reputation:   0
  • Joined:  08/11/19
  • Last Seen:  

pudiste solucionarlo?

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  832
  • Reputation:   317
  • Joined:  02/11/19
  • Last Seen:  

On 8/16/2019 at 11:31 PM, darkmejor said:

pudiste solucionarlo?

Lo que debía hacer primero es aplicar el diff y luego el npc para convertir items a costumes.

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
Reply to this topic...

×   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...