How to code #donate [integer]

Parodies

Member
Joined
Aug 26, 2023
Messages
29
Simple script, for all the cool kids who managed to get 1k visits before the server died a painful death
_ _
Code:
player message event > String to array "player's message apple" to array "%player%-msg" > If variable named "%player%-msgඞ0" is "#donate": > Parse text to number "%player%-msgඞ1" to "%player%-numeric" > if variable %player%-numeric is more than number "0": > set _%player%-roundednumeric to round(%player%-numeric) > request gold transaction named "CDONATE" with the displayname "&6&lCustom donate" for "_%player%-roundednumeric" gold | Else: > Send "&cSpecify an integer above 0!"
 
Top