Jump to content
  • 0

Any basic tutorials out there? Teleport NPC.


Hamburglin

Question


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  8
  • Reputation:   0
  • Joined:  07/30/17
  • Last Seen:  

Hi. I'm new to rathena and want to start with some basic customization on my server. First project I want to do is to clean up pront and make it how I want. First piece of that is making a teleporter NPC. Can anyone explain what I need to do to completely implement this? If not, can you guide me to a tutorial or a place I can read and learn? I have perl and python experience.

 

I kind of assumed such an NPC would be built in. Now I'm also wondering what is or isn't in rathena vanilla.

 

Thanks!

Edited by Hamburglin
Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 1

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1678
  • Reputation:   704
  • Joined:  12/21/14
  • Last Seen:  

rAthena\npc\scripts_custom.conf

open it and you will find there npcs

search for //npc: npc/custom/warper.txt

remove the // from the start

npc: npc/custom/warper.txt

and if you wanna add any npc just add the path in this file and it would be added to the server

inside the game type @reloadscript to reload the npc files and it will show inside the game

  • Love 1
Link to comment
Share on other sites

  • 1

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1678
  • Reputation:   704
  • Joined:  12/21/14
  • Last Seen:  

go to this path

rAthena\npc\custom >>(all not official NPCs you will find them here)

you will find warper.txt

see how it work and make your own script

there is no real way to learn how to make scripts

if you know in development it will be easier for you

but also if you test and see other scripts you will get to it

  • Love 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  8
  • Reputation:   0
  • Joined:  07/30/17
  • Last Seen:  

29 minutes ago, sader1992 said:

go to this path

rAthena\npc\custom >>(all not official NPCs you will find them here)

you will find warper.txt

see how it work and make your own script

there is no real way to learn how to make scripts

if you know in development it will be easier for you

but also if you test and see other scripts you will get to it

Great, thank you! How do I actually... place items on maps, like the warper?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  8
  • Reputation:   0
  • Joined:  07/30/17
  • Last Seen:  

12 hours ago, sader1992 said:

rAthena\npc\scripts_custom.conf

open it and you will find there npcs

search for //npc: npc/custom/warper.txt

remove the // from the start

npc: npc/custom/warper.txt

and if you wanna add any npc just add the path in this file and it would be added to the server

inside the game type @reloadscript to reload the npc files and it will show inside the game

I'll give this a look after work, but is there a process I need to go through to actually place the npc somewhere in pront?

 

What about removing npcs from pront?

Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1678
  • Reputation:   704
  • Joined:  12/21/14
  • Last Seen:  

you just find the npc line in .conf files and put // before the line or remove the line

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  8
  • Reputation:   0
  • Joined:  07/30/17
  • Last Seen:  

6 hours ago, sader1992 said:

you just find the npc line in .conf files and put // before the line or remove the line

Oh, so there's no way to place the npc where I want it?

Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1678
  • Reputation:   704
  • Joined:  12/21/14
  • Last Seen:  

you can just cut the line and paste it in one of the .conf files inside the npc folder

Edited by sader1992
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  8
  • Reputation:   0
  • Joined:  07/30/17
  • Last Seen:  

3 hours ago, sader1992 said:

you can just cut the line and paste it in one of the .conf files inside the npc folder

Ok thank you for all the help. I've got the warper in my server now. However, is there any way I can place the warper to stand somewhere else?

Nvm, I see at the bottom of the npc scripts is where they will stand.

Edited by Hamburglin
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  76
  • Topics Per Day:  0.02
  • Content Count:  276
  • Reputation:   7
  • Joined:  08/11/12
  • Last Seen:  

You could also try checking out rAthena/doc/sample 

 

For a few npc samples which are pretty simple to understand from there. Quite a few examples are there and you can use that to mix and match around and go crazy from there

Additionally under the doc, you can find the script_commands.txt which has every script command from there. 

Edited by ToiletMaster
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...