#|---------------------------------------------------------------------------------------------| #| Krótkie informacje | #|---------------------------------------------------------------------------------------------| #| Skrypt stworzony przez Gauntera O'Dima zwanego również jako Crosby | #| Skrypt stworzony na potrzeby serwera MineRP | #| Wszelkie prawa do skryptu naleza do serwera MineRP w momencie uiszczenia opłaty za skrypt | #| Prosiłbym o nie usuwanie informacji o autorze | #|---------------------------------------------------------------------------------------------| options: item: popped chorus fruit on inventory click: if player's current inventory's slot slot is {@item}: cancel event if slot slot of player is {@item}: cancel event on drop: if event-item is {@item}: cancel event on death of player: add {@item} to victim on right click on entity: if entity is "Magazynier" open chest with 4 rows named "" with lore "" format slot 0 with white wool named "" with lore "" to be unstealable format slot 1 with white wool named "" with lore "" to be unstealable format slot 2 with green wool named "&aKliknij aby rozpoczac prace!" with lore "" to close then run [execute console command "pex user %player% add magazyn.pracuje"] -> [execute console command "zacznijMaga %player%"] format slot 3 with white wool named "" with lore "" to be unstealable format slot 4 with white wool named "" with lore "" to be unstealable format slot 5 with white wool named "" with lore "" to be unstealable format slot 6 with red wool named "&cKliknij aby zakonczyc prace!" with lore "" to close then run [execute console command "zakonczMaga %player%"] -> [execute console command "pex user %player% remove magazyn.pracuje"] format slot 7 with white wool named "" with lore "" to be unstealable format slot 7 with white wool named "" with lore "" to be unstealable on region exit: if region is "magazyn": if player has permission "magazyn.pracuje": execute console command "zakonczMaga %player%" send "[&aPraca&f]&e Opusciles teren magazynu, praca zakonczona!" remove 1 popped chorus fruit from player if region contains "magazyn": if player has permission "magazyn.pracuje": execute console command "zakonczMaga %player%" send "[&aPraca&f]&e Opusciles teren magazynu, praca zakonczona!" command /zacznijMaga []: permission: magazyn.pracuje permission message: &cNie masz przeszkolenia by tu pracowac! trigger: send "[&aPraca&f]&e Rozpoczales prace! Wez paczke i zanies ja do magazynu!" command /zakonczMaga []: permission: magazyn.pracuje permission message: &cNie masz przeszkolenia by tu pracowac! trigger: execute console command "pex user %player% remove magazyn.pracuje" send "[&aPraca&f]&e Przestales pracowac!"