Jump to content
  • 0

Multi Currency Problem


rexxar31

Question


  • Group:  Members
  • Topic Count:  62
  • Topics Per Day:  0.01
  • Content Count:  137
  • Reputation:   0
  • Joined:  04/07/12
  • Last Seen:  

hi.! Im using Emistry's Script for Multi Currency NPC. My problem here is that when a character open the NPC and has discount skill the price of the items in the shop shows that it is adjusted but when you buy the item still the same price. All i want here is i dont want to see the prices adjusted for it can confuse the players when they want to buy in that npc. Im using Proof of donation as item to buy inside the npc.. thanks for those who will help.

Click HERE for the script.

Edited by rexxar31
Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  57
  • Topics Per Day:  0.01
  • Content Count:  374
  • Reputation:   5
  • Joined:  03/09/12
  • Last Seen:  

normally because what they are seeing is a zeny..

Why not just make/put a note on the NPC when they click it?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  62
  • Topics Per Day:  0.01
  • Content Count:  137
  • Reputation:   0
  • Joined:  04/07/12
  • Last Seen:  

does it mean that it can't be done?

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2350
  • Joined:  10/28/11
  • Last Seen:  

erm...if based on normal scripting....it can be done..

just need to check the player have the discount skill or not...

then if the player got...the NPC will remove the discount skill 1st when the player talk to the npc...

after they buy the items....then give back the discount skill....

anyway..

i dont think this could be a big problem for player to buy item when the discounted price is showing...>.<

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  427
  • Reputation:   123
  • Joined:  11/17/11
  • Last Seen:  

You can set the price to:

price * 100 / (100-discount)

This way it will be displayed right.

Example:

If something costs 100

Set the price to 100 * 100 / 76 ~ 131.

And 100 will be displayed.

( Beware, you need to substract the original price, not the highened. )

So script workaround exists, the question is, how many people would need a feature like item_nodc.txt. But I do not feel like adding that stuff for the minority.

  • Upvote 2
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

And in case you want to use the "item_nodc.txt" method, here's how:

  1. revert r14553
  2. apply these changes to fully implement item_nodc.txt
  3. create a file /db/item_nodc.txt listing the item_id of item(s) that are not discountable (one item_id per line).

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  62
  • Topics Per Day:  0.01
  • Content Count:  137
  • Reputation:   0
  • Joined:  04/07/12
  • Last Seen:  

thanks.! this should help me a lot. :)

Link to comment
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.   Paste as plain text instead

  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.

×
×
  • Create New...