karazu 33 Posted April 15, 2015 Is there an easy way to convert all the prices of the items in the item_db to 20z? Quote Share this post Link to post Share on other sites
0 evilpuncker 503 Posted April 15, 2015 (edited) buy or sell price? if you are talking about npc sell items, try in npc.c changing this line: items.value = value; to items.value = 20; and recompile Edited April 15, 2015 by evilpuncker Quote Share this post Link to post Share on other sites
0 karazu 33 Posted April 15, 2015 buy or sell price? if you are talking about npc sell items, try in npc.c changing this line: items.value = value; to items.value = 20; and recompile Thank you! such a big help.. @@evilpuncker Errors are still showing [Warning]: npc_parse_shop: Item Infiltrator_ [1266] discounted buying price (1000->750) is less than overcharged selling price (28500->35340) in file 'npc/custom/****/mall.txt', line '56'. Quote Share this post Link to post Share on other sites
0 evilpuncker 503 Posted April 15, 2015 that is not an error, but a warning, you can just ignore it, and the question is, does it worked ingame? Quote Share this post Link to post Share on other sites
0 karazu 33 Posted April 15, 2015 that is not an error, but a warning, you can just ignore it, and the question is, does it worked ingame? Yes, but what I only want is to get rid of this Warnings.. its hurts to see them after restarting the server lol.. I only want to set the selling price to all items to 20 so that the warnings will be remove. Quote Share this post Link to post Share on other sites
0 mrlongshen 22 Posted April 15, 2015 (edited) @@evilpuncker agree with evil. that a warning. not an error I think it should be work. maybe he will get many warning HAHAHAHA @@karazu I understand your feeling, Same with me, I dont like yellow warning in console. wait for any developer help you. Because I dont know about source editing. hehe maybe have some source that can disable the warning. Edited April 15, 2015 by mrlongshen Quote Share this post Link to post Share on other sites
0 evilpuncker 503 Posted April 15, 2015 that warning is because the selling price is higher than the buying price, just fix your npcs txt files to sell the item for a higher price or remove the line that shows the warning (that line is in npc.c file as well) Quote Share this post Link to post Share on other sites
0 karazu 33 Posted April 15, 2015 (edited) that is not an error, but a warning, you can just ignore it, and the question is, does it worked ingame? @evilpuncker items[i].value = value; This one forces all the items to be sold from NPC to Players as 0. How about forces all the items to be sold from Players to NPC as 0? Edited April 15, 2015 by karazu Quote Share this post Link to post Share on other sites
0 evilpuncker 503 Posted April 15, 2015 change pc->getzeny(sd, (int)z, LOG_TYPE_NPC, NULL); to pc->getzeny(sd, 0, LOG_TYPE_NPC, NULL); Quote Share this post Link to post Share on other sites
0 mrlongshen 22 Posted April 16, 2015 that is not an error, but a warning, you can just ignore it, and the question is, does it worked ingame? @evilpuncker items[i].value = value; This one forces all the items to be sold from NPC to Players as 0. How about forces all the items to be sold from Players to NPC as 0? wahhh ! what project are you trying to do. It will make your server messy. huhu Quote Share this post Link to post Share on other sites
0 karazu 33 Posted April 16, 2015 that is not an error, but a warning, you can just ignore it, and the question is, does it worked ingame? @evilpuncker items[i].value = value; This one forces all the items to be sold from NPC to Players as 0. How about forces all the items to be sold from Players to NPC as 0? wahhh ! what project are you trying to do. It will make your server messy. huhu I want to sell items 20z each. and I have around 120 items that needs to be edited just not to show warnings in the console telling me shit about the price hehehe. I am talking about my mall. Quote Share this post Link to post Share on other sites
0 mrlongshen 22 Posted April 17, 2015 (edited) @@karazu then what will happen on if your player are hunting item and want to sell them all is 0 the value. For example farming gold ? hmm Edited April 17, 2015 by mrlongshen Quote Share this post Link to post Share on other sites
0 karazu 33 Posted April 19, 2015 @@karazu then what will happen on if your player are hunting item and want to sell them all is 0 the value. For example farming gold ? hmm Its not a problem since GOLD is not the main source of Zeny in my server Quote Share this post Link to post Share on other sites
0 mrlongshen 22 Posted April 19, 2015 @@karazu oic. ok Quote Share this post Link to post Share on other sites
Is there an easy way to convert all the prices of the items in the item_db to 20z?
Share this post
Link to post
Share on other sites