Jump to content
  • 0

Multi Currency Problem


Question

Posted (edited)

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

6 answers to this question

Recommended Posts

Posted

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

Posted

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
Posted

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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...