Jump to content
  • 0

HELP! Error in script


umsdavid

Question


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   2
  • Joined:  08/28/16
  • Last Seen:  

Hi,

Anyone can help? I have problem in my kafra script. Error messages "Invalid NPC Constant" 'kaf_iz_ac01'. Can Anyone help?

//== AcademyKafra =============================================
iz_ac01,102,36,4        script  Kafra   Employee::kaf_iz_ac01   4_F_KAFRA5,{
       cutin "kafra_05",2;
        mes "[Lady Academy]";
        mes "Hiya...?";
        mes "Welcome, Namaste";
        mes "I'm here to help teleporting you to the training room";
        mes "Are you ready? Let's go...";
        next;
switch(select("Acolytes","Geisha Room")) {
        case 1:
       warp "iz_ac01", 121, 30;
                end;
case 2:
       warp "iz_ac01", 160, 30;
                end;
cutin "",255;
        end;
}

 

Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  924
  • Reputation:   167
  • Joined:  04/05/13
  • Last Seen:  

Change 4_F_KAFRA5 to other npc sprite id.

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

change 4_F_KAFRA5 to 4_F_KAFRA

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   2
  • Joined:  08/28/16
  • Last Seen:  

Thanks for the replies,

Where can i exactly check this sprite id? 

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  140
  • Topics Per Day:  0.03
  • Content Count:  562
  • Reputation:   108
  • Joined:  10/05/12
  • Last Seen:  

1 hour ago, umsdavid said:

Thanks for the replies,

Where can i exactly check this sprite id? 

 

Here

http://nn.ai4rei.net/dev/npclist/?qq=8

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   2
  • Joined:  08/28/16
  • Last Seen:  

thanks iraciz

is there a way i can duplicate this kafra in the map?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  1528
  • Reputation:   233
  • Joined:  08/03/12
  • Last Seen:  

Example to duplicate :

izlude,121,150,6    duplicate(Healer)    Healer#izl    624    

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   2
  • Joined:  08/28/16
  • Last Seen:  

the 624 is for sprite of the npc id?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  1528
  • Reputation:   233
  • Joined:  08/03/12
  • Last Seen:  

Exactly, the ID you can find in http://nn.ai4rei.net/dev/npclist/?q=624&qq=search

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   2
  • Joined:  08/28/16
  • Last Seen:  

it works! ThanX

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