[help] editing npc shopset.csv

04/06/2013 13:40 maliciousaid#1
can anyone show me clearer how to edit these shopset ?

at first i edit myself, i delete something in the shop but when i run the server , it show up that

Code:
5836: NPC Flyweight is NULL... So NPC Creation is Fail - NPC index 173
5836: NPC Flyweight is NULL... So NPC Creation is Fail - NPC index 174
5836: [ Map 0 ] NPC Layout Load Success 57
5836: [[[ ERROR ]]] Invalid Item Index 0
5836: ShopSet Item Invalie Position [X:0][X:0]
5836: File: .\Article\Item\Shop\Shop.cpp, Line: 303
i delete item in the shop and this happen.
04/06/2013 14:04 conquer93#2
5836: [[[ ERROR ]]] Invalid Item Index 0
5836: ShopSet Item Invalie Position [X:0][X:0]\

read. your item index is wrong and invalid position means the coord u use doesnt exist or already taken
04/06/2013 14:14 maliciousaid#3
i replace the items which i want to delete to 0

so the index, count and pos also i put it to 0

Code:
3193
1
4
8
i replace it with

Code:
0
0
0
0
this way of deleting the items on shop is wrong?
04/06/2013 15:08 alexmak96#4
Quote:
Originally Posted by maliciousaid View Post
i replace the items which i want to delete to 0

so the index, count and pos also i put it to 0

Code:
3193
1
4
8
i replace it with

Code:
0
0
0
0
this way of deleting the items on shop is wrong?
Then change "TotalCount" to -1 ex from 20 to 19 :) so it will not read the deleted lines.
04/06/2013 15:35 maliciousaid#5
Quote:
Originally Posted by alexmak96 View Post
Then change "TotalCount" to -1 ex from 20 to 19 :) so it will not read the deleted lines.
ItemIndex 0 , will be as deleted lines? they dont read itemindex 0?
04/06/2013 15:42 elfulll#6
Quote:
Originally Posted by maliciousaid View Post
ItemIndex 0 , will be as deleted lines? they dont read itemindex 0?
best option for you is to try with itemindex 0 or to delete those lines and see what happens . Most of the devs here made everything by trying , goodluck .
04/06/2013 15:49 alexmak96#7
Quote:
Originally Posted by maliciousaid View Post
ItemIndex 0 , will be as deleted lines? they dont read itemindex 0?
If the itemindex is the last index , then yes , it doesnt read it
04/06/2013 15:55 maliciousaid#8
thanks :) it work already.

i try my hardest. :D

thanks for the advice sir elfulll


request to close this thread.
04/07/2013 03:42 .Genome.#9
Just a note, you can have a full w.e count of items put in the set but if the totalcount = 1 or something then only the 1st item will be read.