Jump to content
  • 0
Sign in to follow this  
karazu

Set all prices of the items to 20z

Question

13 answers to this question

Recommended Posts

  • 0

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 by evilpuncker

Share this post


Link to post
Share on other sites
  • 0

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'.

Share this post


Link to post
Share on other sites
  • 0

that is not an error, but a warning, you can just ignore it, and the question is, does it worked ingame?

Share this post


Link to post
Share on other sites
  • 0

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.  

Share this post


Link to post
Share on other sites
  • 0

@@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 by mrlongshen

Share this post


Link to post
Share on other sites
  • 0

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)

Share this post


Link to post
Share on other sites
  • 0

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 by karazu

Share this post


Link to post
Share on other sites
  • 0

change

 

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

 

to

 

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

Share this post


Link to post
Share on other sites
  • 0

 

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

Share this post


Link to post
Share on other sites
  • 0

 

 

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. 

Share this post


Link to post
Share on other sites
  • 0

@@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 by mrlongshen

Share this post


Link to post
Share on other sites
  • 0

@@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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.