RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
REQUEST: Maximum quantity of a certain Item

0 Members and 1 Guest are viewing this topic.

pokeball FouOfflineFemale
*
Rep: +0/-0Level 84
I'm looking for a script where I can change the max quantity of one certain item. For example:

You buy a weapon at a shop named Iron sword, and you can't buy more than one Iron sword because you cannot have more Ironswords in your items.

Sorry, english is bad but I hope you understand what I'm after;)

Thnks

*
Rep:
Level 87
You could do this through events, without resorting to a script.

On the shopkeeper event, ask the player if they want to buy the sword for ? gold coins.  Give them a yes/no choice.  If they say yes, check that they have enough money, deduct the money, and give them the sword.  Then set a self switch so the offer is not made again.

This means it isn't done through the normal shop processing, so you don't get the same screens.  If you really want it to be done using the same shop screens, then I don't think it would be difficult to modify the shop processing script to handle it.
Always remember you're unique.
Just like everybody else.

**
Rep:
Level 83
Hi, Fou!

I don't think that would be too hard to make  ;)
If you still want it, contact me: tidloc@g.ho.st

Sincerely,
Tidloc
[...]And they feared him.
He understands that cruelty arises from opportunity![...]