Jump to content
  • 0

Headgear to Costume converter


Scofield

Question


  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.03
  • Content Count:  265
  • Reputation:   11
  • Joined:  01/11/13
  • Last Seen:  

This NPC does not even appear, I wonder the error

 

 


// -------------------------------------------------------------------------------
// Script Name : Headgear to Costume converter >> Costume to Headgear converter
// -------------------------------------------------------------------------------
// Description :
// - Allows a user to convert the equipped headgear (on Top, Mid or Low) into a
//   costume item. It will remove any card and refine of the Item.
// - Allows a user to restore the equipped costume headgear (on Top, Mid or Low)
     into its original form. It will not return any card or refine of the item.
// -------------------------------------------------------------------------------
quiz_00,60,27 script Converter 51,{
 
mes "Neste npc você poderá converte seus Equipamentos para cabeça em itens visuais.";
next;
mes "Por favor, selecione o que você deseja converter.";
mes "Lembre-se, cartas, atributos dos  equipamentos e refinamentos serão perdidos...";
next;
setarray .@Position$[1],"Cima","Meio","Baixo";
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 "Você não está utilizando nada lá...";
close;
}
 
mes "Você deseja transforma este item " + getitemname(getequipid(.@Part)) + " em visual?";
next;
if( select("Sim, continuar com o processo.:Não, Desculpe-me.") == 2 )
{
mes "Precisa de algum tempo para pensar sobre isso, hein?";
mes "Tudo bem, eu posso entender.";
close;
}
 
costume .@Part; // Convert the Headgear
mes "Processo finalizado com sucesso, faça um bom uso do seu equipamento visual ^^.";
close;
end;
}

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


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

based on your script above in 1st post.

quiz_00,60,27 script Converter 51,{

ur npc header is wrong, npc direction is missing.

 

should be like this.

quiz_00,60,27,4    script    Converter    51,{
  • Upvote 1
Link to comment
Share on other sites


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

check your map-server for error ??

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  1479
  • Reputation:   172
  • Joined:  12/14/11
  • Last Seen:  

even the script header is wrong.

a right script header is:

map,x,y,r<tab>script<tab>NPCName<tab>spriteNum,{

e.g:

protera,150,164,3	script	Test	909,{

see the "spaces" there. those are tabs

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.03
  • Content Count:  265
  • Reputation:   11
  • Joined:  01/11/13
  • Last Seen:  

resolvido

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