Jump to content
  • 0

Misc NPC for design/extra


eremesnyc

Question


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   0
  • Joined:  05/06/13
  • Last Seen:  

Hey guys, I need a npc script that's just gonna say hi or hello or random stuff to players when clicked, (just like uh an extra in movies) it's just to add some design element to a server i'm helping to develop. Any help would be appreciated. Thank you!

Link to comment
Share on other sites

7 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  79
  • Topics Per Day:  0.02
  • Content Count:  327
  • Reputation:   4
  • Joined:  06/22/13
  • Last Seen:  

please somebody share an npc like this ^_^

 

**With some random text's like this:

-Hello (Charname) how are you today?

 

-Hey it's a Nice day to Play (Server Name).

 

-Uuf isn't cold in here?

 

-Wow! many people coming to this town.

 

-Lalala!, i love to sing, Dance~Dance.

 

-Have a nice day (charname)

Link to comment
Share on other sites


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

Try

prontera,150,150,0    script    Sample    100,{
    set .@rand,rand(1,10);
    
    switch(.@rand) {
        case 1:
            mes <1st message>;
            break;
        case 2: 
            mes <2nd message>;
            break;
        ... 
        case 10:
            mes <10th message>;
            break;
        default:
            mes "Invalid choice";
            break;
    }
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  79
  • Topics Per Day:  0.02
  • Content Count:  327
  • Reputation:   4
  • Joined:  06/22/13
  • Last Seen:  

Try

prontera,150,150,0    script    Sample    100,{
    set .@rand,rand(1,10);
    
    switch(.@rand) {
        case 1:
            mes <1st message>;
            break;
        case 2: 
            mes <2nd message>;
            break;
        ... 
        case 10:
            mes <10th message>;
            break;
        default:
            mes "Invalid choice";
            break;
    }
}

hey Patskie can you add in the 1st message the mod to npc automatically recognice char name? like in my example, please :D

Try

prontera,150,150,0    script    Sample    100,{
    set .@rand,rand(1,10);
    
    switch(.@rand) {
        case 1:
            mes <1st message>;
            break;
        case 2: 
            mes <2nd message>;
            break;
        ... 
        case 10:
            mes <10th message>;
            break;
        default:
            mes "Invalid choice";
            break;
    }
}

this npc its not working at all. xD

Link to comment
Share on other sites


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

this npc its not working at all. xD

it was a sample

add your message in each case

    switch(.@rand) {
        case 1:
            mes "Hello "+ strcharinfo(0) +" how are you today?";
            break;
        case 2: 
            mes "Hey it's a Nice day to Play (Server Name)";
            break;

etc..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  79
  • Topics Per Day:  0.02
  • Content Count:  327
  • Reputation:   4
  • Joined:  06/22/13
  • Last Seen:  

this npc its not working at all. xD

it was a sample

add your message in each case

    switch(.@rand) {
        case 1:
            mes "Hello "+ strcharinfo(0) +" how are you today?";
            break;
        case 2: 
            mes "Hey it's a Nice day to Play (Server Name)";
            break;

etc..

 

this is my one, i think some tabs are missing but im not sure, npc does appear but when i click it nothing happen.

prontera,146,165,6	script	Rocker Girl	714,{
    set .@rand,rand(1,10);
    
    switch(.@rand) {
        case 1:
            mes <Hello "+strcharinfo(0)+" how are you today?>;
            break;
        case 2: 
            mes <Hey!! it's a nice day to play Kyojin RO>;
            break;
        case 3: 
            mes <Uff, Isn't cold in here?>;
            break;
        case 4: 
            mes <Wow! Many people coming often to this town>;
            break;
        case 5: 
            mes <In the end, it doesn't even matteerr!, I love Rock N' Roll, Yeah~lmL~Yeah>;
            break;
        case 6: 
            mes <This server should change the name to Kyojin Rock!>;
            break;
        case 7: 
            mes <Did you knew?, this server is based on an anime called Shingeki No Kyojin?>;
            break;
        case 8: 
            mes <Spanish,English,French,Portuguese,Filipino,Japanese, "OMG" is surprising how many languages there are in the world.>;
            break;
        case 9: 
            mes <Did you knew?, when you enter the Kyojin RO mall it feel like you has entered in a world of a different dimension!!>;
            break;
        case 10: 
            mes <Enjoy Playing Kyojin RO>;
            break;
        default:
            mes "Invalid choice";
            break;
    }
}
Edited by eboni001
Link to comment
Share on other sites


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

-     mes <Hey!! it's a nice day to play Kyojin RO>;
+     mes "<Hey!! it's a nice day to play Kyojin RO>";

you must put " " to define a text ingame

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   0
  • Joined:  05/06/13
  • Last Seen:  

Thanks man, worked for me after a few modifcations, Made it just one dialog npc since it's just a design element. Thanks again!

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