Jump to content
  • 0

mult lang npc


I Cant Stop x3

Question


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   0
  • Joined:  10/31/12
  • Last Seen:  

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
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

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?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1131
  • Joined:  05/27/12
  • Last Seen:  

You might find it easiest (for short scripts, at least) to just write the entire script in one language, then copy and translate it.

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