# CODERS POLSKA # # by Dziubek # # dc.coderspolska.pl # # coderspolska.pl # # NIE RUSZAĆ # variables: money::%player% = 0 options: #PRZYDATNE prefix: &1&lCoders &c&lPol&f&lska przedzialek: &7>> #POPRAWNE UZYCIA KOMEND fstone_usage: &bPoprawne użycie: &3/fstone #PERMISJE KOMEND fstone_permission: "cpcashblock.admin" #WIADOMOSCI BRAKU UPRAWNIEN fstone_nopermission: &cNie masz uprawnień do użycia tej komendy! #WIADOMOŚCI #Zmienne: # $money - ustawione pieniądze fstone_success: &aPomyślnie ustawiłeś blok na &3$money zł drop_title: &a&lGRATULACJE drop_subtitle: &6Wydropiłeś &3$money zł! allplayers_drop_message: &7Gracz &6$player &7wydropił $money zł! #SZANSE chance_1gr: 0.1 chance_2gr: 0.01 chance_5gr: 0.001 chance_10gr: 0.0001 chance_20gr: 0.00001 chance_50gr: 0.000001 chance_1zl: 0.0000001 chance_2zl: 0.00000001 chance_5zl: 0.000000001 chance_10zl: 0.0000000001 chance_20zl: 0.00000000001 chance_50zl: 0.000000000001 chance_100zl: 0.0000000000001 command /fstone : aliases: fs usage: {@prefix} {@przedzialek} {@fstone_usage} permission: {@prefix} {@przedzialek} {@fstone_permission} permission message: {@prefix} {@przedzialek} {@fstone_nopermission} trigger: set {_blocklocation} to location of target block set {_blockmoney} to arg 1 set {blockmoney::%{_blocklocation}%} to {_blockmoney} set {_wiadomoscsuccess} to "{@fstone_success}" replace all "$money" with "%{_blockmoney}%" in {_wiadomoscsuccess} send "{@prefix} {@przedzialek} %{_wiadomoscsuccess}%" to player on break: if {blockmoney::%location of event-block%} is set: add {blockmoney::%location of event-block%} to {money::%player%} set {_dropsubtitle} to "{@drop_subtitle}" replace all "$money" with "%{blockmoney::%location of event-block%}%" in {_dropsubtitle} send title "{@drop_title}" with subtitle {_dropsubtitle} to player set {_msg} to "{@allplayers_drop_message}" replace all "$money" with "%{blockmoney::%location of event-block%}%" in {_msg} replace all "$player" with "%player%" in {_msg} send "{@prefix} {@przedzialek} %{_msg}%" to all players else: chance of {@chance_1gr}: set {_dropsubtitle} to "{@drop_subtitle}" replace all "$money" with "0.01" in {_dropsubtitle} send title "{@drop_title}" with subtitle {_dropsubtitle} to player set {_msg} to "{@allplayers_drop_message}" replace all "$money" with "0.01" in {_msg} replace all "$player" with "%player%" in {_msg} send "{@prefix} {@przedzialek} %{_msg}%" to all players chance of {@chance_2gr}: set {_dropsubtitle} to "{@drop_subtitle}" replace all "$money" with "0.02" in {_dropsubtitle} send title "{@drop_title}" with subtitle {_dropsubtitle} to player set {_msg} to "{@allplayers_drop_message}" replace all "$money" with "0.02" in {_msg} replace all "$player" with "%player%" in {_msg} send "{@prefix} {@przedzialek} %{_msg}%" to all players chance of {@chance_5gr}: set {_dropsubtitle} to "{@drop_subtitle}" replace all "$money" with "0.05" in {_dropsubtitle} send title "{@drop_title}" with subtitle {_dropsubtitle} to player set {_msg} to "{@allplayers_drop_message}" replace all "$money" with "0.05" in {_msg} replace all "$player" with "%player%" in {_msg} send "{@prefix} {@przedzialek} %{_msg}%" to all players chance of {@chance_10gr}: set {_dropsubtitle} to "{@drop_subtitle}" replace all "$money" with "0.10" in {_dropsubtitle} send title "{@drop_title}" with subtitle {_dropsubtitle} to player set {_msg} to "{@allplayers_drop_message}" replace all "$money" with "0.10" in {_msg} replace all "$player" with "%player%" in {_msg} send "{@prefix} {@przedzialek} %{_msg}%" to all players chance of {@chance_20gr}: set {_dropsubtitle} to "{@drop_subtitle}" replace all "$money" with "0.20" in {_dropsubtitle} send title "{@drop_title}" with subtitle {_dropsubtitle} to player set {_msg} to "{@allplayers_drop_message}" replace all "$money" with "0.20" in {_msg} replace all "$player" with "%player%" in {_msg} send "{@prefix} {@przedzialek} %{_msg}%" to all players chance of {@chance_50gr}: set {_dropsubtitle} to "{@drop_subtitle}" replace all "$money" with "0.50" in {_dropsubtitle} send title "{@drop_title}" with subtitle {_dropsubtitle} to player set {_msg} to "{@allplayers_drop_message}" replace all "$money" with "0.50" in {_msg} replace all "$player" with "%player%" in {_msg} send "{@prefix} {@przedzialek} %{_msg}%" to all players chance of {@chance_1zl}: set {_dropsubtitle} to "{@drop_subtitle}" replace all "$money" with "1.00" in {_dropsubtitle} send title "{@drop_title}" with subtitle {_dropsubtitle} to player set {_msg} to "{@allplayers_drop_message}" replace all "$money" with "1.00" in {_msg} replace all "$player" with "%player%" in {_msg} send "{@prefix} {@przedzialek} %{_msg}%" to all players chance of {@chance_2zl}: set {_dropsubtitle} to "{@drop_subtitle}" replace all "$money" with "2.00" in {_dropsubtitle} send title "{@drop_title}" with subtitle {_dropsubtitle} to player set {_msg} to "{@allplayers_drop_message}" replace all "$money" with "2.00" in {_msg} replace all "$player" with "%player%" in {_msg} send "{@prefix} {@przedzialek} %{_msg}%" to all players chance of {@chance_5zl}: set {_dropsubtitle} to "{@drop_subtitle}" replace all "$money" with "5.00" in {_dropsubtitle} send title "{@drop_title}" with subtitle {_dropsubtitle} to player set {_msg} to "{@allplayers_drop_message}" replace all "$money" with "5.00" in {_msg} replace all "$player" with "%player%" in {_msg} send "{@prefix} {@przedzialek} %{_msg}%" to all players chance of {@chance_10zl}: set {_dropsubtitle} to "{@drop_subtitle}" replace all "$money" with "10.00" in {_dropsubtitle} send title "{@drop_title}" with subtitle {_dropsubtitle} to player set {_msg} to "{@allplayers_drop_message}" replace all "$money" with "10.00" in {_msg} replace all "$player" with "%player%" in {_msg} send "{@prefix} {@przedzialek} %{_msg}%" to all players chance of {@chance_20zl}: set {_dropsubtitle} to "{@drop_subtitle}" replace all "$money" with "20.00" in {_dropsubtitle} send title "{@drop_title}" with subtitle {_dropsubtitle} to player set {_msg} to "{@allplayers_drop_message}" replace all "$money" with "20.00" in {_msg} replace all "$player" with "%player%" in {_msg} send "{@prefix} {@przedzialek} %{_msg}%" to all players chance of {@chance_50zl}: set {_dropsubtitle} to "{@drop_subtitle}" replace all "$money" with "50.00" in {_dropsubtitle} send title "{@drop_title}" with subtitle {_dropsubtitle} to player set {_msg} to "{@allplayers_drop_message}" replace all "$money" with "50.00" in {_msg} replace all "$player" with "%player%" in {_msg} send "{@prefix} {@przedzialek} %{_msg}%" to all players chance of {@chance_100zl}: set {_dropsubtitle} to "{@drop_subtitle}" replace all "$money" with "100.00" in {_dropsubtitle} send title "{@drop_title}" with subtitle {_dropsubtitle} to player set {_msg} to "{@allplayers_drop_message}" replace all "$money" with "100.00" in {_msg} replace all "$player" with "%player%" in {_msg} send "{@prefix} {@przedzialek} %{_msg}%" to all players