Jump to content

Question

Posted (edited)

hello i need help on my first langtype npc ..

 

the idea,just a example of my npc:

prontera,150,150,4    script    Lannguage       774,{

callfunc "Lang",0; // getarg(0)
}

function    script    Lang   {
if(#langtype == 0){ // English by default
mes "Hello";
}
if(#langtype == 8){ //Portuguese Language
mes "Olá";
}
close;
}

well the example works fine on mes , but i have a problem to put a menu on this ..if used callfunc or  only put a menu on npc nothing happen ;\, .. help with this...

Edited by I Cant Stop x3

2 answers to this question

Recommended Posts

Posted

hello i need help on my first langtype npc ..

 

the idea,just a example of my npc:

prontera,150,150,4    script    Lannguage       774,{

callfunc "Lang",0; // getarg(0)
}

function    script    Lang   {
if(#langtype == 0){ // English by default
mes "Hello";
}
if(#langtype == 8){ //Portuguese Language
mes "Olá";
}
close;
}

well the example works fine on mes , but i have a problem to put a menu on this ..if used callfunc or  only put a menu on npc nothing happen ;\, .. help with this...

 

function    script    Lang   {
if(getarg(0) == 0){ // English by default
mes "Hello";
}
if(getarg(0) == 8){ //Portuguese Language
mes "Olá";
}
close;
}

Like this?

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...