# ==================================================== # # Skrypt DropChest by TheSMB # # ==================================================== # # Skrypt polega na dropieniu skrzynke z mobów i # # zdobywanie ekwipunku z nich, drop i itemy można # # ustawić w opcjach skryptu! # # ==================================================== # # Prosze o niekopiowanie, plagiatowanie i postowanie # # skryptu bez mojej sgody i w swoim imieniu! # # Jeśli chces skopiować skrypt/część kodu do swojego # # projektu to prosze o kontakt zemną lub dopisanie # # mnie do tak zwanych "Credits". Z góry dziękuje! # # ==================================================== # # Masz pomysł w sprawie skryptu? A może wykryłeś błąd? # # Skątaktuj się zemną! # # Email: smb1998.wisnia@gmail.com # # Forum: Skript.pl / nick: TheSMB # # ==================================================== # # ==================== # Opcje dodatkowe # ==================== options: tag: &a&l|| &2&lDropChest &a&l|| # Tag w wiadomosciach! mob: zombie or creeper or skeleton or spider or enderman or silverfish or slime or ghast or blaze or witch # ================================= # Ustawienia co do Małej Skrzynki! # ================================= options: ms: 5 # Wartość dropu pierwszej skrynki. mstone: 2.5 # Wartość dropu skrzynki z stone. msn: &b&lMala &e&lSkrzynka # Nazwa pierwszej skrzynki mmsg: &e&lGratulacje! Otworzyles &6&lMala Skrzynke &e&l! # wiadomość wyświetlająca się przy otwarciu 1 skrzynki. mmsgs: &7&lGratulacje! Wydropiles &6&lMala Skrzynke &7&lz stone! # wiadomośc przy dropnięciu skrzynki! dm1: apple # Jakie itemki dropią z 1 skrzynki dm2: bread dm3: cake dm4: cookie dm5: wooden shovel dm6: wooden pickaxe dm7: wooden axe dm8: wooden sword dm9: leather cap dm10: leather tunic dm11: leather pants dm12: leather boots dm13: coal dm14: sugar canes dm15: bone dm16: string dm17: egg dm18: feather dms1: 10 # Szansa na drop w % z skrzynki! dms2: 20 dms3: 30 dms4: 7.5 dms5: 7.5 dms6: 7.5 dms7: 7.5 dms8: 7.5 dms9: 7.5 dms10: 7.5 dms11: 7.5 dms12: 7.5 dms13: 5 dms14: 4 dms15: 11.5 dms16: 13 dms17: 11 dms18: 15 dml1: 1 and 2 # Liczba itemku dropiącego, musi być "and"!!! dml2: 1 and 2 dml3: 1 and 1 dml4: 1 and 4 dml5: 1 and 1 dml6: 1 and 1 dml7: 1 and 1 dml8: 1 and 1 dml9: 1 and 1 dml10: 1 and 1 dml11: 1 and 1 dml12: 1 and 1 dml13: 1 and 3 dml14: 1 and 5 dml15: 2 and 3 dml16: 1 and 6 dml17: 1 and 3 dml18: 1 and 4 # ================================= # Ustawienia co do Średniej Skrzynki! # ================================= options: ss: 1 # Wartość dropu drugiej skrynki. sstone: 0.5 # Wartość dropu skrzynki z stone. ssn: &3&lSrednia &e&lSkrzynka # Nazwa drugiej skrzynki smsg: &e&lGratulacje! Otworzyles &3&lSrednia Skrzynke &e&l! #wiadomość wyświetlająca się przy otwarciu 2 skrzynki. smsgs: &7&lGratulacje! Wydropiles &3&lSrednia Skrzynke &7&lz stone! # wiadomośc przy dropnięciu skrzynki! ds1: apple # Jakie itemki dropią z 2 skrzynki ds2: iron ore ds3: gold ore ds4: wheat ds5: iron shovel ds6: iron pickaxe ds7: iron axe ds8: iron sword ds9: iron helmet ds10: iron chestplate ds11: iron leggings ds12: iron boots ds13: coal ds14: sugar canes ds15: oak wood ds16: water bucket ds17: egg ds18: lava bucket dss1: 12.5 # Szansa na drop w % z skrzynki! dss2: 8 dss3: 6.5 dss4: 11.5 dss5: 6 dss6: 6 dss7: 6 dss8: 6 dss9: 6 dss10: 6 dss11: 6 dss12: 6 dss13: 9 dss14: 10 dss15: 22.5 dss16: 11.5 dss17: 14 dss18: 11.5 dsl1: 1 and 4 # Liczba itemku dropiącego, musi być "and"!!! dsl2: 1 and 3 dsl3: 1 and 2 dsl4: 1 and 8 dsl5: 1 and 1 dsl6: 1 and 1 dsl7: 1 and 1 dsl8: 1 and 1 dsl9: 1 and 1 dsl10: 1 and 1 dsl11: 1 and 1 dsl12: 1 and 1 dsl13: 1 and 8 dsl14: 1 and 9 dsl15: 2 and 28 dsl16: 1 and 1 dsl17: 1 and 6 dsl18: 1 and 1 # ================================= # Ustawienia co do Dużej Skrzynki! # ================================= options: ds: 0.5 # Wartość dropu trzeciej skrynki. dstone: 0.25 # Wartość dropu skrzynki z stone. dsn: &1&lDuza &e&lSkrzynka # Nazwa trzeciej skrzynki dmsg: &e&lGratulacje! Otworzyles &1&lDuza Skrzynke &e&l! #wiadomość wyświetlająca się przy otwarciu 3 skrzynki. dmsgs: &7&lGratulacje! Wydropiles &1&lDuza Skrzynke &7&lz stone! # wiadomośc przy dropnięciu skrzynki! dd1: iron ingot # Jakie itemki dropią z 3 skrzynki dd2: gold ingot dd3: diamond dd4: emerald dd5: sugar canes dd6: coal dd7: diamond shovel dd8: diamond pickaxe dd9: diamond axe dd10: diamond helmet dd11: diamond chestplate dd12: diamond leggings dd13: diamond boots dd14: enchantment table dd15: ender chest dd16: anvil dd17: bookshelf dd18: golden apple dds1: 15 # Szansa na drop w % z skrzynki! dds2: 14 dds3: 5.5 dds4: 6.5 dds5: 19 dds6: 25 dds7: 5 dds8: 5 dds9: 5 dds10: 5 dds11: 5 dds12: 5 dds13: 5 dds14: 3 dds15: 4 dds16: 6 dds17: 7 dds18: 12.5 ddl1: 1 and 12 # Liczba itemku dropiącego, musi być "and"!!! ddl2: 1 and 8 ddl3: 1 and 3 ddl4: 1 and 5 ddl5: 1 and 20 ddl6: 1 and 64 ddl7: 1 and 1 ddl8: 1 and 1 ddl9: 1 and 1 ddl10: 1 and 1 ddl11: 1 and 1 ddl12: 1 and 1 ddl13: 1 and 1 ddl14: 1 and 1 ddl15: 1 and 1 ddl16: 1 and 2 ddl17: 1 and 16 ddl18: 1 and 8 # =================================== # Ustawienia specialnej skrzynki! # =================================== options: es: 0.1 # Wartość dropu specialnej skrynki. estone: 0.05 # Wartość dropu skrzynki z stone. esn: &4&lSpecialna &e&lSkrzynka # Nazwa specialnej skrzynki emsg: &e&lGratulacje! Otworzyles &4&lSpecialna Skrzynke &e&l! #wiadomość wyświetlająca się przy otwarciu 4 skrzynki. emsgs: &7&lGratulacje! Wydropiles &4&lSpecialna Skrzynke &7&lz stone! # wiadomośc przy dropnięciu skrzynki! de1: diamond helmet # Jakie itemki dropią z 4 skrzynki de2: diamond chestplate de3: diamond leggings de4: diamond boots de5: diamond sword de6: diamond pickaxe de7: fishing rod de8: bow de9: enchanted golden apple des1: 12.5 # Szansa na drop w % z skrzynki! des2: 12.5 des3: 12.5 des4: 12.5 des5: 12.5 des6: 12.5 des7: 12.5 des8: 12.5 des9: 12.5 del1: 1 and 1 # Liczba itemku dropiącego, musi być "and"!!! del2: 1 and 1 del3: 1 and 1 del4: 1 and 1 del5: 1 and 1 del6: 1 and 1 del7: 1 and 1 del8: 1 and 1 del9: 1 and 4 # ============================================================ # # UWAGA, W TEJ CHWILI WŁAŚNIE SIĘ KOŃCZY KONFIGURACJA SKRYPTU! # # UWAGA, W TEJ CHWILI WŁAŚNIE SIĘ KOŃCZY KONFIGURACJA SKRYPTU! # # UWAGA, W TEJ CHWILI WŁAŚNIE SIĘ KOŃCZY KONFIGURACJA SKRYPTU! # # UWAGA, W TEJ CHWILI WŁAŚNIE SIĘ KOŃCZY KONFIGURACJA SKRYPTU! # # ============================================================ # on script load: loop all players: if loop-players is op: send "{@tag} &e&lSkrypt zaladowany/przeladowany!" to loop-players on death of {@mob}: chance of {@ms}%: set drops to 1 chest named "{@msn}" chance of {@ss}%: set drops to 1 chest named "{@ssn}" chance of {@ds}%: set drops to 1 chest named "{@dsn}" chance of {@es}%: set drops to 1 chest named "{@esn}" on mine stone: chance of {@mstone}%: send "{@tag} {@mmsgs}" drop 1 chest named "{@msn}" chance of {@sstone}%: send "{@tag} {@smsgs}" drop 1 chest named "{@ssn}" chance of {@dstone}%: send "{@tag} {@dmsgs}" drop 1 chest named "{@dsn}" chance of {@estone}%: send "{@tag} {@emsgs}" drop 1 chest named "{@esn}" on rightclick with chest: # =========================================================== # Mała skrzynka # =========================================================== if name of player's tool is "{@msn}": send "{@tag} {@mmsg}" remove 1 chest from player's tool cancel event wait 0.1 seconds chance of {@dms1}%: give a random number between {@dml1} of {@dm1} to the player chance of {@dms2}%: give a random number between {@dml2} of {@dm2} to the player chance of {@dms3}%: give a random number between {@dml3} of {@dm3} to the player chance of {@dms4}%: give a random number between {@dml4} of {@dm4} to the player chance of {@dms5}%: give a random number between {@dml5} of {@dm5} to the player chance of {@dms6}%: give a random number between {@dml6} of {@dm6} to the player chance of {@dms7}%: give a random number between {@dml7} of {@dm7} to the player chance of {@dms8}%: give a random number between {@dml8} of {@dm8} to the player chance of {@dms9}%: give a random number between {@dml9} of {@dm9} to the player chance of {@dms18}%: give a random number between {@dml18} of {@dm18} to the player chance of {@dms10}%: give a random number between {@dml10} of {@dm10} to the player chance of {@dms11}%: give a random number between {@dml11} of {@dm11} to the player chance of {@dms12}%: give a random number between {@dml12} of {@dm12} to the player chance of {@dms13}%: give a random number between {@dml13} of {@dm13} to the player chance of {@dms14}%: give a random number between {@dml14} of {@dm14} to the player chance of {@dms15}%: give a random number between {@dml15} of {@dm15} to the player chance of {@dms16}%: give a random number between {@dml16} of {@dm16} to the player chance of {@dms17}%: give a random number between {@dml17} of {@dm17} to the player # ========================================================== # Średnia skrzynka # ========================================================== if name of player's tool is "{@ssn}": send "{@tag} {@smsg}" remove 1 chest from player's tool cancel event wait 0.1 seconds chance of {@dss1}%: give a random number between {@dsl1} of {@ds1} to the player chance of {@dss2}%: give a random number between {@dsl2} of {@ds2} to the player chance of {@dss3}%: give a random number between {@dsl3} of {@ds3} to the player chance of {@dss4}%: give a random number between {@dsl4} of {@ds4} to the player chance of {@dss5}%: give a random number between {@dsl5} of {@ds5} to the player chance of {@dss6}%: give a random number between {@dsl6} of {@ds6} to the player chance of {@dss7}%: give a random number between {@dsl7} of {@ds7} to the player chance of {@dss8}%: give a random number between {@dsl8} of {@ds8} to the player chance of {@dss9}%: give a random number between {@dsl9} of {@ds9} to the player chance of {@dss18}%: give a random number between {@dsl18} of {@ds18} to the player chance of {@dss10}%: give a random number between {@dsl10} of {@ds10} to the player chance of {@dss11}%: give a random number between {@dsl11} of {@ds11} to the player chance of {@dss12}%: give a random number between {@dsl12} of {@ds12} to the player chance of {@dss13}%: give a random number between {@dsl13} of {@ds13} to the player chance of {@dss14}%: give a random number between {@dsl14} of {@ds14} to the player chance of {@dss15}%: give a random number between {@dsl15} of {@ds15} to the player chance of {@dss16}%: give a random number between {@dsl16} of {@ds16} to the player chance of {@dss17}%: give a random number between {@dsl17} of {@ds17} to the player # ======================================================= # Duża skrzynka # ======================================================= if name of player's tool is "{@dsn}": send "{@tag} {@dmsg}" remove 1 chest from player's tool cancel event wait 0.1 seconds chance of {@dds1}%: give a random number between {@ddl1} of {@dd1} to the player chance of {@dds2}%: give a random number between {@ddl2} of {@dd2} to the player chance of {@dds3}%: give a random number between {@ddl3} of {@dd3} to the player chance of {@dds4}%: give a random number between {@ddl4} of {@dd4} to the player chance of {@dds5}%: give a random number between {@ddl5} of {@dd5} to the player chance of {@dds6}%: give a random number between {@ddl6} of {@dd6} to the player chance of {@dds7}%: give a random number between {@ddl7} of {@dd7} to the player chance of {@dds8}%: give a random number between {@ddl8} of {@dd8} to the player chance of {@dds9}%: give a random number between {@ddl9} of {@dd9} to the player chance of {@dds18}%: give a random number between {@ddl18} of {@dd18} to the player chance of {@dds10}%: give a random number between {@ddl10} of {@dd10} to the player chance of {@dds11}%: give a random number between {@ddl11} of {@dd11} to the player chance of {@dds12}%: give a random number between {@ddl12} of {@dd12} to the player chance of {@dds13}%: give a random number between {@ddl13} of {@dd13} to the player chance of {@dds14}%: give a random number between {@ddl14} of {@dd14} to the player chance of {@dds15}%: give a random number between {@ddl15} of {@dd15} to the player chance of {@dds16}%: give a random number between {@ddl16} of {@dd16} to the player chance of {@dds17}%: give a random number between {@ddl17} of {@dd17} to the player # ========================================================== # Specialna skrzynka! # ========================================================== if name of player's tool is "{@esn}": send "{@tag} {@emsg}" remove 1 chest from player's tool cancel event wait 0.1 seconds chance of {@des1}%: give a random number between {@del1} of {@de1} to the player chance of {@des2}%: give a random number between {@del2} of {@de2} to the player chance of {@des3}%: give a random number between {@del3} of {@de3} to the player chance of {@des4}%: give a random number between {@del4} of {@de4} to the player chance of {@des5}%: give a random number between {@del5} of {@de5} to the player chance of {@des6}%: give a random number between {@del6} of {@de6} to the player chance of {@des7}%: give a random number between {@del7} of {@de7} to the player chance of {@des8}%: give a random number between {@del8} of {@de8} to the player chance of {@des9}%: give a random number between {@del9} of {@de9} to the player # ========================================================= # Komendy do pluginu! # ========================================================= command /chest [] []: aliases: /ch trigger: if arg 1 is "pomoc": send "&1&l||==---==|| &2&lDropChest &1&l||==---==||" send "&a&l/chest daj &3&l>> &e&lDaje graczowi po 1 sztuce skrzynek!" send "&a&l/chest mob &3&l>> &e&lPokazuje szanse na drop skrzyn z mobow!" send "&a&l/chest stone &3&l>> &e&lPokazuje szanse na drop skrzyn z sone!" send "&a&l/chest pomoc &3&l>> &e&lPokazuje graczowi pomoc z skryptu!" send "&a&l/chest reload &3&l>> &e&lPrzeladowuje skrypt!" send "&a&lAutor skryptu &3&l: &e&lTheSMB" send "&1&l||==---==|| &2&lDropChest &1&l||==---==||" if arg 1 is "daj": if player have permissions "chest.op": if arg 2 is set: give 1 chest named "{@msn}" to the player give 1 chest named "{@ssn}" to the player give 1 chest named "{@dsn}" to the player give 1 chest named "{@esn}" to the player if arg 1 is "mob": send "&1&l||==---==|| &2&lDropChest z Mobow &1&l||==---==||" send "&3&lJest &e&l{@ms} &3&lprocent szans na wyrzucenie {@msn}" send "&3&lJest &e&l{@ss} &3&lprocent szans na wyrzucenie {@ssn}" send "&3&lJest &e&l{@ds} &3&lprocent szans na wyrzucenie {@dsn}" send "&3&lJest &e&l{@es} &3&lprocent szans na wyrzucenie {@esn}" send "&1&l||==---==|| &2&lDropChest z Mobow &1&l||==---==||" if arg 1 is "stone": send "&1&l||==---==|| &2&lDropChest z Stone &1&l||==---==||" send "&3&lJest &e&l{@mstone} &3&lprocent szans na wyrzucenie {@msn}" send "&3&lJest &e&l{@sstone} &3&lprocent szans na wyrzucenie {@ssn}" send "&3&lJest &e&l{@dstone} &3&lprocent szans na wyrzucenie {@dsn}" send "&3&lJest &e&l{@estone} &3&lprocent szans na wyrzucenie {@esn}" send "&1&l||==---==|| &2&lDropChest z Stone &1&l||==---==||" if arg 1 is not set: send "&1&l||==---==|| &2&lDropChest &1&l||==---==||" send "&a&l/chest daj &3&l>> &e&lDaje graczowi po 1 sztuce skrzynek!" send "&a&l/chest mob &3&l>> &e&lPokazuje szanse na drop skrzyn z mobow!" send "&a&l/chest stone &3&l>> &e&lPokazuje szanse na drop skrzyn z sone!" send "&a&l/chest pomoc &3&l>> &e&lPokazuje graczowi pomoc z skryptu!" send "&a&l/chest reload &3&l>> &e&lPrzeladowuje skrypt!" send "&a&lAutor skryptu &3&l: &e&lTheSMB" send "&1&l||==---==|| &2&lDropChest &1&l||==---==||" if arg 1 is "reload": execute console command "sk reload all"