RateMyServer Ragnarok Community

Ragnarok Online => RO Graphic, Coding & Media => Topic started by: MicroPVP on Mar 04, 2017, 04:34 PM

Title: how can i make my npc ?
Post by: MicroPVP 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
Title: Re: how can i make my npc ?
Post by: yC 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
Title: Re: how can i make my npc ?
Post by: ryanjeff on May 05, 2017, 12:23 PM
quick guide coding

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

}
}