forked from Mirrorlandia_minetest/emeraldbank
cash sound
This commit is contained in:
parent
36e7cc8a9e
commit
b5d774e73e
6
shop.lua
6
shop.lua
@ -100,6 +100,12 @@ local function get_stonks(pos, player)
|
|||||||
local owner = meta:get_string("owner")
|
local owner = meta:get_string("owner")
|
||||||
local stonks = meta:get_int("stonks")
|
local stonks = meta:get_int("stonks")
|
||||||
if name == owner and stonks > 0 then
|
if name == owner and stonks > 0 then
|
||||||
|
core.sound_play("cash", {
|
||||||
|
to_player = name,
|
||||||
|
gain = 1.0,
|
||||||
|
fade = 0.0,
|
||||||
|
pitch = 1.0,
|
||||||
|
})
|
||||||
emeraldbank.add_emeralds(player, stonks)
|
emeraldbank.add_emeralds(player, stonks)
|
||||||
meta:set_int("stonks", 0)
|
meta:set_int("stonks", 0)
|
||||||
core.chat_send_player(name, S("You've earned @1 Emeralds with this shop.", stonks) )
|
core.chat_send_player(name, S("You've earned @1 Emeralds with this shop.", stonks) )
|
||||||
|
BIN
sounds/cash.ogg
Normal file
BIN
sounds/cash.ogg
Normal file
Binary file not shown.
9
sounds/license.txt
Normal file
9
sounds/license.txt
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
|
||||||
|
EmeraldBank Mod Souds License
|
||||||
|
|
||||||
|
Sounds from https://freesound.org
|
||||||
|
|
||||||
|
- cash.ogg:
|
||||||
|
|
||||||
|
File original name: cash_register.wav
|
||||||
|
License: CC-0 (Public Domain)
|
Loading…
Reference in New Issue
Block a user