#===========================================# # # # Informacje o skrypcie # # # #===========================================# # # # Nazwa: GrandTheftMinecraft # # Wersja: 1.0 # # WWW: http://ziomeks.cba.pl/ # # Wymaga: # # - Vault # # - iConomy # # # #===========================================# #===========================================# # # # Licencja skryptu # # # #===========================================# # # # 1. Zakazane jest publikowanie skryptu # # na innych forach, stronach itp! # # 2. Zakazane jest sprzedawanie skryptu! # # 3. Zakazane jest usuwanie informacji # # autorze! # # 4. Zakazane jest podpisywanie sie jako # # autor skryptu! # # 5. Zakazane jest kradnięcie kodu do # # swoich skryptów! # # 6. Zezwalam na edycje kodu na swoje # # potrzeby! # # 7. Zakaz kopiowania pomysłu! # # # #===========================================# #===========================================# # # # Opcje główne skryptu # # # #===========================================# options: # Prefix, czyli to np [GrandTheftMinecraft] Nie masz uprawnien prefix: &7[&2GrandTheftMinecraft&7] # Wiadomość, gdy nie masz uprawnień noper: &cNie masz uprawnien # Główna nazwa skryptu ( Domyślnie GrandTheftMinecraft.sk ) skname: GrandTheftMinecraft.sk # Ilość kasy za misje mission: 250 # Ilość kasy za zabicie innego gracza player: 1500 #===========================================# # # # Zmienne skryptu GrandTheftMinecraft # # # #===========================================# variables: {grandtheftminecraft.money.%player%} = 0 {grandtheftminecraft.misssion.accept.%player%} = false {grandtheftminecraft.mission.made.%player%} = 0 {grandtheftminecraft.cj.limit} = false #===========================================# # # # Komendy # # # #===========================================# command /grandtheftminecraft [] [] []: aliases: gtm, gta, grandtm trigger: if arg 1 is not set: message "&e&l======== {@prefix} &7[&e1&7/&22&7] &e&l========" message "" message "&2/gtm help &7- &eLista komend" message "&2/gtm setjail &7- &eUstawia wiezienie" message "&2/gtm sethospital &7- &eUstawia szpital" message "&2/gtm setcj &7- &eUstawia miejsce, gdzie jest DJ" message "&2/gtm jail &7- &eWrzuca gracza do wiezienia" message "&e&l======== &2Wpisz /gtm help 2 &e&l========" if arg 1 is "help" or "1": message "&e&l======== {@prefix} &7[&e1&7/&22&7] &e&l========" message "" message "&2/gtm help &7- &eLista komend" message "&2/gtm setjail &7- &eUstawia wiezienie" message "&2/gtm sethospital &7- &eUstawia szpital" message "&2/gtm setcj &7- &eUstawia miejsce, gdzie jest DJ" message "&2/gtm jail &7- &eWrzuca gracza do wiezienia" message "&e&l======== &2Wpisz /gtm help 2 &e&l========" if arg 2 is "2": message "&e&l======== {@prefix} &7[&e2&7/&22&7] &e&l========" message "" message "&2/gtm money &7- &eSprawdza stan konta" message "&2/gtm mission &7- &eSprawdza stan wykonanych misjii" message "&2/gtm removecj &7- &eUsuwa DJ" message "&2/gtm autor &7- &eInformacje o autorze" message "&2/gtm reload &7- &ePrzeladowuje skrypt" if arg 1 is "reload": if player has permission "grandtheftminecraft.admin" or "gtm.admin" or "gtm.*": execute console command "sk reload {@skname}" message "{@prefix} &2Skrypt przeladowany pomyslnie!" else: message "{@prefix} {@noper}" if arg 1 is "autor": message "&e&l======== {@prefix} &e&l========" message "" message "&eAutor: &2XziomekX" message "&eWWW: &2http://ziomeks.cba.pl/" if arg 1 is "mission": if player has permission "grandtheftminecraft.default" or "gtm.default" or "gtm.*": message "{@prefix} &eWykonales juz &2%{grandtheftminecraft.mission.made.%player%}% &emisjii." else: message "{@prefix} {@noper}" if arg 1 is "setjail": if player has permission "grandtheftminecraft.admin" or "gtm.admin" or "gtm.*": set {grandtheftminecraft.jail} to location of player message "{@prefix} &eStworzyles wiezienie!" else: message "{@prefix} {@noper}" if arg 1 is "removecj": if player has permission "grandtheftminecraft.admin" or "gtm.admin" or "gtm.*": loop all entities: if type of loop-entity-1 is creature: if name of loop-entity-1 is "&e&lCJ": if type of loop-entity-1 is a villager: kill loop-entity-1 message "{@prefix} &eCJ zostal usuniety!" set {grandtheftminecraft.cj.limit} to false else: message "{@prefix} {@noper}" if arg 1 is "jail": if player has permission "grandtheftminecraft.mod" or "gtm.mod" or "gtm.*": if {grandtheftminecraft.jail} is not set: message "{@prefix} &cNie ustawinono wiezienia" stop if arg 2 is not set: message "{@prefix} &cPodaj czas!" stop if arg 3 is not set: message "{@prefix} &cPodaj nick gracza!" stop if arg 3 is set: teleport arg player to {grandtheftminecraft.jail} message "{@prefix} &eWrzuciles do wiezienia gracza &c%arg 3%" if arg 1 is "sethospital": if player has permission "grandtheftminecraft.admin" or "gtm.admin" or "gtm.*": set {grandtheftminecraft.hospital} to location of player message "{@prefix} &eSzpital zostal ustawiony!" else: message "{@prefix} {@noper}" if arg 1 is "money": if player has permission "grandtheftminecraft.default" or "gtm.default" or "gtm.*": message "{@prefix} &2StanKonta: &e%{grandtheftminecraft.money.%player%}%&2 ." else: message "{@prefix} {@noper}" if arg 1 is "setcj": has permission "grandtheftminecraft.admin" or "gtm.admin" or "gtm.*": if {grandtheftminecraft.cj.limit} is true: message "{@prefix} &cCJ moze byc tylko jeden..." stop set {grandtheftminecraft.cj} to location of player message "{@prefix} &eCJ zostal stworzony! W nim sa teraz misje" spawn villager at location of player apply slowness 100 to the last spawned entity for 100 days set display name of the last spawned entity to "&e&lCJ" set {grandtheftminecraft.cj.limit} to true else: message "{@prefix} {@noper}" #===========================================# # # # Opcja odradzanie sie # # # #===========================================# on respawn: wait 5 tick teleport player to {grandtheftminecraft.hospital} message "{@prefix} &cZmarles! Odrodziles sie w szpitalu. Stan konta zostal usuniety!" set {grandtheftminecraft.money.%player%} to 0 #===========================================# # # # Opcje misjii ( CJ ) # # # #===========================================# on rightclick on villager: cancel event if name of the clicked entity is "&e&lCJ": if {grandtheftminecraft.misssion.accept.%player%} is false: if {grandtheftminecraft.mission.made.%player%} is 0: message "{@prefix} &cNie wybrales zadnej misjii" message "{@prefix} &eCzy chcesz zakceptowac misje I? ( zbierz 64 miesa zombie ( Wypada z ludzi )) &2&lTAK /tak &4NIE /nie" stop if {grandtheftminecraft.mission.made.%player%} is 2: message "{@prefix} &eZetnij 64 trawki ( to jest to mala trawa )" message "{@prefix} &eCzy chcesz zakceptowac misje I? ( zbierz 64 miesa zombie ( Wypada z ludzi )) &2&lTAK /tak &4NIE /nie" stop if {grandtheftminecraft.misssion.accept.%player%} is true: if {grandtheftminecraft.mission.made.%player%} is 0: if player has 64 367: remove 64 367 from player message "{@prefix} &eMisja zakoniczona!" set {grandtheftminecraft.misssion.accept.%player%} to false add 2 to {grandtheftminecraft.mission.made.%player%} add {@mission} to {grandtheftminecraft.money.%player%} else: message "{@prefix} &cNie posiadasz jeszcze przedmiotu" stop if {grandtheftminecraft.mission.made.%player%} is 2: if player has 64 31:1: remove 64 31:1 from player message "{@prefix} &eMisja zakoniczona!" set {grandtheftminecraft.misssion.accept.%player%} to false add 1 to {grandtheftminecraft.mission.made.%player%} add {@mission} to {grandtheftminecraft.money.%player%} else: message "{@prefix} &cNie posiadasz jeszcze przedmiotu" stop #===========================================# # # # Opcje dropu z gracza # # # #===========================================# on death: if victim is player: if attacker is a player: add {@player} to {grandtheftminecraft.money.%player%} chance of 15%: give 1 367 to attacker #===========================================# # # # Blokada zabicia villagera # # # #===========================================# on damage of a villager: cancel event #===========================================# # # # Komendy do akceptowania # # # #===========================================# command /tak: trigger: set {grandtheftminecraft.misssion.accept.%player%} to true message "{@prefix} &eZakceptowales misje!" command /nie: trigger: message "{@prefix} &cOdrzuciles misje!"