Help with getting custom currencies to work in the Lakitu Shop

Post here for help and support regarding LunaLua and SMBX2's libraries and features.

Moderator: Userbase Moderators

AlphaBlue1011
Spiny
Spiny
Posts: 29
Joined: Sun Feb 02, 2025 3:00 pm
Flair: never underestimate hyperfixations :3
Pronouns: she/her or they/them

Help with getting custom currencies to work in the Lakitu Shop

Postby AlphaBlue1011 » Thu Feb 13, 2025 11:21 am

I'm using the Lakitu Shop to unlock things. I have a custom currency made with currencies.lua that is basically a version of the default Coins currency, which I made so I could have the coin count go past 99, because the shop has things that are a few thousand coins (it makes sense when you realize that the pack is a remake of coin rush from nsmb2). The custom counter displays the correct number, but I still can't purchase the item from the Lakitu Shop. Could anyone see if there's anything wrong with my code? I named the internal name for the currency "coin_currency" and the string "Coins", btw.

Image

mariobrigade2018
Rocky Wrench
Rocky Wrench
Posts: 641
Joined: Wed May 24, 2023 7:00 pm
Flair: OK in coding who dreams of making a Mario game
Pronouns: he/him

Re: Help with getting custom currencies to work in the Lakitu Shop

Postby mariobrigade2018 » Thu Feb 13, 2025 11:23 am

Are you using the basegame shop?

AlphaBlue1011
Spiny
Spiny
Posts: 29
Joined: Sun Feb 02, 2025 3:00 pm
Flair: never underestimate hyperfixations :3
Pronouns: she/her or they/them

Re: Help with getting custom currencies to work in the Lakitu Shop

Postby AlphaBlue1011 » Thu Feb 13, 2025 1:19 pm

mariobrigade2018 wrote:
Thu Feb 13, 2025 11:23 am
Are you using the basegame shop?
Yeah, the basegame lakitushop.lua

Added in 24 minutes 20 seconds:
EDIT: I got the purchase to work. kinda. It sends this error once I confirm.

Image

Added in 1 hour 21 minutes 43 seconds:
EDIT 2: it has something to do with the count calculation in lakitushop.lua, so i'm gonna see if i can fix any of that.

mariobrigade2018
Rocky Wrench
Rocky Wrench
Posts: 641
Joined: Wed May 24, 2023 7:00 pm
Flair: OK in coding who dreams of making a Mario game
Pronouns: he/him

Re: Help with getting custom currencies to work in the Lakitu Shop

Postby mariobrigade2018 » Thu Feb 13, 2025 4:58 pm

AlphaBlue1011 wrote:
Thu Feb 13, 2025 3:05 pm
mariobrigade2018 wrote:
Thu Feb 13, 2025 11:23 am
Are you using the basegame shop?
Yeah, the basegame lakitushop.lua

Added in 24 minutes 20 seconds:
EDIT: I got the purchase to work. kinda. It sends this error once I confirm.

Image

Added in 1 hour 21 minutes 43 seconds:
EDIT 2: it has something to do with the count calculation in lakitushop.lua, so i'm gonna see if i can fix any of that.
mariobrigade2018, in a different post wrote: This is a well known error. Either wait for patch 3, or use Marioman’s custom one on discord.


Return to “LunaLua Help”

Who is online

Users browsing this forum: No registered users and 0 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari