Cant make a shop npc!!

02/23/2013 10:13 UzuNaruto98#1
Hey guys, I created an npc with UID = 98647, ID = 98647 and Type = 1
and I added the items to the shop now when you open the npc you can see the items like a normal npc but I cant buy anything....
One of the items is Stancher so it should be bought normally with no prob but i just cant buy.

What am I supposed to do to add the npc to the buying script thingy?

My client is 5518.

I am using Albetros source btw!

Thanks!
02/23/2013 10:53 .Sparkles#2
Quote:
Originally Posted by UzuNaruto98 View Post
Hey guys, I created an npc with UID = 98647, ID = 98647 and Type = 1
and I added the items to the shop now when you open the npc you can see the items like a normal npc but I cant buy anything....
One of the items is Stancher so it should be bought normally with no prob but i just cant buy.

What am I supposed to do to add the npc to the buying script thingy?

My client is 5518.

Thanks!
I believe you have to edit a dat file (like shop.dat) within the client.

Not sure if it is still done that way.
02/23/2013 11:20 UzuNaruto98#3
Quote:
Originally Posted by .Sparkles View Post
I believe you have to edit a dat file (like shop.dat) within the client.

Not sure if it is still done that way.
I did edit the shop.dat and added my npc but still nothing.

Oh and I forgot to write I am using Albetros source.
02/23/2013 11:26 derpingson#4
First of all, you need to set the price of the item if it shows "0" in price, in this, you need to edit both Items.txt in the source database, and ItemType.dat(needs decryption) in client.

then, add the shop in Eshops.ini or/and Shop.dat in database, now add the shop in EmoneyShop.ini in client.

tah da! you got a working shop,

btw, is it a silver or cp shop?

let me know if you have any problems
02/23/2013 15:03 UzuNaruto98#5
Quote:
Originally Posted by derpingson View Post
First of all, you need to set the price of the item if it shows "0" in price, in this, you need to edit both Items.txt in the source database, and ItemType.dat(needs decryption) in client.

then, add the shop in Eshops.ini or/and Shop.dat in database, now add the shop in EmoneyShop.ini in client.

tah da! you got a working shop,

btw, is it a silver or cp shop?

let me know if you have any problems
First thnx for answering.

[Edit]:

Oh nvm I just added what I had in the shop.dat to the emoneyshop.ini in both server and client but removed some stuff and it worked!!!!! thankss alot man!!!

but how does the pharmacist, blacksmith etc. work when their IDs are not in there?
02/23/2013 15:34 pro4never#6
shops.dat controls normal shops. You must have your shop ID listed in there as well as all the item IDs you can purchase from the shop. This file must exist edited both in the client AND server (else you could buy equipment from pharmacist by editing your client). You also must ensure that the cost is not 0 in your itemtype table.
02/23/2013 17:47 UzuNaruto98#7
oh I see.

I do have one more question but I have absolutely no knowledge in it so I am hoping you will give me a link to a tut or something :D.

How do I change in the client itself?
like changing the GUI, changing the Login Screen, and if I could(not saying I can) add a class or tweak a class.
02/23/2013 18:28 derpingson#8
A little search on google!

[Only registered and activated users can see links. Click Here To Register...]

[Only registered and activated users can see links. Click Here To Register...]

[Only registered and activated users can see links. Click Here To Register...]
02/23/2013 20:39 UzuNaruto98#9
Quote:
Originally Posted by derpingson View Post
A little search on google!

[Only registered and activated users can see links. Click Here To Register...]

[Only registered and activated users can see links. Click Here To Register...]

[Only registered and activated users can see links. Click Here To Register...]
lol I am currently focused on designing and fixing the server stuff, so I didnt search. Anyways srry for troubling you and thnx :D