Jump to content

Recommended Posts

Posted (edited)

Simple Warper NPC

This is just a simple script that I coded in a matter of 2 days wherein players can type the name of the map (eg. prontera, ra_san01, /etc) that they want to warp to.

It also comes with a last warp system so that players won't have to type the same map name over and over again. The npc is placed in Prontera only. It's up to you whether you want to add new duplicates.

Special thanks to AnnieRuru for giving helpful advices.

Enjoy everyone. :)

Suggestions to improve the script are encouraged!

http://pastebin.com/XXNt13cy

Edited by Valiente
Posted

I highly suggest setting all your arrays as NPC variables OnInit so they don't load every time a player wants to warp. I'd also suggest removing the special payment cases, or at least make a note of it in your description.

While I can see what you were attempting with your spacing, it's still much more difficult to read than scripts with standard indentation. :3

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...