Jump to content
  • 0

[Guide] How to make your own shop script


Keim

Question


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  221
  • Reputation:   12
  • Joined:  12/18/11
  • Last Seen:  

How to make your own shop script

by Keim

1) Open notepad or any other text editor.

2) Write the location you want your NPC to be. For example:

prontera,150,150,4

Blue: map (prontera) and coordinates (y,x)

Orange: The way the NPC is looking.

3) After that, you will put "shop" without the quotes with a <Tab> before. After the shop, you will put another <TAB> and write the name you want your NPC to have, lets say Red Potion Seller. After that comes the NPC sprite, in thise case 999. For a full list, go to

http://www.dotalux.com/ro/npclist/.

prontera,150,150,4<TAB>shop<TAB>Red Potion Seller<TAB>999,

What is <TAB>? If you look on your keyboard, on the left normally above Caps Lock you will see the button tab. When you press it, you get a big space in between words/letters.

4) When you finished with that, right after the comma beside 999 you will put the item id. Lets say, 501 (Red Potion).

...Red Potion Seller<TAB>999,501

5) After you wrote 501 you will put a colon ( : ) and write the item price.

...999,501:999

6) When you finish with that, the npc will automatically put in the Item inside the npc. You can go on forever with the items, like I will show here.

This should be your final result.

prontera,150,150,4<Tab>shop<tab>Red Potion Seller<tab>999,501:999,502:999,503:999

Those would be three items, 501, 502 and 503, all of them with a price or 999. After that, it is not necessary to put a '}' or ';' since the script automatically detects them.

I hope this guide helped you and others.

/no1

Edited by Keim
Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  658
  • Reputation:   57
  • Joined:  11/20/11
  • Last Seen:  

I think that this is the wrong section for a "[Guide]" and it is no Guide for a Mall script , it's just a little Guide on how to make shops. This Topic should be moved and the name should be changed. And I'd suggest you to explain how to make a Warper to the Mall if you want it to be a Mall , just like this :

//================== Warper to the Mall ==============
prontera,XXX,YYY,5<tab>script<tab>Mall Warper<tab>911,{
mes "[ Mall Warper ]";
mes "Hello I can warp you";
mes "to the Mall,do you want";
mes "to go there?";
next;
switch(select("Yes,warp me:Cancel")) {
case 1:
mes "[ Mall Warper ]";
mes "Okay I'm going to warp";
mes "you to the Mall.";
next;
mes "[ Mall Warper ]";
warp "MALL",XXX,YYY;
close;
case 2:
mes "[ Mall Warper ]";
mes "Okay Goodbye!";
close;
}
}
//============ Shops ==========
MALL,XXX,YYY,5<tab>shop<tab>Potion Seller<tab>999,501:999
MALL,XXX,YYY,5<tab>shop<tab>Armors<tab>999,ITEMID:PRICE

and all theese things,but this is just my Opinion ,but still it's just a little guide of how to make shops ... /no1 This wasn't meant to be bad,it's just a suggestion + my Opinion.

Edited by Rikimaru
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  1315
  • Reputation:   372
  • Joined:  12/10/11
  • Last Seen:  

Keim: Thanks for your interesting in providing general assistance to our users however Guides should be created on the wiki instead of here.

Also, there is already an existing guide in the wiki about shops.

You can find it here: General_Shop_creation

If you have anything more to add to that guide in the wiki, please feel free to do so.

Topic Closed and set up for deletion.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

Sorry...just trying to add something here...xD

if you guys...feel damn hard to setup a shop script...or...still confuse how...and dunno what to do....

and damn lazy to view the guide given in wiki or anywhere...

then..use this

Original Topic : eAthena Shoper 2.1

Download Link : Shoper 2.1

it is a sofware that allow you to generate a shop script within minutes.....

simple and easy...

gues you should know how it work..since it is a step by step works..

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...