[BASIC]Really easy tutorials[BASIC]
1.) How to make an npc open a shop.
1st go into your client.java and search for "First click npc" If you want it to open when you click talk, or "Second click npc" If you want it to open when you click trade. After the last } add this;
Code:
if(NPCID == 1234){
PutNPCCoords = true;
WanneShop = 12;
}
1234 is an example of an npc id, 12 is an example of the shop number, find it in your shops.cfg.
2.) How to add an item into a shop.
1st go into your "config" folder you should see "shops.cfg" open it and you should see your shops, for example I will use the general store.
Code:
shop = 22 General_Store 2 2 229 2000 5297 1000 5299 1000 5301 1000 5302 1000 5303 1000 5295 1000 5300 1000 5296 1000 6912 25 6910 25 6908 25
After the last 25, press tab, type in the item id, press tab again and type in the amount.
3.) How to put an npc somewhere.
1st go into you config folder and open autospawn.cfg You should see stuff like this
Code:
spawn = 1264 2577 3909 0 0 0 0 0 1
1264 is the npc id, 2577 is the X coord, and 3909 is the Y coord, (The area you're going to place your npc). Customize to your liking.
4.) How to change npc health and combat level.
1st go into your config file and open up npc.cfg you should see stuff like this,
the first 0 is the npc id, the second 0 is the combat, the third 0 is the health.
5.) How to make an npc drop an item.
1st go into your config folder and open npcdrops.cfg, you should see stuff like this,
Code:
npcdrop = 2263 5509 1 10
2263 is the npc id, 5509 is the item id, 1 is the amount, 10 is the drop percentage.
You can customize all of these to your liking, I do realize these are REALLY EASY, I don't want comments saying everyone should know this blah blah blah, I realize that but some people are new programmers.