Skip to content

General_Shop_creation

Akkarinage edited this page Nov 5, 2016 · 1 revision

title: General Shop creation permalink: /General_Shop_creation/

Shops are very similar to Basic Scripting, although since there is only one line to find errors on, it's recommended to understand basic scripts first. There are five parts to any shop script, tab separated to handle spaces in the name

prontera,153,194,4shopCard Seller Uno93,4001:-1,4002:-1,4003:10575,4004:-1 -      A       --B-     - C-     -     D      -    -E- - F_1 - - F_2 - -   F_3  - - F_4 -

A Location! This is the map and coordinates (".gat" is not necessary)

B Direction. Face your Shop any direction from this chart:

[1][8][7] [2][0][6] [3][4][5]

C NPC Type, shop in this case

D NPC Name, same as other NPCs

E NPC sprite number, a list for which can be found in External Links

F Items being sold! Notice there are no curly brackets like normal scripts. Don't add them, it will error out and skip your shop

F#: Item format is :,,...

The limit for items per shop is 100. You can add more, it will just stop at 100

The prices are a bit odd: -1 means 'read from item_db' and any other amount is an absolute price.

If you use absolute prices you open yourself to money exploits, it's best to just make sure all your item_db (SQL or TXT) items are priced!

Shop Duplicating

Guess what! It's exactly the same as NPC duplicating! Except for the NPC type and primary contents

-shopCard Seller#01::cardtwin93,4001:-1,...

And to run a duplicate, identical

prontera,154,193,3duplicate(cardtwin)Card Seller Deus93 prontera,150,193,5duplicate(cardtwin)Card Seller Deus93

External Links

Reference Manuals for scriping commands

  • : Original documentation

Sprite lists

Color Charts

Support, Request and Release

  • Scripting Support on forums
    1. scripting on irc.deltaanime.net : Dedicated channel for scripters. Come here to get or give semi-fast support or just for fun.
    1. rathena on irc.rathena.net : Main rAthena channel.

Category:Scripting

Home

Getting Started

Configure your Server

Customization

Setup the Client

Misc Databases

Third-Party Software

Clone this wiki locally