how can i make my npc ?

Started by MicroPVP, Mar 04, 2017, 04:34 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MicroPVP

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

yC

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

ryanjeff

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

}
}
Develop all small idea and upgrade it

Follow me on rAthena Open-Source Emulator
Poring King