TotemFill: Taking Money for Each Filled Totem (with Vault)

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

ZeusAYyyy

Member
Mar 29, 2024
2
0
1
19
Could someone create a TotemFill skript for me? It should fill the inventory with totems in free slots and deduct money for each totem (with Vault Economy)
 
Category: Requests

Suggested name: TotemFill: Taking Money for Each Filled Totem (with Vault)

Spigot/Skript Version: 2.8.3

What I want: It should fill the inventory with totems in free slots and deduct money for each totem (with Vault Economy)

Ideas for commands: /totemfill

Ideas for permissions: none


When I'd like it by: In the next days would be perfect, thanks!
 
This should work. Requires essentials, SkEco, or another valid economy skript/plugin.

Python:
options:
    totem-cost: 500

command totemfill:
    trigger:
        loop 36 times:
            player's inventory has space for 1 saddle
            player's balance > 500
            give player 1 totem of undying
            remove {@totem-cost} from player's balance
            add 1 to {_totemcount}
            add {@totem-cost} to {_totalcost}
            wait 1 tick
        send "&aTotemFill&8 » &eYou have been given%nl%&6%{_totemcount}% totems&c at the cost of $%{_totalcost}%.%nl%&bYour new balance: &6%player's balance%"
(Untested)