Set all prices of the items to 20z

karazu

New member
Messages
1,115
Points
0
Is there an easy way to convert all the prices of the items in the item_db to 20z?




 

 
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

 
Last edited by a moderator:
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'.
 
that is not an error, but a warning, you can just ignore it, and the question is, does it worked ingame?

 
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.  

 
@@evilpuncker agree with evil. that a warning. not an error
default_smile.png


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.

 
Last edited by a moderator:
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)

 
that is not an error, but a warning, you can just ignore it, and the question is, does it worked ingame?
@evilpuncker
items.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?

 
Last edited by a moderator:
change

pc->getzeny(sd, (int)z, LOG_TYPE_NPC, NULL);

to

pc->getzeny(sd, 0, LOG_TYPE_NPC, NULL);

 
that is not an error, but a warning, you can just ignore it, and the question is, does it worked ingame?
@evilpuncker
items.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

 
that is not an error, but a warning, you can just ignore it, and the question is, does it worked ingame?
@evilpuncker
items.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. 

 
Back
Top