RMS Home | Guide Writing | Test Server | New Servers | Latest Reviews

Author Topic: how can i make my npc ?  (Read 850 times)

0 Members and 1 Guest are viewing this topic.

Offline MicroPVP

how can i make my npc ?
« on: Mar 04, 2017, 04:34 PM »
hello

im newbie for server own how can i make my npc ?

so for example my server have custom more item but i want make 1 npc and put in all for player get make quest for it or buy it with zenny

Advertisement

Offline yC

Re: how can i make my npc ?
« Reply #1 on: Mar 04, 2017, 06:19 PM »
This is how you add an npc https://github.com/rathena/rathena/wiki/Adding-a-Script

Before that, you have to script the NPC to do what you want it to do be it giving out quests or give out items.  Everything in the wiki will lead you the way if you dig around.

Hint: https://github.com/rathena/rathena/wiki/scripting

Offline ryanjeff

Re: how can i make my npc ?
« Reply #2 on: May 05, 2017, 12:23 PM »
quick guide coding

Code: [Select]
mapname,x,y{tab}script{tab}NPCNAME{tab}NPCSpriteID,{

 mes "[ Developer ]";
 mes "Welcome to server what would you like to do";
switch(select("Show me your booty:Exit")){ // to create a menu
case1:   // case for menu where condition selected
     mes"My Booty is big"; // to create a conversation
    close;
case2:[/size]
  close;  // to close the conversation

}
}
Develop all small idea and upgrade it

Follow me on rAthena Open-Source Emulator
Poring King