Jump to content
  • 0

npc script shows errors after updating to rev 17692


Lord Ganja

Question


  • Group:  Members
  • Topic Count:  141
  • Topics Per Day:  0.03
  • Content Count:  444
  • Reputation:   22
  • Joined:  06/18/12
  • Last Seen:  

After I updated my trunk to the latest rev.. My npc scripts starts showing errors..

 

 

menu error:

[Error]:  Loading NPC file: npc/mynpc/quests/lvl2_wings/ifrit_wing.txt
script error on npc/mynpc/quests/lvl2_wings/ifrit_wing.txt line 34
    need '('
    31 :        if($@iw_quest != 1) {
    32 :                mes @npcname$;
    33 :                mes "What do you want from me?!";
*   34 :                menu "Tell me about Wing Transformation.",wingtransform,
"Transform my "+getitemname(.1stWingID)+" to "+getitemname(.2ndWingID)+"",transf
orm','"Nothing sir!",notnow;
    35 :                end;

other error:

[Error]:  Loading NPC file: npc/mynpc/warps/gold_mine.txt
script error on npc/mynpc/warps/gold_mine.txt line 28
    parse_simpleexpr: unmatched ')'
    23 :                        mes @npcname$;
    24 :                        mes "Warping fee costs 100,000z.";
    25 :                        mes "Do you still want to be warped?";
    26 :                        next;
    27 :                        if(select("Yes:No")&2) { mes @npcname$; mes
"Alright, thanks anyways!"; close; }
*   28 :                                if (petstat '('PET_CLASS)) {
    29 :                                        mes @npcname$;
    30 :                                        mes "Pets are not allowed!";
    31 :                                        close;
    32 :                                        }

Anyone knows why and how to fix this? Thanks in advance! /no1

 

 

Edited by Lord Ganja
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

"Transform my "+getitemname(.1stWingID)+" to "+getitemname(.2ndWingID)+"",transform','"Nothing sir!",notnow;

transform command is now implemented. Use another word for your label.

if (petstat '('PET_CLASS)) {

petstat doesn't exist anymore. Use getpetinfo

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  141
  • Topics Per Day:  0.03
  • Content Count:  444
  • Reputation:   22
  • Joined:  06/18/12
  • Last Seen:  

"Transform my "+getitemname(.1stWingID)+" to "+getitemname(.2ndWingID)+"",transform','"Nothing sir!",notnow;

transform command is now implemented. Use another word for your label.

if (petstat '('PET_CLASS)) {

petstat doesn't exist anymore. Use getpetinfo

 

 

 

Thanks for the reply capuche. Anyway, could you give me alternative for this script using the getpetinfo?

if (petstat (PET_CLASS)) {
mes @npcname$;
mes "Pets are not allowed!";
close;
}

EDIT:

Oh. Nvm! Got it! Thanks Capuche!

Edited by Lord Ganja
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...